CN101101581A - Data reading method of wishbone system structure - Google Patents

Data reading method of wishbone system structure Download PDF

Info

Publication number
CN101101581A
CN101101581A CNA2007100254120A CN200710025412A CN101101581A CN 101101581 A CN101101581 A CN 101101581A CN A2007100254120 A CNA2007100254120 A CN A2007100254120A CN 200710025412 A CN200710025412 A CN 200710025412A CN 101101581 A CN101101581 A CN 101101581A
Authority
CN
China
Prior art keywords
read
data
slave unit
wishbone
pci
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.)
Pending
Application number
CNA2007100254120A
Other languages
Chinese (zh)
Inventor
张斌
胡明昌
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
JIANGSU LEMOTE TECHNOLOGY Corp Ltd
Original Assignee
JIANGSU LEMOTE TECHNOLOGY Corp Ltd
Priority date (The priority date 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 date listed.)
Filing date
Publication date
Application filed by JIANGSU LEMOTE TECHNOLOGY Corp Ltd filed Critical JIANGSU LEMOTE TECHNOLOGY Corp Ltd
Priority to CNA2007100254120A priority Critical patent/CN101101581A/en
Publication of CN101101581A publication Critical patent/CN101101581A/en
Pending legal-status Critical Current

Links

Images

Landscapes

  • Bus Control (AREA)

Abstract

Characters of the invention are that the method includes following steps: master unit send 'read' command to slave unit, and the flag bit TAGN_O of the 'read' command is in use for indicating length of data needed to read; TAGN_O of master unit is connected to TAGN_I of slave unit; slave unit reads back data in the said length from data interface; returns the data reads back to master unit. Comparing prior art, the disclosed method makes Wishbone slave unit know how many data needed to read for master unit when receiving 'read' command. Thus, slave unit can adjust own action to access anther interface based on data needed to read for master unit so as to prevent wasting bandwidth, and increasing time delay.

Description

The method of read data in the wishbone architecture
Technical field
The present invention relates to be used for the method for read data in the Wishbone architecture, particularly wishbone architecture of SOC (system on a chip) interconnection.
Background technology
Wishbone is the architecture that is used for SOC (system on a chip) (SOC) system interconnection that Silicore company releases, and, interconnection simple owing to its hardware configuration handled up efficient and freely open, so be widely used in the on-chip interconnect system.
Four kinds of modules have been defined in the Wishbone architecture: main equipment, slave unit, link block and system module.Wherein system module produces the clock and the reset signal of whole Wishbone system, and link block is responsible for connecting main equipment and slave unit, and main exchanges data occurs between main equipment and the slave unit module.The Wishbone main equipment is the initiator who operates on the Wishbone interface, and it can initiatively be given an order, provide write data and receive read data; The Wishbone slave unit is the take over party of operation, and it receives order, write data and returns read data.
The Wishbone architecture specification has defined the signal name and the implication thereof of main equipment and slave unit.Except necessary control signal and address data signal, in optional signal, TAGN_O and TAGN_I are zone bits, and the user can be self-defined, and the extra operation information that provides outside the essential signal of Wishbone regulation is provided.Wherein N is the number of diacritics position, because sometimes need to use a plurality of zone bits.
When common Wishbone architecture realizes, the Wishbone module all is to finish the conversion of other interfaces to Wishbone, the PCI of Wishbone interface (Peripheral ComponentInterconect for example, the Peripheral Component Interconnect standard) USB of controller, Wishbone interface (UniversalSerial Bus, USB (universal serial bus)) controller etc.In the description of background technology, illustrate as an example with the pci controller of Wishbone interface.Initiate a Wishbone read operation when main equipment to slave unit, the slave unit module will return to main equipment then from the pci interface readback data earlier.Generally speaking, slave unit does not know how many data main equipment needs, and slave unit all read datas of having only by the time it to obtain from pci interface know just whether main equipment needs new data after all returning, so occur the situations of following two kinds of waste efficient probably: 1) slave unit is from data lacking than the main equipment needs that pci interface reads back, at this moment slave unit must be initiated read operation once more on pci interface, again these data are returned to afterwards main equipment Deng the pci interface return data, a read operation of main equipment has become serialized a plurality of read operations fully on another interface of PCI, PCI may be by idle, bandwidth does not make full use of, and the slave unit return data to give the time-delay of main equipment also be the poorest; 2) the slave unit data of reading back than main equipment need many, the bandwidth on the pci interface of slave unit has been wasted so, if the another one interface is a shared bus structure, this waste will influence the performance of all devices on the shared bus.
Summary of the invention
At above-mentioned defective, the method of read data in the Wishbone architecture provided by the invention, by being masked as the length that TAGN_O sets required read data, make the Wishbone slave unit when receiving read command, just know how many read datas main equipment needs, slave unit can be adjusted the own behavior that visit the another one interface according to the read data of main equipment needs, avoid in background technology, mentioning to the waste of bandwidth and the increase of time-delay.
The method of read data is characterized in that in a kind of Wishbone architecture provided by the invention,
Comprise the steps:
Main equipment sends read command to slave unit, and the zone bit TAGN_O of described read command is used to indicate the length of required read data;
The TAGN_O of main equipment links the TAGN_I of slave unit;
Slave unit is from the read back data of described length of data-interface;
Slave unit returns to main equipment with described readback data.
Compared with prior art, the method of read data in the Wishbone architecture provided by the invention, by being masked as the length that TAGN_O sets required read data, make the Wishbone slave unit when receiving read command, just know how many read datas main equipment needs, slave unit can be adjusted the own behavior that visit the another one interface according to the read data of main equipment needs, avoid in background technology, mentioning to the waste of bandwidth and the increase of time-delay.
Description of drawings
Fig. 1 is the one-piece construction synoptic diagram of inventive embodiments Godson 2E north bridge;
Fig. 2 is the PCI bridge module of Wishbone interface;
Fig. 3 is the Godson 2E processor interface module of Wishbone interface;
Fig. 4 is the time-delay contrast synoptic diagram of PCI DMA (Direct Memory Access, direct memory access) read operation.
Embodiment
Below be embodiment provided by the invention.
Fig. 1 is the general illustration of embodiment Godson 2E north bridge.The main interface of embodiment comprises Godson 2E processor interface and pci interface.Corresponding main modular comprises cpu i/f module and PCI bridge module.The cpu i/f module is connected by the Wishbone agreement with the PCI bridge module.Godson 2E processor interface can be supported the request of 8 Outstanding, and promptly main uncompleted operation is less than 8, just can continue to send next request.
Fig. 2 is the structural drawing of PCI bridge module.The PCI bridge module is made up of PCI main equipment and two modules of PCI slave unit, and it has realized the pci interface agreement, is responsible for the PCI equipment in the connected system.The PCI main equipment is the Wishbone slave unit, and it handles CPU to the visit of north bridge pci configuration space and the CPU visit to PCI equipment; The PCI slave unit is the Wishbone main equipment, and its receives the request that PCI equipment is initiated, and comprises dma operation and to the visit of pci configuration space, is converted to the operation of Wishbone bus.
Fig. 3 is the structural drawing of cpu i/f module.Order and the data sent for cpu i/f at first in the order data formation of writing module inside, and are initiated operation on the Wishbone bus by the Wishbone host device interface by the order in the formation, and data and order are delivered to object module; Read return data and deposit read data earlier in and return in the formation, and return by the cpu i/f order.To the DMA read-write requests that the PCI bridge module is initiated by Wishbone slave unit interface, directly give an order, and write out data or the data that cpu i/f returns are directly returned to the PCI bridge to cpu i/f.
For the PCIDMA read operation, at first on pci bus, to initiate by PCI equipment, the PCI bridge module of Godson 2E north bridge receives order, and passes through the Wishbone main equipment module read command on the Wishbone interface of oneself; The cpu i/f module receives read request from the Wishbone slave unit interface of oneself, gives an order to cpu i/f then, and the data that cpu i/f is returned return to the PCI bridge module.Data width between PCI bridge and the cpu i/f is 64 (8 bytes), and 32 byte datas are returned in each read operation of processor interface.
The PCI bridge joint is received the DMA read command that PCI equipment is initiated on pci bus, by the difference order is that Memory Read, Memory Read Line and Memory Read Multiple judge how many data PCI equipment needs, general Memory Read and Memory Read Line only get the data that a processor interface read operation is returned, be data 32 bytes of a Cache (high-speed cache) row also, MemoryRead Multiple gets the capable data of a plurality of Cache.In our realization, use TAG0_O 1 to indicate that to need the capable data of a plurality of Cache, TAG0_O be that 0 indication needs the data that Cache is capable.Fig. 4 is that PCIDMA need to read the time-delay synoptic diagram of 64 byte datas when the Wishbone main equipment read data length of TAGN_O indication PCI bridge was arranged.
The above only is a preferred implementation of the present invention; should be pointed out that for those skilled in the art, under the prerequisite that does not break away from the principle of the invention; can also make some improvements and modifications, these improvements and modifications also should be considered as protection scope of the present invention.

Claims (1)

1, the method for read data in a kind of Wishbone architecture is characterized in that, comprise the steps: that main equipment sends read command to slave unit, the zone bit TAGN_O of described read command is used to indicate the length of required read data;
The TAGN_O of main equipment links the TAGN_I of slave unit;
Main equipment is from the read back data of described length of data-interface;
Slave unit returns to main equipment with described readback data.
CNA2007100254120A 2007-07-27 2007-07-27 Data reading method of wishbone system structure Pending CN101101581A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
CNA2007100254120A CN101101581A (en) 2007-07-27 2007-07-27 Data reading method of wishbone system structure

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
CNA2007100254120A CN101101581A (en) 2007-07-27 2007-07-27 Data reading method of wishbone system structure

Publications (1)

Publication Number Publication Date
CN101101581A true CN101101581A (en) 2008-01-09

Family

ID=39035857

Family Applications (1)

Application Number Title Priority Date Filing Date
CNA2007100254120A Pending CN101101581A (en) 2007-07-27 2007-07-27 Data reading method of wishbone system structure

Country Status (1)

Country Link
CN (1) CN101101581A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218337A (en) * 2013-03-13 2013-07-24 北京安拓思科技有限责任公司 SoC (System on Chip) and method for realizing communication between master modules and between slave modules based on wishbone bus

Cited By (2)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
CN103218337A (en) * 2013-03-13 2013-07-24 北京安拓思科技有限责任公司 SoC (System on Chip) and method for realizing communication between master modules and between slave modules based on wishbone bus
CN103218337B (en) * 2013-03-13 2015-10-07 北京安拓思科技有限责任公司 Based on wishbone bus realize main and master and slave with from the SOC (system on a chip) communicated and method

Similar Documents

Publication Publication Date Title
CN105721357B (en) Switching equipment, peripheral parts interconnected High Speed System and its initial method
US20050177664A1 (en) Bus system and method thereof
CN100483373C (en) PVDM (packet voice data module) generic bus protocol
US7424566B2 (en) Method, system, and apparatus for dynamic buffer space allocation
US6266731B1 (en) High speed peripheral interconnect apparatus, method and system
EP2126705B1 (en) Serial advanced technology attachment (sata) and serial attached small computer system interface (scsi) (sas) bridging
US9189441B2 (en) Dual casting PCIE inbound writes to memory and peer devices
US20060031621A1 (en) High speed peripheral interconnect apparatus, method and system
US5919254A (en) Method and apparatus for switching between source-synchronous and common clock data transfer modes in a multiple processing system
CN105573951B (en) A kind of ahb bus interface system for data stream transmitting
US6553439B1 (en) Remote configuration access for integrated circuit devices
WO2007005553A1 (en) Serial ata port addressing
CN102511039A (en) Mapping non-prefetchable storage locations into memory mapped input/output space
KR20070003954A (en) Simulation circuit of pci express endpoint and downstream port for a pci express switch
JP2001014269A5 (en)
CN103003808A (en) System and method for accessing resources of a PCI Express compliant device
CN109062829A (en) A kind of hard disk expansion equipment
WO2000026763A1 (en) Method and apparatus for routing and attribute information for a transaction between hubs in a computer system
CN202948447U (en) Serial Rapid IO protocol controller based on peripheral component interconnect (PCI) bus
US6047349A (en) System for communicating through a computer system bus bridge
EP1746497B1 (en) Apparatus and method for sparse line write transactions
WO2005091156A2 (en) Signaling arrangement and approach therefor
CN102722457B (en) Bus interface conversion method and bus bridging device
US6662258B1 (en) Fly-by support module for a peripheral bus
CN101101581A (en) Data reading method of wishbone system structure

Legal Events

Date Code Title Description
C06 Publication
PB01 Publication
C10 Entry into substantive examination
SE01 Entry into force of request for substantive examination
C02 Deemed withdrawal of patent application after publication (patent law 2001)
WD01 Invention patent application deemed withdrawn after publication