EP1350168A2 - Verfahren und vorrichtung zur verminderung der latenz in einem speichersystem - Google Patents
Verfahren und vorrichtung zur verminderung der latenz in einem speichersystemInfo
- Publication number
- EP1350168A2 EP1350168A2 EP01998894A EP01998894A EP1350168A2 EP 1350168 A2 EP1350168 A2 EP 1350168A2 EP 01998894 A EP01998894 A EP 01998894A EP 01998894 A EP01998894 A EP 01998894A EP 1350168 A2 EP1350168 A2 EP 1350168A2
- Authority
- EP
- European Patent Office
- Prior art keywords
- buffer
- memory
- data
- row
- address
- 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
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/02—Addressing or allocation; Relocation
- G06F12/08—Addressing or allocation; Relocation in hierarchically structured memory systems, e.g. virtual memory systems
- G06F12/0802—Addressing of a memory level in which the access to the desired data or data block requires associative addressing means, e.g. caches
- G06F12/0893—Caches characterised by their organisation or structure
Definitions
- the invention generally relates to a method for transferring data between a central processing unit (CPU) and main memory in a computer system. More specifically, the invention describes various implementations for minimizing the latency in accessing main memory by using a latency hiding mechanism.
- CPU central processing unit
- main memory main memory
- Microprocessor speed and computing power have continuously increased due to advancements in technology. This increase in computing power depends on transferring data and instructions between a main microprocessor and the main memory at the processor speed. Unfortunately, current memory systems cannot offer the processor its data at the required rate.
- the processor has to wait for the slow memory system by using wait states, thereby causing the processor to run at a much slower speed than its rated speed. This problem degrades the overall performance of the system. This trend is worsening because of the growing gap between processor speeds and memory speeds. It may soon reach a point where any performance improvements in the processor cannot produce a significant overall system performance gain. The memory system thus becomes the limiting factor to system performance.
- Fraction_enhanced is the proportion of time the enhancement is used
- Speedup_enhanced is the speedup of the portion enhanced compared to the original performance of that portion.
- the processor's enhanced speed can only be taken advantage of 50% of the time.
- the well known cache memory system has been used ' to solve this problem by moving data most likely to be accessed by the processor to a fast cache memory that can match the processor speed.
- Various approaches to creating a cache hierarchy consisting of a first level cache (LI cache) and a second level cache (L2 cache) have been proposed.
- the data most likely to be accessed by the processor should be stored in the fastest cache level.
- both Level 1 (LI) and Level 2 (L2) caches are implemented with static random access memory (SRAM) technology due to its speed advantage over dynamic random access memory (DRAM) .
- SRAM static random access memory
- DRAM dynamic random access memory
- Temporal locality refers to the concept that the data next required by the processor has a high probability of being required again soon for. most average processor operations.
- Spatial locality refers to the concept that the data next required by the processor has a high probability of being located next to the currently accessed data.
- Cache hierarchy therefore takes advantage of these two concepts by transferring from main memory data which is currently being accessed as well as data physically nearby.
- Level 2 cache is often included in the overall cache hierarchy. The purpose of Level 2 cache is to expand the amount of data available to the processor for fast access without increasing Level 1 cache, which is typically implemented on the same chip as the processor itself. Since the
- Level 2 cache is off-chip (i.e. not on the same die as the processor and Level 1 cache) , it can be larger and can run at a speed between the speed of the Level 1 cache and the main memory speed.
- both the cache and the main memory must be constantly updated so that the latest data is available to the processor. If the processor memory access is a read access, this means that the processor needs to read data or code from the memory. If this requested data or code is not to be found in the cache, then the cache contents have to be updated, a process generally requiring that some cache contents have to be replaced with data or code from main memory.
- the write-through technique involves writing data to both the cache and to main memory when the processor memory access is a write access and when the data being written is to be found in the cache. This technique ensures that, whichever data is accessed, either the cache contents or the main memory, the data accessed is identical.
- the write-back technique involves writing data only to the cache in a memory write access. To ensure coherence between the data in the cache and the data in main memory, the cache contents of a particular cache location are written to main memory when these cache contents are about to be overwritten. However, cache contents are not written to main memory if they have not been replaced by a memory write access.
- a flag bit is used to determine if the cache contents of a particular cache location have been replaced by a memory write access. If the cache contents have been replaced by a memory write access, the flag bit is set or is considered "dirty". Thus, if the flag bit of a particular cache location is "dirty", then the cache contents of that cache location have to be written to main memory prior to being overwritten with new data.
- Another approach for increasing the cache hit rate is by increasing its associativity. Associativity refers to the number of lines in the cache which are searched (i.e. checked for a hit) during a cache access. Generally, the higher the associativity, the higher the cache hit rate.
- a direct mapped cache system has a 1:1 mapping whereby during a cache access, only one line is checked for a hit.
- a fully associative cache is typically implemented using a content addressable memory (CAM) whereby all cache lines (and therefore all cache locations) are searched and compared simultaneously during a single cache access.
- CAM content addressable memory
- Page mode involves latching a row -address in the DRAM and maintaining it active, thereby effectively enabling a page of data to be stored in the sense amplifiers.
- the column address buffers are activated as soon as the Row Address Strobe RAS ⁇ signal is activated, and act as transparent latches, allowing internal column data fetch to occur before column address strobe.
- the enabling of the data output buffer is then accomplished when CAS ⁇ is activated.
- burst EDO mode allows a page of sequential data to be retrieved from the DRAM without having to provide a new address on every cycle.
- burst EDO mode is useful for graphics applications which require pages of sequential information, it is less useful for main memory applications which require random access to still be fully supportable.
- processors cannot fully utilize the new DRAM higher bandwidth because some scattered memory accesses do not map in the same active row, thereby obviating gains from using fast page mode; although new DRAM designs may have several banks, they are not in sufficient numbers for a typical processor environment with scattered memory accesses to have high page hit rates; current processors and systems use large caches (both first and second level) that intercept memory accesses to the DRAM thereby reducing the locality of these accesses - this further scatters the accesses and consequently further reduces page hit rates .
- cache systems to improve system performance have motivated further efforts to improve the performance of the main DRAM memory system.
- SDRAM Synchronous DRAM
- multiple SDRAM banks more than one active row can supply the processor with fast accesses from different parts of memory.
- these accesses have to be in an active row of a bank.
- relying solely on accessing multiple banks to increase memory bandwidth results in an overall limitation based on the number of banks that the memory can be divided into.
- CDRAM Cache DRAM
- SRAM-based cache SRAM-based cache inside the DRAM. Large blocks of data can thus be transferred from the cache to the DRAM array or from the DRAM to cache in a single clock cycle.
- this design suffers from problems of low cache hit rate inside the DRAM caused by the external intercepting caches, and poor data localities. It also adds complexity to the external system for controlling and operating the internal cache by requiring a cache tag, a comparator and a controller.
- Newer designs merge processor and DRAM by eliminating the intercepting cache problem and exposing the full DRAM bandwidth to the processor. This approach increases system complexity, mixes slow and fast technology, limits the space for the processor, and cannot fully utilize the high DRAM bandwidth because of the nature of scattered memory accesses used by the current programming model .
- the new Virtual Channel DRAM design from NEC uses 16 fully associative channels, implemented with fast SRAM, to track multiple code and data streams in use by various sources.
- Virtual Channel DRAM represents an extension of the page mode concept where the . one bank/one page restriction is removed.
- a CPU can for example access up to 16 Ik channels randomly allocated within a virtual channel DRAM bank.
- memory traffic between multiple devices can be sustained without causing repeated page allocation conflicts.
- the Virtual Channel Memory requires that the main memory location corresponding to each channel be tracked by the CPU, thereby complicating its controlling function.
- the CPU requires a predictive scheme for effective prefetching of data to the channels.
- Virtual Channel DRAM uses Fast Page mode to transfer data to channels and finally, like the Cache DRAM, VC DRAM is expensive due to the additional die area consumed by the associative buffers.
- the amount of cache provided may not be appropriate for some applications because the cache/DRAM ratio is usually fixed. For example, when main memory is upgraded, the additional cache may not be necessary so the system cost is unnecessarily high.
- software-based solutions have also been proposed such as using a software compiler to remap physical memory addresses in order to maximize DRAM bandwidth. While this is useful for specific applications that have predictable behaviour, it requires changing software, thereby causing compatibility problems.
- a memory controller controls a buffer which stores the most recently used addresses and associated data, but the data stored in the buffer is only a portion of a row of data (termed row head data) stored in main memory.
- both the buffer and main memory are accessed ' simultaneously. If the buffer contains the address requested, the buffer immediately begins to provide the associated row head data in a burst to the cache memory. Meanwhile, the same row address is activated in the main memory bank corresponding to the requested address found in the buffer. After the buffer provides the row head data, the remainder of the burst of requested data is provided by the main memory to the CPU. In this manner, a small amount of buffer memory can provide the functionality of a much larger amount of L2 cache.
- the present invention provides a method of retrieving data from a memory system, said method comprising: (a) receiving a read request for data contents of a
- the present invention provides a row head buffer circuit for latching a row head, a row head being a portion of a memory row stored in a memory bank, said latching circuit comprising: a row head buffer containing a plurality of row head entries, each row head entry corresponding to a row head in a memory bank; a plurality of row address latches, each row address latch latching a physical address of a row head entry contained in the row head buffer; a row address comparator for comparing row head entries with an incoming requested row address, wherein said buffer circuit compares an incoming row address requested by a memory controller with said plurality of row address latches, in the event an incoming requested row address matches one of said plurality of address latches, a row head data entry corresponding to a matching address latch is transmitted to said memory controller.
- the present invention provides a memory buffer subsystem comprising: at least one buffer bank having multiple buffer entries; and a buffer controller controlling said buffer subsystem, wherein each buffer entry comprises: an address field containing a memory address corresponding to a location in a main memory bank; a data field containing the first n bytes of data located at said main memory bank address; when said data located at said main memory bank address is requested by a CPU, said first n bytes of data is provided by said buffer subsystem to said CPU while the rest of said data is retrieved from said memory address in the main memory bank.
- the present invention provides a memory system comprising: at least one bank of main memory; a memory controller; a buffer; and a buffer controller, wherein said memory controller controls the at least one bank of main memory; said buffer contains a plurality of buffer entries, each buffer entry including an address portion and a data portion; said data portion comprises a first portion of data in the at least one bank of main memory , said address portion comprising an address referencing the memory location.
- Figure 1 is a schematic block diagram of a CPU- memory system according to the prior art
- Figure 2A is a schematic diagram of a buffer bank according to the invention.
- Figure 2B is a block diagram of a buffer controller controlling the buffer bank of Figure 2A;
- Figure 3A is a block diagram of a memory system implementing the buffer system separate from the memory controller;
- Figure 3B is a block diagram of a memory system implementing the buffer system as part of the main memory
- Figure 3C is a block diagram of a memory system implementing the buffer system as part of the CPU;
- Figure 3D is a block diagram of a memory system implementing the buffer system as part of the memory controller
- FIG. 4 is a detailed block diagram of an implementation of the invention.
- Figure 5 is a detailed block diagram of a variant of the implementation illustrated in Figure 4;
- Figure 6 is a flow chart detailing the steps in a method of memory access according to a first aspect of the invention
- Figure 7 is a flow chart detailing the steps in a method of memory access according to a second aspect of the invention.
- Figure 8 is a flow chart detailing the steps for a write access method to be used with the method illustrated in Figure 7;
- Figure 9 is a flow chart detailing the steps in a method of memory access according to a third aspect of the invention.
- Figure 10 is a flow chart detailing the steps in a variant of the method detailed in Figure 9.
- a conventional CPU-main memory system 10 is illustrated for the purposes of putting into context the discussion of the present invention.
- the system consists generally of a CPU 15, having a built-in Level 1 cache 17, a cache and main memory controller 20, a Level 2 cache 25, and a main memory 30.
- a host data bus 16 transfers data between CPU and main memory 30 and Level 2 cache 25.
- a ' host address bus 18 provides the memory controller 20 and the Level 2 cache 25 with address information.
- a data bus 21 and an address bus 22 connect the Level 2 cache to the host data 16 and address 18 buses under the control of the cache and memory controller 20 via control bus 23.
- the main memory 30 is coupled to the host data bus 16 via memory data bus 26 and receives address and control information.
- the CPU 15 issues a read data instruction to the memory controller 20 for example, and provides an address location which the controller converts into row and column addresses and memory control signals.
- the controller 20 also generates address and control information for the Level 2 cache. If the data is not found in the Level 1 cache, the controller 20 would search for the desired data in the Level 2 cache as well as in the main memory. If the data is found in the
- Level 2 cache it would be provided via data bus 21 to the host data bus 16 which in turn, would provide the data back to the CPU 15. The data would simultaneously be written into the Level 1 cache in anticipation of requiring it again. If the data is not found in the
- a conventional system consisting of Level 1 and Level 2 cache and a memory controller is beginning to exhibit symptoms of decreasing performance. Today's applications demand more speed and randomness and thereby force more frequent cache misses and main memory accesses.
- a latency hiding buffer 100 according to an embodiment of the invention is illustrated.
- This buffer can be used with the CPU - main memory system in Figure 1.
- the buffer 100 consists of at least one buffer bank 110 and a buffer controller.
- Each of the buffer banks are implemented using N-way set associative cache memory comprising a plurality of lines and each buffer has a comparator 130 for comparing a requested address with stored addresses in the buffer bank.
- Each line includes a set 150 and tag 160 address portion, a most recently used MRU flag bit 180, and a data portion 170.
- the set portion 150 refers to the lower order bits of a main memory address location stored in the buffer line.
- the tag portion 160 refers to the higher order bits of the main memory address location stored in the buffer line.
- the buffer controller will use the set bits to address the higher order tag bits.
- the MRU flag bit 180 is used to determine which buffer entry should not be replaced when a new address entry is to be inserted.
- the data portion contains data (row head) associated with the memory address specified by the set and tag bits.
- the row head contains only a portion of a desired number of data bits in row of data in main memory - for example, the buffer bank 110 could store the first four data words of a typical 64 byte cache line as the row head and the remainder of the data would be stored in main memory. As a result, the buffer bank could store of a cache line or some fraction of a full cache line.
- a buffer bank entry with the MRU flag bit set is the most recently used entry and should not be replaced. This is because temporal locality of reference indicates that this entry may be the next entry to be accessed. For a subsequent requested address the buffer will be searched for an entry without the MRU flag bit set. Since the MRU flag bit is set for a particular buffer entry after the buffer entry has been accessed, ' if an old buffer entry has its MRU flag bit set, this old buffer entry then resets its MRU flag bit, leaving the new buffer entry as the only entry with a set MRU flag bit. There can only be one MRU flag bit active for each associative set in the buffer.
- the buffer bank receives a decoded memory address from a main memory controller.
- the low order bits of this memory address are used to determine which buffer bank and which set in that bank may be a match.
- the high order bits of that memory addresses are provided to the comparator 130.
- the tag field of the chosen buffer line is also provided to the comparator 130. If there is a match, then the requested memory address matches that stored in the buffer line. The result is then reported to the buffer controller and the data is accessed in the buffer.
- buffer controller 120 is illustrated.
- a first group of signals 190 are provided from the buffer banks and can include the outputs of the address comparators (whether there is an address match or not) and whether a chosen buffer line has its MRU set or not.
- a second group of signals 200 are provided from the main memory controller. These can include such signals as the presence of a memory access request, whether the memory access is a read or a write, and whether a requested row is active or not.
- a third group of signals 210 are generated by the buffer controller and provided to the buffer banks. These can include read or write signals to the buffer banks, and MRU bit settings.
- a fourth group of signals 220 are generated by the buffer controller and provided to the memory controller. These can include signals which instruct the memory controller to latch a specific row in main memory, write data to a location in main memory or access a location in main memory with a specified offset.
- the above described buffer can be placed in various parts of the CPU memory system illustrated in Figure 1. Referring to Figures 3A, 3B and 3C and ' 3D four possible locations for the latency hiding buffer are illustrated.
- Figure 3A consists of all the elements of Figure 1 with the latency hiding buffer 100 located external to the memory controller 120.
- each of the blocks in Figure 3A could be implemented on a separate chip or module.
- the main memory is typically implemented using a main memory DIMM module (Dual Inline Memory
- the CPU and Level 1 cache are typically implemented in a single monolithic microprocessor.
- the memory controller typically a separate chip, is usually combined together with the micrqprocessor in a chipset which includes the Level 2 cache as a separate chip.
- the latency hiding buffer is implemented on an additional chip integrated into the chipset, possibly replacing the Level 2 cache, or used in conjunction with the Level 2 cache.
- Figure 3B illustrates another possible implementation with the buffer integrated on the same chip as the DRAM-based main memory.
- Figure 3C illustrates an implementation having the buffer integrated on the same chip as the Level 1 cache and the CPU.
- Figure 3D illustrates the preferred embodiment with the buffer integrated with the memory controller and replacing the Level 2 cache altogether.
- FIG 4 is a more detailed illustration of a preferred embodiment of the present invention corresponding to Figure 3D.
- multiple buffer banks 110 are integrated in the memory controller 20. It should be noted that, while only one comparator 130 is illustrated in Figure 4, each of the buffer banks 110 has a comparator associated with it.
- the memory controller 20 comprises the following components: an address decoder 230, a main memory and cache controller 240, buffer banks 110, comparators 130 and buffer controller 120.
- the address decoder 230 receives the requested address (MemAddr) and the memory access signal (MemAcc) from the CPU. The address decoder 230 then determines, from the requested memory address, the row address and the column address of the requested address in the main memory.
- the requested memory address is also sent to the buffer 110.
- a portion of the requested memory address (set) is used to reference the buffer banks- 110.
- Another portion of the same requested memory address (tag) is sent to the comparators 130.
- the comparator 130 compares the tag field of the requested address with the tag stored at the set location in the buffer 130. If the tag of the requested address matches with the tag at the set location in cache, then a buffer hit has occurred. If the locations do not match, then a buffer miss has occurred.
- the set field is used to index the tag fields within the buffer 110. Since the buffers 110 are implemented using an N-way set associative cache memory, this search and compare operation occurs across all N buffers simultaneously, yielding N comparison results BufferHit from comparators 130.
- the comparison results BufferHit are input into the buffer control block 120, which generates control signals Buffer O/E, Buffer R/W, and CTRL and to the main memory cache control block 240. If there is a match, then the comparator 130 indicates as such to the main memory and cache controller 240 via the BUFFER HIT line.
- the main memory and cache control 240 receives the control signals (CTRL) from the buffer controller 120 and the MemAcc signal from the CPU.
- the main memory and cache control 240 generates the required signals to activate and access the main memory based on the control signals received. These required signals include the
- /RAS row address strobe
- /CAS column address strobe
- /CS chip select
- Row latch is a signal generated by the main memory and cache control 240 and provided to the address decoder 230 instructing the address decoder 230 to latch/activate until further notice the row currently being accessed.
- the row hit signal generated by the address decoder 230 and provided to the main memory and cache control 240, indicates to the main memory and cache control 240 that the requested row is already latched.
- L2 cache level 2 cache
- the data in the buffer entry may be enough to fill a cache line in the memory system's cache.
- the buffer would provide the whole cache line to the cache.
- the latching of the requested row address may be accomplished in the background.
- the row address may be latched in the main memory regardless of whether there is a buffer hit or not. This way, if the next requested address is not in the buffer but is in the same row as the previous requested address, the relevant row is already active, thereby saving the setup and activation time normally associated with main memory accesses.
- the Figure 5 controller has two extra signals - ROW HIT and ROW LATCH.
- the ROW HIT would indicate to the main memory/cache controller 240 that the row requested (through the requested memory address) is already latched.
- the ROW LATCH signal • serves to notify the address decoder 230 that it needs, to latch a specific row in the main memory system.
- FIG. 6 a flow chart illustrating the operation of the memory subsystem of Figure 4 is shown. It should be noted that the preliminary steps for a memory access have been omitted from the flow chart in the interests of brevity. The steps of receiving the requested memory address, decoding the memory address and receiving the memory access request are well known in the field and need no elaboration here. As can be seen, the process starts with the decision 300 which determines whether the requested memory address is found in the buffer.
- Step 310 determines whether the memory access is a read or a write access. If the access is a memory write, step 320 is followed. Step 320 executes the write to the main memory.
- the buffer is not involved in this step as illustrated. As an alternative, one may choose to write the data to be written to main memory to a buffer entry. This would involve the normal steps required in accessing the buffer, steps which will be explained in detail later.
- steps 330, 340 and 350 are performed in parallel with steps 360, 370 and 380.
- the steps 330, 340 and 350 concern the main memory accesses.
- the main memory is accessed according to well known and well established methods (step 330) , the data is retrieved using the requested memory address (step 340) , and the retrieved data is sent to the CPU (step 350) . All three steps are well known to those in the field.
- Steps 360, 370 and 380 refer to the copying of the read data into the buffer.
- a buffer entry with its MRU bit not set must be chosen (step 360) .
- the non-active nature of its MRU bit means that it is not the last buffer entry accessed and, as such, may be overwritten.
- the relevant data is written into the buffer entry (step 370) .
- This relevant data includes the memory address properly positioned into the set and tag fields and the data read from the main memory.
- the MRU bit for this entry is set to prevent the buffer entry from being overwritten in the next memory access.
- the data written into the data portion of the buffer entry is only the portion required.
- the buffer is configured to buffer only the first 32 bytes of data, only that amount and portion of the data read from the main memory (from step 340) is written into the buffer entry. If the buffer is configured to store a full cache line, then this amount of information is extracted from the data from the main memory and stored in the buffer entry.
- Step 390 a decision is made (step 390) is made as to whether the memory access is a read or write. If it is a memory read, then again the temporal parallelism referred to above is taken advantage of. Steps 400, 410, and 420 refer to actions executed on or by the buffer while steps 430, 440 and 450 refer to steps executed by the main memory concurrent or parallel to those taken by the buffer.
- step 400 refers to the reading of the relevant buffer entry. This involves reading the data stored in the data portion of the buffer entry. Then, step 410, sending the data read from the buffer entry to the CPU, is executed. Finally, the MRU bit for that buffer entry, is set.
- the corresponding address location in the main memory is accessed using the requested memory address 430.
- the rest of the data is then read from the main memory using a preset offset. If the buffer is designed to store the first 32 bytes of data, the main memory data read is from 32 bytes past what would normally be the beginning of the memory read. Thus, if the memory read is to be from point X, then the main memory read would be from x + 32 bytes to account for the data sent to the CPU from the buffer. Ordinarily, by the time the buffer has sent its data to the CPU, the set up time required to access the main memory has passed.
- Step 450 that of actually sending the data to the CPU, is the last step executed for the main memory access.
- steps 460, 470, 480, and 490 are executed. As can be seen from Figure 6, steps 460 and 470 are executed in parallel to steps 480 and 490.
- steps 460 and 470 are executed in parallel to steps 480 and 490.
- the data to be written is written to the relevant buffer entry.
- the buffer entry found to correspond to the requested address is overwritten by the CPU supplied data.
- the buffer entry's MRU bit is set to prevent the buffer entry from being overwritten in the next memory access.
- steps 480 and 490 concern main memory in step 490.
- Step 480 is where the main memory is accessed. It is during this step that the relevant and necessary signals are generated to access the main memory.
- the process described above yields best results when the buffer is designed to buffer only the beginning portion of requested data (i.e. the row head). However, this is not to say that storing a full cache line cannot be used for the above method.
- the buffer which stores a full cache line can also take advantage of the above method.
- An added refinement to the concept of the above method is of maintaining an active row latched.
- a requested address will refer to a row in main memory. If that row is already active when a second requested address arrives, and if the second requested address refers to the same row, retrieving the data will be faster. This is because the setup time for accessing the requested row has been * dispensed with - the row is already active.
- the concept of maintaining a row latched offers multiple benefits in terms of accelerated memory access speeds. Referring to Figure 7, illustrated is a flowchart showing the steps in a process which can be executed using the memory controller of Figure 5. This process to be used for read access uses the row latching concept referred to above. Starting at step 500, the memory access is initiated.
- This step includes receiving the requested memory access and determining that the memory access is a read access.
- Step 510 is then executed - this step involves decoding the requested memory access and determining which row the requested address is in.
- the process takes advantage of the temporal parallelism that the buffer affords.
- Steps 520 and 530 are executed concurrently. Thus, a check is made as to whether the requested row is already active and if the requested address is in the buffer.
- step 530 and 520 are both answered in the affirmative, steps 540, 550, 560, 570, 580, 590 and 600 can be executed in parallel.
- step 550 will be accomplished faster than if the row address were inactive.
- the normal activation time associated with accessing the main memory is avoided. Ideally this main memory access is accomplished using fast page mode (FPM) .
- FPM fast page mode
- main memory After accessing the first portion of the data from the main memory (i.e. the row head), the rest of the data requested is retrieved form main memory (step 570) . However, this retrieval is done using an offset in a manner similar to that explained above to compensate for the data already sent to the CPU (step 580) . Meanwhile, for the buffer, the accessed buffer entry has its MRU bit set. For the main memory, the active row is kept active for the next memory access. If the query of step 530 is answered in the affirmative but the query of step 520 is not, then steps 540, 550 and 590 are executed by the buffer while steps 610, 620, 630 and 640 are executed by the main memory system with the buffer and the main.memory system operating in parallel.
- step 610 is that of accessing the main memory using well known random access techniques. This involves sending the proper /CAS /RAS and /CS signals at the appropriate times.
- Step 620 is that of retrieving the rest of the requested data from main memory using a column offset to compensate for the data already supplied .to the CPU in step 550 by the buffer.
- Step 630 is thus the sending of this retrieval data to the CPU.
- Step 640 is that of maintaining the active state of the row address in anticipation of the next memory access as this row address was activated when it was accessed.
- Step 650 is that of choosing a buffer entry to be replaced. This involves selecting a buffer entry whose MRU is not set. While this is being executed, the main memory system is retrieving the requested data from main memory (see steps 560 and 570 as described above) but with no offset. The offset is not used as the buffer is not sending the first portion of the requested data and there is therefore no need to compensate for this portion.
- the first portion of the retrieved data is then stored in the chosen buffer entry (see step 660) .
- the MRU bit is then set for this buffer entry to prevent it being overwritten in the next memory access. If both the queries of steps 520 and 530 are answered in the negative, then the main memory system executes steps 610, 620, 630 and 640 while the buffer executes steps 650, 660, and 670. Since the buffer is not being accessed to retrieve data but only to have data written to it, then step 620 for the main memory system does not use an offset as there is nothing to compensate for.
- connectors A and B in Fig 7 serve to illustrate that while most of the steps detailed above can be executed in parallel, some steps need to be executed first before others.
- steps 590, 580, and 600 are executed in parallel (see connector B) .
- steps 590, 630, and 640 are executed in parallel (see connector B) .
- step 520 yields a positive answer while step 530 yields a negative answer
- step 530 yields a negative answer
- connector A shows that steps 580 and 600 are executed in parallel with steps 660 and 670.
- a flowchart of the steps followed for a write operation begins with a memory access initiate (step 680) . As noted above, this includes decoding the requested address, receiving the write instruction from the CPU, and sending the requested address to the memory decoder and the buffer. Then, the main memory system executes steps 690, 700 and 710 in parallel to the buffer executing steps 720, 730 (if required) , 740, 750 and 760.
- step 690 involves accessing the main memory, whether using FPM or not.
- the requested address is activated.
- step 700 the data is written to the main memory and in step 710 the active state of the accessed row is maintained for the next memory access. (It should be noted that the number of active rows is left to the discretion of the system designers. Such a designer may wish to only have one row active per DRAM bank or have multiple active rows per bank.)
- step 720 the first step 720, that of determining if the requested address is in the buffer. If the requested address is in the buffer, then the data is written (step 740) to that buffer entry. On the other hand, if the requested address is not in the buffer, then a buffer entry would have to be replaced.
- step 750 is choosing a buffer entry to be replaced. This entails choosing a buffer entry with its MRU bit not set. Then, once this buffer entry to be replaced is chosen, the data is written to it (step 740) . It should be noted that the buffer entry written to in step 740 depends on whether the requested address is in the buffer. If it is, then the data is written to that buffer entry found. If not, then a buffer entry is chosen which will be replaced or overwritten. Then, once the data is written to the buffer entry the MRU for that buffer entry is set (step 760) . The data is written to both the buffer and the main memory to preserve data coherence between the buffer and the main memory. It should be noted that in this example, only the beginning portion of the data (i.e. the row head) is written to the buffer as this is how the buffer is configured for this example.
- the write process illustrated in the flowchart of Figure 8 can also be used even if the buffer was configured to buffer a full cache line.
- the only difference between the present example and that explained above is that the full processor cache line is stored in the buffer.
- Figures 9 and 10 illustrate two possible processes which are similar to that illustrated in Figure 7. The exception is that the methods of Figures 9 and 10 have a default position if the requested address is found to be in the buffer and in an active row. In Figure 9, if the requested address is found to be both in an active row and in the buffer, the data is retrieved from the buffer. In Figure 10, if same is true, then the main memory is accessed.
- step 770 the memory access is initiated in step 770 in a well known manner and similar to the memory access initiation in the other processes above.
- the requested memory address is then decoded in step 780.
- the next steps, 790 and 800, are then executed in parallel - the buffer is checked to see if the requested address is in the buffer (step 790) and the active row(s) are checked to see if the requested address is in an active row (step 800) . Based on these checks, a series of decisions are made.
- Step 810 checks if the requested address is in both the buffer and in an active row. If the answer is in the affirmative, then the two branches (step 820 in one and steps 830, 840, 850, and 860 in the other) are executed in parallel. Step 820 notes that the active status of the row found in step 800 is maintained. Steps 830, 840, 850, and 860 are executed in parallel in the buffer. Step 830 is that of accessing the buffer. Step 840 is that of actually retrieving the requested data from the buffer from a buffer entry which corresponds to the requested address. Then, this retrieved data is sent to the CPU (step 850) . The MRU bit for the buffer entry found is then set in step 860 to prevent that buffer entry from being overwritten in the next memory access.
- Step 870 determines if the requested address is in an active row and NOT in the buffer. If this is the case, the buffer executes steps 920, 930, 940 in parallel with the main memory system executing steps 880, 890, 900, and 910.
- step 880 is that of accessing the main memory using fast page mode. This can be done as the requested address is in a row which is already active.
- step 890 is that of retrieving the data from main memory.
- Step 900 is sending the retrieved data to the CPU while step 910 is of retaining the active status of the row. For the buffer, this portion of the process is accomplished to store the retrieved data in the buffer.
- Step 920 is that of choosing a buffer entry to be replaced. Once a buffer entry has been chosen, the data retrieved in step 890 is stored in the chosen buffer entry (s.tep 930) , thereby overwriting the old contents of the chosen buffer entry. Then, step 940, sets the MRU bit to prevent this particular buffer entry from being overwritten in the next data access. It should, however, be noted that connector C illustrates that only after step 890 can step 930 be executed. Only after the data is retrieved from main memory (step 890) can that data be written to the buffer entry (step 930) .
- step 870 is answered in the negative, decision 950 is taken. This decision determines if the requested address is in the active row. If this is true, the buffer executes steps 960, 970, 980, and 990 in parallel with the main memory system executing steps 1000, 1002, 1004, and 1006.
- step 960 is setting up a buffer access.
- Step 970 is actually retrieving the requested data from the buffer while step 980 is sending that retrieved, requested data to the CPU.
- step 990 is setting the MRU bit to prevent the buffer . entry from being overwritten in the next data access.
- step 1000 also involves unsetting the previously set MRU bit for another buffer entry. This way only one buffer entry has an MRU bit set.
- step 1000 also involves deactivating a previously active row. This way a minimum of rows are active at one time.
- the data is accessed from main memory as detailed in steps 1002. This data is then sent to the CPU (step 1004) , and the active status of the row is maintained (step 1006) .
- step 1006 the active status of the row is maintained.
- only one row may be active in the whole main memory system or one row per main memory bank (for multiple bank main memory system) is . active. Different configurations may be used, depending on the needs of the ultimate end user.
- Step 1010 for the buffer involves finding a buffer entry with its MRU bit not set. The contents of this buffer entry are replaced with the new data to be retrieved.
- Step 1020 involves writing the retrieved data to the selected buffer entry, the retrieved data being retrieved by the main memory system in step 1050.
- Step 1030 is that of setting the MRU bit for the selected buffer entry.
- step 1040 is that of accessing the main memory for the data stored in the requested address. This memory access is to be done using well known random access methods as FPM cannot be used, given that the requested row is not active.
- Step 1050 involves retrieving the data from the main memory after the main memory had been accessed in step 1040. This retrieved data is then sent to the CPU in step 1060. It is this same data, or a portion thereof, that is written to the selected buffer entry in step 1020.
- Step 1070 then sets the accessed row (accessed in step 1040) as active so that the next memory access may be able to use FPM, if possible.
- step 1020 can only be executed after step 1050 is executed. Thus, only after step 1050 is executed can step 1020 and any other subsequent steps in that branch be executed. Only after the data is retrieved from main memory (step 1050) can that same data be written to the buffer entry (step 1020) .
- step 1080 is that of accessing main memory using FPM. This can be done as the decision in step 810 determined that the requested address is in an active row.
- Step 1090 that of actually retrieving the data, is accomplished subsequent to step 1080.
- step 1100 the retrieved data is sent to the CPU while step 1110 is that of retaining the active status of the row just accessed.
- step 1120 is that of setting the MRU bit for the buffer entry which corresponds to the requested address. This effectively says that that buffer entry was the last one accessed even though its contents were neither read nor modified.
- a Level 2 cache can be used and access to it can be incorporated into the process outlined above.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Memory System Of A Hierarchy Structure (AREA)
- Dram (AREA)
Applications Claiming Priority (3)
| Application Number | Priority Date | Filing Date | Title |
|---|---|---|---|
| CA2327134 | 2000-11-30 | ||
| CA2327134A CA2327134C (en) | 2000-11-30 | 2000-11-30 | Method and apparatus for reducing latency in a memory system |
| PCT/CA2001/001686 WO2002044904A2 (en) | 2000-11-30 | 2001-11-28 | Method and apparatus for reducing latency in a memory system |
Publications (1)
| Publication Number | Publication Date |
|---|---|
| EP1350168A2 true EP1350168A2 (de) | 2003-10-08 |
Family
ID=4167774
Family Applications (1)
| Application Number | Title | Priority Date | Filing Date |
|---|---|---|---|
| EP01998894A Ceased EP1350168A2 (de) | 2000-11-30 | 2001-11-28 | Verfahren und vorrichtung zur verminderung der latenz in einem speichersystem |
Country Status (3)
| Country | Link |
|---|---|
| EP (1) | EP1350168A2 (de) |
| JP (1) | JP2004520643A (de) |
| CA (1) | CA2327134C (de) |
Families Citing this family (3)
| Publication number | Priority date | Publication date | Assignee | Title |
|---|---|---|---|---|
| US7636813B2 (en) * | 2006-05-22 | 2009-12-22 | International Business Machines Corporation | Systems and methods for providing remote pre-fetch buffers |
| JP5791529B2 (ja) * | 2012-01-19 | 2015-10-07 | ルネサスエレクトロニクス株式会社 | メモリ制御装置及び制御方法並びに情報処理装置 |
| JP2016006662A (ja) * | 2015-08-04 | 2016-01-14 | ルネサスエレクトロニクス株式会社 | メモリ制御装置及び制御方法 |
-
2000
- 2000-11-30 CA CA2327134A patent/CA2327134C/en not_active Expired - Fee Related
-
2001
- 2001-11-28 JP JP2002547003A patent/JP2004520643A/ja active Pending
- 2001-11-28 EP EP01998894A patent/EP1350168A2/de not_active Ceased
Non-Patent Citations (2)
| Title |
|---|
| None * |
| See also references of WO0244904A3 * |
Also Published As
| Publication number | Publication date |
|---|---|
| CA2327134C (en) | 2010-06-22 |
| CA2327134A1 (en) | 2002-05-30 |
| JP2004520643A (ja) | 2004-07-08 |
Similar Documents
| Publication | Publication Date | Title |
|---|---|---|
| US7318123B2 (en) | Method and apparatus for accelerating retrieval of data from a memory system with cache by reducing latency | |
| US6477621B1 (en) | Parallel access virtual channel memory system | |
| US6587920B2 (en) | Method and apparatus for reducing latency in a memory system | |
| US6757784B2 (en) | Hiding refresh of memory and refresh-hidden memory | |
| US7032074B2 (en) | Method and mechanism to use a cache to translate from a virtual bus to a physical bus | |
| KR101533564B1 (ko) | 메모리 내 cpu 캐시 아키텍처 | |
| USRE45078E1 (en) | Highly efficient design of storage array utilizing multiple pointers to indicate valid and invalid lines for use in first and second cache spaces and memory subsystems | |
| US7266647B2 (en) | List based method and apparatus for selective and rapid cache flushes | |
| US6708254B2 (en) | Parallel access virtual channel memory system | |
| US7822911B2 (en) | Memory device and method with on-board cache system for facilitating interface with multiple processors, and computer system using same | |
| KR20010101695A (ko) | 가상 메모리 시스템에서의 메모리 접근 개선 기술 | |
| US6237064B1 (en) | Cache memory with reduced latency | |
| US6832294B2 (en) | Interleaved n-way set-associative external cache | |
| JP5157424B2 (ja) | キャッシュメモリシステム及びキャッシュメモリの制御方法 | |
| US6256710B1 (en) | Cache management during cache inhibited transactions for increasing cache efficiency | |
| US6976130B2 (en) | Cache controller unit architecture and applied method | |
| CA2327134C (en) | Method and apparatus for reducing latency in a memory system | |
| US20030145171A1 (en) | Simplified cache hierarchy by using multiple tags and entries into a large subdivided array | |
| HK1008798A (en) | Virtual channel memory system |
Legal Events
| Date | Code | Title | Description |
|---|---|---|---|
| PUAI | Public reference made under article 153(3) epc to a published international application that has entered the european phase |
Free format text: ORIGINAL CODE: 0009012 |
|
| 17P | Request for examination filed |
Effective date: 20030527 |
|
| AK | Designated contracting states |
Kind code of ref document: A2 Designated state(s): AT BE CH CY DE DK ES FI FR GB GR IE IT LI LU MC NL PT SE TR |
|
| AX | Request for extension of the european patent |
Extension state: AL LT LV MK RO SI |
|
| RBV | Designated contracting states (corrected) |
Designated state(s): AT BE CH CY DE FR GB IT LI NL |
|
| 17Q | First examination report despatched |
Effective date: 20041005 |
|
| STAA | Information on the status of an ep patent application or granted ep patent |
Free format text: STATUS: THE APPLICATION HAS BEEN REFUSED |
|
| 18R | Application refused |
Effective date: 20070107 |