Control device and control method
By implementing a control device with waiting entries and time-based management, the circuit scale is reduced, effectively managing multiple banks and improving performance in DDR memory systems.
Patent Information
- Application Number
- JP2021074596
- Authority / Receiving Office
- JP · JP
- Patent Type
- Patents
- Current Assignee / Owner
- Filing Date
- 2021-04-27
- Publication Date
- 2024-10-29
- Estimated Expiration
- 2041-04-27
AI Technical Summary
As the capacity and speed of DDR memory increase, the number of banks and entries in the request queue within the memory control device also increase, leading to a significant increase in circuit size due to the need to check the busy states of multiple banks, which is not efficiently managed by existing technologies.
The control device includes a plurality of waiting entries with waiting time information, a setting section, a subtraction section, a receiving section, an issuing section, and a control section, which manage access requests by setting and updating waiting times and busy states to reduce circuit scale.
This approach reduces the circuit scale of the control device, contributing to power savings and performance improvements, while allowing efficient management of multiple banks even with increased throughput.
Smart Images

Figure 0007574728000001 
Figure 0007574728000002 
Figure 0007574728000003
Abstract
Description
[Technical field]
[0001] The present invention relates to control technology. [Background technology]
[0002] DDR (Dual Data Rate) memory is used as memory for information processing devices (computers). DDR SDRAM (Synchronous Dynamic Random Access Memory) is one example of DDR memory. When using DDR memory, the host's CPU (Central Processing Unit) issues commands while observing several penalties. For example, when accessing DDR memory continuously, the CPU switches between banks, which are the constituent units of DDR memory, to access the memory and observe the penalties.
[0003] Requests generated by programs randomly specifying addresses can cause access conflicts to banks. To prevent performance degradation due to such conflicts, it is effective to accumulate requests in a request queue in the memory control device and process the requests out of order based on the busy state of the banks.
[0004] A memory control device is known that solves the problem of performance degradation caused by waiting for requests to be issued in relation to a memory having multiple banks (see, for example, Patent Document 1). A main memory control device that realizes optimal main memory access with a smaller amount of logical material is also known (see, for example, Patent Document 2). [Prior art documents] [Patent documents]
[0005] [Patent Document 1] JP 2018-136592 A [Patent Document 2] JP 2001-154913 A Summary of the Invention [Problem to be solved by the invention]
[0006] In recent years, the number of banks included in DDR memory has increased as the capacity of DDR memory has increased, and the number of entries in the request queue in the memory control device has also increased to improve memory access performance as the speed of DDR memory has increased.
[0007] In order to process requests out of order, the memory control device checks the busy state of the bank that is the access target of the request held in each entry of the request queue. However, as the number of entries in the request queue and the number of busy states to be checked increase, the number of combinations of requests and busy states increases, and the circuit size of the circuit that checks the busy states increases.
[0008] This problem is not limited to processing requests to DDR memory, but occurs in processing access requests to various access targets.
[0009] In one aspect, the present invention aims to reduce the circuit scale of a control device that processes an access request to an access target. [Means for solving the problem]
[0010] In one proposal, the control device includes a plurality of waiting entries, each of which includes waiting time information, a setting unit corresponding to each of the plurality of waiting entries, a subtraction unit corresponding to each of the plurality of waiting entries, a reception unit, an issuance unit, and a control unit.
[0011] The receiving unit receives an access request for an access target, and sets the access request in one of the plurality of pending entries.
[0012] A setting unit associated with the waiting entry in which the access request is set sets a value indicating a waiting time for the access request to waiting time information of the waiting entry in which the access request is set. A subtraction unit associated with the waiting entry in which the access request is set subtracts a predetermined value from the waiting time information of the waiting entry in which the access request is set for each unit time.
[0013] The issuing unit issues a command corresponding to the access request, and the control unit controls the issuance of the command based on waiting time information of a processing waiting entry in which the access request is set. Effect of the Invention
[0014] According to one aspect, it is possible to reduce the circuit scale of a control device that processes an access request to an access target. [Brief description of the drawings]
[0015] [Figure 1] FIG. 1 is a configuration diagram of an information processing apparatus according to an embodiment. [Diagram 2] 11 is a timing chart of memory access due to a read request. [Diagram 3] 11 is a timing chart of memory access in which a plurality of banks are accessed in parallel. [Figure 4] FIG. 2 is a hardware configuration diagram of a memory control device of a comparative example. [Diagram 5] FIG. 2 is a hardware configuration diagram of a checking unit. [Figure 6] FIG. 2 is a configuration diagram of a control device according to the embodiment. [Figure 7] 13 is a flowchart of an access request process. [Figure 8] FIG. 2 is a hardware configuration diagram of a memory control device according to an embodiment. [Figure 9] FIG. 2 is a hardware configuration diagram of a request queue. [Figure 10] 13 is a timing chart of a request process. [Figure 11]13 is a flowchart of a request process. DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS
[0016] Hereinafter, the embodiments will be described in detail with reference to the drawings.
[0017] Fig. 1 shows an example of a hardware configuration of an information processing device according to an embodiment. The information processing device 101 in Fig. 1 includes a CPU 111 and a memory 112. The CPU 111 and the memory 112 are hardware. The memory 112 is, for example, a DDR memory and includes multiple banks. The memory 112 may be a dual inline memory module (DIMM). The memory 112 is an example of a storage device, and a bank is an example of an access target.
[0018] The CPU 111 includes a core 121, a memory control device 122, and an IO (Input Output) control device 123. These components are hardware circuits. The memory control device 122 may also be called a memory controller, and the IO control device 123 may also be called an IO controller.
[0019] The memory control device 122 and the IO control device 123 are connected by a command bus 131 and a data bus 141 , and the IO control device 123 and the memory 112 are connected by a command bus 132 and a data bus 142 .
[0020] The core 121 executes a program and transmits a memory access request to the memory control device 122. A memory access request is generated by specifying an address in the memory 112 from the program. The request transmitted from the core 121 is an example of an access request, and specifies one of the banks in the memory 112 as the access target.
[0021] The memory control device 122 converts the received request into a command corresponding to the request, and transmits the converted command to the IO control device 123 via the command bus 131. If the received request is a write request, the memory control device 122 transmits write data to the IO control device 123 via the data bus 141.
[0022] The IO control device 123 receives a command via a command bus 131, and transmits the received command to the memory 112 via a command bus 132. The IO control device 123 also receives write data via a data bus 141, and transmits the received write data to the memory 112 via a data bus 142.
[0023] The memory 112 receives commands via the command bus 132 and receives write data via the data bus 142. If the received command is a read command, the memory 112 transmits data stored at a specified address as read data to the IO control device 123 via the data bus 142. If the received command is a write command, the memory 112 stores the received write data at a specified address.
[0024] The IO control device 123 receives read data via the data bus 142 and transmits the received read data to the memory control device 122 via the data bus 141. The memory control device 122 receives read data via the data bus 141 and transmits the received read data to the core 121.
[0025] Fig. 2 is a timing chart showing an example of memory access by a read request in the information processing device 101 of Fig. 1. CLK represents a clock cycle, the command bus represents a command on the command bus 132, and the data bus represents read data on the data bus 142. ACT represents an ACTIVATE command, RD represents a read command, and PRE represents a precharge command.
[0026] tRCD (Row Address to Column Delay) represents the delay time from ACT to a read command or a write command, tRAS (Row Active Time) represents the delay time from ACT to PRE, CL (Column Address Strobe Latency) represents the delay time from RD to the output of read data, and tRP (Row Precharge Time) represents the delay time from PRE to when the next ACT can be issued.
[0027] 2, tRCD is 5 cycles, tRAS is 10 cycles, CL is 6 cycles, and tRP is 10 cycles. tRCD, tRAS, and tRP are sometimes referred to as memory penalties.
[0028] First, the CPU 111 issues an ACT at CLK "0" to put the bank to be accessed in the memory 112 into an ACTIVE state. Next, the CPU 111 issues an RD at CLK "5" tRCD later. As a result, transfer of read data is started at CLK "11" CL later, and read data D0 to D7 are transferred from the memory 112 to the CPU 111 at CLK "11" to CLK "14".
[0029] At CLK "10", which is tRAS after ACT, the CPU 111 issues a PRE and performs a close process for the bank to be accessed. Then, at CLK "20", which is tRP after, the next ACT can be issued for the same bank. The bank is busy for tRAS+tRP after the first ACT.
[0030] 3 is a timing chart showing an example of memory access in which a plurality of banks are accessed in parallel. First, the CPU 111 issues ACT 301-1 for the first bank at CLK "0", and issues RD 302-1 at CLK "5" tRCD later.
[0031] As a result, at CLK "11" after CL, transfer of read data is started, and at CLK "11" to CLK "14", read data D0 to read data D7 are transferred from the first bank to the CPU 111. At CLK "10" after ACT301-1 after tRAS, the CPU 111 issues PRE303-1 and performs close processing of the first bank.
[0032] The CPU 111 issues ACT 301-2 to the second bank in CLK "4", and issues RD 302-2 tRCD later in CLK "9".
[0033] As a result, at CLK "15" after CL, transfer of read data is started, and at CLK "15" to CLK "18", read data X0 to read data X7 are transferred from the second bank to the CPU 111. At CLK "14" after ACT301-2 after tRAS, the CPU 111 issues PRE303-2 and performs close processing for the second bank.
[0034] The CPU 111 issues ACT 301-3 for the third bank at CLK "8", and issues RD 302-3 at CLK "13" tRCD later.
[0035] As a result, at CLK “19” after CL, transfer of read data is started, and at CLK “19” to CLK “22”, the read data Y0 to Y7 are transferred from the third bank to the CPU 111. At CLK “18” after ACT301-3 after tRAS, the CPU 111 issues PRE303-3 and performs close processing for the third bank.
[0036] 3, ACT301-2 is issued four cycles after ACT301-1, and ACT301-3 is issued four cycles after ACT301-2. As a result, read data is continuously transferred from the first to third banks to the CPU 111 during CLK "11" to CLK "22". Therefore, the throughput is improved compared to the memory access in FIG. 2.
[0037] In order to use multiple banks efficiently, it is desirable for memory control device 122 to appropriately manage the busy states of multiple banks.
[0038] Fig. 4 shows an example of a hardware configuration of a memory control device 122 of a comparative example. The memory control device 122 of Fig. 4 includes an input unit 411, a reception unit 412, a request queue 413, a control unit 414, a request pipeline 415, an issue unit 416, and an output unit 417. These components are hardware circuits. The control unit 414 includes a check unit 421 and an arbitration unit 422.
[0039] The request queue 413 includes N entries (N is an integer equal to or greater than 2), and each entry holds a request waiting to be processed. By storing multiple requests in the request queue 413, selecting a request for an accessible bank, and issuing a command out of order, multiple banks can be used efficiently.
[0040] When a request transmitted from the core 121 is input from the input unit 411 , the reception unit 412 receives the input request and sets the request in one of the entries of the request queue 413 .
[0041] The request pipeline 415 includes M entries (M is an integer equal to or greater than 2), and each entry holds a processed request corresponding to an issued command. The request pipeline 415 is used to keep a history of requests corresponding to issued commands. If a bank to be accessed by a held request is busy, each entry of the request pipeline 415 outputs the bank address of that bank to the control unit 414.
[0042] The check unit 421 of the control unit 414 monitors the request pipeline 415, selects a request for which a command can be issued from the request queue 413, and outputs the request to the arbitration unit 422. The arbitration unit 422 includes a selector, and when multiple requests are output from the check unit 421, arbitrates to select one of the requests and outputs the request to the request pipeline 415.
[0043] The issuing unit 416 issues a command corresponding to the request output from the control unit 414 to the IO control device 123 via the output unit 417. The issuing unit 416 monitors the request pipeline 415, and issues a command while observing the memory penalty for each bank, as shown in FIG. 2 and FIG. 3.
[0044] Fig. 5 shows an example of a hardware configuration of the check unit 421 in Fig. 4. The check unit 421 in Fig. 5 includes N × M comparators 511. Each comparator 511 compares a bank address output from each entry of the request queue 413 with busy information output from each entry of the request pipeline 415.
[0045] The bank address output from each entry of the request queue 413 is the bank address of the bank to be accessed by the request held in that entry.
[0046] The busy information output from each entry of the request pipeline 415 is either the bank address of the bank to be accessed by the request held in that entry, or a specific value indicating that the bank is not busy. If the bank to be accessed is busy, the bank address of that bank is output, and if the bank to be accessed is not busy, a specific value is output.
[0047] Comparator 511 outputs a logic "1" if the bank address output from an entry in request queue 413 matches the busy information output from an entry in request pipeline 415, and outputs a logic "0" if the two do not match.
[0048] The bank addresses output from each entry of the request queue 413 and the M pieces of busy information output from the M entries of the request pipeline 415 are compared by M comparators 511. If any of the comparators 511 outputs a logic "1", the request held in that entry is not selected. On the other hand, if all of the M comparators 511 output a logic "0", the request held in that entry is selected and output to the arbitration unit 422.
[0049] 4, N×M comparators 511 are provided to check whether a command corresponding to a request waiting to be processed can be issued. For this reason, N×M signal lines are connected between the request queue 413 and the check unit 421, and N×M signal lines are also connected between the request pipeline 415 and the check unit 421.
[0050] The number M of entries in the request pipeline 415 increases as tRAS+tRP increases, and tRAS+tRP increases as the data transfer rate increases. Therefore, as the data transfer rate increases, M also increases. If the number N of entries in the request queue 413 and the number M of entries in the request pipeline 415 both increase, the number of comparators 511 and the number of signal lines become enormous, and the circuit scale of the memory control device 122 increases.
[0051] Fig. 6 shows an example of the configuration of a control device 601 according to an embodiment. The control device 601 in Fig. 6 includes a receiving unit 611, a control unit 615, and an issuing unit 616. The control device 601 further includes waiting entries 612-1 to 612-N (N is an integer equal to or greater than 2) each including waiting time information, setting units 613-1 to 613-N, and subtraction units 614-1 to 614-N.
[0052] The setting unit 613-i and the subtraction unit 614-i (i=1 to N) are associated with the waiting entry 612-i. The control device 601 processes an access request for an access target.
[0053] Fig. 7 is a flowchart showing an example of an access request process performed by the control device 601 in Fig. 6. First, the reception unit 611 receives an access request (step 701), and sets the received access request in any one of the waiting entries 612-k (k=1 to N) (step 702).
[0054] Next, the setting unit 613-k associated with the waiting entry 612-k in which the access request has been set sets a value indicating the waiting time for the access request to the waiting time information of the waiting entry 612-k (step 703). Next, the subtraction unit 614-k associated with the waiting entry 612-k subtracts a predetermined value from the waiting time information of the waiting entry 612-k for each unit time (step 704).
[0055] The control unit 615 controls the issuance of a command corresponding to the access request based on the waiting time information of the processing waiting entry 612-k, and the issuing unit 616 issues the command according to the control by the control unit 615 (step 705).
[0056] According to the control device 601 in FIG. 6, the circuit scale of the control device 601 can be reduced.
[0057] Fig. 8 shows an example of a hardware configuration of the memory control device 122 of the embodiment. The memory control device 122 of Fig. 8 corresponds to the control device 601 of Fig. 6, and includes an input unit 811, a reception unit 812, a request queue 813, an arbitration unit 814, a request pipeline 815, and a management unit 816. Furthermore, the memory control device 122 includes a generation unit 817, a search unit 818, an issue unit 819, and an output unit 820. These components are hardware circuits.
[0058] The accepting unit 812 and the issuing unit 819 respectively correspond to the accepting unit 611 and the issuing unit 616 in Fig. 6. The generating unit 817 is an example of an updating unit, and the searching unit 818 is an example of an acquiring unit.
[0059] The request queue 813 includes N entries, each of which holds a request waiting to be processed. Each entry includes a busy counter 821 that indicates the busy state of the bank to be accessed by the request held in that entry.
[0060] Fig. 9 shows an example of a hardware configuration of request queue 813 in Fig. 8. Request queue 813 in Fig. 9 includes entries 911-0 to 911-(N-1), a comparison unit 912, a comparison unit 913, a subtraction unit 914, and a check unit 915. These components are hardware circuits.
[0061] The comparing unit 912, the comparing unit 913, the subtracting unit 914, and the checking unit 915 are associated with the entry 911-0. Although omitted in Fig. 9, the comparing unit 912, the comparing unit 913, the subtracting unit 914, and the checking unit 915 are also associated with the entry 911-i (i = 1 to N-1) in the same manner as the entry 911-0.
[0062] Each entry 911-i (i=0 to N-1) corresponds to a waiting entry 612-(i+1) in Fig. 6. A comparator 912 and a comparator 913 associated with each entry 911-i correspond to a setting unit 613-(i+1) associated with the waiting entry 612-(i+1).
[0063] The subtraction unit 914 associated with each entry 911-i corresponds to the subtraction unit 614-(i+1) associated with the waiting entry 612-(i+1). The check unit 915 and the arbitration unit 814 associated with each entry 911-i correspond to the control unit 615.
[0064] Each entry 911-i includes an entry ID, a valid flag V, an entry set flag S, an operand Op, an address, and a busy counter. The entry ID is identification information of the entry 911-i and is set in advance. The entry ID of the entry 911-i is “Ei”.
[0065] The valid flag V indicates whether or not the entry 911-i holds a valid request. When the valid flag V is a logical "1", the entry 911-i holds a valid request, and when the valid flag V is a logical "0", the entry 911-i does not hold a valid request.
[0066] The entry set flag S indicates whether the busy search for the entry 911-i is complete. If the entry set flag S is a logical "1", the busy search is complete, and if the entry set flag S is a logical "0", the busy search is not complete.
[0067] The operand Op indicates the type of the request, and includes, for example, information indicating whether it is a read request or a write request. The address indicates the address of the data to be accessed by the request. The address of the data includes the bank address of the bank to be accessed by the request and the address of the storage area within the bank. The operand Op and address indicate the request held in the entry 911-i.
[0068] The busy counter corresponds to busy counter 821 in Fig. 8, and indicates the waiting time for the request held in entry 911-i. The waiting time for a request is the remaining time until the bank to be accessed by the request is released from busy status, and is expressed, for example, as the number of clock cycles. When the busy counter is a value other than 0, the bank is busy, and when the busy counter is 0, the bank is not busy. The busy counter indicating the waiting time corresponds to the waiting time information.
[0069] The request pipeline 815 contains M entries, each of which holds processed requests corresponding to issued commands. The request pipeline 815 is used to keep track of requests corresponding to issued commands. Commands corresponding to requests in the request pipeline 815 have been issued before commands corresponding to requests in the request queue 813.
[0070] Each entry in the request pipeline 815 includes an address and a counter. The address represents the address of the data to be accessed by the issued command corresponding to the held request. The address of the data includes the bank address of the bank to be accessed by the request and the address of a storage area within the bank.
[0071] The counter indicates the time remaining until the next command following the issued command can be issued, which is the time remaining until the bank to be accessed by the held request is released from a busy state, and is expressed, for example, in the number of clock cycles.
[0072] Each entry in the request pipeline 815 is an example of a processed entry, and the counter indicating the remaining time is an example of remaining time information.
[0073] The management unit 816 manages the requests and counters of each of the M entries in the request pipeline 815. When a command corresponding to a request is issued, the management unit 816 sets the request in an entry. The management unit 816 then sets a value T0 indicating a predetermined time in the counter of that entry, and subtracts a predetermined value from the counter every clock cycle.
[0074] For example, T0 is tRAS+tRP, which is a memory penalty, and for example, 1 cycle is used as the predetermined value. In this case, the counter value is decremented by 1 every clock cycle. The clock cycle corresponds to a unit time.
[0075] When a request transmitted from the core 121 is input from the input unit 811, the reception unit 812 receives the input request and searches for an empty entry in the request queue 813. The empty entry is an entry 911-i having a validity flag V of logic "0". The reception unit 812 then selects an entry 911-k from among one or more empty entries, and sets the received request in the selected entry 911-k. The entry 911-k is, for example, an empty entry having the smallest entry ID.
[0076] At this time, the reception unit 812 sets the valid flag V of entry 911-k to logic "1", and sets the operand Op and address included in the received request to the operand Op and address. The reception unit 812 then generates a busy search request and transmits it to the search unit 818. The busy search request includes the entry ID of entry 911-k and the bank address included in the address of entry 911-k. The busy search request is an example of a time acquisition request.
[0077] The search unit 818 searches the request pipeline 815 for an entry having an address including the bank address included in the received busy search request, and obtains a counter value from the entry. The search unit 818 then generates a busy search response based on the obtained value, and transmits the generated busy search response to the comparator 912 associated with each entry 911-i in the request queue 813.
[0078] The busy search response includes the entry ID included in the received busy search request and a value indicating the waiting time for the request set in the entry 911-k indicated by the entry ID. The search unit 818 obtains the value indicating the waiting time, for example, by subtracting 1 from the obtained value. The busy search response is an example of a time obtainment response.
[0079] A comparator 912 associated with each entry 911-i compares the entry ID of the entry 911-i with the entry ID included in the received busy search response. The entry ID of the entry 911-i is an example of first identification information, and the entry ID included in the busy search response is an example of second identification information.
[0080] If the entry ID included in the busy search response matches the entry ID of the entry 911-i, the comparator 912 sets the busy counter of the entry 911-i to the value included in the busy search response, and sets the entry set flag S of the entry 911-i to logic "1."
[0081] The comparator 912 associated with the entry 911-k sets the busy counter of the entry 911-k to the value included in the busy search response because the entry ID included in the busy search response matches the entry ID of the entry 911-k. The comparator 912 then sets the entry set flag S of the entry 911-k to logic "1".
[0082] The period during which the bank to be accessed is busy can be set as the waiting time in the busy counter of entry 911-k by transmitting a busy search response from the search unit 818 to the comparison unit 912. At this time, by setting the waiting time when the entry ID included in the busy search response matches the entry ID of entry 911-i, it becomes possible to identify the busy counter of the accepted request and set the waiting time.
[0083] The subtraction unit 914 associated with the entry 911-k subtracts a predetermined value from the busy counter for each clock cycle if the value of the busy counter for the entry 911-k is not 0. For example, one cycle is used as the predetermined value. In this case, the value of the busy counter is decremented by one for each clock cycle.
[0084] A check unit 915 associated with the entry 911-k checks the entry set flag S and busy counter of the entry 911-k. If the entry set flag S is a logical "1" and the value of the busy counter is 0, the check unit 915 allows the request held in the entry 911-k to participate in arbitration.
[0085] Therefore, the checking unit 915 selects the operand Op and address of the entry 911-k as a request capable of issuing a command, and outputs it to the arbitration unit 814. At this time, the checking unit 915 releases the entry 911-k by setting the valid flag V and the entry set flag S of the entry 911-k to logic "0". As a result, the entry 911-k becomes a free entry.
[0086] The arbitration unit 814 includes a selector, and when a plurality of requests are output from the entries 911-0 to 911-(N-1), arbitration is performed to select one of the requests and output it to the request pipeline 815.
[0087] The issuing unit 819 issues a command corresponding to the request output from the arbitration unit 814 to the IO control device 123 via the output unit 820. The issuing unit 819 monitors the request pipeline 815, and issues a command while observing the memory penalty for each bank, as shown in Figures 2 and 3.
[0088] The generating unit 817 generates an update request based on a value T0 indicating a predetermined time when a command corresponding to the request output from the arbitration unit 814 is issued. Then, the generating unit 817 transmits the generated update request to the comparing unit 913 associated with each entry 911-i of the request queue 813.
[0089] The update request includes the bank address of the bank to be accessed by the request corresponding to the issued command, and an update value indicating the updated waiting time for the request held in each entry 911-i. The update value indicates the remaining time until the next command can be issued, which is generated by the issued command. The generation unit 817 obtains the update value T0-1, for example, by subtracting 1 from T0.
[0090] A comparator 913 associated with each entry 911-i compares the bank address included in the address of the entry 911-i with the bank address included in the received update request. The bank address included in the address of the entry 911-i is an example of first bank information, and the bank address included in the update request is an example of second bank information.
[0091] If the bank address included in the update request matches the bank address included in the address of the entry 911-i, the comparator 913 sets the update value included in the update request to the busy counter of the entry 911-i. This updates the value of the busy counter of the entry 911-i corresponding to the bank address included in the update request. After the value of the busy counter is updated, the subtractor 914, the checker 915, the arbitrator 814, the request pipeline 815, and the issuer 819 perform the same operations as before the update.
[0092] A new busy state of a bank that occurs as a result of issuing a command can be reflected in the busy counter by sending an update request from the generating unit 817 to the comparing unit 913. At this time, by setting an update value when the bank address included in the update request matches the bank address of the entry 911-i, it becomes possible to identify the busy counter of a request that accesses the busy bank and set the update value.
[0093] By providing the search unit 818 and the generation unit 817, it becomes possible to process requests held in each entry 911-i out of order based on a busy counter.
[0094] 5 checks the busy state of a bank by directly comparing the bank address output from each entry of the request queue 413 with the busy information output from each entry of the request pipeline 415. For this reason, when the number of entries in the request queue 413 and the number of entries in the request pipeline 415 both increase, the number of comparators 511 and the number of signal lines become enormous.
[0095] 8, a busy counter is provided for each entry 911-i of the request queue 813, and a subtractor 914 and a checker 915 are provided for each entry 911-i. This makes it possible to check the busy state of the bank while updating the busy counter for each entry 911-i in the request queue 813.
[0096] In this case, it is only necessary to provide N comparing units 912 and N comparing units 913 corresponding to the N entries 911-i, respectively, and it is not necessary to provide N×M comparators 511. N signal lines are connected between the N comparing units 912 and the search unit 818, and N signal lines are also connected between the N comparing units 913 and the generation unit 817, but it is not necessary to connect N×M signal lines. Therefore, the wiring is improved and the circuit scale is reduced compared to the memory control device 122 in FIG. 4.
[0097] The reduction in the circuit scale of the memory control device 122 contributes to power saving and performance improvement of the CPU 111. Even if the number of banks or throughput of the memory 112 is increased, similar control can be realized by simply adding a small amount of circuitry to the memory control device 122.
[0098] Fig. 10 is a timing chart showing an example of request processing performed by the memory control device 122 of Fig. 8. CLK represents a clock cycle. The shaded rectangles of the requests represent input of the requests from the input unit 811, and the memory addresses below the requests represent the addresses included in the requests. Memory addresses "A0", "A1", and "A2" include the bank address "B0" of a particular bank included in the memory 112.
[0099] The shaded rectangle of the busy search request represents the busy search request sent from the acceptor 812 to the searcher 818. The entry ID and bank address below the busy search request represent the entry ID and bank address included in the busy search request.
[0100] The shaded rectangle in the busy search response represents the busy search response sent from the search unit 818 to the comparison unit 912. The entry ID and value indicating the waiting time below the busy search response represent the entry ID and value indicating the waiting time included in the busy search response.
[0101] Request queue entry 0 to request queue entry 2 represent entries 911-0 to 911-2 of request queue 813. The shaded rectangle of request queue entry i (i=0, 1, 2) indicates that the validity flag V of request queue entry i is logical "1."
[0102] The address, entry set flag, and busy counter under request queue entry i represent the address, entry set flag S, and busy counter contained in entry 911-i. The shaded rectangle of the entry set flag represents that the entry set flag S is logical "1".
[0103] The shaded rectangle for arbitration participation represents the output of a request from the check unit 915 to the arbitration unit 814, and the shaded rectangle for command issuance represents the issuance of a command corresponding to that request.
[0104] Request pipeline entry 0 and request pipeline entry 1 represent entries in the request pipeline 815. A shaded rectangle for request pipeline entry i (i=0, 1) represents that request pipeline entry i is valid. The addresses and counters below request pipeline entry i represent the addresses and counters included in request pipeline entry i.
[0105] The shaded rectangle of the update request represents the update request transmitted from the generation unit 817 to the comparison unit 913. The bank address and update value below the update request represent the bank address and update value included in the update request.
[0106] First, at CLK “0”, a request including memory address “A0” is input. Next, at CLK “1”, the memory address “A0” of the request is set to the address of request queue entry 0, and the valid flag V of request queue entry 0 is changed to logic “1”. Then, a busy search request including entry ID “E0” and bank address “B0” is sent to the search unit 818.
[0107] In this case, since none of the request pipeline entries i are valid, at CLK “2”, the value indicating the waiting time is set to “0”, and a busy search response including the entry ID “E0” and the value “0” is sent from the search unit 818.
[0108] Next, at CLK “3”, the value “0” included in the busy search response is set in the busy counter of request queue entry 0, and the entry set flag S of request queue entry 0 is changed to logical “1”. At this time, since the busy counter is “0”, the request of request queue entry 0 is output to the arbitration unit 814.
[0109] Next, at CLK “4”, a command corresponding to the output request is issued, and request pipeline entry 0 is enabled. Then, the address “A0” and T0 of request queue entry 0 are set in the address and counter of request pipeline entry 0, respectively. In this example, T0=16. Therefore, an update value “15” is obtained by subtracting 1 from “16”, and an update request including the bank address “B0” and the update value “15” is transmitted from the generation unit 817.
[0110] The request held in request pipeline entry 0 is an example of a first processed entry, and the issued command is an example of a first issued command.
[0111] Next, at CLK “5”, the valid flag V and the entry set flag S of request queue entry 0 are changed to logic “0”. The counter of request pipeline entry 0 is decremented by 1 every clock cycle, and becomes “0” at CLK “20”.
[0112] At CLK “10”, a request including memory address “A1” is input. Next, at CLK “11”, the memory address “A1” of the request is set to the address of request queue entry 1, and the valid flag V of request queue entry 1 is changed to logic “1”. Then, a busy search request including entry ID “E1” and bank address “B0” is sent to the search unit 818.
[0113] In this case, since request pipeline entry 0 is valid and has address "A0" which includes bank address "B0" included in the busy search request, counter "8" is obtained from request pipeline entry 0 at CLK "12". Then, 1 is subtracted from "8" to obtain value "7" indicating the waiting time, and a busy search response including entry ID "E1" and value "7" is transmitted from the search unit 818.
[0114] Next, at CLK “13”, the value “7” contained in the busy search response is set in the busy counter of request queue entry 1, and the entry set flag S of request queue entry 1 is changed to logic “1”. The busy counter of request queue entry 1 is decremented by 1 every clock cycle, and becomes “0” at CLK “20”.
[0115] At CLK “11”, a request including memory address “A2” is input. Next, at CLK “12”, the memory address “A2” of the request is set to the address of request queue entry 2, and the valid flag V of request queue entry 2 is changed to logic “1”. Then, a busy search request including entry ID “E2” and bank address “B0” is sent to the search unit 818.
[0116] In this case, since request pipeline entry 0 is valid and has address "A0" which includes bank address "B0" included in the busy search request, counter "7" is obtained from request pipeline entry 0 at CLK "13". Then, 1 is subtracted from "7" to obtain value "6" which indicates the waiting time, and a busy search response including entry ID "E2" and value "6" is transmitted from the search unit 818.
[0117] Next, at CLK “14”, the value “6” contained in the busy search response is set in the busy counter of request queue entry 2, and the entry set flag S of request queue entry 2 is changed to a logical “1”. The busy counter of request queue entry 2 is decremented by 1 every clock cycle, and becomes “0” at CLK “20”.
[0118] At CLK “20”, the busy counters of request queue entry 1 and request queue entry 2 become “0”, so that the requests of request queue entry 1 and request queue entry 2 are output to the arbitration unit 814 .
[0119] Next, at CLK "21", the request in request queue entry 1 is selected and a command corresponding to that request is issued. At this time, request pipeline entry 0 is disabled and request pipeline entry 1 is enabled.
[0120] Then, the addresses “A1” and “16” of the request queue entry 1 are respectively set in the address and counter of the request pipeline entry 1. Furthermore, an update value “15” is obtained by subtracting 1 from “16”, and an update request including the bank address “B0” and the update value “15” is transmitted from the generation unit 817.
[0121] The request held in request pipeline entry 1 is an example of a second processed entry, and the issued command is an example of a second issued command.
[0122] Next, at CLK "22", the valid flag V and the entry set flag S of the request queue entry 1 are changed to logic "0." The counter of the request pipeline entry 1 is decremented by 1 every clock cycle.
[0123] The bank address "B0" included in the address "A2" of the request queue entry 2 matches the bank address "B0" included in the update request. Therefore, at CLK "22", the update value "15" included in the update request is set in the busy counter of the request queue entry 2. The busy counter of the request queue entry 2 is decremented by 1 every clock cycle.
[0124] Fig. 11 is a flowchart showing an example of request processing performed by the memory control device 122 of Fig. 8. First, when a request transmitted from the core 121 is input from the input unit 811, the reception unit 812 receives the input request (step 1101). Then, the reception unit 812 searches for a free entry in the request queue 813, and sets the received request in the entry 911-k, which is a free entry (step 1102).
[0125] Next, the reception unit 812 generates a busy search request including the entry ID of the entry 911-k and the bank address included in the address of the entry 911-k, and transmits the request to the search unit 818.
[0126] The search unit 818 searches the request pipeline 815 for an entry having an address including the bank address included in the received busy search request, and obtains the counter value from the entry (step 1103). The search unit 818 then generates a busy search response including the entry ID included in the busy search request and a value indicating a waiting time based on the obtained value, and transmits the response to the comparator 912 associated with each entry 911-i in the request queue 813.
[0127] In this case, the entry ID included in the busy search response matches the entry ID of entry 911-k, so comparator 912 associated with entry 911-k sets the busy counter of entry 911-k to a value indicating the waiting time included in the busy search response (step 1104).
[0128] Next, the subtraction unit 914 associated with the entry 911-k subtracts 1 from the busy counter for each clock cycle (step 1105). Then, the check unit 915 associated with the entry 911-k compares the value of the busy counter of the entry 911-k with 0 (step 1106). If the value of the busy counter is not 0 (step 1106, NO), the memory control device 122 repeats the processes from step 1105 onwards.
[0129] When the value of the busy counter becomes 0 (step 1106, YES), the check unit 915 outputs the request held in the entry 911-k to the arbitration unit 814, and the arbitration unit 814 outputs the request to the request pipeline 815. Then, the issuing unit 819 issues a command corresponding to the request output from the arbitration unit 814 to the IO control device 123 (step 1107).
[0130] Next, the generation unit 817 generates an update request including the bank address of the bank to be accessed by the output request and an update value indicating the waiting time, and transmits the update request to the comparison unit 913 associated with each entry 911-i of the request queue 813.
[0131] A comparator 913 associated with each entry 911-i compares the bank address included in the address of the entry 911-i with the bank address included in the update request. If the bank address included in the update request matches the bank address included in the address of the entry 911-i, the comparator 913 updates the busy counter of the entry 911-i using the update value included in the update request (step 1108).
[0132] 1 is merely an example, and some of the components may be omitted or changed depending on the application or conditions of the information processing device 101. For example, the information processing device 101 may include an auxiliary storage device or a communication device, and the CPU 111 may include multiple cores.
[0133] 4 is merely an example, and some of the components may be omitted or changed depending on the configuration or conditions of the information processing device 101. The configuration of the check unit 421 in FIG. 5 is merely an example, and some of the components may be omitted or changed depending on the configuration or conditions of the memory control device 122.
[0134] The configuration of the control device 601 in Fig. 6 is merely an example, and some of the components may be omitted or changed depending on the application or conditions of the control device 601. The configuration of the memory control device 122 in Fig. 8 is merely an example, and some of the components may be omitted or changed depending on the configuration or conditions of the information processing device 101. The configuration of the request queue 813 in Fig. 9 is merely an example, and some of the components may be omitted or changed depending on the configuration or conditions of the memory control device 122.
[0135] 2, 3, and 10 are merely examples, and the request processing changes depending on the request input to the memory control device 122. The flowcharts in Figures 7 and 11 are merely examples, and some of the processing may be omitted or changed depending on the configuration or conditions of the control device 601 or the memory control device 122.
[0136] Although the disclosed embodiments and their advantages have been described in detail, it will be appreciated that those skilled in the art may make various modifications, additions and omissions therein without departing from the scope of the invention as clearly set forth in the claims.
[0137] The following notes are further disclosed regarding the embodiment described with reference to FIGS. (Appendix 1) a plurality of pending entries, each of which includes latency information; A setting unit associated with each of the plurality of waiting entries; a subtraction unit associated with each of the plurality of waiting entries; a reception unit that receives an access request for an access target and sets the access request in any one of the plurality of pending entries; an issuing unit that issues a command corresponding to the access request; a control unit that controls issuance of the command based on the waiting time information of any of the waiting entries, the setting unit associated with any one of the waiting entries sets a value indicating a waiting time for the access request to the waiting time information of the any one of the waiting entries; The control device, characterized in that the subtraction section associated with any one of the processing-awaiting entries subtracts a predetermined value from the waiting time information of any one of the processing-awaiting entries for each unit time. (Appendix 2) a number of processed entries, each of which contains remaining time information; A management unit for managing the remaining time information; An acquisition unit that acquires the remaining time information, each of the plurality of processed entries further includes an access request corresponding to an issued command issued prior to the command; the remaining time information of each of the plurality of processed entries indicates a remaining time until a next command following the issued command can be issued; the management unit, when a first issued command is issued, sets a value indicating a predetermined time to the remaining time information of a first processed entry including an access request corresponding to the first issued command among the plurality of processed entries, and subtracts the predetermined value from the remaining time information of the first processed entry for each unit time; When the reception unit receives the access request, the reception unit transmits a time acquisition request to the acquisition unit; The control device described in Appendix 1, characterized in that the acquisition unit acquires the remaining time information from the first processed entry based on the time acquisition request, and transmits a value indicating a waiting time for the access request to the setting unit corresponding to any of the entries waiting to be processed based on the acquired remaining time information. (Appendix 3) any one of the waiting entries further includes first identification information indicating any one of the waiting entries; the time acquisition request includes the first identification information, the acquisition unit transmits a time acquisition response to the setting unit associated with each of the plurality of waiting entries, the time acquisition response including the first identification information included in the time acquisition request as second identification information and including a value indicating a waiting time for the access request; The control device described in Appendix 2, characterized in that the setting unit corresponding to any of the waiting entries sets the waiting time information of any of the waiting entries to a value indicating the waiting time for the access request included in the time acquisition response when the second identification information included in the time acquisition response matches the first identification information of any of the waiting entries. (Appendix 4) an update unit that transmits an updated value indicating an updated waiting time for the access request to the setting unit associated with any of the waiting entries based on the value indicating the predetermined time when a second issued command is issued after the first issued command, the setting unit associated with any one of the waiting entries sets the update value to the waiting time information of the any one of the waiting entries; The control device described in Appendix 2 or 3, characterized in that when the second issued command is issued, the management unit sets the remaining time information of a second processed entry among the multiple processed entries that includes an access request corresponding to the second issued command to a value indicating the specified time. (Appendix 5) the access target is any one of a plurality of banks included in the storage device, when the reception unit receives the access request, the reception unit sets first bank information indicating one of the banks in one of the waiting entries; the update unit transmits an update request including second bank information indicating a bank to be accessed by an access request corresponding to the second issued command among the plurality of banks and the update value to the setting units associated with each of the plurality of waiting entries; The control device described in Appendix 4, characterized in that the setting unit corresponding to any of the entries waiting to be processed sets the update value included in the update request to the waiting time information of any of the entries waiting to be processed when the second bank information included in the update request matches the first bank information of any of the entries waiting to be processed. (Appendix 6) Accept an access request for the access target, setting the access request in any one of a plurality of pending entries each including waiting time information; setting a value indicating a waiting time for the access request to the waiting time information of any one of the waiting entries; subtracting a predetermined value from the waiting time information of any one of the waiting entries for each unit time; controlling issuance of a command corresponding to the access request based on the waiting time information of any one of the waiting entries; A control method characterized in that the processing is executed by a control device. (Appendix 7) the control device has a plurality of processed entries, each of which includes an access request corresponding to an issued command issued before the command, and remaining time information indicating the remaining time until a command following the issued command can be issued; The control device includes: when a first issued command is issued, setting a value indicating a predetermined time to the remaining time information of a first processed entry including an access request corresponding to the first issued command among the plurality of processed entries; subtracting the predetermined value from the remaining time information of the first processed entry for each unit time; generating a time acquisition request when the access request is received; obtaining the remaining time information from the first processed entry based on the time obtaining request; Further processing is carried out, The control method described in Appendix 6, characterized in that the process of setting a value indicating a waiting time for the access request includes a process of setting a value indicating a waiting time for the access request to the waiting time information of any of the entries waiting to be processed based on the acquired remaining time information. (Appendix 8) any one of the waiting entries further includes first identification information indicating any one of the waiting entries; the time acquisition request includes the first identification information, The process of setting a value indicating a waiting time for the access request to the waiting time information of any of the waiting entries based on the acquired remaining time information includes: generating a time acquisition response including the first identification information included in the time acquisition request as second identification information and including a value indicating a waiting time for the access request; The control method described in Appendix 7, characterized in that if the second identification information included in the time acquisition response matches the first identification information of any of the entries waiting to be processed, the control method further comprises a process of setting the waiting time information of any of the entries waiting to be processed to a value indicating the waiting time for the access request included in the time acquisition response. (Appendix 9) when a second issued command is issued after the first issued command, setting the remaining time information of a second processed entry including an access request corresponding to the second issued command among the plurality of processed entries to a value indicating the predetermined time; setting an updated value indicating an updated waiting time for the access request in the waiting time information of any one of the waiting entries based on the value indicating the predetermined time; 9. The control method according to claim 7 or 8, further comprising the step of: (Appendix 10) the access target is any one of a plurality of banks included in the storage device, the process of setting the access request in any one of the waiting entries includes a process of setting first bank information indicating the any one of the banks in any one of the waiting entries; The process of setting the update value in the waiting time information of any one of the waiting entries includes: generating an update request including second bank information indicating a bank to be accessed by an access request corresponding to the second issued command among the plurality of banks, and the update value; The control method described in Appendix 9, characterized in that if the second bank information included in the update request matches the first bank information of any of the entries waiting to be processed, the control method further includes a process of setting the update value included in the update request to the waiting time information of any of the entries waiting to be processed. [Explanation of symbols]
[0138] 101 Information processing device 111 CPU 112 Memory 121 cores 122 Memory Control Device 123 IO Control Device 131, 132 Command bus 141, 142 Data bus 301-1~301-3 ACT 302-1~302-3RD 303-1~303-3 PRE 411, 811 Input section 412, 611, 812 Reception 413, 813 Request Queue 414, 615 Control section 415, 815 Request Pipeline 416, 616, 819 Publishing Department 417, 820 Output section 421, 915 Check Department 422, 814 Mediation Department 511 Comparator 601 Control device 612-1~612-N Pending entries 613-1~613-N Setting section 614-1~614-N, 914 subtraction section 816 Management Department 817 Generation part 818 Search Department 821 Busy Counter 911-0~911-(N-1) entries 912, 913 Comparison section
Claims
1. a plurality of pending entries, each of which includes latency information; A setting unit associated with each of the plurality of waiting entries; a subtraction unit associated with each of the plurality of waiting entries; a reception unit that receives an access request for an access target and sets the access request in any one of the plurality of pending entries; an issuing unit that issues a command corresponding to the access request; a control unit that controls issuance of the command based on the waiting time information of any of the waiting entries, the setting unit associated with any one of the waiting entries sets a value indicating a waiting time for the access request to the waiting time information of the any one of the waiting entries; the subtraction unit associated with any one of the waiting entries subtracts a predetermined value from the waiting time information of any one of the waiting entries for each unit time; A control device, characterized in that a value indicating a waiting time for the access request is set based on a remaining time until a command following an issued command issued before the access request can be issued.
2. a number of processed entries, each of which contains remaining time information; A management unit for managing the remaining time information; An acquisition unit that acquires the remaining time information, each of the plurality of processed entries further includes an access request corresponding to an issued command issued prior to the command; the remaining time information of each of the plurality of processed entries indicates a remaining time until a next command following the issued command can be issued; the management unit, when a first issued command is issued, sets a value indicating a predetermined time to the remaining time information of a first processed entry among the plurality of processed entries, the first processed entry including an access request corresponding to the first issued command, and subtracts the predetermined value from the remaining time information of the first processed entry for each unit time; When the reception unit receives the access request, the reception unit transmits a time acquisition request to the acquisition unit; The control device according to claim 1, characterized in that the acquisition unit acquires the remaining time information from the first processed entry based on the time acquisition request, calculates a value indicating a waiting time for the access request based on the acquired remaining time information, and transmits the value indicating the waiting time for the access request to the setting unit corresponding to any of the entries waiting to be processed.
3. any one of the waiting entries further includes first identification information indicating any one of the waiting entries; the time acquisition request includes the first identification information, the acquisition unit transmits a time acquisition response to the setting unit associated with each of the plurality of waiting entries, the time acquisition response including the first identification information included in the time acquisition request as second identification information and including a value indicating a waiting time for the access request; The control device according to claim 2, characterized in that the setting unit corresponding to any of the waiting entries sets the waiting time information of any of the waiting entries to a value indicating a waiting time for the access request included in the time acquisition response when the second identification information included in the time acquisition response matches the first identification information of any of the waiting entries.
4. an update unit configured to transmit, when a second issued command is issued after the first issued command, an updated value indicating an updated waiting time for the access request based on the value indicating the predetermined time to the setting unit associated with any of the waiting entries; the setting unit associated with any one of the waiting entries sets the update value to the waiting time information of the any one of the waiting entries; The control device according to claim 2 or 3, characterized in that, when the second issued command is issued, the management unit sets a value indicating the specified time to the remaining time information of a second processed entry among the multiple processed entries that includes an access request corresponding to the second issued command.
5. the access target is any one of a plurality of banks included in the storage device, when the reception unit receives the access request, the reception unit sets first bank information indicating the one of the banks in one of the waiting entries; the update unit transmits an update request including second bank information indicating a bank to be accessed by an access request corresponding to the second issued command among the plurality of banks and the update value to the setting units associated with each of the plurality of waiting entries; The control device according to claim 4, characterized in that the setting unit corresponding to any of the waiting entries sets the update value included in the update request to the waiting time information of any of the waiting entries when the second bank information included in the update request matches the first bank information of any of the waiting entries.
6. Accept an access request for the access target, setting the access request in any one of a plurality of pending entries each including waiting time information; setting a value indicating a waiting time for the access request to the waiting time information of any one of the waiting entries; subtracting a predetermined value from the waiting time information of any one of the waiting entries for each unit time; controlling issuance of a command corresponding to the access request based on the waiting time information of any one of the waiting entries; The control device executes the process, A control method, comprising: setting a value indicating a waiting time for the access request based on a remaining time until a command following an issued command issued prior to the access request can be issued.
Citation Information
Patent Citations
Memory access control system
JP1982025054A
Main storage control unit
JP2001154913A
Memory control apparatus
JP2018136592A
