CN205028284U - Interface converting circuit of harvard structure bus and multiplex bus - Google Patents
Interface converting circuit of harvard structure bus and multiplex bus Download PDFInfo
- Publication number
- CN205028284U CN205028284U CN201520747439.0U CN201520747439U CN205028284U CN 205028284 U CN205028284 U CN 205028284U CN 201520747439 U CN201520747439 U CN 201520747439U CN 205028284 U CN205028284 U CN 205028284U
- Authority
- CN
- China
- Prior art keywords
- bus
- door
- dsp
- gate
- signal
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Active
Links
- 238000006243 chemical reaction Methods 0.000 claims abstract description 15
- 239000000872 buffer Substances 0.000 claims description 64
- 101150082572 TSB1 gene Proteins 0.000 claims description 14
- 101150020337 TSB2 gene Proteins 0.000 claims description 12
- 230000004913 activation Effects 0.000 abstract description 7
- 230000003993 interaction Effects 0.000 abstract description 6
- 238000013461 design Methods 0.000 abstract description 2
- 230000005540 biological transmission Effects 0.000 description 4
- 238000010586 diagram Methods 0.000 description 3
- 238000000034 method Methods 0.000 description 3
- 238000012360 testing method Methods 0.000 description 3
- 230000006870 function Effects 0.000 description 2
- 230000002452 interceptive effect Effects 0.000 description 2
- 238000004088 simulation Methods 0.000 description 2
- 230000009286 beneficial effect Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007812 deficiency Effects 0.000 description 1
- 238000005516 engineering process Methods 0.000 description 1
- 238000012423 maintenance Methods 0.000 description 1
Landscapes
- Bus Control (AREA)
Abstract
一种哈佛结构总线与复用总线的接口转换电路,两种总线之间需要进行数据交互时,本实用新型根据DSP片选信号有效与读写信号有效这间的时间差,即DSP建立阶段的时间长度作为复用总线的地址锁存有效时长,即复用总线的写地址阶段;采用DSP的读写信号的逻辑关系产生,作为复用总线的片选信号,采用DSP的读写信号分别作为复用总线的读写信号;采用总线切换开关设计方案,在复用总线的写地址阶段,将DSP的地址总线与复用总线连接,在复用总线的读写数据阶段,将DSP的数据总线与复用总线连接;这样就实现了,在DSP的一个读写周期内,在建立阶段,将地址信号写入复用总线,在激活和保持阶段,进行数据交互,DSP在一个读写周期内完成对复用总线的操作。
An interface conversion circuit between a Harvard structure bus and a multiplexing bus. When data interaction between the two buses is required, the utility model is based on the time difference between the valid DSP chip selection signal and the valid read and write signal, that is, the time of the DSP establishment stage The length is used as the effective duration of the address latch of the multiplexed bus, that is, the write address stage of the multiplexed bus; the logical relationship of the read and write signals of the DSP is used to generate the chip selection signal of the multiplexed bus, and the read and write signals of the DSP are respectively used as the multiplexed bus Use the read and write signals of the bus; adopt the bus switching switch design scheme, connect the address bus of the DSP to the multiplex bus in the stage of writing the address of the multiplex bus, and connect the data bus of the DSP to the multiplex bus in the stage of reading and writing data of the multiplex bus Multiplexing bus connection; in this way, in a read-write cycle of DSP, in the setup phase, the address signal is written into the multiplexed bus, and in the activation and hold phases, data interaction is performed, and DSP completes it in one read-write cycle Operations on multiplexed buses.
Description
技术领域technical field
本实用新型涉及一种哈佛结构总线与复用总线的接口转换电路,用于基于哈佛结构的DSP处理器与采用复用总线的数字器件进行数据交互传输,属于电通信技术领域。The utility model relates to an interface conversion circuit between a Harvard structure bus and a multiplexing bus, which is used for data interactive transmission between a DSP processor based on the Harvard structure and a digital device using a multiplexing bus, and belongs to the technical field of electrical communication.
背景技术Background technique
主流DSP处理器多采用哈佛结构,其外部并行数据接口采用地址总线、数据总线独立的接口。一类引脚数量受限制的数字器件采用了复用总线接口,即地址和数据信号在一条总线上分时传输,如CAN总线接口芯片、时钟管理芯片等。在设计基于DSP处理器的嵌入式系统时,很多时候需要与复用总线的数字器件进行数据交互、寄存器配置等工作。Mainstream DSP processors mostly adopt Harvard structure, and its external parallel data interface adopts independent interface of address bus and data bus. A type of digital device with a limited number of pins uses a multiplexed bus interface, that is, address and data signals are transmitted on a bus in time division, such as CAN bus interface chips, clock management chips, etc. When designing an embedded system based on a DSP processor, it is often necessary to perform data interaction, register configuration, and other work with the digital devices of the multiplexing bus.
现有的DSP与复用总线接口的方法主要分两种,一种是采用DSP的GPIO(通用输入输出)与复用总线直接接口,在DSP软件中操作GPIO模拟复用总线的读写时序,实现数据交互;第二种是采用DSP的数据总线与复用总线直接相连,采用DSP的地址总线通过可编程逻辑器件产生复用总线器件的片选信号,在DSP软件中先向数据总线写复用总线的地址、再对复用总线进行读、写数据,完成数据交互。Existing DSP and the method for multiplexed bus interface mainly divide two kinds, a kind of is to adopt the GPIO (general purpose input and output) of DSP and multiplexed bus direct interface, operate GPIO in DSP software to simulate the read and write sequence of multiplexed bus, Realize data interaction; the second is to use the DSP data bus to directly connect with the multiplexing bus, use the DSP address bus to generate the chip selection signal of the multiplexing bus device through the programmable logic device, and write the data bus to the data bus first in the DSP software Use the address of the bus, and then read and write data to the multiplexed bus to complete data interaction.
现有技术存在的缺点是:DSP处理器提供了在线仿真功能,可以通过编译软件实时查看DSP内部存储器和与DSP并行接口的外部数字器件的内部数据和寄存器情况,但实时查看功能是基于地址、数据独立总线的,对于复用总线器件采用上述两种方式均不能进行实时查看;另外DSP要完成一次数据读写,需要在软件中使用多条语句来模拟复用总线时序,提高了数据传输时间,降低了实时性,软件代码更加复杂繁琐。The shortcoming that prior art exists is: DSP processor has provided online emulation function, can check the internal data and the register situation of the external digital device of DSP internal memory and the external digital device of parallel interface with DSP in real time by compiling software, but real-time checking function is based on address, If the data is independent of the bus, the above two methods cannot be used for real-time viewing of multiplexed bus devices; in addition, to complete a data read and write for DSP, multiple statements need to be used in the software to simulate the timing of the multiplexed bus, which improves the data transmission time. , which reduces the real-time performance, and the software code is more complex and cumbersome.
发明内容Contents of the invention
本发明的技术解决问题是:克服现有技术的不足,提供了一种哈佛结构总线与复用总线的接口转换电路,采用硬件电路方式,使两种总线接口时序直接匹配。The problem solved by the technology of the present invention is: to overcome the deficiencies of the prior art, and to provide an interface conversion circuit between a Harvard structured bus and a multiplexed bus, which uses a hardware circuit to directly match the timing of the two bus interfaces.
本发明的技术解决方案是:Technical solution of the present invention is:
一种哈佛结构总线与复用总线的接口转换电路,其特征在于包括:包括第一缓冲器BF1、第二缓冲器BF2、第一与门AG1、第二与门AG2、第三与门AG3、第四与门AG4、第五与门AG5、第一非门NG1、第二非门NG2、第三非门NG3、第四非门NG4、第一或门OG1、第二或门OG2、第一三态缓冲器TSB1、第二三态缓冲器TSB2、第三三态缓冲器TSB3、第四三态缓冲器TSB4和数据选择器MUX;An interface conversion circuit between a Harvard structure bus and a multiplexing bus, characterized in that it comprises: a first buffer BF1, a second buffer BF2, a first AND gate AG1, a second AND gate AG2, a third AND gate AG3, The fourth AND gate AG4, the fifth AND gate AG5, the first NOT gate NG1, the second NOT gate NG2, the third NOT gate NG3, the fourth NOT gate NG4, the first OR gate OG1, the second OR gate OG2, the first NOT gate Tri-state buffer TSB1, second tri-state buffer TSB2, third tri-state buffer TSB3, fourth tri-state buffer TSB4 and data selector MUX;
DSP的读信号cpu_rd输入到第一缓冲器BF1的输入端,第一缓冲器BF1的输出端作为复用总线的读信号can_rd输出;第一缓冲器BF1的输入端还与第一与门AG1的一个输入端连接在一起;The read signal cpu_rd of the DSP is input to the input end of the first buffer BF1, and the output end of the first buffer BF1 is output as the read signal can_rd of the multiplexing bus; the input end of the first buffer BF1 is also connected with the first AND gate AG1 one input connected together;
DSP的写信号cpu_we输入到第二缓冲器BF2的输入端,第二缓冲器BF2的输出端作为复用总线的写信号can_wr输出;第二缓冲器BF2的输入端还与第一与门AG1的另一个输入端连接在一起;The write signal cpu_we of the DSP is input to the input end of the second buffer BF2, and the output end of the second buffer BF2 is output as the write signal can_wr of the multiplexing bus; the input end of the second buffer BF2 is also connected with the first AND gate AG1 The other inputs are connected together;
第一与门AG1的输出信号作为复用总线的片选信号can_cs并输出,同时,第一与门AG1的输出信号还作为第二与门AG2的一个输入信号;The output signal of the first AND gate AG1 is output as the chip select signal can_cs of the multiplexing bus, and at the same time, the output signal of the first AND gate AG1 is also used as an input signal of the second AND gate AG2;
DSP外部存储空间的片选信号cpu_ce通过第一非门NG1反向后与第二与门AG2的另一个输入端连接在一起,第二与门AG2的输出信号连接数据选择器MUX的数据选择端,同时,第二与门AG2的输出信号还作为复用总线的地址锁存信号can_ale输出,第二与门AG2的输出信号通过第二非门NG2反向后连接到第三与门AG3的一个输入端;The chip select signal cpu_ce of the DSP external storage space is connected to the other input end of the second AND gate AG2 after being reversed by the first NOT gate NG1, and the output signal of the second AND gate AG2 is connected to the data selection end of the data selector MUX At the same time, the output signal of the second AND gate AG2 is also output as the address latch signal can_ale of the multiplexing bus, and the output signal of the second AND gate AG2 is reversed by the second NOT gate NG2 and then connected to one of the third AND gate AG3 input terminal;
DSP的地址总线cpu_addr连接到数据选择器MUX的一个输入端,DSP的数据总线cpu_data通过第一三态缓冲器TSB1连接到数据选择器MUX的另一个输入端,数据选择器MUX的输出信号通过第三三态缓冲器TSB3之后连接复用总线can_data;The address bus cpu_addr of the DSP is connected to an input end of the data selector MUX, the data bus cpu_data of the DSP is connected to the other input end of the data selector MUX through the first tri-state buffer TSB1, and the output signal of the data selector MUX passes through the first three-state buffer TSB1. The three-state buffer TSB3 is connected to the multiplexing bus can_data;
复用总线can_data依次通过第四三态缓冲器TSB4和第二三态缓冲器TSB2连接到DSP的数据总线cpu_data;The multiplexing bus can_data is sequentially connected to the data bus cpu_data of the DSP through the fourth tri-state buffer TSB4 and the second tri-state buffer TSB2;
第一或门OG1的两个输入端分别连接DSP外部存储空间的片选信号cpu_ce和DSP的输出使能信号cpu_aoe,第一或门OG1的输出端连接到第一三态缓冲器TSB1的使能端,同时,第一或门OG1的输出端还通过第三非门NG3连接到第二三态缓冲器TSB2的使能端,The two input ends of the first OR gate OG1 are respectively connected to the chip select signal cpu_ce of the DSP external storage space and the output enable signal cpu_aoe of the DSP, and the output end of the first OR gate OG1 is connected to the enabling of the first tri-state buffer TSB1 At the same time, the output terminal of the first OR gate OG1 is also connected to the enable terminal of the second tri-state buffer TSB2 through the third NOT gate NG3,
第三非门NG3的输出端同时连接到第三与门AG3的一个输入端和第四与门AG4的一个输入端,第三与门AG3的输出端连接到第四三态缓冲器TSB4的使能端;The output end of the third NOT gate NG3 is connected to an input end of the third AND gate AG3 and an input end of the fourth AND gate AG4 at the same time, and the output end of the third AND gate AG3 is connected to the enabler of the fourth tri-state buffer TSB4 Capable end;
第二与门AG2的输出信号作为第四与门AG4的一个输入信号,第四与门AG4的输出端连接到第二或门OG2的一个输入端;The output signal of the second AND gate AG2 is used as an input signal of the fourth AND gate AG4, and the output end of the fourth AND gate AG4 is connected to an input end of the second OR gate OG2;
DSP的输出使能信号cpu_aoe连接到第五与门AG5的一个输入端,DSP外部存储空间的片选信号cpu_ce通过第四非门NG4之后连接到第五与门AG5的另一个输入端,第五与门AG5的输出端连接到第二或门OG2的另一个输入端;第二或门OG2的输出端连接到第三三态缓冲器TSB3的使能端。The output enable signal cpu_aoe of the DSP is connected to one input terminal of the fifth AND gate AG5, and the chip select signal cpu_ce of the DSP external storage space is connected to the other input terminal of the fifth AND gate AG5 after passing through the fourth NOT gate NG4, and the fifth The output terminal of the AND gate AG5 is connected to the other input terminal of the second OR gate OG2; the output terminal of the second OR gate OG2 is connected to the enable terminal of the third tri-state buffer TSB3.
本发明与现有技术相比的有益效果是:The beneficial effect of the present invention compared with prior art is:
本发明接口转换电路,能够使基于哈佛结构的DSP以寻址的方式在一个读写周期内完成对复用总线数字器件的数据存取,达到提高软件实时性、降低代码复杂度,实现在仿真环境下实时查看复用总线数字器件存储器数据目的。The interface conversion circuit of the present invention can enable the DSP based on the Harvard structure to complete the data access to the multiplexed bus digital device in a read-write cycle in an addressing manner, so as to improve the real-time performance of the software, reduce the complexity of the code, and realize the simulation in the simulation. Real-time viewing of multiplexed bus digital device memory data purposes in the environment.
附图说明Description of drawings
图1为本发明的电路原理示意图;Fig. 1 is the circuit schematic diagram of the present invention;
图2为DSP读复用总线测试图;Fig. 2 is a DSP read multiplexing bus test diagram;
图3为DSP写复用总线测试图。Figure 3 is a test diagram of the DSP write multiplexing bus.
具体实施方式detailed description
本实用新型涉及一种哈佛结构总线(地址总线与数据总线相互独立)与复用总线(地址总线与数据总线分时复用)的接口转换电路,用于基于哈佛结构的DSP处理器与采用复用总线的数字器件进行数据交互传输。The utility model relates to an interface conversion circuit of a Harvard structure bus (address bus and data bus are independent of each other) and a multiplexing bus (address bus and data bus are time-division multiplexed), which is used for DSP processors based on Harvard structure and adopting multiplexing Use the digital devices of the bus for data interactive transmission.
如图1所示,本实用新型提供了一种哈佛结构总线与复用总线的接口转换电路,包括:第一缓冲器BF1、第二缓冲器BF2、第一与门AG1、第二与门AG2、第三与门AG3、第四与门AG4、第五与门AG5、第一非门NG1、第二非门NG2、第三非门NG3、第四非门NG4、第一或门OG1、第二或门OG2、第一三态缓冲器TSB1、第二三态缓冲器TSB2、第三三态缓冲器TSB3、第四三态缓冲器TSB4和数据选择器MUX;As shown in Figure 1, the utility model provides an interface conversion circuit between a Harvard structure bus and a multiplexing bus, including: a first buffer BF1, a second buffer BF2, a first AND gate AG1, and a second AND gate AG2 , the third AND gate AG3, the fourth AND gate AG4, the fifth AND gate AG5, the first NOT gate NG1, the second NOT gate NG2, the third NOT gate NG3, the fourth NOT gate NG4, the first OR gate OG1, the Two OR gate OG2, first tri-state buffer TSB1, second tri-state buffer TSB2, third tri-state buffer TSB3, fourth tri-state buffer TSB4 and data selector MUX;
电路接口包括DSP外部存储器接口和复用总线接口。Circuit interface includes DSP external memory interface and multiplexing bus interface.
DSP的外部存储器接口包括片选信号,输出使能信号,读信号,写信号,地址总线信号和数据总线信号;The external memory interface of DSP includes chip select signal, output enable signal, read signal, write signal, address bus signal and data bus signal;
cpu_aoe为DSP的输出使能信号,DSP读操作时为低电平,写操作时为高电平,从DSP读写的建立阶段有效;cpu_aoe is the output enable signal of DSP, which is low level during DSP read operation and high level during write operation, and is valid during the establishment stage of reading and writing from DSP;
cpu_data为DSP的数据总线;cpu_data is the data bus of DSP;
cpu_addr为DSP的地址总线;cpu_addr is the address bus of DSP;
cpu_ce为DSP外部存储空间的片选信号,DSP读写时为低电平,从DSP读写的建立阶段有效;cpu_ce is the chip select signal of DSP external storage space, it is low level when DSP is reading and writing, and it is valid in the establishment stage of reading and writing from DSP;
cpu_rd为DSP的读信号,DSP读作时为低电平,从DSP读写的激活阶段有效(与cpu_aoe信号的区别);cpu_rd is the read signal of DSP, when DSP is read, it is low level, and the activation phase of reading and writing from DSP is valid (difference from cpu_aoe signal);
cpu_we为DSP的写信号,DSP写操作时为低电平,从DSP读写的激活阶段有效;cpu_we is the write signal of DSP, which is low level during DSP write operation, and the activation phase of reading and writing from DSP is valid;
复用总线接口包括片选信号,地址锁存信号,读信号,写信号,地址、数据复用总线信号;The multiplexed bus interface includes chip select signal, address latch signal, read signal, write signal, address and data multiplexed bus signal;
can_data为复用总线;can_data is a multiplexed bus;
can_ale为复用总线的地址锁存信号;can_ale is the address latch signal of the multiplexing bus;
can_cs为复用总线的片选信号;can_cs is the chip select signal of the multiplexing bus;
can_rd为复用总线的读信号;can_rd is the read signal of the multiplexed bus;
can_wr为复用总线的写信号。can_wr is the write signal of the multiplexing bus.
DSP的读信号cpu_rd输入到第一缓冲器BF1的输入端,第一缓冲器BF1的输出端作为复用总线的读信号can_rd输出;第一缓冲器BF1的输入端还与第一与门AG1的一个输入端连接在一起;The read signal cpu_rd of the DSP is input to the input end of the first buffer BF1, and the output end of the first buffer BF1 is output as the read signal can_rd of the multiplexing bus; the input end of the first buffer BF1 is also connected with the first AND gate AG1 one input connected together;
DSP的写信号cpu_we输入到第二缓冲器BF2的输入端,第二缓冲器BF2的输出端作为复用总线的写信号can_wr输出;第二缓冲器BF2的输入端还与第一与门AG1的另一个输入端连接在一起;The write signal cpu_we of the DSP is input to the input end of the second buffer BF2, and the output end of the second buffer BF2 is output as the write signal can_wr of the multiplexing bus; the input end of the second buffer BF2 is also connected with the first AND gate AG1 The other inputs are connected together;
第一与门AG1的输出信号作为复用总线的片选信号can_cs并输出,即在DSP读或写操作时选通复用总线接口,同时,第一与门AG1的输出信号还作为第二与门AG2的一个输入信号;The output signal of the first AND gate AG1 is output as the chip select signal can_cs of the multiplexing bus, that is, the multiplexing bus interface is gated during the DSP read or write operation, and at the same time, the output signal of the first AND gate AG1 is also used as the second AND an input signal of gate AG2;
DSP外部存储空间的片选信号cpu_ce通过第一非门NG1反向后与第二与门AG2的另一个输入端连接在一起,第二与门AG2的输出信号连接数据选择器MUX的数据选择端,同时,第二与门AG2的输出信号还作为复用总线的地址锁存信号can_ale输出,即在DSP读写的建立阶段锁存地址,在激活阶段锁存数据,第二与门AG2的输出信号通过第二非门NG2反向后连接到第三与门AG3的一个输入端;The chip select signal cpu_ce of the DSP external storage space is connected to the other input end of the second AND gate AG2 after being reversed by the first NOT gate NG1, and the output signal of the second AND gate AG2 is connected to the data selection end of the data selector MUX , at the same time, the output signal of the second AND gate AG2 is also output as the address latch signal can_ale of the multiplexing bus, that is, the address is latched in the establishment stage of DSP reading and writing, and the data is latched in the activation stage. The output of the second AND gate AG2 The signal is connected to an input end of the third AND gate AG3 after being reversed by the second NOT gate NG2;
DSP的地址总线cpu_addr连接到数据选择器MUX的一个输入端,DSP的数据总线cpu_data通过第一三态缓冲器TSB1连接到数据选择器MUX的另一个输入端,数据选择器MUX的输出信号通过第三三态缓冲器TSB3之后连接复用总线can_data;The address bus cpu_addr of the DSP is connected to an input end of the data selector MUX, the data bus cpu_data of the DSP is connected to the other input end of the data selector MUX through the first tri-state buffer TSB1, and the output signal of the data selector MUX passes through the first three-state buffer TSB1. The three-state buffer TSB3 is connected to the multiplexing bus can_data;
复用总线can_data依次通过第四三态缓冲器TSB4和第二三态缓冲器TSB2连接到DSP的数据总线cpu_data;The multiplexing bus can_data is sequentially connected to the data bus cpu_data of the DSP through the fourth tri-state buffer TSB4 and the second tri-state buffer TSB2;
第一或门OG1的两个输入端分别连接DSP外部存储空间的片选信号cpu_ce和DSP的输出使能信号cpu_aoe,第一或门OG1的输出端连接到第一三态缓冲器TSB1的使能端,同时,第一或门OG1的输出端还通过第三非门NG3连接到第二三态缓冲器TSB2的使能端,The two input ends of the first OR gate OG1 are respectively connected to the chip select signal cpu_ce of the DSP external storage space and the output enable signal cpu_aoe of the DSP, and the output end of the first OR gate OG1 is connected to the enabling of the first tri-state buffer TSB1 At the same time, the output terminal of the first OR gate OG1 is also connected to the enable terminal of the second tri-state buffer TSB2 through the third NOT gate NG3,
第三非门NG3的输出端同时连接到第三与门AG3的一个输入端和第四与门AG4的一个输入端,第三与门AG3的输出端连接到第四三态缓冲器TSB4的使能端;The output end of the third NOT gate NG3 is connected to an input end of the third AND gate AG3 and an input end of the fourth AND gate AG4 at the same time, and the output end of the third AND gate AG3 is connected to the enabler of the fourth tri-state buffer TSB4 Capable end;
第二与门AG2的输出信号作为第四与门AG4的一个输入信号,第四与门AG4的输出端连接到第二或门OG2的一个输入端;The output signal of the second AND gate AG2 is used as an input signal of the fourth AND gate AG4, and the output end of the fourth AND gate AG4 is connected to an input end of the second OR gate OG2;
DSP的输出使能信号cpu_aoe连接到第五与门AG5的一个输入端,DSP外部存储空间的片选信号cpu_ce通过第四非门NG4之后连接到第五与门AG5的另一个输入端,第五与门AG5的输出端连接到第二或门OG2的另一个输入端;第二或门OG2的输出端连接到第三三态缓冲器TSB3的使能端。The output enable signal cpu_aoe of the DSP is connected to one input terminal of the fifth AND gate AG5, and the chip select signal cpu_ce of the DSP external storage space is connected to the other input terminal of the fifth AND gate AG5 after passing through the fourth NOT gate NG4, and the fifth The output terminal of the AND gate AG5 is connected to the other input terminal of the second OR gate OG2; the output terminal of the second OR gate OG2 is connected to the enable terminal of the third tri-state buffer TSB3.
通过本实用新型电路,将DSP读写时序的三个阶段映射为复用总线时序的两个阶段,通过数据选择器完成DSP的地址总线、数据总线对复用总线的分时复用,达到在DSP的一个读写周期内完成与复用总线的数据交互。Through the circuit of the utility model, the three stages of the DSP read and write sequence are mapped to two stages of the multiplexing bus sequence, and the time-division multiplexing of the address bus and the data bus of the DSP to the multiplexing bus is completed by the data selector, so as to achieve The data interaction with the multiplexing bus is completed within one read and write cycle of the DSP.
DSP的外部存储器接口读写操作时序包括三个阶段,分别是建立、激活和保持阶段。建立阶段,DSP使能片选、地址有效、输出使能信号有效;激活阶段,对于读操作,读信号拉低,并要求在激活阶段结束前一个时钟周期数据有效,对于写操作,写信号拉低,并且数据总线有效,并且持续到保持阶段结束;保持阶段结束后,释放地址总线和数据总线,片选、输出使能、读写信号回到不使能状态;完成一次读写操作。The sequence of read and write operations of the external memory interface of DSP includes three phases, which are the establishment, activation and maintenance phases. In the establishment phase, the DSP enables chip selection, the address is valid, and the output enable signal is valid; in the activation phase, for the read operation, the read signal is pulled low, and the data is required to be valid one clock cycle before the end of the activation phase. For the write operation, the write signal is pulled Low, and the data bus is valid, and lasts until the end of the hold phase; after the hold phase is over, the address bus and data bus are released, the chip select, output enable, and read and write signals return to the disabled state; a read and write operation is completed.
复用总线接口读写操作包括两个阶段,分别是写地址阶段和读写数据阶段。写地址阶段,地址锁存信号拉高,通过复用总线写入地址信号;读写数据阶段,地址锁存信号拉低,片选信号拉低,读或写信号拉低,从复用总线上读取数据或将数据写到复用总线上,读或写信号拉高,片选信号拉高,地址锁存信号拉高;完成一次读写操作。The read and write operation of the multiplexed bus interface includes two stages, which are the write address stage and the read and write data stage. In the address writing stage, the address latch signal is pulled high, and the address signal is written through the multiplexed bus; in the read and write data stage, the address latch signal is pulled low, the chip select signal is pulled low, the read or write signal is pulled low, and the address signal is read from the multiplexed bus. Read data or write data to the multiplexing bus, the read or write signal is pulled high, the chip select signal is pulled high, and the address latch signal is pulled high; a read and write operation is completed.
本实用新型采用如下方案实现两总线接口的时序转换:根据DSP片选信号有效与读写信号有效这间的时间差,即DSP建立阶段的时长作为复用总线的地址锁存有效时长,即复用总线的写地址阶段;采用DSP的读写信号的逻辑关系产生,作为复用总线的片选信号,采用DSP的读写信号分别作为复用总线的读写信号;采用数据选择器作为总线切换开关设计,在复用总线的写地址阶段,将DSP的地址总线与复用总线连接,在复用总线的读写数据阶段,将DSP的数据总线与复用总线连接;在复用总线的写地址阶段,三态数据总线方向为从DSP地址总线到复用总线,在复用总线的写数据阶段,三态数据总线方向为从DSP数据总线到复用总线,在复用总线的读数据阶段,三态数据总线方向为从复用总线到DSP数据总线。The utility model adopts the following scheme to realize the timing conversion of the two bus interfaces: according to the time difference between the validity of the DSP chip selection signal and the validity of the read-write signal, that is, the duration of the DSP establishment stage is used as the effective duration of the address latch of the multiplexing bus, that is, multiplexing The write address stage of the bus; the logical relationship of the read and write signals of DSP is used to generate, as the chip selection signal of the multiplexed bus, the read and write signals of the DSP are respectively used as the read and write signals of the multiplexed bus; the data selector is used as the bus switch Design, in the write address stage of the multiplexing bus, connect the address bus of the DSP to the multiplexing bus, and in the stage of reading and writing data of the multiplexing bus, connect the data bus of the DSP to the multiplexing bus; stage, the direction of the tri-state data bus is from the DSP address bus to the multiplexing bus, and in the phase of writing data of the multiplexing bus, the direction of the tri-state data bus is from the DSP data bus to the multiplexing bus, and in the phase of reading data of the multiplexing bus, The direction of the tri-state data bus is from the multiplexing bus to the DSP data bus.
cpu_dout、cpu_to_can_data、can_to_cpu_data为数据流在三态总线上传输的中间变量。cpu_dout, cpu_to_can_data, and can_to_cpu_data are intermediate variables for data stream transmission on the tri-state bus.
can_ale为高电平时,将cpu_addr与cpu_to_can_data连接,将DSP地址信号输出给复用总线;When can_ale is high, connect cpu_addr to cpu_to_can_data, and output the DSP address signal to the multiplexing bus;
can_ale为低电平时,将cpu_dout与cpu_to_can_data连接,将DSP数据信号与复用总线相连;When can_ale is low level, connect cpu_dout to cpu_to_can_data, and connect the DSP data signal to the multiplexing bus;
TSB为三态缓冲器,ENB为使能端,ENB为逻辑1(高电平)时,TSB输入与输出相连,ENB为逻辑0(低电平)时,TSB直接输出高阻态;TSB is a tri-state buffer, ENB is an enable terminal, when ENB is logic 1 (high level), the TSB input is connected to the output, when ENB is logic 0 (low level), TSB directly outputs a high-impedance state;
TSB1的ENB为逻辑1时,表示DSP不执行读操作时,数据流向默认为cpu_data到cpu_dout;When the ENB of TSB1 is logic 1, it means that when the DSP does not perform a read operation, the data flow defaults to cpu_data to cpu_dout;
TSB2的ENB为逻辑1时,表示DSP片选为低,DSP输出使能为低时,为DSP读数据操作,数据流向由can_to_cpu_data到cpu_data;When the ENB of TSB2 is logic 1, it means that the DSP chip select is low, and when the DSP output enable is low, it is a DSP read data operation, and the data flow direction is from can_to_cpu_data to cpu_data;
TSB3的ENB为逻辑1时,表示DSP片选为低、输出使能为高(DSP写操作)或DSP片选为低、输出使能为低、复用总线锁存信号为高(DSP读操作的建立阶段),数据流向为cpu_to_can_data到can_data;When the ENB of TSB3 is logic 1, it means that the DSP chip select is low, the output enable is high (DSP write operation) or the DSP chip select is low, the output enable is low, and the multiplexed bus latch signal is high (DSP read operation) The establishment phase), the data flow is from cpu_to_can_data to can_data;
TSB4的ENB为逻辑1时,表示DSP片选为低,DSP输出使能为低,复用总线地址锁存为低时,为复用总线数据输出操作,数据流向由can_data到can_to_cpu_data。When the ENB of TSB4 is logic 1, it means that the DSP chip select is low, the DSP output enable is low, and when the multiplexed bus address latch is low, it is the multiplexed bus data output operation, and the data flow is from can_data to can_to_cpu_data.
实施例1:采用门电路和单片元件实现Embodiment 1: Implementation using gate circuits and monolithic components
缓冲器BF1、BF2,选择1片TI公司的2路缓冲器SN74LVC2G34,For buffers BF1 and BF2, choose a 2-way buffer SN74LVC2G34 from TI,
与门AG1、AG2、AG3、AG4、AG5,选择1片TI公司的4路与门SN74LVC08A,1片单路与门sn74lvc1g08,And gates AG1, AG2, AG3, AG4, AG5, choose 1 piece of 4-way AND gate SN74LVC08A of TI company, 1 piece of single-way AND gate sn74lvc1g08,
非门NG1、NG2、NG3、NG4、选择2片2路非门SN74LVC2G04NOT gate NG1, NG2, NG3, NG4, select 2 pieces of 2-way NOT gate SN74LVC2G04
或门OG1、OG2,1片TI公司双路或门SN74LVC2G32,Or gate OG1, OG2, 1 piece of TI company's two-way OR gate SN74LVC2G32,
三态缓冲器TSB1、TSB2、TSB3、TSB4,选择4片TI公司8通道三态缓冲器SN74LVC244A,Three-state buffers TSB1, TSB2, TSB3, TSB4, choose 4 8-channel three-state buffers SN74LVC244A from TI Company,
数据选择器MUX,选择2片TI公司4位2选1多路复用器SN74CB3Q3257Data selector MUX, select 2 pieces of TI's 4-bit 2-to-1 multiplexer SN74CB3Q3257
实施例2:采用FPGA实现Embodiment 2: Adopt FPGA to realize
本实用新型在XILINX公司FPGA/xc5vlx30t上进行实现,配合使用TI公司的DSP/TMS320C6701验证,测试波形如图2、3所示。The utility model is realized on the FPGA/xc5vlx30t of XILINX Company, and verified by using DSP/TMS320C6701 of TI Company, and the test waveform is shown in Fig. 2 and 3 .
Claims (7)
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520747439.0U CN205028284U (en) | 2015-09-24 | 2015-09-24 | Interface converting circuit of harvard structure bus and multiplex bus |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
CN201520747439.0U CN205028284U (en) | 2015-09-24 | 2015-09-24 | Interface converting circuit of harvard structure bus and multiplex bus |
Publications (1)
Publication Number | Publication Date |
---|---|
CN205028284U true CN205028284U (en) | 2016-02-10 |
Family
ID=55260801
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CN201520747439.0U Active CN205028284U (en) | 2015-09-24 | 2015-09-24 | Interface converting circuit of harvard structure bus and multiplex bus |
Country Status (1)
Country | Link |
---|---|
CN (1) | CN205028284U (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115811448A (en) * | 2022-11-03 | 2023-03-17 | 北京精密机电控制设备研究所 | AXI bus and EMIF bus time sequence conversion connection method |
-
2015
- 2015-09-24 CN CN201520747439.0U patent/CN205028284U/en active Active
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
CN115811448A (en) * | 2022-11-03 | 2023-03-17 | 北京精密机电控制设备研究所 | AXI bus and EMIF bus time sequence conversion connection method |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
CN105550119B (en) | A kind of simulator based on JTAG protocol | |
WO2017016178A1 (en) | Interface signal remapping method based on fpga | |
US10678976B2 (en) | Generic protocol analyzer for circuit design verification | |
CN105302950A (en) | Software and hardware cooperation based cross-linking simulation test method for programmable logic device | |
US11200149B2 (en) | Waveform based reconstruction for emulation | |
CN101303711A (en) | Gating clock for on-site programmable gate array and implementing method thereof | |
CN105357070A (en) | FPGA-based ARINC818 bus analysis and test apparatus | |
CN106098104B (en) | Fpga chip embeds the test macro and method of BRAM core | |
CN102184148A (en) | AT96 bus controller IP (internet protocol) core based on FPGA (field programmable gate array) and construction method thereof | |
CN102419415B (en) | TAP (Test Access Port) interface optimization circuit based on boundary scanning circuit | |
CN105224493A (en) | A kind of configuration circuit completing FPGA reprovision by user's input/output port | |
CN106372032A (en) | FPGA (field programmable gate array) dynamic reconstruction method | |
CN103365749B (en) | A multi-core processor debugging system | |
CN205028284U (en) | Interface converting circuit of harvard structure bus and multiplex bus | |
CN103226531B (en) | A kind of dual-port peripheral configuration interface circuit | |
CN103198854B (en) | There is in FPGA the Block RAM of multiple write mode | |
CN201993640U (en) | AT96 bus controller IP (internet protocol) core based on FPGA (Field Programmable Gate Array) | |
CN101980179B (en) | Method for reading and writing on-line serial data of on-chip system | |
CN104794087B (en) | Processing unit interface circuit in a kind of polycaryon processor | |
CN103984586A (en) | Interface drive method for EMIF (external memory interface) and FPGA (field programmable gate array) under embedded type Linux system | |
CN204406394U (en) | USB and ADC interface multiplexing circuit | |
US11386009B2 (en) | Programmable device configuration memory system | |
US20170212861A1 (en) | Clock tree implementation method, system-on-chip and computer storage medium | |
Kurmi et al. | Design of AHB protocol block for advanced microcontrollers | |
CN102508798B (en) | CPU (Central Processing Unit) and FPGA (Field Programmable Gate Array) interface method based on BURST and flow line |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
C14 | Grant of patent or utility model | ||
GR01 | Patent grant |