WO2023076597A1 - System and method for flexibly crossing packets of different protocols - Google Patents
System and method for flexibly crossing packets of different protocols Download PDFInfo
- Publication number
- WO2023076597A1 WO2023076597A1 PCT/US2022/048222 US2022048222W WO2023076597A1 WO 2023076597 A1 WO2023076597 A1 WO 2023076597A1 US 2022048222 W US2022048222 W US 2022048222W WO 2023076597 A1 WO2023076597 A1 WO 2023076597A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- ingress
- bus
- egress
- memories
- memory
- 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.)
- Ceased
Links
Classifications
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4027—Coupling between buses using bus bridges
- G06F13/405—Coupling between buses using bus bridges where the bridge performs a synchronising function
- G06F13/4059—Coupling between buses using bus bridges where the bridge performs a synchronising function where the synchronisation uses buffers, e.g. for speed matching between buses
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/42—Bus transfer protocol, e.g. handshake; Synchronisation
- G06F13/4204—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus
- G06F13/4221—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus
- G06F13/4226—Bus transfer protocol, e.g. handshake; Synchronisation on a parallel bus being an input/output bus, e.g. ISA bus, EISA bus, PCI bus, SCSI bus with asynchronous protocol
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4009—Coupling between buses with data restructuring
- G06F13/4018—Coupling between buses with data restructuring with data-width conversion
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/38—Information transfer, e.g. on bus
- G06F13/40—Bus structure
- G06F13/4004—Coupling between buses
- G06F13/4022—Coupling between buses using switching circuits, e.g. switching matrix, connection or expansion network
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F9/00—Arrangements for program control, e.g. control units
- G06F9/06—Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
- G06F9/44—Arrangements for executing specific programs
- G06F9/448—Execution paradigms, e.g. implementations of programming paradigms
- G06F9/4498—Finite state machines
-
- G—PHYSICS
- G06—COMPUTING OR CALCULATING; COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F2213/00—Indexing scheme relating to interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F2213/0026—PCI express
Definitions
- the present application relates to systems and methods for transferring packets between two computer busses.
- Computing systems may interface with busses of different protocols and bus sizes to accommodate design choices and available components.
- the two different busses may not be directly compatible as they may have different timing, protocols, and bus widths, without limitation.
- One approach might utilize a dualport random access memory (RAM) for each direction in conjunction with sets of registers/flops and barrel shifters. This approach is complex and incorporates far more gates than required in the presently disclosed approach.
- RAM dualport random access memory
- Examples of the present disclosure include an apparatus for coupling a first and a second data bus.
- the first bus interface has a first number of egress lanes and a first number of ingress lanes wherein the first number of egress lanes is less than the first number of ingress lanes.
- the second bus interface has a second number of egress lanes and a second number of ingress lanes.
- a plurality of egress selectors each has an output coupled to an input of one of a plurality of egress memories and each egress selector has a plurality of inputs coupled to the first bus interfaces ingress lanes wherein each egress selector may select any one of the first bus ingress lanes to output to the input of the corresponding egress memory.
- Each egress memory has an output coupled to one of the second bus egress lanes, a read enable input coupled to a first finite state machine synchronized to a first clock, and a write enable input coupled to a second finite state machine synchronized to a second clock.
- a plurality of ingress selectors each has an output coupled to one of the first bus ingress lanes and each ingress selector having a plurality of inputs coupled to the ingress memories wherein each ingress selector may select the output of any one of the ingress memories to output to the corresponding first bus ingress lane.
- Each ingress memory has an input coupled to one of the second bus ingress lanes, a write enable input coupled to a third finite state machine synchronized to the second clock, and a read enable input coupled to a fourth finite state machine synchronized to the first clock.
- the first finite state machine controls a select input of each of the egress selectors and the fourth finite state machine controls a select input of each of the ingress selectors.
- the first bus interface is a 10 lane Peripheral Component Interconnect Express (PCIe) bus interface and the second bus interface is a 16 lane Advanced extensible Interface (AXI) bus interface.
- PCIe Peripheral Component Interconnect Express
- AXI Advanced extensible Interface
- the first finite state machine selects data from a first lane of the PCIe bus interface for delivery to the tenth egress memory destined for the tenth lane of the AXI bus.
- the first bus interface includes 10 egress lanes and 10 ingress lanes.
- the fourth finite state machine selects the first of the egress memories in one data transfer on the first bus ingress lanes and selects the other seven ingress memories in the next data transfer on the first bus ingress lanes.
- each of the ingress and egress memories is a strip of RAM memory.
- the apparatus includes an ingress descriptor memory to store packet information for ingress bus transactions, the packet information comprising an indication of which of the ingress memories contains valid data associated with a corresponding packet.
- the fourth finite state machine tracks which of the ingress memories has data remaining to be transferred.
- Examples of the present disclosure include a method comprising at a first time synchronized with a first bus clock, receiving an array of data units of a first egress packet from a plurality of egress lanes of a first bus, storing received data units of the array of data units in a respective one of a plurality of egress memories, and writing a first descriptor to an egress descriptor memory, the descriptor including an identification of valid data units in the received packet.
- the method includes, at a second time synchronized with a second bus clock, reading the first descriptor from the egress descriptor memory, and for each valid data unit identified in the first descriptor, asserting a read enable on the corresponding egress memory to output the data unit to a corresponding one of a plurality of egress lanes of a second bus.
- the method includes, at a third time synchronized with the second bus clock, receiving a second array of data units of a first ingress packet from a plurality of ingress lanes of the second bus, storing received data units of the second array of data units in respective ones of a plurality of ingress memories, and writing a second descriptor to an ingress descriptor memory, the second descriptor including an identification of valid data units in the received first ingress packet.
- the method includes, at a fourth time synchronized with the first bus clock, reading the second descriptor from the ingress descriptor memory, selecting a subset of the ingress memories to output data to corresponding lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the subset, asserting a read enable on the corresponding ingress memory.
- the method includes, at a fifth time synchronized with the first bus clock, selecting a different subset of the ingress memories to output data to corresponding ingress lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the second subset, asserting a read enable on the corresponding ingress memory.
- the method includes, at an intervening time between the third and fourth times and synchronized with the second bus clock, writing an egress header to the second bus.
- the first bus has a 10 lane bus interface
- the set of egress memories comprises 16 memories
- the second bus has a 16 lane bus interface
- the set of ingress memories comprises 16 memories
- at the fourth time the subset of ingress memories consists of the first nine of the ingress memories
- at the fifth time the different subset of ingress memories comprises the tenth through the sixteenth ingress memories.
- each of the ingress and egress memories is a strip of RAM memory.
- Examples of the present disclosure include a non-transitory computer-readable medium comprising register transfer level (RTL) to, at a first time synchronized with a first bus clock, receive an array of data units of a first egress packet from a plurality of egress lanes of a first bus, store received data units of the array of data units in a respective one of a plurality of egress memories, and write a first descriptor to an egress descriptor memory, the descriptor including an identification of valid data units in the received packet.
- RTL register transfer level
- the RTL to, at a second time synchronized with a second bus clock, read the first descriptor from the egress descriptor memory, and for each valid data unit identified in the first descriptor, assert a read enable on the corresponding egress memory to output the data unit to a corresponding one of a plurality of egress lanes of a second bus.
- the medium includes RTL code to, at a third time synchronized with the second bus clock, receive a second array of data units of a first ingress packet from a plurality of ingress lanes of the second bus, store received data units of the second array of data units in respective ones of a plurality of ingress memories, and write a second descriptor to an ingress descriptor memory, the second descriptor including an identification of valid data units in the received first ingress packet.
- the medium includes RTL code to, at a fourth time synchronized with the first bus clock, read the second descriptor from the ingress descriptor memory, select a subset of the ingress memories to output data to corresponding lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the subset, assert a read enable on the corresponding ingress memory.
- the medium includes RTL code to, at a fifth time synchronized with the first bus clock, select a different subset of the ingress memories to output data to corresponding ingress lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the second subset, assert a read enable on the corresponding ingress memory.
- the medium includes RTL code to, at an intervening time between the third and fourth times and synchronized with the first bus clock, write an egress header packet to the first bus.
- the first bus has a 10 lane bus interface
- the set of egress memories comprises 16 memories
- the second bus has a 16 lane bus interface
- the set of ingress memories comprises 16 memories
- at the fourth time the subset of ingress memories consists of the first nine of the ingress memories
- the different subset of ingress memories comprises the tenth through the sixteenth ingress memories.
- each of the first and second bus memories is a strip of RAM memory.
- FIGURE 1 is an illustration of a system for crossing packets between two busses according to certain examples of the present disclosure.
- FIGURE 2 is an illustration of another system for crossing packets between two busses according to certain examples of the present disclosure.
- FIGURE 3 is an illustration of a TLP packet of a PCIee bus according to certain examples of the present disclosure.
- FIGURE 4 is an illustration of a AXI bus architecture according to certain examples of the present disclosure.
- FIGURE 5 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure.
- FIGURE 6 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure.
- the present disclosure provides circuits for passing information between two different data bus architectures. For example, system designers may wish to have one interface for accessing a preexisting set of input/output (I/O) devices and a memory interface for accessing one or more random access memory (RAM) devices. Further, the system designer may wish to have data cross directly between the two busses to allow a processor core having only the UO bus interface type to also communicate with a RAM device having only the memory bus interface. A system designer may use the present disclosure to transfer information between two different bus architectures.
- I/O input/output
- RAM random access memory
- FIGURE 1 is an illustration of an apparatus for coupling a first and a second data bus according to certain examples of the present disclosure.
- System 100 is illustrated as two halves, a first bus, denoted Bus A on the left, and a second bus, denoted Bus B on the right.
- the Bus A side is connected to egress lines 101 of Peripheral Component Interconnect Express (PCIe) Bus A (and ingress lines 161 of PCIe Bus A) having ten lanes, each lane carrying a double word (or, dword) (e.g., 10 sets of 32 lines or “10:32”) for a total of 320 bits.
- PCIe Peripheral Component Interconnect Express
- Bus A transfers are synchronized with CLKA while Bus B transfers are synchronized with CLKB.
- the Bus B side is connected to egress lines 120 of Advanced extensible Interface (AXI) Bus B (and ingress lines 160) having sixteen lanes, each lane one dword wide (e.g., 16 sets of 32 lines or “16:32”) for a total of 512 bits.
- AXI Advanced extensible Interface
- PCIe is defined by the PCI Special Interest Group of Beaverton, Oregon and AXI is defined by ARM Ltd. Of Cambridge, United Kingdom.
- This disclosure refers to egress communications as originating on the Bus A side and flowing through the top portion of FIGURE 1 and ingress communications as originating on the Bus B side and flowing the reverse direction through the bottom portion of FIGURE 1. These directions are labeled for convenience and may not correspond to internal/external data flows.
- the egress portion of system 100 comprises finite state machine (FSM) 105, FSM 108, descriptor memory 104, egress multiplexers 102a-102p (i.e., “muxes” or selectors), and egress memories 103a-103b.
- FSM finite state machine
- FSM 108 egress multiplexers 102a-102p
- descriptor memory 104 egress multiplexers 102a-102p (i.e., “muxes” or selectors)
- egress memories 103a-103b egress memories 103a-103b.
- Muxes 102a-102p respectively pass one of ten data units on bus 101, e.g., one of ten doublewords or dwords, to a corresponding one of memory 103a-103p. References to dwords should be understood as nonlimiting.
- Each of memories 103a-130p may respectively be a RAM strip with read and write enable
- a RAM strip may be an independent piece of random-access memory having its own read/write ports and a smallest unit of data storage defined, in some examples, as 32 bits corresponding to the dword unit of transfer on Bus A and Bus B.
- Each corresponding memory 103 may have storage for a predetermined number of data units. In some examples, a corresponding memory 103 may have storage for sixty-four dwords.
- Respective memories 103 Each memory 103 has a read port coupled to a dword portion of bus 120 to allow the combined set of memories 103a-103p to present up to a full 512 bits of data on bus 120 in a single bus transaction.
- Egress portion of system 100 also comprises egress descriptor memory 104, which may be a RAM strip with read and write enable lines.
- Egress descriptor memory 104 may store header information read from bus 101 as well as information derived from finite state machine (FSM) 105 indicating valid information in memories 103a-103p. Egress descriptor memory 104 is coupled to address lines 109 of bus 120. Egress portion of system 100 also comprises finite state machine 105, which drives select lines 106 of muxes 102a-102p and write enable lines 107 of memories 103a-103p. FSM 105 receives clock signal CLKA and thereby operates in sync with Bus A by operating on CLKA. Egress portion of system 100 also comprises FSM 108, which drives read enable lines 110 for memories 103a-103p and read enable line 111 for descriptor memory 104.
- FSM finite state machine
- FSM 108 receives clock signal CLKB and thereby operates in sync with Bus B.
- FSM 105 may write to descriptor memory 104 before all valid dwords have been written to memories 103a-p but must still signal FSM 108 once the valid dwords have been written.
- FSM may update one or more bits in descriptor memory 104 once all the valid dwords have been written.
- FSM 105 may assert a valid signal by updating the descriptor record in descriptor memory 104 to notify FSM 108 that a data transfer request has been fully queued.
- the ingress portion of system 100 includes descriptor memory 151, ingress memories 152a-152p, FSM 154, FSM 156, and muxes 153a- 153j .
- Descriptor memory is coupled to address lines 109 of Bus B.
- Each of ingress memories 152a-152p is coupled to a corresponding dword portion of Bus B.
- FSM 154 receives clock signal CLKB and thereby operates in sync with Bus B.
- FSM 154 drives write enable lines 155 of ingress descriptor memory 151 and ingress memories 152a-152p.
- Respective muxes 153a— 153j output data to a corresponding dword portion of bus 161.
- Each mux 153 may select information from ingress descriptor memory 151 or any one ofingress memories 152a-152p.
- FSM 156 receives clock signal CLKA and thereby operates in sync with Bus A.
- FSM 156 drives select lines on each mux 153 and a read enable line for each of ingress descriptor memory 151 and ingress memories 152a-152p.
- FSM 154 may write to descriptor memory 151 before all valid dwords have been written to memories 152a-152p but must still signal FSM 156 once the valid dwords have been written.
- FSM may update one or more bits in descriptor memory 151 once all the valid dwords have been written.
- FSM 154 may assert a valid signal to notify FSM 156 that a data transfer request has been fully queued.
- the first 10 dwords of a PCIe packet arrive on egress lines 101.
- FSM 105 selects the input to mux 120z corresponding to the portion of egress lines 101 representing the header portion of the PCIe packet. This will direct the header to descriptor memory 104. If the PCIe packet has no optional prefixes, this will be the first dword (e.g., index zero) on line 101.
- FSM 105 selects the remaining dwords (index 1 through index 9) to transfer the nine data dwords on lines 101 into memories 103a through 103i (the first nine memories).
- FSM 105 also asserts write enable lines 107 to store the header and first nine dwords of data into memories
- the next bus transaction on egress bus lines 101 includes ten dwords of data.
- FSM 105 selects the first (index zero) dword to transfer to memory 103j (the tenth memory), the second dword to transfer to memory 103 k, and so on until the seventh dword is selected for memory 103p.
- FSM 105 asserts write enable lines on memories 103j- 103p to store the data across all available memories 103 associated with a single future bus transaction on lines 120. Once an entire egress packet has been stored in memories 103, FSM
- FSM 108 signals FSM 108 that a valid packet has been captured, for example, by setting a value in descriptor memory 105.
- header information may be gathered in a temporary memory and then written to descriptor memory 105 (or 151) only after the payload of the egress packet has been captured in memories 103.
- a non-empty record in descriptor memory 105 (or 151) indicates a valid packet has been received.
- the first 16 dwords of an AXI packet arrive (synchronized with CLKB) on ingress lines 160 concurrently with address information on address lines 169.
- FSM 154 asserts write enable lines to load values into descriptor memory 151 and each ingress memory 152a-152p.
- FSM 156 asserts select lines on ingress multiplexer 153a to route a descriptor record from descriptor memory 151 to the first lane of Bus A ingress lines 161.
- FSM 156 also asserts select lines on the remaining ingress multiplexers 153b-153j to route dwords from the first nine ingress memories (e.g., 152a- 152i) to Bus A ingress lanes 1 through 9, respectively.
- FSM 156 then asserts read enable lines on the descriptor memories and ingress memories 152a- 152i . In the next bus transaction on the ingress lines of Bus A, FSM 156 routes dwords starting with the ingress memory (e.g., 152j) routed to the first ingress lane of Bus A.
- FIGURE 2 is an illustration of another system for crossing packets between two busses according to certain examples of the present disclosure.
- System 200 comprises many of the same components of system 100, which are labeled the same as in system 100.
- Bus B utilizes in-band signaling and does not have separate address lines.
- System 200 includes one or more additional mux(es) 210 for passing header information from egress descriptor memory 104 to dword portion(s) of bus 120.
- FSM 208 which receives clock signal CLKB, drives read enable lines 110 and 111 as well as mux selection line(s) 211 for additional mux(es) 210.
- Ingress portion of system 200 includes ingress descriptor memory 251, which is coupled to one or more dword portions of bus 160 that carry header information.
- bus 160 may be a PCIe bus and header information may include TLP prefixes and TLP header spanning the first two dwords e.g., bytes 0-7) on bus 160.
- FIGURE 3 is an illustration of a TLP packet of a PCIe bus according to certain examples of the present disclosure.
- Packet 300 may comprise prefixes 302, header 304, data 306, and digest 308. Prefixes 302, if present, may include processing hints or vendor-specific information.
- Header 304 may include type information, an address (optional), a message (optional).
- One example of packet 300 is a memory read request in which header 304 may include a read requestor identifier, a read length, and a starting address.
- Another example of packet 300 is a message without data in which header 304 may include a requestor identifier and a message code.
- packet 300 is a write request in which header 304 may include a requester ID, a length, and a starting address and in which data 306 may include data to be written.
- the entirety of packet 300 may be transferred over the same bus lines.
- the header format and contents may differ between Bus A and Bus B.
- logic or software instructions executing on a CPU may provide a default value for a missing field, may transform the format of a field, or may derive a value for the target bus header based on information contained in the source bus header.
- FIGURE 4 is an illustration of a portion of an AXI bus according to certain examples of the present disclosure.
- the AXI bus architecture relies on dedicated address and control lines. Requests may be issued by the manager interface on the read address channel by providing an address and control message which may include a starting address and a read length.
- a functional component e.g., a memory having a subordinate interface act on a read request by returning the requested data in a series of read data messages transferred over the read data channel.
- An AXI bus may also include a write address channel, a write data channel, and a write response channel.
- system 100 may be the master interface. In other examples, system 100 may be the subordinate interface.
- FIGURE 5 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure.
- Process flow 500 stores egress packets from bus A to be forwarded by process flow 550 to bus B.
- the first egress packet of a data transfer has arrived on bus A destined for bus B.
- the first egress packet arrives at a time synchronized with CLKA.
- FSM 105 reads header information from the egress packet to determine the destination address and the number of valid data units (e.g., dwords) in the packet.
- block 502 may be omitted if header information may be inferred, for example, if bus transactions are of a constant size.
- block 502 may be omitted if header information is encoded in the data stream without separate address signals.
- FSM 105 writes a descriptor record to egress descriptor memory 104.
- This descriptor record provides information required to populate any address/control information (or header information) on bus B and provides information on what data units (e.g., dwords), if any, will be arriving in this packet on Bus A destined for Bus B.
- FSM 105 configures the egress muxes 102a-102p to align valid data units with egress memories 103a-103p.
- FSM 105 may sequence its steps to load each bus transaction from Bus A into a single bus transaction on Bus B. Because Bus B is wider, this will result in unused bandwidth on Bus B.
- FSM 105 may use a current memory counter to pack data units more compactly in memories 102a-102p, e.g., by striping data from Bus A transactions across the additional lanes in Bus B. In these striping examples, a burst transfer may result in a series of packets arriving on bus A targeting the same address on bus B. FSM 105 may read two dwords of header information in the first packet and direct the next eight dwords through egress muxes 102a-102h to memories 103a-103h.
- FSM 105 may repeat blocks 504 through 506 by selecting the first eight dwords from bus A to load into memories 103i— 103p and the remaining two dwords from bus A to load into memories 103a-103b.
- the first eight dwords will fill out a full bus-width line across memories 103a-103p in one transaction on Bus B and the remaining two dwords will be part of a second transaction on Bus B that may also include dwords from a third transaction on Bus A.
- FSM 105 has processed the last data of the data transfer request and updates the outbound descriptor record to signal a valid packet is ready to be read by FSM 108.
- step 503 occurs at the time of 508 and the write of the descriptor record into DESC 104 (or 151) provides the signal to FSM 108 (or 156) that a packet from Bus A is queued.
- FSM 108 receives the valid signal from FSM 105 and begins to process the data transfer.
- the valid signal is an indicator on a descriptor record from egress descriptor memory.
- the valid signal is the presence of a descriptor record in that memory and the process begins at block 552.
- FSM 108 reads a descriptor record from egress descriptor memory 104.
- FSM 108 asserts read enable line 111 on outbound descriptor memory 104 to drive address lines 109 so as to enable output of address information FSM 108.
- block 554 may be omitted, for example, if address information may be inferred or is encoded in the data stream.
- FSM enables one or more read enable lines 110 to drive data from memories 103a-103p onto bus B. Blocks 552, 554, and 556 may be repeated until the entire data transfer has been output to bus 120.
- FIGURE 6 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure.
- Process flow 600 stores ingress packets from bus B to be forwarded by process flow 650 to bus A.
- FSM 154 receives ingress address information on bus B and determines which data units on bus A are valid.
- FSM 154 asserts write enable line 155 coupled to descriptor memory 151 to load address/control information into descriptor memory 151.
- FSM 154 selectively asserts write enable lines 155 coupled to ingress memories 152a-152p to load valid data units into respective ones of ingress memories 152a-152p.
- Blocks 602 through 604 may be repeated until an entire data transfer has been captured.
- FSM 154 asserts a valid signal to be read by FSM 156.
- a valid signal may be a field on an ingress descriptor record or may be the presence of a complete ingress descriptor record.
- FSM 156 receives a valid signal asserted by FMS 154. If the valid signal is the presence of a complete ingress descriptor record, this process may start at block 652. At block 652, FSM 156 receives an ingress descriptor record from descriptor memory 151. At step 654, FSM 156 sets one or more ingress muxes 153 to select portions of the ingress descriptor from descriptor memory 151 to pass to Bus A, e.g., to pass header information to Bus A. In some examples, TLP/header information may span more than one dword of Bus A.
- FSM 156 selects data unit mux inputs 153 to pass zero or more data units from egress memories 152a-152p through to bus A. For example, FSM 156 may pass dwords from memories 152a-152h to bus A.
- FSM 156 asserts read enable lines 157 to output data to bus A. If the descriptor record indicates additional data to be transferred, block 656 may be repeated. For example, FSM 156 may select dwords from memories 152i— 152p to the first eight dwords of bus A and dwords from memories 152a and 152b to pass to the remaining to dwords of bus A. Blocks 656-658 may be repeated until an entire data transfer has been completed.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- General Engineering & Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Physics & Mathematics (AREA)
- Software Systems (AREA)
- Computer Hardware Design (AREA)
- Mathematical Physics (AREA)
- Data Exchanges In Wide-Area Networks (AREA)
- Bus Control (AREA)
Abstract
An apparatus and method coupling a first and a second data bus comprising selectors for routing first bus egress lanes to egress memories, each egress memory coupled to one second bus egress lane, where the second bus has more egress lanes than the first. Each egress memory corresponds to one second bus egress lane. A first FSM selecting which first bus egress lane to load into each egress memory synchronous with the first bus clock. A second FSM outputting egress memory values to the second bus synchronous with the second bus clock. A set of ingress memories, each memory coupled to one second bus ingress lane and to an input of each ingress selector. A third FSM loading the ingress memories synchronous with the second bus clock. A fourth FSM selecting which ingress memory to route to each first bus ingress lane synchronous with the first bus clock.
Description
SYSTEM AND METHOD FOR FLEXIBLY CROSSING PACKETS OF DIFFERENT PROTOCOLS
RELATED PATENT APPLICATION
This application claims priority to commonly owned United States Patent Application No. 63/273,199 filed October 29, 2021, the entire contents of which are hereby incorporated by reference for all purposes.
FIELD OF THE INVENTION
The present application relates to systems and methods for transferring packets between two computer busses.
BACKGROUND
Computing systems may interface with busses of different protocols and bus sizes to accommodate design choices and available components. The two different busses may not be directly compatible as they may have different timing, protocols, and bus widths, without limitation. There is a need to translate packets from one bus into packets on a second bus. Further, there is a need to reduce gate count and complexity. One approach might utilize a dualport random access memory (RAM) for each direction in conjunction with sets of registers/flops and barrel shifters. This approach is complex and incorporates far more gates than required in the presently disclosed approach.
SUMMARY
Examples of the present disclosure include an apparatus for coupling a first and a second data bus. The first bus interface has a first number of egress lanes and a first number of ingress lanes wherein the first number of egress lanes is less than the first number of ingress lanes. The second bus interface has a second number of egress lanes and a second number of ingress lanes. A plurality of egress selectors each has an output coupled to an input of one of a plurality of egress memories and each egress selector has a plurality of inputs coupled to the first bus interfaces ingress lanes wherein each egress selector may select any one of the first bus ingress lanes to output to the input of the corresponding egress memory. Each egress memory has an output coupled to one of the second bus egress lanes, a read enable input coupled to a first finite state machine synchronized to a first clock, and a write enable input coupled to a second finite state machine synchronized to a second clock. A plurality of ingress
selectors each has an output coupled to one of the first bus ingress lanes and each ingress selector having a plurality of inputs coupled to the ingress memories wherein each ingress selector may select the output of any one of the ingress memories to output to the corresponding first bus ingress lane. Each ingress memory has an input coupled to one of the second bus ingress lanes, a write enable input coupled to a third finite state machine synchronized to the second clock, and a read enable input coupled to a fourth finite state machine synchronized to the first clock. The first finite state machine controls a select input of each of the egress selectors and the fourth finite state machine controls a select input of each of the ingress selectors. In some examples, the first bus interface is a 10 lane Peripheral Component Interconnect Express (PCIe) bus interface and the second bus interface is a 16 lane Advanced extensible Interface (AXI) bus interface. In some examples, the first finite state machine selects data from a first lane of the PCIe bus interface for delivery to the tenth egress memory destined for the tenth lane of the AXI bus. In some examples, the first bus interface includes 10 egress lanes and 10 ingress lanes. In some examples, the fourth finite state machine selects the first of the egress memories in one data transfer on the first bus ingress lanes and selects the other seven ingress memories in the next data transfer on the first bus ingress lanes. In some examples, each of the ingress and egress memories is a strip of RAM memory. In some examples, the apparatus includes an ingress descriptor memory to store packet information for ingress bus transactions, the packet information comprising an indication of which of the ingress memories contains valid data associated with a corresponding packet. In some examples, the fourth finite state machine tracks which of the ingress memories has data remaining to be transferred.
Examples of the present disclosure include a method comprising at a first time synchronized with a first bus clock, receiving an array of data units of a first egress packet from a plurality of egress lanes of a first bus, storing received data units of the array of data units in a respective one of a plurality of egress memories, and writing a first descriptor to an egress descriptor memory, the descriptor including an identification of valid data units in the received packet. The method includes, at a second time synchronized with a second bus clock, reading the first descriptor from the egress descriptor memory, and for each valid data unit identified in the first descriptor, asserting a read enable on the corresponding egress memory to output the data unit to a corresponding one of a plurality of egress lanes of a second bus. In some
examples the method includes, at a third time synchronized with the second bus clock, receiving a second array of data units of a first ingress packet from a plurality of ingress lanes of the second bus, storing received data units of the second array of data units in respective ones of a plurality of ingress memories, and writing a second descriptor to an ingress descriptor memory, the second descriptor including an identification of valid data units in the received first ingress packet. The method includes, at a fourth time synchronized with the first bus clock, reading the second descriptor from the ingress descriptor memory, selecting a subset of the ingress memories to output data to corresponding lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the subset, asserting a read enable on the corresponding ingress memory. In some examples, the method includes, at a fifth time synchronized with the first bus clock, selecting a different subset of the ingress memories to output data to corresponding ingress lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the second subset, asserting a read enable on the corresponding ingress memory. In some examples, the method includes, at an intervening time between the third and fourth times and synchronized with the second bus clock, writing an egress header to the second bus. In some examples, the first bus has a 10 lane bus interface, the set of egress memories comprises 16 memories, the second bus has a 16 lane bus interface, and the set of ingress memories comprises 16 memories, and at the fourth time, the subset of ingress memories consists of the first nine of the ingress memories; and at the fifth time, the different subset of ingress memories comprises the tenth through the sixteenth ingress memories. In some examples, each of the ingress and egress memories is a strip of RAM memory.
Examples of the present disclosure include a non-transitory computer-readable medium comprising register transfer level (RTL) to, at a first time synchronized with a first bus clock, receive an array of data units of a first egress packet from a plurality of egress lanes of a first bus, store received data units of the array of data units in a respective one of a plurality of egress memories, and write a first descriptor to an egress descriptor memory, the descriptor including an identification of valid data units in the received packet. The RTL to, at a second time synchronized with a second bus clock, read the first descriptor from the egress descriptor memory, and for each valid data unit identified in the first descriptor, assert a read enable on the corresponding egress memory to output the data unit to a corresponding one of a plurality
of egress lanes of a second bus. In some examples, the medium includes RTL code to, at a third time synchronized with the second bus clock, receive a second array of data units of a first ingress packet from a plurality of ingress lanes of the second bus, store received data units of the second array of data units in respective ones of a plurality of ingress memories, and write a second descriptor to an ingress descriptor memory, the second descriptor including an identification of valid data units in the received first ingress packet. The medium includes RTL code to, at a fourth time synchronized with the first bus clock, read the second descriptor from the ingress descriptor memory, select a subset of the ingress memories to output data to corresponding lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the subset, assert a read enable on the corresponding ingress memory. In some examples, the medium includes RTL code to, at a fifth time synchronized with the first bus clock, select a different subset of the ingress memories to output data to corresponding ingress lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the second subset, assert a read enable on the corresponding ingress memory. In some examples the medium includes RTL code to, at an intervening time between the third and fourth times and synchronized with the first bus clock, write an egress header packet to the first bus. In some examples, the first bus has a 10 lane bus interface, the set of egress memories comprises 16 memories, the second bus has a 16 lane bus interface, and the set of ingress memories comprises 16 memories, and wherein at the fourth time, the subset of ingress memories consists of the first nine of the ingress memories; and at the fifth time, the different subset of ingress memories comprises the tenth through the sixteenth ingress memories. In some examples, each of the first and second bus memories is a strip of RAM memory.
BRIEF DESCRIPTION OF THE DRAWINGS
FIGURE 1 is an illustration of a system for crossing packets between two busses according to certain examples of the present disclosure.
FIGURE 2 is an illustration of another system for crossing packets between two busses according to certain examples of the present disclosure.
FIGURE 3 is an illustration of a TLP packet of a PCIee bus according to certain examples of the present disclosure.
FIGURE 4 is an illustration of a AXI bus architecture according to certain examples of the present disclosure.
FIGURE 5 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure.
FIGURE 6 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure.
DETAILED DESCRIPTION
The present disclosure provides circuits for passing information between two different data bus architectures. For example, system designers may wish to have one interface for accessing a preexisting set of input/output (I/O) devices and a memory interface for accessing one or more random access memory (RAM) devices. Further, the system designer may wish to have data cross directly between the two busses to allow a processor core having only the UO bus interface type to also communicate with a RAM device having only the memory bus interface. A system designer may use the present disclosure to transfer information between two different bus architectures.
FIGURE 1 is an illustration of an apparatus for coupling a first and a second data bus according to certain examples of the present disclosure. System 100 is illustrated as two halves, a first bus, denoted Bus A on the left, and a second bus, denoted Bus B on the right. In some examples, the Bus A side is connected to egress lines 101 of Peripheral Component Interconnect Express (PCIe) Bus A (and ingress lines 161 of PCIe Bus A) having ten lanes, each lane carrying a double word (or, dword) (e.g., 10 sets of 32 lines or “10:32”) for a total of 320 bits. Bus A transfers are synchronized with CLKA while Bus B transfers are synchronized with CLKB. The dashed vertical line illustrates this timing boundary. Some examples of system 100 are designed to function when CLKA is not synchronized with CLKB. In some examples, the Bus B side is connected to egress lines 120 of Advanced extensible Interface (AXI) Bus B (and ingress lines 160) having sixteen lanes, each lane one dword wide (e.g., 16 sets of 32 lines or “16:32”) for a total of 512 bits. PCIe is defined by the PCI Special Interest Group of Beaverton, Oregon and AXI is defined by ARM Ltd. Of Cambridge, United Kingdom. This disclosure refers to egress communications as originating on the Bus A side and flowing through the top portion of FIGURE 1 and ingress communications as originating on the Bus B
side and flowing the reverse direction through the bottom portion of FIGURE 1. These directions are labeled for convenience and may not correspond to internal/external data flows.
The egress portion of system 100 comprises finite state machine (FSM) 105, FSM 108, descriptor memory 104, egress multiplexers 102a-102p (i.e., “muxes” or selectors), and egress memories 103a-103b. Muxes 102a-102p respectively pass one of ten data units on bus 101, e.g., one of ten doublewords or dwords, to a corresponding one of memory 103a-103p. References to dwords should be understood as nonlimiting. Each of memories 103a-130p may respectively be a RAM strip with read and write enable lines. A RAM strip may be an independent piece of random-access memory having its own read/write ports and a smallest unit of data storage defined, in some examples, as 32 bits corresponding to the dword unit of transfer on Bus A and Bus B. Each corresponding memory 103 may have storage for a predetermined number of data units. In some examples, a corresponding memory 103 may have storage for sixty-four dwords. Respective memories 103 Each memory 103 has a read port coupled to a dword portion of bus 120 to allow the combined set of memories 103a-103p to present up to a full 512 bits of data on bus 120 in a single bus transaction. Egress portion of system 100 also comprises egress descriptor memory 104, which may be a RAM strip with read and write enable lines. Egress descriptor memory 104 may store header information read from bus 101 as well as information derived from finite state machine (FSM) 105 indicating valid information in memories 103a-103p. Egress descriptor memory 104 is coupled to address lines 109 of bus 120. Egress portion of system 100 also comprises finite state machine 105, which drives select lines 106 of muxes 102a-102p and write enable lines 107 of memories 103a-103p. FSM 105 receives clock signal CLKA and thereby operates in sync with Bus A by operating on CLKA. Egress portion of system 100 also comprises FSM 108, which drives read enable lines 110 for memories 103a-103p and read enable line 111 for descriptor memory 104. FSM 108 receives clock signal CLKB and thereby operates in sync with Bus B. In some examples, FSM 105 may write to descriptor memory 104 before all valid dwords have been written to memories 103a-p but must still signal FSM 108 once the valid dwords have been written. In some examples, FSM may update one or more bits in descriptor memory 104 once all the valid dwords have been written. In other examples, FSM 105 may assert a valid signal by updating the descriptor record in descriptor memory 104 to notify FSM 108 that a data transfer request has been fully queued.
The ingress portion of system 100 includes descriptor memory 151, ingress memories 152a-152p, FSM 154, FSM 156, and muxes 153a- 153j . Descriptor memory is coupled to address lines 109 of Bus B. Each of ingress memories 152a-152p is coupled to a corresponding dword portion of Bus B. FSM 154 receives clock signal CLKB and thereby operates in sync with Bus B. FSM 154 drives write enable lines 155 of ingress descriptor memory 151 and ingress memories 152a-152p. Respective muxes 153a— 153j output data to a corresponding dword portion of bus 161. Each mux 153 may select information from ingress descriptor memory 151 or any one ofingress memories 152a-152p. FSM 156 receives clock signal CLKA and thereby operates in sync with Bus A. FSM 156 drives select lines on each mux 153 and a read enable line for each of ingress descriptor memory 151 and ingress memories 152a-152p. In some examples, FSM 154 may write to descriptor memory 151 before all valid dwords have been written to memories 152a-152p but must still signal FSM 156 once the valid dwords have been written. In some examples, FSM may update one or more bits in descriptor memory 151 once all the valid dwords have been written. In other examples, FSM 154 may assert a valid signal to notify FSM 156 that a data transfer request has been fully queued.
In an example, the first 10 dwords of a PCIe packet arrive on egress lines 101. FSM 105 selects the input to mux 120z corresponding to the portion of egress lines 101 representing the header portion of the PCIe packet. This will direct the header to descriptor memory 104. If the PCIe packet has no optional prefixes, this will be the first dword (e.g., index zero) on line 101. FSM 105 selects the remaining dwords (index 1 through index 9) to transfer the nine data dwords on lines 101 into memories 103a through 103i (the first nine memories). FSM 105 also asserts write enable lines 107 to store the header and first nine dwords of data into memories
104 and 103a-i. In this example, the next bus transaction on egress bus lines 101 includes ten dwords of data. FSM 105 selects the first (index zero) dword to transfer to memory 103j (the tenth memory), the second dword to transfer to memory 103 k, and so on until the seventh dword is selected for memory 103p. FSM 105 asserts write enable lines on memories 103j- 103p to store the data across all available memories 103 associated with a single future bus transaction on lines 120. Once an entire egress packet has been stored in memories 103, FSM
105 signals FSM 108 that a valid packet has been captured, for example, by setting a value in descriptor memory 105. In some examples, header information may be gathered in a temporary memory and then written to descriptor memory 105 (or 151) only after the payload of the egress
packet has been captured in memories 103. In such an example, a non-empty record in descriptor memory 105 (or 151) indicates a valid packet has been received.
In another example, the first 16 dwords of an AXI packet arrive (synchronized with CLKB) on ingress lines 160 concurrently with address information on address lines 169. FSM 154 asserts write enable lines to load values into descriptor memory 151 and each ingress memory 152a-152p. At some later time, FSM 156 asserts select lines on ingress multiplexer 153a to route a descriptor record from descriptor memory 151 to the first lane of Bus A ingress lines 161. FSM 156 also asserts select lines on the remaining ingress multiplexers 153b-153j to route dwords from the first nine ingress memories (e.g., 152a- 152i) to Bus A ingress lanes 1 through 9, respectively. FSM 156 then asserts read enable lines on the descriptor memories and ingress memories 152a- 152i . In the next bus transaction on the ingress lines of Bus A, FSM 156 routes dwords starting with the ingress memory (e.g., 152j) routed to the first ingress lane of Bus A.
FIGURE 2 is an illustration of another system for crossing packets between two busses according to certain examples of the present disclosure. System 200 comprises many of the same components of system 100, which are labeled the same as in system 100. In system 200, Bus B utilizes in-band signaling and does not have separate address lines. System 200 includes one or more additional mux(es) 210 for passing header information from egress descriptor memory 104 to dword portion(s) of bus 120. FSM 208, which receives clock signal CLKB, drives read enable lines 110 and 111 as well as mux selection line(s) 211 for additional mux(es) 210. Ingress portion of system 200 includes ingress descriptor memory 251, which is coupled to one or more dword portions of bus 160 that carry header information. In some examples, bus 160 may be a PCIe bus and header information may include TLP prefixes and TLP header spanning the first two dwords e.g., bytes 0-7) on bus 160.
FIGURE 3 is an illustration of a TLP packet of a PCIe bus according to certain examples of the present disclosure. Packet 300 may comprise prefixes 302, header 304, data 306, and digest 308. Prefixes 302, if present, may include processing hints or vendor-specific information. Header 304 may include type information, an address (optional), a message (optional). One example of packet 300 is a memory read request in which header 304 may include a read requestor identifier, a read length, and a starting address. Another example of packet 300 is a message without data in which header 304 may include a requestor identifier
and a message code. Another example of packet 300 is a write request in which header 304 may include a requester ID, a length, and a starting address and in which data 306 may include data to be written. The entirety of packet 300 (including address and data information) may be transferred over the same bus lines. In some examples, the header format and contents may differ between Bus A and Bus B. In some examples, logic or software instructions executing on a CPU may provide a default value for a missing field, may transform the format of a field, or may derive a value for the target bus header based on information contained in the source bus header.
FIGURE 4 is an illustration of a portion of an AXI bus according to certain examples of the present disclosure. The AXI bus architecture relies on dedicated address and control lines. Requests may be issued by the manager interface on the read address channel by providing an address and control message which may include a starting address and a read length. A functional component (e.g., a memory) having a subordinate interface act on a read request by returning the requested data in a series of read data messages transferred over the read data channel. An AXI bus may also include a write address channel, a write data channel, and a write response channel. In some examples, system 100 may be the master interface. In other examples, system 100 may be the subordinate interface.
FIGURE 5 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure. Process flow 500 stores egress packets from bus A to be forwarded by process flow 550 to bus B.
At block 502, in some examples, the first egress packet of a data transfer has arrived on bus A destined for bus B. The first egress packet arrives at a time synchronized with CLKA. FSM 105 reads header information from the egress packet to determine the destination address and the number of valid data units (e.g., dwords) in the packet. In other examples, block 502 may be omitted if header information may be inferred, for example, if bus transactions are of a constant size. In some examples, block 502 may be omitted if header information is encoded in the data stream without separate address signals. At block 503, FSM 105 writes a descriptor record to egress descriptor memory 104. This descriptor record provides information required to populate any address/control information (or header information) on bus B and provides information on what data units (e.g., dwords), if any, will be arriving in this packet on Bus A destined for Bus B. At block 504, FSM 105 configures the egress muxes 102a-102p to align
valid data units with egress memories 103a-103p. In some examples, FSM 105 may sequence its steps to load each bus transaction from Bus A into a single bus transaction on Bus B. Because Bus B is wider, this will result in unused bandwidth on Bus B. In some examples, FSM 105 may use a current memory counter to pack data units more compactly in memories 102a-102p, e.g., by striping data from Bus A transactions across the additional lanes in Bus B. In these striping examples, a burst transfer may result in a series of packets arriving on bus A targeting the same address on bus B. FSM 105 may read two dwords of header information in the first packet and direct the next eight dwords through egress muxes 102a-102h to memories 103a-103h. In the next Bus A cycle, FSM 105 may repeat blocks 504 through 506 by selecting the first eight dwords from bus A to load into memories 103i— 103p and the remaining two dwords from bus A to load into memories 103a-103b. The first eight dwords will fill out a full bus-width line across memories 103a-103p in one transaction on Bus B and the remaining two dwords will be part of a second transaction on Bus B that may also include dwords from a third transaction on Bus A. At block 508, FSM 105 has processed the last data of the data transfer request and updates the outbound descriptor record to signal a valid packet is ready to be read by FSM 108. In some examples, the descriptor is written last, thus step 503 occurs at the time of 508 and the write of the descriptor record into DESC 104 (or 151) provides the signal to FSM 108 (or 156) that a packet from Bus A is queued.
At block 551, FSM 108 receives the valid signal from FSM 105 and begins to process the data transfer. In some examples, the valid signal is an indicator on a descriptor record from egress descriptor memory. In other examples, the valid signal is the presence of a descriptor record in that memory and the process begins at block 552. At block 552, FSM 108 reads a descriptor record from egress descriptor memory 104. At block 554, FSM 108 asserts read enable line 111 on outbound descriptor memory 104 to drive address lines 109 so as to enable output of address information FSM 108. In some examples, block 554 may be omitted, for example, if address information may be inferred or is encoded in the data stream. At block 556, FSM enables one or more read enable lines 110 to drive data from memories 103a-103p onto bus B. Blocks 552, 554, and 556 may be repeated until the entire data transfer has been output to bus 120.
FIGURE 6 is a flowchart of a method for crossing packets between two busses according to certain examples of the present disclosure. Process flow 600 stores ingress packets
from bus B to be forwarded by process flow 650 to bus A. At block 602, at a time synchronous with CLKB, FSM 154 receives ingress address information on bus B and determines which data units on bus A are valid. At block 603, FSM 154 asserts write enable line 155 coupled to descriptor memory 151 to load address/control information into descriptor memory 151. At block 604, FSM 154 selectively asserts write enable lines 155 coupled to ingress memories 152a-152p to load valid data units into respective ones of ingress memories 152a-152p. Blocks 602 through 604 may be repeated until an entire data transfer has been captured. At block 606, FSM 154 asserts a valid signal to be read by FSM 156. As described above with respect to Fig. 5, a valid signal may be a field on an ingress descriptor record or may be the presence of a complete ingress descriptor record.
At block 651, FSM 156 receives a valid signal asserted by FMS 154. If the valid signal is the presence of a complete ingress descriptor record, this process may start at block 652. At block 652, FSM 156 receives an ingress descriptor record from descriptor memory 151. At step 654, FSM 156 sets one or more ingress muxes 153 to select portions of the ingress descriptor from descriptor memory 151 to pass to Bus A, e.g., to pass header information to Bus A. In some examples, TLP/header information may span more than one dword of Bus A. At block 656, FSM 156 selects data unit mux inputs 153 to pass zero or more data units from egress memories 152a-152p through to bus A. For example, FSM 156 may pass dwords from memories 152a-152h to bus A. At block 658, FSM 156 asserts read enable lines 157 to output data to bus A. If the descriptor record indicates additional data to be transferred, block 656 may be repeated. For example, FSM 156 may select dwords from memories 152i— 152p to the first eight dwords of bus A and dwords from memories 152a and 152b to pass to the remaining to dwords of bus A. Blocks 656-658 may be repeated until an entire data transfer has been completed.
Although example embodiments have been described above, other variations and embodiments may be made from this disclosure without departing from the spirit and scope of these embodiments.
Claims
1. An apparatus for coupling a first and a second data bus, comprising: a first bus interface having a first number of egress lanes and a first number of ingress lanes wherein the first number of egress lanes is less than the first number of ingress lanes; a second bus interface having a second number of egress lanes and a second number of ingress lanes; a plurality of egress selectors, each egress selector having an output coupled to an input of one of a plurality of egress memories and each egress selector having a plurality of inputs coupled to the first bus interfaces ingress lanes wherein each egress selector may select any one of the first bus ingress lanes to output to the input of the corresponding egress memory; each egress memory having an output coupled to one of the second bus egress lanes, a read enable input coupled to a first finite state machine synchronized to a first clock, and a write enable input coupled to a second finite state machine synchronized to a second clock; a plurality of ingress selectors, each ingress selector having an output coupled to one of the first bus ingress lanes and each ingress selector having a plurality of inputs coupled to the ingress memories wherein each ingress selector may select the output of any one of the ingress memories to output to the corresponding first bus ingress lane; each ingress memory having an input coupled to one of the second bus ingress lanes, a write enable input coupled to a third finite state machine synchronized to the second clock, and a read enable input coupled to a fourth finite state machine synchronized to the first clock; wherein the first finite state machine controls a select input of each of the egress selectors and the fourth finite state machine controls a select input of each of the ingress selectors.
2. The apparatus of claim 1 wherein the first bus interface is a 10 lane Peripheral Component Interconnect Express (PCIe) bus interface and the second bus interface is a 16 lane Advanced extensible Interface (AXI) bus interface.
3. The apparatus of claim 2 wherein the first finite state machine selects data from a first lane of the PCIe bus interface for delivery to the tenth egress memory destined for the tenth lane of the AXI bus.
4. The apparatus of any of claims 2-3 wherein the first bus interface includes 10 egress lanes and 10 ingress lanes.
5. The apparatus of any of claims 2-4 wherein the fourth finite state machine selects the first of the egress memories in one data transfer on the first bus ingress lanes and selects the other seven ingress memories in the next data transfer on the first bus ingress lanes.
6. The apparatus of any of claims 1-5 wherein each of the ingress and egress memories is a strip of RAM memory.
7. The apparatus of any of claims 1-6 comprising an ingress descriptor memory to store packet information for ingress bus transactions, the packet information comprising an indication of which of the ingress memories contains valid data associated with a corresponding packet.
8. The apparatus of any of claims 1-7 wherein the fourth finite state machine tracks which of the ingress memories has data remaining to be transferred.
9. A method comprising: at a first time synchronized with a first bus clock: receiving an array of data units of a first egress packet from a plurality of egress lanes of a first bus, storing received data units of the array of data units in a respective one of a plurality of egress memories, and writing a first descriptor to an egress descriptor memory, the descriptor including an identification of valid data units in the received packet; and at a second time synchronized with a second bus clock:
14 reading the first descriptor from the egress descriptor memory, and for each valid data unit identified in the first descriptor, asserting a read enable on the corresponding egress memory to output the data unit to a corresponding one of a plurality of egress lanes of a second bus.
10. The method of claim 9, comprising: at a third time synchronized with the second bus clock: receiving a second array of data units of a first ingress packet from a plurality of ingress lanes of the second bus, storing received data units of the second array of data units in respective ones of a plurality of ingress memories, and writing a second descriptor to an ingress descriptor memory, the second descriptor including an identification of valid data units in the received first ingress packet; and at a fourth time synchronized with the first bus clock: reading the second descriptor from the ingress descriptor memory, selecting a subset of the ingress memories to output data to corresponding lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the subset, asserting a read enable on the corresponding ingress memory.
11. The method of claim 10, comprising: at a fifth time synchronized with the first bus clock: selecting a different subset of the ingress memories to output data to corresponding ingress lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the second subset, asserting a read enable on the corresponding ingress memory.
15
12. The method of any of claims 10-11, comprising at an intervening time between the third and fourth times and synchronized with the second bus clock, writing an egress header to the second bus.
13. The method of claim 11, wherein: the first bus has a 10 lane bus interface, the set of egress memories comprises 16 memories, the second bus has a 16 lane bus interface, and the set of ingress memories comprises 16 memories, and wherein at the fourth time, the subset of ingress memories consists of the first nine of the ingress memories; and at the fifth time, the different subset of ingress memories comprises the tenth through the sixteenth ingress memories.
14. The method of any of claims 9-13, wherein each of the ingress and egress memories is a strip of RAM memory.
15. A non-transitory computer-readable medium comprising register transfer level (RTL) to: at a first time synchronized with a first bus clock: receive an array of data units of a first egress packet from a plurality of egress lanes of a first bus, store received data units of the array of data units in a respective one of a plurality of egress memories, and write a first descriptor to an egress descriptor memory, the descriptor including an identification of valid data units in the received packet; and at a second time synchronized with a second bus clock: read the first descriptor from the egress descriptor memory, and for each valid data unit identified in the first descriptor, assert a read enable on the corresponding egress memory to output the data unit to a corresponding one of a plurality of egress lanes of a second bus.
16
16. The non-transitory computer-readable medium of claim 15, the RTL code to: at a third time synchronized with the second bus clock: receive a second array of data units of a first ingress packet from a plurality of ingress lanes of the second bus, store received data units of the second array of data units in respective ones of a plurality of ingress memories, and write a second descriptor to an ingress descriptor memory, the second descriptor including an identification of valid data units in the received first ingress packet; and at a fourth time synchronized with the first bus clock: read the second descriptor from the ingress descriptor memory, select a subset of the ingress memories to output data to corresponding lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the subset, assert a read enable on the corresponding ingress memory.
17. The non-transitory computer-readable medium of claim 16, the RTL code to: at a fifth time synchronized with the first bus clock: select a different subset of the ingress memories to output data to corresponding ingress lanes of the first bus, and for each valid data unit identified in the second descriptor and stored in an ingress memory in the second subset, assert a read enable on the corresponding ingress memory.
18. The non-transitory computer-readable medium of any of claims 15-17, the RTL code to, at an intervening time between the third and fourth times and synchronized with the first bus clock, write an egress header packet to the first bus.
19. The non-transitory computer-readable medium of any of claims 15-18, wherein:
17 the first bus has a 10 lane bus interface, the set of egress memories comprises 16 memories, the second bus has a 16 lane bus interface, and the set of ingress memories comprises 16 memories, and wherein at the fourth time, the subset of ingress memories consists of the first nine of the ingress memories; and at the fifth time, the different subset of ingress memories comprises the tenth through the sixteenth ingress memories.
20. The non-transitory computer-readable medium of any of claims 15-19, wherein each of the first and second bus memories is a strip of RAM memory.
Priority Applications (2)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CN202280038894.6A CN117501252A (en) | 2021-10-29 | 2022-10-28 | Systems and methods for flexibly crossing packets of different protocols |
| DE112022005200.7T DE112022005200T5 (en) | 2021-10-29 | 2022-10-28 | System and method for flexible switching of data packets of different protocols |
Applications Claiming Priority (4)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| US202163273199P | 2021-10-29 | 2021-10-29 | |
| US63/273,199 | 2021-10-29 | ||
| US17/973,894 US12072829B2 (en) | 2021-10-29 | 2022-10-26 | System and method for flexibly crossing packets of different protocols |
| US17/973,894 | 2022-10-26 |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| WO2023076597A1 true WO2023076597A1 (en) | 2023-05-04 |
Family
ID=84362236
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| PCT/US2022/048222 Ceased WO2023076597A1 (en) | 2021-10-29 | 2022-10-28 | System and method for flexibly crossing packets of different protocols |
Country Status (3)
| Country | Link |
|---|---|
| US (1) | US20240378168A1 (en) |
| DE (1) | DE112022005200T5 (en) |
| WO (1) | WO2023076597A1 (en) |
Cited By (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117539820A (en) * | 2024-01-10 | 2024-02-09 | 芯动微电子科技(武汉)有限公司 | Interconnection system and method of PCIe Switch and SoC |
Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6640275B1 (en) * | 1999-12-22 | 2003-10-28 | Nortel Networks Limited | System and method for data transfer between buses having different speeds |
| US20180300271A1 (en) * | 2017-04-17 | 2018-10-18 | SK Hynix Inc. | Electronic systems having serial system bus interfaces and direct memory access controllers and methods of operating the same |
| US20200257647A1 (en) * | 2019-02-08 | 2020-08-13 | Arm Limited | System, method and apparatus for enabling partial data transfers with indicators |
Family Cites Families (1)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US12259835B2 (en) * | 2020-11-16 | 2025-03-25 | Intel Corporation | Disaggregation of computing devices using enhanced retimers with circuit switching |
-
2022
- 2022-10-28 WO PCT/US2022/048222 patent/WO2023076597A1/en not_active Ceased
- 2022-10-28 DE DE112022005200.7T patent/DE112022005200T5/en active Pending
-
2024
- 2024-07-23 US US18/780,872 patent/US20240378168A1/en active Pending
Patent Citations (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US6640275B1 (en) * | 1999-12-22 | 2003-10-28 | Nortel Networks Limited | System and method for data transfer between buses having different speeds |
| US20180300271A1 (en) * | 2017-04-17 | 2018-10-18 | SK Hynix Inc. | Electronic systems having serial system bus interfaces and direct memory access controllers and methods of operating the same |
| US20200257647A1 (en) * | 2019-02-08 | 2020-08-13 | Arm Limited | System, method and apparatus for enabling partial data transfers with indicators |
Cited By (2)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| CN117539820A (en) * | 2024-01-10 | 2024-02-09 | 芯动微电子科技(武汉)有限公司 | Interconnection system and method of PCIe Switch and SoC |
| CN117539820B (en) * | 2024-01-10 | 2024-05-03 | 芯动微电子科技(武汉)有限公司 | PCIE SWITCH and SoC interconnection system and method |
Also Published As
| Publication number | Publication date |
|---|---|
| DE112022005200T5 (en) | 2024-08-14 |
| US20240378168A1 (en) | 2024-11-14 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US10056123B2 (en) | Method and system for improving serial port memory communication latency and reliability | |
| CN110309526B (en) | Peripheral interconnect for configurable slave endpoint circuitry | |
| US6393548B1 (en) | Variable 16 or 32 bit PCI interface which supports steering and swapping of data | |
| US10270447B2 (en) | Apparatus for configurable interface and associated methods | |
| CN101901205B (en) | Method and apparatus for enabling ID-based flow on PCIExpress | |
| CN111078609A (en) | An FPGA-based PCIe to three-bus interface and method | |
| US7930462B2 (en) | Interface controller that has flexible configurability and low cost | |
| US20050125590A1 (en) | PCI express switch | |
| US11520725B2 (en) | Performance monitor for interconnection network in an integrated circuit | |
| US7426604B1 (en) | Virtual output buffer architecture | |
| US7797467B2 (en) | Systems for implementing SDRAM controllers, and buses adapted to include advanced high performance bus features | |
| KR20210092222A (en) | Chaining memory requests on the bus | |
| US20240378168A1 (en) | System and Method for Flexibly Crossing Packets of Different Protocols | |
| US7412555B2 (en) | Ordering rule and fairness implementation | |
| US20020184419A1 (en) | Asic system architecture including data aggregation technique | |
| EP1267269A2 (en) | Apparatus and method for distribution of signals from a high level data link controller to multiple digital signal processor cores | |
| US12072829B2 (en) | System and method for flexibly crossing packets of different protocols | |
| CN116150077A (en) | An outbound port transaction processing device and method for a PCIe switching circuit | |
| US9767054B2 (en) | Data transfer control device and memory-containing device | |
| US12346271B2 (en) | Pointer sharing in QDMA transactions | |
| EP2405362A1 (en) | A connection arrangement | |
| CN117501252A (en) | Systems and methods for flexibly crossing packets of different protocols | |
| US12222879B2 (en) | Integrated circuit device with crossbar to route traffic | |
| CN116107923A (en) | A BRAM-based many-to-many high-speed memory access architecture and memory access system | |
| CN210038775U (en) | System on chip |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| 121 | Ep: the epo has been informed by wipo that ep was designated in this application |
Ref document number: 22812998 Country of ref document: EP Kind code of ref document: A1 |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 202280038894.6 Country of ref document: CN |
|
| WWE | Wipo information: entry into national phase |
Ref document number: 112022005200 Country of ref document: DE |
|
| 122 | Ep: pct application non-entry in european phase |
Ref document number: 22812998 Country of ref document: EP Kind code of ref document: A1 |