WO2006131899A2 - Memory controller and method for coupling a network and a memory - Google Patents

Memory controller and method for coupling a network and a memory Download PDF

Info

Publication number
WO2006131899A2
WO2006131899A2 PCT/IB2006/051837 IB2006051837W WO2006131899A2 WO 2006131899 A2 WO2006131899 A2 WO 2006131899A2 IB 2006051837 W IB2006051837 W IB 2006051837W WO 2006131899 A2 WO2006131899 A2 WO 2006131899A2
Authority
WO
WIPO (PCT)
Prior art keywords
buffer
memory
write
storing
fetch
Prior art date
Application number
PCT/IB2006/051837
Other languages
French (fr)
Other versions
WO2006131899A3 (en
Inventor
Artur Burchard
Ewa Hekstra-Nowacka
Atul P. S. Chauhan
Original Assignee
Nxp B.V.
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 Nxp B.V. filed Critical Nxp B.V.
Priority to US11/917,018 priority Critical patent/US8037254B2/en
Priority to JP2008515369A priority patent/JP2008544348A/en
Priority to EP06756095A priority patent/EP1894106A2/en
Publication of WO2006131899A2 publication Critical patent/WO2006131899A2/en
Publication of WO2006131899A3 publication Critical patent/WO2006131899A3/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F13/00Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
    • G06F13/14Handling requests for interconnection or transfer
    • G06F13/16Handling requests for interconnection or transfer for access to memory bus
    • G06F13/1668Details of memory controller
    • G06F13/1673Details of memory controller using buffers

Definitions

  • the present invention relates to a memory controller, and method for coupling a network and a memory.
  • subsystems typically are implemented as separate ICs, each having a different internal architecture that consists of local processors, busses, and memories, etc. Alternatively, various subsystems, may be integrated on an IC. At system level, these subsystems communicate with each other via a top-level interconnect, that provides certain services, often with real-time support.
  • a top-level interconnect that provides certain services, often with real-time support.
  • subsystems in a mobile phone architecture we can have, among others, base-band processor, display, media processor, or storage element.
  • a PCI Express network is an example of a system level interconnect, providing services like isochronous data transport and flow control. For support of multimedia applications, these subsystems exchange most of the data in a streamed manner.
  • data streaming reference is made to read-out of an MP3 encoded audio file from the local storage by a media-processor and sending the decoded stream to speakers.
  • Such communication can be described as a graph of processes connected via FIFO buffers, often referred to as Kahn process networks.
  • the Kahn process network can be mapped on the system architecture, as described in E.A. de Kock et al., "YAPI: Application modeling for signal processing systems". In Proc. of the 37th.
  • pre-fetch buffering can be used. This means that the data from the SDRAM is read beforehand and kept in a special (prefetch) buffer. When the read request arrives it can be served from local pre-fetch buffer, usually implemented in on-chip SRAM, without latency otherwise introduced by background memory (DRAM). This is similar to known caching techniques of random data for processors. For streaming, a contiguous (or better to say a predictable) addressing of data is used in a pre-fetch buffer, rather then a random address used in a cache.
  • J. L. Hennessy and D. A. Patterson “Computer Architecture ⁇ A Quantitative Approach”
  • This object is solved by a memory controller according to claim 1 and by a method for coupling a network and a memory according to claim 6.
  • a memory controller for coupling a memory to a network.
  • the memory controller comprises a first interface for connecting the memory controller to the network.
  • the first interface is arranged for receiving and transmitting data streams.
  • a streaming memory unit is coupled to the first interface for controlling data streams between the network and the memory.
  • Said streaming memory unit comprises a buffer for temporarily storing at least part of the data streams.
  • a buffer managing unit is provided for managing a temporarily storing of data streams in the buffer in a first and second operation mode. In the first operation mode, data from the data streams to be stored in the memory are temporarily stored in the buffer until a portion of the buffer is occupied.
  • the buffer managing unit divides the buffer into a pre-fetch buffer for buffering pre-fetched data from the memory and a write-back buffer for buffering data to be written back to the memory. Accordingly, with such a memory controller the buffering management and the buffers can be dynamically configured.
  • the buffering management and the buffers can be dynamically configured.
  • the data is not stored in the background memory but buffered in the buffer of the streaming memory controller, there is only one buffer that serves read and write accesses and implements pre-fetch and write-back buffering.
  • this single buffer is dynamically, during run-time, divided into two parts, namely a pre-fetch and a write-back part.
  • the first interface is implemented as a PCI-Express interface.
  • the memory controller can be coupled to a PCI-Express network.
  • a second interface is coupled to the streaming memory unit for connecting the memory controller to the memory and for exchanging data with the memory in bursts. Accordingly, a further interface is provided such that the controller can exchange data with any memory operating in bursts, like a DRAM.
  • the buffer managing unit comprises a start address register for storing the start address of the buffer, an end address register for storing an end address of the buffer, a read pointer register for storing a read pointer of the buffer and a write pointer register for storing a write pointer of the buffer.
  • the buffer managing unit comprises a start address register for storing a start address of the buffer, an end address register for storing the end address, a pre-fetch start address register for storing a pre-fetch start address, a pre-fetch end address register for storing the pre-fetch end address, a pre-fetch read pointer register for storing the pre-fetch read pointer, a pre-fetch write pointer register for storing a pre-fetch write pointer, a write-back read pointer register for storing a write-back read pointer, and a write-back write pointer register for storing a write-back write pointer.
  • the buffering within the memory controller can therefore be accomplished by providing four pointers in the first operation mode and by eight pointers in the second operation mode, such that a simple implementation of the buffer managing is provided.
  • the invention also relates to a method for coupling a network and a memory.
  • Data streams are received and transmitted via a first interface for connecting a memory controller to the network.
  • the data streams between the network and the memory are controlled by a streaming memory unit.
  • At least part of the data streams is temporarily stored in a buffer.
  • the temporarily storing of the data streams in a buffer is managed in a first and second operation mode.
  • In the first operation mode data from the data streams to be stored in the memory is temporarily stored until a portion of the buffer is occupied.
  • the buffer is divided into a prefetch buffer for buffering pre-fetch data from the memory and a write-back buffer for buffering data to be written back to the memory.
  • FIG. 1 shows a block diagram of the basic architecture of a system on chip according to the invention
  • Fig. 2 shows a block diagram of a streaming memory controller according to a first embodiment
  • Fig. 3 shows a block diagram of a streaming memory unit of Fig. 2
  • Fig. 4 shows the content of a SRAM buffer of Fig. 3 during a first operation mode
  • Fig. 5 shows the content of a SRAM buffer of Fig. 3 during a second operation mode
  • Fig. 6 shows a state diagram of a buffer managing unit of Fig. 2.
  • Fig. 1 shows a block diagram of the basic architecture of a system on chip according to the invention.
  • the system on chip comprises at least one processing unit P (please note that only one processing unit is shown in Fig. 1) or subsystem, an interconnect means IM for coupling the processing units P and any external devices.
  • the processing units P and the interconnect means IM can be considered as a network N.
  • the interconnect means IM may be considered as a network N.
  • the communication over the interconnect means IM and between the processing units P is performed in a streaming manner.
  • An external memory MEM is coupled to the interconnect means IM or the network N via a memory controller SMC.
  • the external memory can be implemented as a SDRAM.
  • the memory controller MC serves to translate data format and the addresses format of the interconnect means IM or the network into data format and address format of the memory MEM.
  • the buffer can be placed in a memory controller SMC close to the memory MEM.
  • the buffer may also be placed in the interconnect infrastructure (e.g. in an arbiter or in a bridge BR), or even close to the subsystem P, which may be implemented as dedicated ASIC or a microprocessor, accessing the memory MEM.
  • the buffer B will preferably be implemented as a SRAM.
  • the FIFO (First-in First-out) principle will be employed to organize the data flow of the data stream through the buffer. Additionally, there may be more then a single buffer implemented in the system. One reason for that would be a differentiation between many streams, and therefore implementing one buffer per single stream.
  • the network constitutes a PCI-Express network.
  • the basic concept of a PCI-Express network is described in "PCI Express Base Specification, Revision 1.0", PCI-SIG, July 2002, www.pcisig.org.
  • Fig. 2 shows a block diagram of a streaming memory controller SMC according to a first embodiment.
  • the streaming memory controller SMC comprises a PCI- Express interface PI, a streaming memory unit SMU and further interface MI which serves as interlace to an external SDRAM memory.
  • the streaming memory unit SMU comprises a buffer manager unit BMU and a buffer B, which may be implemented as a SRAM memory.
  • the streaming memory unit SMU that implements buffering in SRAM is together with the buffer manager BMU used for buffering an access from the network N via PCI-Express Interface to the SDRAM.
  • the buffer manager unit BMU serves to react to read or write accesses to SDRAM from the PCI-Express Interface, to manage the buffers (update pointer's registers) and to relay data from/to buffers (SRAM) and from/to SDRAM.
  • the data is stored together in one input-output buffer.
  • This single input/output buffer is associated with a set of four or eight pointers located in separate registers that are used to point to read and write addresses of the input-output buffer.
  • This single buffer including the set of 4/8 pointers/addresses registers implements shared write- back and pre-fetch buffering that otherwise was treated completely independent.
  • the buffering management and the buffers according to the first embodiment can be dynamically configured (at runtime).
  • the data is not stored in the background memory, there is only one buffer that serves read and write accesses and implements prefetch and write-back buffering.
  • this single buffer is dynamically, during run-time, divided into two parts, namely a pre-fetch and a write-back part. Advantages of this solution are a simpler management of buffers and a better memory utilization.
  • the buffering management is performed in two operation modes.
  • the first operation mode 1OM a single input/output buffer is provided.
  • the buffer management of this single buffer in the first operation mode 1OM is performed based on four pointers stored in the buffer management unit BMU, i.e. the buffer management unit BMU comprises a start address register SAR, an end address register EAR as well as a read pointer register RP and a write pointer register WP.
  • the single input/output buffer B is divided into a pre-fetch buffer PFB and a write-back buffer WBB.
  • the buffer management is performed by the buffer manager BMU based on eight pointers, i.e. the buffer managing unit BMU comprises a start address register SAR, an end address register EAR, a pre-fetch start register PFSR, a pre-fetch end register PFER, a pre-fetch read pointer PFRP, a pre-fetch write pointer PFWP, a write-back read pointer register WBRP and a write-back write pointer register WBWP.
  • Buffering in the streaming memory controller SMC is done to form bursts and to enable burst mode access to DRAM. Therefore, read/write buffers are provided and are implemented in SRAM, i.e. the buffer B. These buffers accumulate packets and form burst. Initially these read and write buffers are implemented in a single buffer and this buffer itself acts as a FIFO buffer and the external DRAM is bypassed. When this buffer becomes full it is split into separate read and write buffer. Then read requests are pre-fetched into this buffer so that read requests are serviced within a latency bound. Write buffers accumulate packets until one full page is accumulated. These write buffers form burst, and transfer data to DRAM, i.e. write back, using burst mode access.
  • Fig. 3 shows a block diagram of a streaming memory unit SMU of Fig. 2.
  • a logical view of a multi-stream buffering is shown.
  • Each of the streams ST1-ST4 are associated to a separate buffer. These buffers are divided into two parts when the data accesses to the external SDRAM is required.
  • an arbiter ARB is provided which performs the arbitration in combination with a multiplexer MUX.
  • Fig. 4 shows the content of a SRAM buffer of Fig. 3 during a first operation mode 1OM.
  • the buffer manager unit BMU will allocate a certain amount of a memory space for the buffer.
  • the buffer can contain 14 words.
  • the buffer B will also write the start and end address SA, EA for that buffer in separate registers (2 configuration registers, namely start address register SAR and end address register EAR).
  • the buffer manager BMU also maintains two counters, read counter (read pointer register RR) and write counter (write pointer register WP). These read and write counters or registers, multiplied by word size of the buffer, work as an offset that is to be added to the start address SA of the buffer, to get the address of memory where the data has to be accessed.
  • the buffer requires 4 pointers, the buffer start and the buffer end addresses stored in the start address register SAR and the end address register EAR, respectively , as well as the read and write addresses or read pointer RP and write pointer WP to implement the buffer management.
  • the data is only buffered in the buffer B and not in the background memory (like a SDRAM). Accordingly, read and write accesses to the buffer manager unit BMU will cause the read and write pointers to dynamically change (increase) wrapping (resetting to the buffer begin) at the end of the buffer.
  • Fig. 5 shows the content of a SRAM buffer of Fig. 3 during a second operation mode 2OM. If the need occurs to store data to the external SDRAM because for example the buffer is full, or nearly full, the buffer will be split into two parts, namely the pre-fetch and the write-back part PFB, WBB. This may occur at arbitrary moment. The two parts will be dynamically allocated, each of the same size, however not necessarily aligned with the buffer boundaries. In the case of Fig. 5, there 8 pointers (registers), i.e. 4 per each subpart are required.
  • the required pointers or registers are a start address register SAR for storing a start address SA of the buffer B, an end address register EAR for storing an end address EA of the buffer B, a pre-fetch start address register PFSR for storing a pre-fetch start address
  • PFSA pre-fetch end address register PFER for storing a pre-fetch end address PFEA
  • a prefetch read pointer register PFRP for storing a pre-fetch read pointer PFR
  • a pre-fetch write pointer register PFWP for storing a pre-fetch write pointer PFW
  • a write-back read pointer register WBRP for storing a write-back read pointer WBR
  • a write-back write pointer register WBWP for storing a write-back write pointer WBW.
  • the buffer manager unit BMU is designed for a joint-buffer management.
  • the read and write counters are 'mod N' counters, i.e. they count up to N and then restarts from 0, wherein
  • N (EA - SA) / Buffer_Word size.
  • Fig. 6 shows a diagram of the different states of a Finite State Machine (FSM) of the buffer manager BMU in particularly for multiple buffers.
  • FSM Finite State Machine
  • a transition from one state to another will occur depending upon the present state and the input to streaming memory controller SMC.

Landscapes

  • Engineering & Computer Science (AREA)
  • Theoretical Computer Science (AREA)
  • Physics & Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • General Physics & Mathematics (AREA)
  • Information Transfer Systems (AREA)
  • Communication Control (AREA)
  • Computer And Data Communications (AREA)

Abstract

A memory controller (SMC) is provided for coupling a memory (MEM) to a network (N; IM). The memory controller (SMC) comprises a first interface (PI) for connecting the memory controller (SMC) to the network (N; IM). The first interface (PI) is arranged for receiving and transmitting data streams (STl -ST4). A streaming memory unit (SMU) is coupled to the first interface (PI) for controlling data streams (STl -ST4) between the network (N; IM) and the memory (MEM). Said streaming memory unit (SMU) comprises a buffer (B) for temporarily storing at least part of the data streams (STl -ST4). A buffer managing unit (BMU) is provided for managing a temporarily storing of data streams (STl- ST4) in the buffer (B) in a first and second operation mode (1OM; 2OM). In the first operation mode (1OM), data from the data streams (STl -ST4) to be stored in the memory (MEM) are temporarily stored in the buffer (B) until a portion of the buffer (B) is occupied. In the second operation mode (2OM), after the portion of the buffer (B) is occupied, the buffer managing unit (BMU) divides the buffer (B) into a pre-fetch buffer (PFB) for buffering pre-fetched data from the memory (MEM) and a write-back buffer (WBB) for buffering data to be written back to the memory (MEM).

Description

Memory controller and method for coupling a network and a memory
The present invention relates to a memory controller, and method for coupling a network and a memory.
The complexity of advanced mobile and portable devices increases. The ever more demanding applications of such devices, the complexity, flexibility and programmability requirements intensify data exchange inside the devices. The devices implementing such applications often consist of several functions or processing blocks, here called subsystems. These subsystems typically are implemented as separate ICs, each having a different internal architecture that consists of local processors, busses, and memories, etc. Alternatively, various subsystems, may be integrated on an IC. At system level, these subsystems communicate with each other via a top-level interconnect, that provides certain services, often with real-time support. As an example of subsystems in a mobile phone architecture we can have, among others, base-band processor, display, media processor, or storage element. A PCI Express network is an example of a system level interconnect, providing services like isochronous data transport and flow control. For support of multimedia applications, these subsystems exchange most of the data in a streamed manner. As an example of data streaming, reference is made to read-out of an MP3 encoded audio file from the local storage by a media-processor and sending the decoded stream to speakers. Such communication can be described as a graph of processes connected via FIFO buffers, often referred to as Kahn process networks. The Kahn process network can be mapped on the system architecture, as described in E.A. de Kock et al., "YAPI: Application modeling for signal processing systems". In Proc. of the 37th. Design Automation Conference, Los Angeles, CA, June 2000, pages 402^405. IEEE, 2000. In such an architecture the processes are mapped onto the subsystems, FIFO buffers on memories, and communications onto the system-level interconnect. Buffering is essential in a proper support of data streaming between the involved processes. It is quite natural to use FIFO buffers for streaming, and it is in accordance to (bounded) Kahn process network models of streaming application. With increased number of multimedia applications that can run simultaneously the number of processes, real-time streams, as well as the number of associated FIFOs, substantially increases.
Within many systems-on-chip (SoC) and microprocessor systems background memory (DRAM) are used for buffering of data. When the data is communicated in a streaming manner, and buffered as a stream in the memory, pre-fetch buffering can be used. This means that the data from the SDRAM is read beforehand and kept in a special (prefetch) buffer. When the read request arrives it can be served from local pre-fetch buffer, usually implemented in on-chip SRAM, without latency otherwise introduced by background memory (DRAM). This is similar to known caching techniques of random data for processors. For streaming, a contiguous (or better to say a predictable) addressing of data is used in a pre-fetch buffer, rather then a random address used in a cache. Reference: J. L. Hennessy and D. A. Patterson "Computer Architecture ~ A Quantitative Approach"
On the other hand, due to DRAM technology, it is better to access (read or write) DRAM in bursts. Therefore, often a write-back buffer is implemented, which gathers many single data accesses into a burst of accesses of a certain size. Once the initial processing is done for the first DRAM access, every next data word, with address in a certain relation to the previous one (e.g. next, previous - depending on a burst policy), accessed in every next cycle of the memory can be stored or retrieved without any further delay (within 1 cycle), for a specified number of accesses (2/4/8/full page). Therefore, for streaming accesses to memory, when addresses are increased or decreased in the same way for every access (e.g. contiguous addressing) the burst access provides the best performance at the lowest power dissipation. For more information regarding the principles of a DRAM memory, please refer to Micron's 128-Mbit DDRRAM specifications, http://download.micron.eom/pdf/datasheets/dram/ddr/l 28MbDDRx4x8xl 6.pdf, which is incorporated by reference.
It is an object of the invention to provide a memory controller for coupling a network and a memory as well as a method for coupling a network and a memory, which together with the memory improve the predictable behavior of the communication between the network and the memory . This object is solved by a memory controller according to claim 1 and by a method for coupling a network and a memory according to claim 6.
Therefore, a memory controller is provided for coupling a memory to a network. The memory controller comprises a first interface for connecting the memory controller to the network. The first interface is arranged for receiving and transmitting data streams. A streaming memory unit is coupled to the first interface for controlling data streams between the network and the memory. Said streaming memory unit comprises a buffer for temporarily storing at least part of the data streams. A buffer managing unit is provided for managing a temporarily storing of data streams in the buffer in a first and second operation mode. In the first operation mode, data from the data streams to be stored in the memory are temporarily stored in the buffer until a portion of the buffer is occupied. In the second operation mode, after the portion of the buffer is occupied, the buffer managing unit divides the buffer into a pre-fetch buffer for buffering pre-fetched data from the memory and a write-back buffer for buffering data to be written back to the memory. Accordingly, with such a memory controller the buffering management and the buffers can be dynamically configured. When the data is not stored in the background memory but buffered in the buffer of the streaming memory controller, there is only one buffer that serves read and write accesses and implements pre-fetch and write-back buffering. On the other hand, when the data is stored in the background memory this single buffer is dynamically, during run-time, divided into two parts, namely a pre-fetch and a write-back part. Therefore, simpler management of buffers and a better memory utilization is achieved. According to an aspect of the invention, the first interface is implemented as a PCI-Express interface. With such an interface, the memory controller can be coupled to a PCI-Express network. According to a further aspect of the invention, a second interface is coupled to the streaming memory unit for connecting the memory controller to the memory and for exchanging data with the memory in bursts. Accordingly, a further interface is provided such that the controller can exchange data with any memory operating in bursts, like a DRAM.
According to still a further aspect of the invention, in the first operation mode the buffer managing unit comprises a start address register for storing the start address of the buffer, an end address register for storing an end address of the buffer, a read pointer register for storing a read pointer of the buffer and a write pointer register for storing a write pointer of the buffer. In the second operation mode, the buffer managing unit comprises a start address register for storing a start address of the buffer, an end address register for storing the end address, a pre-fetch start address register for storing a pre-fetch start address, a pre-fetch end address register for storing the pre-fetch end address, a pre-fetch read pointer register for storing the pre-fetch read pointer, a pre-fetch write pointer register for storing a pre-fetch write pointer, a write-back read pointer register for storing a write-back read pointer, and a write-back write pointer register for storing a write-back write pointer. The buffering within the memory controller can therefore be accomplished by providing four pointers in the first operation mode and by eight pointers in the second operation mode, such that a simple implementation of the buffer managing is provided.
The invention also relates to a method for coupling a network and a memory. Data streams are received and transmitted via a first interface for connecting a memory controller to the network. The data streams between the network and the memory are controlled by a streaming memory unit. At least part of the data streams is temporarily stored in a buffer. The temporarily storing of the data streams in a buffer is managed in a first and second operation mode. In the first operation mode data from the data streams to be stored in the memory is temporarily stored until a portion of the buffer is occupied. In the second operation mode after the portion of the buffer is occupied, the buffer is divided into a prefetch buffer for buffering pre-fetch data from the memory and a write-back buffer for buffering data to be written back to the memory.
Other aspects of the invention are subject to the dependent claims.
These and other aspects of the invention are apparent from and will be elucidated with reference to the embodiments described hereinafter and with respect to the following figures. Fig. 1 shows a block diagram of the basic architecture of a system on chip according to the invention;
Fig. 2 shows a block diagram of a streaming memory controller according to a first embodiment;
Fig. 3 shows a block diagram of a streaming memory unit of Fig. 2; Fig. 4 shows the content of a SRAM buffer of Fig. 3 during a first operation mode;
Fig. 5 shows the content of a SRAM buffer of Fig. 3 during a second operation mode; and
Fig. 6 shows a state diagram of a buffer managing unit of Fig. 2.
Fig. 1 shows a block diagram of the basic architecture of a system on chip according to the invention. The system on chip comprises at least one processing unit P (please note that only one processing unit is shown in Fig. 1) or subsystem, an interconnect means IM for coupling the processing units P and any external devices. The processing units P and the interconnect means IM can be considered as a network N. Alternatively, the interconnect means IM may be considered as a network N. The communication over the interconnect means IM and between the processing units P is performed in a streaming manner. An external memory MEM is coupled to the interconnect means IM or the network N via a memory controller SMC. The external memory can be implemented as a SDRAM. The memory controller MC serves to translate data format and the addresses format of the interconnect means IM or the network into data format and address format of the memory MEM. To implement the stream based communication buffers are provided. The buffer can be placed in a memory controller SMC close to the memory MEM. However, the buffer may also be placed in the interconnect infrastructure (e.g. in an arbiter or in a bridge BR), or even close to the subsystem P, which may be implemented as dedicated ASIC or a microprocessor, accessing the memory MEM. The buffer B will preferably be implemented as a SRAM. Preferably, the FIFO (First-in First-out) principle will be employed to organize the data flow of the data stream through the buffer. Additionally, there may be more then a single buffer implemented in the system. One reason for that would be a differentiation between many streams, and therefore implementing one buffer per single stream.
Preferably, the network constitutes a PCI-Express network. The basic concept of a PCI-Express network is described in "PCI Express Base Specification, Revision 1.0", PCI-SIG, July 2002, www.pcisig.org.
Fig. 2 shows a block diagram of a streaming memory controller SMC according to a first embodiment. The streaming memory controller SMC comprises a PCI- Express interface PI, a streaming memory unit SMU and further interface MI which serves as interlace to an external SDRAM memory. The streaming memory unit SMU comprises a buffer manager unit BMU and a buffer B, which may be implemented as a SRAM memory. The streaming memory unit SMU that implements buffering in SRAM, is together with the buffer manager BMU used for buffering an access from the network N via PCI-Express Interface to the SDRAM. The buffer manager unit BMU serves to react to read or write accesses to SDRAM from the PCI-Express Interface, to manage the buffers (update pointer's registers) and to relay data from/to buffers (SRAM) and from/to SDRAM.
According to the first embodiment the data, previously stored separately in a pre-fetch and write-back buffer, is stored together in one input-output buffer. This single input/output buffer is associated with a set of four or eight pointers located in separate registers that are used to point to read and write addresses of the input-output buffer. This single buffer including the set of 4/8 pointers/addresses registers implements shared write- back and pre-fetch buffering that otherwise was treated completely independent.
The buffering management and the buffers according to the first embodiment can be dynamically configured (at runtime). When the data is not stored in the background memory, there is only one buffer that serves read and write accesses and implements prefetch and write-back buffering. On the other hand, when the data is stored in the background memory this single buffer is dynamically, during run-time, divided into two parts, namely a pre-fetch and a write-back part. Advantages of this solution are a simpler management of buffers and a better memory utilization.
In other words, the buffering management is performed in two operation modes. In the first operation mode 1OM, a single input/output buffer is provided. The buffer management of this single buffer in the first operation mode 1OM is performed based on four pointers stored in the buffer management unit BMU, i.e. the buffer management unit BMU comprises a start address register SAR, an end address register EAR as well as a read pointer register RP and a write pointer register WP.
In the second operation mode 2OM, the single input/output buffer B is divided into a pre-fetch buffer PFB and a write-back buffer WBB. The buffer management is performed by the buffer manager BMU based on eight pointers, i.e. the buffer managing unit BMU comprises a start address register SAR, an end address register EAR, a pre-fetch start register PFSR, a pre-fetch end register PFER, a pre-fetch read pointer PFRP, a pre-fetch write pointer PFWP, a write-back read pointer register WBRP and a write-back write pointer register WBWP.
Buffering in the streaming memory controller SMC is done to form bursts and to enable burst mode access to DRAM. Therefore, read/write buffers are provided and are implemented in SRAM, i.e. the buffer B. These buffers accumulate packets and form burst. Initially these read and write buffers are implemented in a single buffer and this buffer itself acts as a FIFO buffer and the external DRAM is bypassed. When this buffer becomes full it is split into separate read and write buffer. Then read requests are pre-fetched into this buffer so that read requests are serviced within a latency bound. Write buffers accumulate packets until one full page is accumulated. These write buffers form burst, and transfer data to DRAM, i.e. write back, using burst mode access.
Fig. 3 shows a block diagram of a streaming memory unit SMU of Fig. 2. Here, a logical view of a multi-stream buffering is shown. Each of the streams ST1-ST4 are associated to a separate buffer. These buffers are divided into two parts when the data accesses to the external SDRAM is required. As only one stream at the time can access the external SDRAM an arbiter ARB is provided which performs the arbitration in combination with a multiplexer MUX. Fig. 4 shows the content of a SRAM buffer of Fig. 3 during a first operation mode 1OM. During the initialization, the buffer manager unit BMU will allocate a certain amount of a memory space for the buffer. Here, the buffer can contain 14 words. The buffer B will also write the start and end address SA, EA for that buffer in separate registers (2 configuration registers, namely start address register SAR and end address register EAR). The buffer manager BMU also maintains two counters, read counter (read pointer register RR) and write counter (write pointer register WP). These read and write counters or registers, multiplied by word size of the buffer, work as an offset that is to be added to the start address SA of the buffer, to get the address of memory where the data has to be accessed. Hence, the buffer requires 4 pointers, the buffer start and the buffer end addresses stored in the start address register SAR and the end address register EAR, respectively , as well as the read and write addresses or read pointer RP and write pointer WP to implement the buffer management. Here, the data is only buffered in the buffer B and not in the background memory (like a SDRAM). Accordingly, read and write accesses to the buffer manager unit BMU will cause the read and write pointers to dynamically change (increase) wrapping (resetting to the buffer begin) at the end of the buffer.
Fig. 5 shows the content of a SRAM buffer of Fig. 3 during a second operation mode 2OM. If the need occurs to store data to the external SDRAM because for example the buffer is full, or nearly full, the buffer will be split into two parts, namely the pre-fetch and the write-back part PFB, WBB. This may occur at arbitrary moment. The two parts will be dynamically allocated, each of the same size, however not necessarily aligned with the buffer boundaries. In the case of Fig. 5, there 8 pointers (registers), i.e. 4 per each subpart are required.
The required pointers or registers are a start address register SAR for storing a start address SA of the buffer B, an end address register EAR for storing an end address EA of the buffer B, a pre-fetch start address register PFSR for storing a pre-fetch start address
PFSA, a pre-fetch end address register PFER for storing a pre-fetch end address PFEA, a prefetch read pointer register PFRP for storing a pre-fetch read pointer PFR, a pre-fetch write pointer register PFWP for storing a pre-fetch write pointer PFW, a write-back read pointer register WBRP for storing a write-back read pointer WBR, and a write-back write pointer register WBWP for storing a write-back write pointer WBW.
The buffer manager unit BMU is designed for a joint-buffer management. The read and write counters are 'mod N' counters, i.e. they count up to N and then restarts from 0, wherein
N = (EA - SA) / Buffer_Word size.
For a write request for the Buffer, data is written at address
= SA + (WP * Buffer_Word_size)
For a read request for the Buffer, data is fetched from address
= SA + (RP * Buffer Word size)
The buffer B is empty and reading is blocked for the buffer B, when (WP - RP) = O,
The buffer B is full and writing is blocked for the buffer B when (WP - RP) mod N = N-I.
Fig. 6 shows a diagram of the different states of a Finite State Machine (FSM) of the buffer manager BMU in particularly for multiple buffers. Here, different states are indicated with different values of S, and the state transitions or conditions are labeled as C. In a situation where the buffer remains in the same state (i.e. multiple accesses for single request) a self loop is required in the state diagram, however this is not depicted in Fig. 6 in order to for simplify of the picture. The state S=O corresponds to a Reset state. The state S=I relates to a state having a request for any buffer. Here the type of request is to be determined. The state S=2 relates to a request, which is a read to the SRAM read while the SRAM buffer is not split into read and write buffer. The state S=3 relates to a request which is a write to the SRAM while the SRAM buffer is not split into read and write buffer. The state S=4 relates to a request which is a read to the SRAM while the SRAM buffer has been split into read/write buffer. The state S=5 relates to a request, which is a write to the SRAM buffer while the SRAM buffer has been split into read/write buffer. The state S=6 relates to a data write into the external SDRAM from the write buffer of SRAM buffer. The state S=7 relates to a data read from the external SDRAM and the data is written into the SRAM read (pre-fetch) buffers. The state S=8 relates to a state to wait until memory write has finished (here, wait for one clock cycle). The state S=9 relates to an arbitration, while the other request is in progress (here wait for multiple clock cycles).
A transition from one state to another will occur depending upon the present state and the input to streaming memory controller SMC. The condition C=O relates to an unconditional transition right after the end of the state. The condition C=I relates to a conditional transition right after the end of transaction processing (which may take multiple memory accesses) The conditions C=2/3/4/5/6/7 relate to the execution of appropriate memory access (refer to S=2/3/4/5/6/7). The condition C=8 relate to a condition, where a request arrived when another request is processed.
For example, a state transition from S=O to S=I occurs for a condition C=O. A state transition from S=I to S=2 occurs for a condition C=2. A state transition from S=2 to S=I occurs for a condition C=I. A state transition from S=I to S=3 occurs for a condition C=3. A state transition from S=3 to S=8 occurs for a condition C=I. A state transition from S=I to S=4 occurs for a condition C=4. A state transition from S=4 to S=I occurs for a condition C=I. A state transition from S=I to S=5 occurs for a condition C=5. A state transition from S=5 to S=8 occurs for a condition C=I. A state transition from S=I to S=7 occurs for a condition C=7. A state transition from S=7 to S=I occurs for a condition C=I. A state transition from S=8 to S=I occurs for a condition C=O. A state transition from S=I to S=8 occurs for a condition C=8. A state transition from S=9 to S=I occurs for a condition C=O.
It should be noted that the above-mentioned embodiments illustrate rather than limit the invention, and that those skilled in the art will be able to design many alternative embodiments without departing from the scope of the appended claims. In the claims, any reference signs placed between parentheses shall not be construed as limiting the claim. The word "comprising" does not exclude the presence of elements or steps other than those listed in a claim. The word "a" or "an" preceding an element does not exclude the presence of a plurality of such elements. In the device claim in numerating several means, several of these means can be embodied by one and the same item of hardware. The mere fact that certain measures are resided in mutually different dependent claims does not indicate that a combination of these measures cannot be used to advantage.
Furthermore, any reference signs in the claims shall not be constitute as limiting the scope of the claims.

Claims

CLAIMS:
1. A memory controller (SMC) for coupling a memory (MEM) to a network (N;
IM) comprising: a first interface (PI) for connecting the memory controller (SMC) to the network (N; IM), the first interface (PI) being arranged for receiving and transmitting data streams (STl -ST4); and a streaming memory unit (SMU) coupled to the first interface (PI) for controlling data streams (STl -ST4) between the network (N; IM) and the memory (MEM), said streaming memory unit (SMU) comprises a buffer (B) for temporarily storing at least part of the data streams (STl -ST4), and a buffer managing unit (BMU) for managing a temporarily storing of data streams (ST1-ST4) in the buffer (B) in a first and second operation mode (1OM, 2OM); wherein in the first operation mode (1OM), data from the data streams (STl- ST4) to be stored in the memory (MEM) are temporarily stored in the buffer (B) until a portion of the buffer (B) is occupied; wherein in the second operation mode (2OM), after the portion of the buffer
(B) is occupied, the buffer managing unit (BMU) divides the buffer (B) into a pre-fetch buffer (PFB) for buffering pre-fetched data from the memory (MEM) and a write-back buffer (WBB) for buffering data to be written back to the memory (MEM).
2. A memory controller according to claim 1, wherein the first interface (PI) is a
PCI express interface.
3. A memory controller according to claim 1 or 2, iurther comprising a second interface (MI) coupled to a streaming memory unit (SMU) for connecting the memory controller (SMC) to the memory (MEM), and for exchanging data with the memory (MEM) in bursts.
4. A memory controller according to claim 1, 2 or 3, wherein the buffer managing unit (BMU) comprises, in the first operation mode (1OM), a start address register (SAR) for storing a start address (SA) of the buffer (B), an end address register (EAR) for storing an end address (EA) of the buffer (B), a read pointer register (RP) for storing a read pointer (RP) for the buffer, and a write pointer register (WP) for storing a write pointer (WP) for the buffer (B); and - the buffer managing unit (BMU) comprises, in the second operation mode
(2OM), a start address register (SAR) for storing a start address (SA) of the buffer (B), an end address register (EAR) for storing an end address (EA) of the buffer (B), a pre-fetch start address register (PFSR) for storing a pre-fetch start address (PFSA), a pre-fetch end address register (PFER) for storing a pre-fetch end address (PFEA), a pre-fetch read pointer register (PFRP) for storing a pre-fetch read pointer (PFR), a pre-fetch write pointer register (PFWP) for storing a pre-fetch write pointer (PFW), a write-back read pointer register (WBRP) for storing a write-back read pointer (WBR), and a write-back write pointer register (WBWP) for storing a write-back write pointer (WBW).
5. A memory controller according to claim 1, wherein the buffer managing unit (BMU) is adapted to determine the transition from the first to the second operation mode (1OM, 2OM) dynamically.
6. A method for coupling a memory (MEM) to a network (N; IM), comprising the steps of: receiving and transmitting data streams via a first interface (PI) for connecting a memory controller (SMC) to the network (N; IM); controlling the data streams between the network (N; IM) and the memory (MEM) by a streaming memory unit (SMU); - temporarily storing at least part of the data streams (STl -ST4) in a buffer (B); managing the temporarily storing of the data streams (STl -ST4) in a buffer in a first and second operation mode (1OM, 2OM); in the first operation mode (1OM) temporarily storing data from the data streams (STl -ST4) to be stored in the memory (MEM) until a portion of the buffer (B) is occupied, in the second operation mode (2OM) after the portion of the buffer is occupied, dividing the buffer (B) into a pre-fetch buffer (PFB) for buffering pre-fetch data from the memory (MEM) and a write-back buffer (WBB) for buffering data to be written back to the memory (MEM).
7. Data processing system comprising a network (N) having processing units (P), and an interconnect means (IM) for coupling the processing units (P), and a memory controller (SMC) according to one of the claims 1 to 5.
PCT/IB2006/051837 2005-06-09 2006-06-09 Memory controller and method for coupling a network and a memory WO2006131899A2 (en)

Priority Applications (3)

Application Number Priority Date Filing Date Title
US11/917,018 US8037254B2 (en) 2005-06-09 2006-06-09 Memory controller and method for coupling a network and a memory
JP2008515369A JP2008544348A (en) 2005-06-09 2006-06-09 Memory controller and network and memory coupling method
EP06756095A EP1894106A2 (en) 2005-06-09 2006-06-09 Memory controller and method for coupling a network and a memory

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
EP05105082.1 2005-06-09
EP05105082 2005-06-09

Publications (2)

Publication Number Publication Date
WO2006131899A2 true WO2006131899A2 (en) 2006-12-14
WO2006131899A3 WO2006131899A3 (en) 2007-04-26

Family

ID=37075059

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/IB2006/051837 WO2006131899A2 (en) 2005-06-09 2006-06-09 Memory controller and method for coupling a network and a memory

Country Status (5)

Country Link
US (1) US8037254B2 (en)
EP (1) EP1894106A2 (en)
JP (1) JP2008544348A (en)
CN (1) CN100557584C (en)
WO (1) WO2006131899A2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008257596A (en) * 2007-04-06 2008-10-23 Nec Corp Data pre-fetch device, data pre-fetch method, and data pre-fetch program

Families Citing this family (5)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US10217270B2 (en) * 2011-11-18 2019-02-26 Intel Corporation Scalable geometry processing within a checkerboard multi-GPU configuration
WO2013074124A1 (en) * 2011-11-18 2013-05-23 Intel Corporation Scalable geometry processing within a checkerboard multi-gpu configuration
ITRM20130728A1 (en) * 2013-12-31 2015-07-01 Prb S R L COMMAND EXCHANGE METHOD VIA USB DISK AND RELATED DEVICES THAT ALLOW IMPLEMENTATION.
CN107453999B (en) * 2016-05-31 2020-10-02 新华三技术有限公司 Network equipment and network message forwarding method
TWI839123B (en) * 2023-02-20 2024-04-11 神雲科技股份有限公司 The management system supporting platform firmware recovery and firmware recovery method thereof

Family Cites Families (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US5777657A (en) * 1994-10-14 1998-07-07 Asahi Kogaku Kogyo Kabushiki Kaisha Thermal printer and thermal printer head driving system
US6163818A (en) 1998-08-27 2000-12-19 Xerox Corporation Streaming memory controller for a PCI bus
US20020046251A1 (en) * 2001-03-09 2002-04-18 Datacube, Inc. Streaming memory controller
DE10148767A1 (en) * 2001-10-02 2003-04-17 Thomson Brandt Gmbh Temporary storage of data packets for transmission via unidirectional connection involves filling unoccupied part of buffer memory per data section with data from second type of data packet
US20050253858A1 (en) * 2004-05-14 2005-11-17 Takahide Ohkami Memory control system and method in which prefetch buffers are assigned uniquely to multiple burst streams
US20100198936A1 (en) 2004-12-03 2010-08-05 Koninklijke Philips Electronics N.V. Streaming memory controller
CN101198941A (en) 2005-06-13 2008-06-11 Nxp股份有限公司 Memory controller

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
ARTUR BURCHARD; EWA HEKSTRA-NOWACKA; ATUL CHAUHAN: "A Real-Time Streaming Memory Controller", DESIGN, AUTOMATION AND TEST IN EUROPE, DATE'05, PROCEEDINGS MUNICH, 7 March 2005 (2005-03-07), pages 20 - 25

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2008257596A (en) * 2007-04-06 2008-10-23 Nec Corp Data pre-fetch device, data pre-fetch method, and data pre-fetch program

Also Published As

Publication number Publication date
WO2006131899A3 (en) 2007-04-26
US20080201537A1 (en) 2008-08-21
EP1894106A2 (en) 2008-03-05
JP2008544348A (en) 2008-12-04
CN101194241A (en) 2008-06-04
CN100557584C (en) 2009-11-04
US8037254B2 (en) 2011-10-11

Similar Documents

Publication Publication Date Title
US9141568B2 (en) Proportional memory operation throttling
EP1820309B1 (en) Streaming memory controller
TWI466060B (en) Translation unit,display pipe,method and apparatus of streaming translation in display pipe
US9280290B2 (en) Method for steering DMA write requests to cache memory
US8065493B2 (en) Memory controller and method for coupling a network and a memory
US20080276056A1 (en) Efficient Point-To-Point Enqueue And Dequeue Communications
US7555576B2 (en) Processing apparatus with burst read write operations
US20120137090A1 (en) Programmable Interleave Select in Memory Controller
US8037254B2 (en) Memory controller and method for coupling a network and a memory
US20050253858A1 (en) Memory control system and method in which prefetch buffers are assigned uniquely to multiple burst streams
EP1894108A2 (en) Memory controller
US8706925B2 (en) Accelerating memory operations blocked by ordering requirements and data not yet received
US20060282623A1 (en) Systems and methods of accessing common registers in a multi-core processor
JP2005508549A (en) Improved bandwidth for uncached devices
JP5058116B2 (en) DMAC issue mechanism by streaming ID method
JP2003099324A (en) Streaming data cache for multimedia processor
JP2008509470A (en) Controller and method for controlling communication between processor and external peripheral device
WO1998013767A9 (en) Multimedia data controller
WO2010020948A1 (en) Multiprocessor communication system
KR20070020391A (en) Dmac issue mechanism via streaming id method

Legal Events

Date Code Title Description
121 Ep: the epo has been informed by wipo that ep was designated in this application
WWE Wipo information: entry into national phase

Ref document number: 2006756095

Country of ref document: EP

WWE Wipo information: entry into national phase

Ref document number: 200680020140.9

Country of ref document: CN

WWE Wipo information: entry into national phase

Ref document number: 2008515369

Country of ref document: JP

WWE Wipo information: entry into national phase

Ref document number: 11917018

Country of ref document: US

NENP Non-entry into the national phase

Ref country code: DE

WWW Wipo information: withdrawn in national office

Country of ref document: DE

WWP Wipo information: published in national office

Ref document number: 2006756095

Country of ref document: EP