CN101211328B - High-performance programmable logic system interface and chip - Google Patents
High-performance programmable logic system interface and chip Download PDFInfo
- Publication number
- CN101211328B CN101211328B CN2006101702702A CN200610170270A CN101211328B CN 101211328 B CN101211328 B CN 101211328B CN 2006101702702 A CN2006101702702 A CN 2006101702702A CN 200610170270 A CN200610170270 A CN 200610170270A CN 101211328 B CN101211328 B CN 101211328B
- Authority
- CN
- China
- Prior art keywords
- bus
- interior arrangement
- group
- external
- chip
- 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.)
- Expired - Fee Related
Links
- 230000005540 biological transmission Effects 0.000 claims description 28
- 230000002093 peripheral effect Effects 0.000 claims description 4
- 238000010586 diagram Methods 0.000 description 6
- 230000008901 benefit Effects 0.000 description 3
- 230000015654 memory Effects 0.000 description 3
- 238000012546 transfer Methods 0.000 description 3
- 230000002457 bidirectional effect Effects 0.000 description 2
- 230000000694 effects Effects 0.000 description 2
- 238000000034 method Methods 0.000 description 2
- 238000012545 processing Methods 0.000 description 2
- 230000009471 action Effects 0.000 description 1
- 230000008859 change Effects 0.000 description 1
- 238000004891 communication Methods 0.000 description 1
- 230000007246 mechanism Effects 0.000 description 1
- 230000004048 modification Effects 0.000 description 1
- 238000012986 modification Methods 0.000 description 1
Images
Landscapes
- Bus Control (AREA)
Abstract
Description
技术领域technical field
本发明是关于一种接口装置,特别是关于一种高性能可编程逻辑系统接口。The invention relates to an interface device, in particular to a high-performance programmable logic system interface.
背景技术Background technique
集成电路芯片之间的沟通,依据不同的系统应用,可选择使用平行总线(parallel bus)或串列总线(serial bus)数据传输方式来进行。当两个芯片皆具有平行总线时,一般会使用通用输入输出(GPIO)接口来送讯号。GPIO虽然具有弹性较大的优点,然而缺点为速度较慢。因此,便发展出另一种平行且可程序化的接口,将GPIO的优点与串列总线的优点结合。The communication between integrated circuit chips can be carried out by using parallel bus or serial bus data transmission method according to different system applications. When both chips have parallel buses, the general-purpose input and output (GPIO) interface is generally used to send signals. Although GPIO has the advantage of greater flexibility, its disadvantage is that it is slower. Therefore, another parallel and programmable interface has been developed, which combines the advantages of GPIO with the advantages of serial bus.
图1所绘示的方块图是用以说明上述传输系统。在图1中,数据传输系统100包含一集成电路芯片110以及一外部装置120,其中,外部装置120可例如为一印表机、一录影机、一数位相机、一储存装置或其他电脑周边装置。集成电路芯片110包含一内部装置130以及一总线控制器(bus master)140,其中内部装置130可例如为一先进先出(FIFO)装置或一缓存器(register)。集成电路芯片110更包含数据总线132及122、地址总线124、控制总线136及126、以及备妥(ready)总线138及128。内部装置130透过这些总线而与外部装置120沟通。The block diagram shown in FIG. 1 is used to illustrate the above transmission system. In FIG. 1, the
数据总线132及122为双向总线,但在同一时间只有一个方向可以传送,亦即同一时间只能选择读取或写入。数据总线132及122的宽度可程序化,举例来说,可程序化为同一时间传一个位元组(byte)或一个字元(word)的数据。地址总线124是针对外部装置120而使用,用以传送可存取外部装置120的内存或缓存器的地址。控制总线136及126传送用以写入、读取或选择外部装置120的控制讯号。备妥总线138及128用以传送交握(handshake)讯号,以分别控制由内部装置130及外部装置120至总线控制器140的讯号。举例来说,若外部装置120为一FIFO装置,则备妥总线138及128传送满/空(full/empty)讯号。The
由于图1的数据总线132及122为半双工(half duplex),因此系统100的运作模式可分为数据写入模式以及数据读取模式。在数据写入模式下(即由内部装置130写入数据至外部装置120),由数据总线132自内部装置130传送讯号至总线控制器140,而由数据总线122自总线控制器140传送讯号至外部装置120。在数据读取模式下(即由内部装置130对外部装置120读取数据),由数据总线122自外部装置120传送讯号至总线控制140,而由数据总线132自总线控制器140传送讯号至内部装置130。Since the
图2描述总线传输讯号的波形的例子。一个总线传输周期具有8个状态,其中1个为闲置(idle)状态,7个为传递状态。在闲置状态时,所有总线都没有作用,而在传递状态时,可分别程式化数据、地址及控制总线。由图2可看出,因为总线为半双工总线,所以在同一时间只能传递一个方向的数据,而无法同时进行数据的读取与写入。FIG. 2 depicts an example of a waveform of a bus transmission signal. A bus transmission cycle has 8 states, 1 of which is an idle state, and 7 are transfer states. In the idle state, all buses are inactive, and in the transfer state, the data, address, and control buses can be programmed separately. It can be seen from FIG. 2 that because the bus is a half-duplex bus, it can only transmit data in one direction at the same time, but cannot read and write data at the same time.
因此,有必要提供一种全双工总线,以提供可同时接收及传送数据的机制。Therefore, it is necessary to provide a full-duplex bus to provide a mechanism for receiving and transmitting data at the same time.
发明内容Contents of the invention
鉴于先前技术所存在的问题,本发明的主要目的在于提供了一种高性能可编程逻辑系统接口,用以提供双向且同时的传输。In view of the problems existing in the prior art, the main purpose of the present invention is to provide a high-performance programmable logic system interface for providing bidirectional and simultaneous transmission.
根据本发明的一方面,提供了一种具有高性能可编程逻辑系统接口的芯片,包含:一第一内部装置、一第二内部装置、一总线控制器以及外部控制总线。其中,第一内部装置位于芯片内,藉由一第一组内部总线以及一第一组外部总线,而与一外部装置沟通。第二内部装置位于芯片内,藉由一第二组内部总线以及一第二组外部总线,而与外部装置沟通。总线控制器用以控制第一组内部总线、第一组外部总线、第二组内部总线以及第二组外部总线。外部控制总线用以沟通该外部装置与该总线控制器。其中,第一内部装置与第二内部装置同时与总线控制器进行沟通,并且该第一内部装置与该第二内部装置分别负责数据的发送与接收。而且,该第一内部装置与该第二内部装置是同时与该外部装置进行沟通。According to one aspect of the present invention, a chip with a high-performance programmable logic system interface is provided, including: a first internal device, a second internal device, a bus controller and an external control bus. Wherein, the first internal device is located in the chip, and communicates with an external device through a first group of internal buses and a first group of external buses. The second internal device is located in the chip, and communicates with the external device through a second set of internal buses and a second set of external buses. The bus controller is used for controlling the first group of internal buses, the first group of external buses, the second group of internal buses and the second group of external buses. The external control bus is used to communicate with the external device and the bus controller. Wherein, the first internal device and the second internal device communicate with the bus controller at the same time, and the first internal device and the second internal device are respectively responsible for sending and receiving data. Moreover, the first internal device and the second internal device communicate with the external device at the same time.
根据本发明的另一方面,提供了一种高性能可编程逻辑系统接口。此高性能可编程逻辑系统接口设置于一芯片中,且此芯片包含一第一内部装置、一第二内部装置、一总线控制器及外部控制总线。其中,高性能可编程逻辑系统接口包含:用以沟通第一内部装置与总线控制器的一第一组内部总线、用以沟通总线控制器与一外部装置的一第一组外部总线、用以沟通第二内部装置与总线控制器的一第二组内部总线、用以沟通总线控制器与外部装置的一第二组外部总线、以及用以沟通该外部装置与该总线控制器的外部控制总线。其中,第一内部装置与第二内部装置同时与总线控制器进行沟通,并且该第一内部装置与该第二内部装置分别负责数据的发送与接收。而且,该第一内部装置与该第二内部装置是同时与该外部装置进行沟通。According to another aspect of the present invention, a high-performance programmable logic system interface is provided. The high-performance programmable logic system interface is set in a chip, and the chip includes a first internal device, a second internal device, a bus controller and an external control bus. Wherein, the high-performance programmable logic system interface includes: a first group of internal buses used to communicate with the first internal device and the bus controller, a first group of external buses used to communicate with the bus controller and an external device, and used to communicate with the bus controller and an external device. A second set of internal buses for communicating the second internal device with the bus controller, a second set of external buses for communicating the bus controller with external devices, and an external control bus for communicating the external devices with the bus controller . Wherein, the first internal device and the second internal device communicate with the bus controller at the same time, and the first internal device and the second internal device are respectively responsible for sending and receiving data. Moreover, the first internal device and the second internal device communicate with the external device at the same time.
附图说明Description of drawings
图1绘示习知的数据传输系统;Figure 1 illustrates a conventional data transmission system;
图2描述习知的总线传输讯号的波形的例子;FIG. 2 depicts an example of a waveform of a conventional bus transmission signal;
图3绘示本发明一实施例的一数据传输系统;FIG. 3 illustrates a data transmission system according to an embodiment of the present invention;
图4为根据本发明一实施例的一先进先出活动模式的一数据传输系统;Fig. 4 is a data transmission system of a first-in-first-out active mode according to an embodiment of the present invention;
图5为根据本发明一实施例的一微处理单元活动模式的一数据传输系统;5 is a data transmission system of a micro-processing unit active mode according to an embodiment of the present invention;
图6是根据图4的实施例所绘示的总线传输讯号的时序图:FIG. 6 is a timing diagram of bus transmission signals according to the embodiment shown in FIG. 4:
图7是根据图5的实施例所绘示的总线传输讯号的时序图。FIG. 7 is a timing diagram of bus transmission signals according to the embodiment shown in FIG. 5 .
图号说明:Description of figure number:
100、300、400、500数据传输系统100, 300, 400, 500 data transmission system
110、310、410、510芯片110, 310, 410, 510 chip
120、320、420、520外部装置120, 320, 420, 520 external device
122、132、322、324、332、334、422、424、462、472数据总线122, 132, 322, 324, 332, 334, 422, 424, 462, 472 data bus
124、321、323、421、423、521、523地址总线124, 321, 323, 421, 423, 521, 523 address bus
126、136、326、336、426、466、476、526、566、576控制总线126, 136, 326, 336, 426, 466, 476, 526, 566, 576 control bus
128、138、328、338、428、468、478备妥总线128, 138, 328, 338, 428, 468, 478 ready bus
130、330、430、530内部装置130, 330, 430, 530 internal device
140、340、440、540总线控制器140, 340, 440, 540 bus controller
460、470、FIFO装置460, 470, FIFO device
560、570缓存器560, 570 buffer
具体实施方式Detailed ways
本发明揭露一种高性能可编程逻辑系统接口及系统。为了使本发明的叙述更加详尽与完备,可参照下列描述并配合图3至图7的图式。然以下实施例中所述的装置、系统及程序步骤,仅用以说明本发明,并非用以限制本发明的范围。The invention discloses a high-performance programmable logic system interface and system. In order to make the description of the present invention more detailed and complete, reference may be made to the following description together with the diagrams of FIGS. 3 to 7 . However, the devices, systems and program steps described in the following embodiments are only used to illustrate the present invention, and are not intended to limit the scope of the present invention.
参考图3,揭示本发明一实施例的一数据传输系统300。数据传输系统300包含一集成电路芯片310以及一外部装置320,其中,外部装置320可例如为一印表机、一录影机、一数位相机、一储存装置或其他电脑周边装置。集成电路芯片310包含一内部装置330以及一总线控制器(bus master)340,其中内部装置330可例如为一先进先出(FIFO)装置或一缓存器(register)。集成电路芯片310更包含数据总线332、334、以及控制总线336,用以沟通内部装置330与总线控制器340。内部装置330与总线控制器340之间亦可选择性的包含一备妥(ready)总线338,用以传送交握(handshake)讯号,以控制内部装置330与总线控制器340间的数据传输。此外,集成电路芯片310还包含数据总线322及324、地址总线321及323、控制总线326、以及备妥总线328,用以沟通外部装置320与总线控制器340。备妥总线328是用以传送交握讯号,以控制由外部装置320至总线控制器340的讯号。上述总线的宽度可程序化,例如可程序化为同一时间传一个位元组(byte)或一个字元(word)的讯号。内部装置330包含至少两个以上的储存单元,例如缓存器或是内存,其中一个负责对外部装置320的写入,一个负责对外部装置320的读取。因此,内部装置330与外部装置320可同时与总线控制器340沟通。再透过总线控制器340与外部装置320之间的2个数据总线322及324、以及2个地址总线321及323,内部装置330与外部装置320便可同时与外部装置320进行读取与写入的动作,而达到全双工的目的。Referring to FIG. 3 , a
图4为根据本发明一实施例的一先进先出活动模式(FIFO transactionmode)的一数据传输系统400。数据传输系统400包含一集成电路芯片410以及一外部装置420。集成电路芯片410包含一内部装置430以及一总线控制器440,其中内部装置430包含一第一FIFO装置460及一第二FIFO装置470。第一FIFO装置460与总线控制器440藉由数据总线462、控制总线466及备妥总线468而相互沟通。第二FIFO装置470与总线控制器440藉由数据总线472、控制总线476及备妥总线478而相互沟通。此外,外部装置420与总线控制器440藉由数据总线422及424、地址总线421及423、控制总线426、以及备妥总线428而相互沟通,其中数据总线422及424为不同的总线而可个别的控制,且地址总线421及423亦为不同的总线而可个别的控制。因为具有独立的两组数据及地址总线,且第一FIFO装置460与第二FIFO装置470可分别负责数据的发送与接收,因此内部装置430可同时对外部装置420进行读取及写入的动作,而达到全双工的目的。FIG. 4 is a data transmission system 400 in a FIFO transaction mode according to an embodiment of the present invention. The data transmission system 400 includes an integrated circuit chip 410 and an external device 420 . The integrated circuit chip 410 includes an internal device 430 and a bus controller 440 , wherein the internal device 430 includes a first FIFO device 460 and a second FIFO device 470 . The first FIFO device 460 communicates with the bus controller 440 via the data bus 462 , the control bus 466 and the ready bus 468 . The second FIFO device 470 communicates with the bus controller 440 via a data bus 472 , a control bus 476 and a ready bus 478 . In addition, the external device 420 and the bus controller 440 communicate with each other through the data buses 422 and 424, the address buses 421 and 423, the control bus 426, and the ready bus 428, wherein the data buses 422 and 424 are different buses and can be used individually. control, and the address buses 421 and 423 are also different buses and can be individually controlled. Because there are two sets of independent data and address buses, and the first FIFO device 460 and the second FIFO device 470 are responsible for sending and receiving data respectively, the internal device 430 can simultaneously read and write to the external device 420 , to achieve the purpose of full duplex.
图5为根据本发明一实施例的一微控制单元活动模式(MCU transactionmode)的一数据传输系统500。数据传输系统系统500包含一集成电路芯片510以及一外部装置520。集成电路芯片510包含一内部装置530以及一总线控制器540,其中内部装置530为一微控制单元(MCU),包含第一缓存器560及一第二缓存器570。第一缓存器560与总线控制器540藉由一数据总线562与控制总线566而相互沟通。第二缓存器570与总线控制器540藉由一数据总线572与控制总线576而相互沟通。此外,外部装置520与总线控制器540藉由数据总线522及524、地址总线521及523、控制总线526、以及备妥总线528而相互沟通,其中数据总线522及524为不同的总线而可个别的控制,且地址总线521及523亦为不同的总线而可个别的控制。因为具有两组数据及地址总线,且第一缓存器560与第二缓存器570可分别负责数据的发送与接收,因此内部装置530可同时对外部装置520进行读取及写入的动作。FIG. 5 is a
内部装置530可包含习知MCU所具有的单元,例如唯读内存(ROM)、随机存取内存(RAM)、中央处理单元(CPU)、输出入埠(I/O Port)以及计时器(timer)等等,在此不再赘述。The
图6是根据图4的实施例所绘示的总线传输讯号的时序图。总线传输的过程可分为闲置(idle)状态及传递状态,在闲置状态时,所有总线都没有作用。根据内部装置中所预存的固件而决定S0、S1、S2等状态要产生什么样的波形。因为具有两个独立的地址总线与数据总线,因此可同时写入一个数据出去,并读取一个数据进来.举例来说,在状态S2,发送写入数据Do_0(地址Ao_0)时,同时接收读取数据Di_2(地址Ai_2)。FIG. 6 is a timing diagram of bus transmission signals according to the embodiment shown in FIG. 4 . The bus transmission process can be divided into an idle state and a transfer state. In the idle state, all buses have no effect. According to the pre-stored firmware in the internal device, what kind of waveforms will be generated in the states of S0, S1, S2, etc. are determined. Because there are two independent address buses and data buses, one data can be written out and one data can be read in at the same time. For example, in state S2, when sending and writing data Do_0 (address Ao_0), receiving and reading at the same time Data Di_2 (address Ai_2) is fetched.
图7是根据图5的实施例所绘示的总线传输讯号的时序图。在此例中,籍由固件的控制,状态S0及S1为只读取而不写入数据,而状态S2及S3为既读取也写入数据。图6及图7显示本发明可提供同时自外部装置读取数据至内部装置以及自内部装置写入数据至外部装置的高性能可编程逻辑系统接口。FIG. 7 is a timing diagram of bus transmission signals according to the embodiment shown in FIG. 5 . In this example, under the control of the firmware, the states S0 and S1 are only reading but not writing data, and the states S2 and S3 are both reading and writing data. 6 and 7 show that the present invention can provide a high-performance programmable logic system interface for simultaneously reading data from an external device to an internal device and writing data from an internal device to an external device.
本发明中的“芯片”可例如为一通用串列总线(USB)芯片。在一般的USB芯片中通常具有2个以上的FIFO装置来储存一些设定数据。因此,本发明可将其中一个FIFO装置用来读取,另一个用来写入,而不需要增加额外的硬件。本发明的总线控制器可例如为一I2S(Inter-IC Sound)总线控制器,用以使麦克风与喇叭之间可同时作用。因为本发明可提供全双工的总线,因此可同时传输麦克风所发送的数据以及喇叭所发送的数据。The "chip" in the present invention can be, for example, a Universal Serial Bus (USB) chip. There are usually more than two FIFO devices in a general USB chip to store some setting data. Therefore, the present invention can use one of the FIFO devices for reading and the other for writing without adding additional hardware. The bus controller of the present invention can be, for example, an I2S (Inter-IC Sound) bus controller, so that the microphone and the speaker can act simultaneously. Because the present invention can provide a full-duplex bus, the data sent by the microphone and the data sent by the speaker can be transmitted simultaneously.
本发明亦可实施在一数位摄影机上。透过本发明的全双工总线,由一影像感测器撷取影像并同时由喇叭播放音效。The invention can also be implemented on a digital video camera. Through the full-duplex bus of the present invention, an image sensor captures an image and simultaneously plays a sound effect through a speaker.
以上所述仅为举例性,而非为限制性者。任何未脱离本发明的精神与范畴,而对其进行的等效修改或变更,均应包含于本发明的权利要求范围中。The above descriptions are illustrative only, not restrictive. Any equivalent modification or change made without departing from the spirit and scope of the present invention shall be included in the scope of the claims of the present invention.
Claims (16)
Priority Applications (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2006101702702A CN101211328B (en) | 2006-12-26 | 2006-12-26 | High-performance programmable logic system interface and chip |
Applications Claiming Priority (1)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN2006101702702A CN101211328B (en) | 2006-12-26 | 2006-12-26 | High-performance programmable logic system interface and chip |
Publications (2)
| Publication Number | Publication Date |
|---|---|
| CN101211328A CN101211328A (en) | 2008-07-02 |
| CN101211328B true CN101211328B (en) | 2010-12-01 |
Family
ID=39611363
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| CN2006101702702A Expired - Fee Related CN101211328B (en) | 2006-12-26 | 2006-12-26 | High-performance programmable logic system interface and chip |
Country Status (1)
| Country | Link |
|---|---|
| CN (1) | CN101211328B (en) |
Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030065863A1 (en) * | 2001-09-28 | 2003-04-03 | Wyland David C. | Reprogrammable input-output pins for forming different chip or board interfaces |
| CN2726017Y (en) * | 2004-09-13 | 2005-09-14 | 西安大唐电信有限公司 | Bus interface device |
| CN1687913A (en) * | 2005-04-30 | 2005-10-26 | 哈尔滨工业大学 | Zero greeve controller with universal series bus interface |
| CN1825292A (en) * | 2005-02-23 | 2006-08-30 | 华为技术有限公司 | A direct memory access device and a single-channel two-way data interaction realization method |
-
2006
- 2006-12-26 CN CN2006101702702A patent/CN101211328B/en not_active Expired - Fee Related
Patent Citations (4)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US20030065863A1 (en) * | 2001-09-28 | 2003-04-03 | Wyland David C. | Reprogrammable input-output pins for forming different chip or board interfaces |
| CN2726017Y (en) * | 2004-09-13 | 2005-09-14 | 西安大唐电信有限公司 | Bus interface device |
| CN1825292A (en) * | 2005-02-23 | 2006-08-30 | 华为技术有限公司 | A direct memory access device and a single-channel two-way data interaction realization method |
| CN1687913A (en) * | 2005-04-30 | 2005-10-26 | 哈尔滨工业大学 | Zero greeve controller with universal series bus interface |
Also Published As
| Publication number | Publication date |
|---|---|
| CN101211328A (en) | 2008-07-02 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| KR20110010707A (en) | How to transfer data directly between slave devices | |
| JP2009515262A (en) | Alternative to write confirmation with fully buffered DIMM read data | |
| US7779194B2 (en) | Data modification module | |
| CN109902042B (en) | Method and system for realizing high-speed data transmission between DSP and ZYNQ | |
| JP2005505029A5 (en) | ||
| CN102073611B (en) | I2C bus control system and method | |
| JP4696199B2 (en) | USB host controller with transfer descriptor memory | |
| US8521914B2 (en) | Auxiliary writes over address channel | |
| US20080195793A1 (en) | Microcontroller with memory trace module | |
| US11169947B2 (en) | Data transmission system capable of transmitting a great amount of data | |
| US20090138673A1 (en) | Internal memory mapped external memory interface | |
| CN101211328B (en) | High-performance programmable logic system interface and chip | |
| US20070131767A1 (en) | System and method for media card communication | |
| TWI416339B (en) | Usb transaction translator and an isochronous-in transaction method | |
| CN114641764B (en) | Bus system and method for operating a bus system | |
| US20060224806A1 (en) | Multi CPU system | |
| CN116049081A (en) | SMBus slave digital module design method and device | |
| KR101345437B1 (en) | Interfacing apparatus and method for communication between chips | |
| EP0382342B1 (en) | Computer system DMA transfer | |
| US20080307135A1 (en) | High performance programmable logic system interface and chip | |
| CN100583071C (en) | Bus controller for transferring data | |
| JPS6220058A (en) | Data processor | |
| CN100419851C (en) | Mobile terminal and system and method for controlling the mobile terminal | |
| US20050265378A1 (en) | Streaming input-output ports in a digital device | |
| KR101192594B1 (en) | Direct data transfer between slave devices |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| C06 | Publication | ||
| PB01 | Publication | ||
| C10 | Entry into substantive examination | ||
| SE01 | Entry into force of request for substantive examination | ||
| C14 | Grant of patent or utility model | ||
| GR01 | Patent grant | ||
| CF01 | Termination of patent right due to non-payment of annual fee | ||
| CF01 | Termination of patent right due to non-payment of annual fee |
Granted publication date: 20101201 Termination date: 20161226 |