WO2002001363A1 - Memory control device, and memory control method - Google Patents
Memory control device, and memory control method Download PDFInfo
- Publication number
- WO2002001363A1 WO2002001363A1 PCT/JP2001/005412 JP0105412W WO0201363A1 WO 2002001363 A1 WO2002001363 A1 WO 2002001363A1 JP 0105412 W JP0105412 W JP 0105412W WO 0201363 A1 WO0201363 A1 WO 0201363A1
- Authority
- WO
- WIPO (PCT)
- Prior art keywords
- memory control
- delay adjustment
- control device
- memory
- data
- Prior art date
Links
- 238000000034 method Methods 0.000 title claims description 53
- 238000012545 processing Methods 0.000 claims abstract description 80
- 238000012790 confirmation Methods 0.000 claims description 18
- 238000001514 detection method Methods 0.000 claims description 17
- 238000012937 correction Methods 0.000 claims description 16
- 230000006870 function Effects 0.000 claims description 9
- 230000007613 environmental effect Effects 0.000 claims description 6
- 238000005259 measurement Methods 0.000 claims description 2
- 230000000694 effects Effects 0.000 abstract description 3
- 230000001105 regulatory effect Effects 0.000 abstract 2
- 230000001276 controlling effect Effects 0.000 abstract 1
- 238000010586 diagram Methods 0.000 description 24
- 230000007274 generation of a signal involved in cell-cell signaling Effects 0.000 description 11
- 238000013500 data storage Methods 0.000 description 7
- 230000005540 biological transmission Effects 0.000 description 3
- 238000013481 data capture Methods 0.000 description 3
- 230000001360 synchronised effect Effects 0.000 description 3
- 241000209094 Oryza Species 0.000 description 2
- 235000007164 Oryza sativa Nutrition 0.000 description 2
- 230000001934 delay Effects 0.000 description 2
- 230000003111 delayed effect Effects 0.000 description 2
- 235000009566 rice Nutrition 0.000 description 2
- 238000007796 conventional method Methods 0.000 description 1
- 230000002093 peripheral effect Effects 0.000 description 1
- 230000000717 retained effect Effects 0.000 description 1
- 230000000630 rising effect Effects 0.000 description 1
- 238000012546 transfer Methods 0.000 description 1
Classifications
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F13/00—Interconnection of, or transfer of information or other signals between, memories, input/output devices or central processing units
- G06F13/14—Handling requests for interconnection or transfer
- G06F13/16—Handling requests for interconnection or transfer for access to memory bus
Definitions
- the present invention relates to a memory control, and more particularly to a memory control having a characteristic with respect to a timing at which data recorded in a DRAM is taken into a read data register.
- FIG. 12 is a configuration diagram of a conventional memory control device and t-RAM.
- reference numeral 101 denotes a memory control device, which includes an enable signal generation unit 111, a delay circuit 112, and a read data storage register 113.
- Reference numeral 121 denotes a DRAM: and 122 denotes a data bus which is a data path between the memory control device 101 and the DRAM 121.
- the operation of the conventional memory control device having the above configuration is as follows.
- the enable signal generator 111 indicates the value of Higii or Low.
- the enable signal is output to the DRAM 121.
- the DRAM 121 outputs the read data on the data path 122 when the enable signal is Low, that is, when the active state is activated.
- the enable signal generated by the rice pull signal generation unit 111 is also output to the delay circuit 112.
- the enable signal input to the delay circuit 1 1 2 has its polarity inverted and is used as a trigger signal delayed by the setup time of the read data storage register 1 13 as a read data storage register 1 1 Output to 3.
- the setup time is the time during which stable input data must be added before the trigger signal rises in order to load normal data into the read data storage register. is there.
- the read data storage register 113 takes in the read data that has been output from the DRAM 121 and is fixed on the data bus 122 by using a trigger signal.
- the DRAM outputs read data to the data bus 122 by outputting an enable signal.
- a DRAM such as a synchronous DRAM (SDRAM)
- SDRAM synchronous DRAM
- all the operations are performed by a clock.
- Synchronous when a read command is output to such an SDRAM, read data is output on the read bus after a predetermined time has elapsed after the command is accepted, and this type of memory control is determined.
- Devices also exist. In such a memory controller, the “predetermined time” and the time during which data is determined on the read path are all uniquely set with respect to the rising edge of the clock of the SDRAM. Thus, data can be output without using an enable signal.
- the timing of the data capture given by the trigger signal is fixed, wiring delay occurs due to temperature changes, etc., and the capture timing is set at a time when the read data is not fixed on the data bus 122. Possibilities arise. Also, the wiring delay varies depending on the distance between the memory controller 101 and the DRAM 122, so that it is necessary to reset the data fetch timing every time the wiring is performed. For example, when a designed circuit is implemented as an LSI, if the wiring distance to the storage register is long, the read data from the DRAM, which is the input signal of the LSI, means that the read data has not yet been determined at the rise of the trigger signal. , Setup time is not satisfied and data cannot be stored. Therefore, in order to adjust the rise time of the trigger signal in consideration of those wiring delays, it is necessary to reset the data acquisition timing. This is the same in a memory control device that does not use an enable signal and is used for an SDRAM or the like. Disclosure of the invention
- the present invention has been made in view of the above problems, and has as its object to provide a memory control device capable of acquiring read data at an optimal acquisition timing even when a wiring delay occurs in a data path. aimed to.
- a first invention (corresponding to claim 1) includes a clock generation circuit for generating a clock
- a delay adjustment process for delaying the variable delay value with a variable delay value And a delay adjustment circuit that outputs the captured clock.
- a memory control device comprising: a read data register for reading data stored in a memory based on the fetch clock and storing the read data.
- a second aspect of the present invention (corresponding to claim '2) is the present invention, wherein the delay adjustment circuit starts the delay adjustment processing based on an environmental change around the memory control device.
- a third aspect of the present invention (corresponding to claim 3) is the present invention, wherein the delay adjustment circuit starts the delay adjustment processing at a predetermined cycle.
- a fourth aspect of the present invention (corresponding to claim 4) is the above-described aspect of the present invention, wherein the delay adjustment circuit starts delay adjustment processing based on an error detection or error correction operation for the memory.
- a fifth aspect of the present invention (corresponding to claim 5) is the above-mentioned aspect of the present invention, wherein the delay adjustment circuit varies the delay value based on an environmental change around the memory control device.
- a sixth aspect of the present invention is the present invention, wherein the delay adjustment circuit varies the delay value based on a predetermined cycle.
- a seventh aspect of the present invention (corresponding to claim 7) is that the delay adjustment circuit has one or a plurality of delay elements,
- the present invention is the above-mentioned invention in which the clock delay processing is performed by passing the clock through a predetermined number of the delay elements.
- An eighth aspect of the present invention is the above-described aspect of the present invention, wherein the delay adjustment circuit can adjust a delay amount in the delay adjustment processing by external control.
- a ninth invention is a comparison data register for storing the same data as data to be recorded in the memory, A comparison circuit that compares the data stored in the read data register with the data stored in the comparison data register, wherein a predetermined address in the memory is set in the comparison data register; After the data is written, the read data register reads the predetermined data, and the comparison circuit reads the predetermined data in the read data register and the predetermined data in the comparison data register.
- the present invention is the above-mentioned present invention, which performs a write / read confirmation process for collating with the data of the above.
- a tenth aspect of the present invention (corresponding to claim 10) further comprises a register whose contents can be rewritten from the outside,
- the present invention is the above-described present invention, wherein the comparison circuit performs the write Z read confirmation process using the data set in the register.
- the eleventh present invention is the present invention in which the register is at least set to the predetermined address of the memory.
- the delay adjustment circuit performs the delay adjustment processing after the end of the write / read confirmation processing.
- the comparison circuit After the delay adjustment processing is performed, the comparison circuit performs write Z read repetition confirmation processing for performing the write / read confirmation processing again, and performs the write Z read confirmation processing or the write / read confirmation processing. And the delay value is optimized by the write Z-read repetition confirmation processing.
- a thirteenth aspect of the present invention (corresponding to claim 13) is the above-described aspect of the present invention, in which the delay adjustment circuit performs the delay adjustment processing when a control signal is input from the outside.
- a fourteenth aspect of the present invention is that the external signal is The present invention is the signal indicating that the power of the memory control device is turned on.
- a fifteenth aspect of the present invention is the present invention, wherein the external signal is a signal indicating initialization or reset of the memory control device.
- a sixteenth aspect of the present invention (corresponding to claim 16) is the present invention, wherein the external signal is a signal indicating a return from the sleep state of the memory control device.
- the seventeenth invention (corresponding to claim 17) further comprises an arbitration circuit for confirming the access of the block having the access right to the memory and determining the access priority of the block.
- the delay adjustment circuit is the present invention that performs the delay adjustment processing. .
- the eighteenth aspect of the present invention (corresponding to claim 18) is that, when the arbitration circuit confirms that the block is accessing the memory, the delay adjustment circuit performs the delay adjustment processing.
- the present invention does not perform the above.
- a nineteenth invention (corresponding to claim 19) further comprises a counter for counting the number of times that can be set externally or by the register, wherein the arbitration circuit is configured so that the block accesses the memory.
- the delay adjustment circuit does not perform the delay adjustment processing, increments the value of the counter, and performs the delay adjustment processing when the value of the counter reaches a predetermined value. It is an invention.
- the 20th invention (corresponding to claim 20) further includes a timer for measuring time
- the delay adjustment circuit In the present invention, the delay adjustment processing is performed every interval.
- a twenty-first invention (corresponding to claim 21) is the present invention, wherein the predetermined time can be set in the register.
- the second 2 of the present invention (corresponding to claim 2 2) is provided with further temperature monitor for measuring the temperature, 1
- the delay adjustment circuit according to the present invention, wherein the delay adjustment circuit performs the delay adjustment processing based on a temperature change of the block having an access right to the memory.
- a predetermined temperature can be set in the register.
- the present invention is the above-described present invention, wherein when the temperature monitor detects the predetermined temperature, the delay adjustment processing is performed. '
- a twenty-fourth aspect of the present invention (corresponding to claim 24) further includes a voltage monitor for measuring a voltage
- the delay adjusting circuit performs the delay adjusting process based on a block having an access right to the memory or a voltage change of the memory control device.
- a predetermined voltage can be set in the register
- the present invention is the above-described present invention, wherein the delay adjustment process is performed when the voltage monitor detects a voltage equal to or higher than the predetermined voltage.
- a twenty-sixth aspect of the present invention is a method for detecting an error when an error detection block having an access right to the memory detects an error by accessing the memory.
- the delay adjustment circuit is the present invention that performs the delay adjustment processing.
- a twenty-seventh aspect of the present invention is characterized in that when an error correction block having an access right to the memory performs error correction by accessing the memory, However, when the number of times becomes larger than a predetermined number, the delay adjustment circuit performs the delay adjustment processing. 1
- the twenty-eighth invention (corresponding to claim 28) is characterized in that, when the number of times that the block having access right to the memory writes data to the memory reaches a predetermined number,
- the delay adjusting circuit is the present invention that performs the delay adjusting process.
- a twentieth invention (corresponding to claim 29) is the invention described above, wherein the predetermined number of times can be set in the register.
- the provision of the delay adjustment circuit enables the read data capture timing to be adjusted even during actual operation, and sets the capture timing at a time when the read data is always determined. Will be able to be captured. This makes it possible to perform the layout without considering the wiring delay between the memory controller and the DRAM.
- a thirty-fifth aspect of the present invention includes: a clock generation step of generating a clock;
- a read data register storing step of reading data recorded in a memory and storing the read data in a read data register based on the capture clock.
- the delay adjustment step is characterized in that the delay adjustment processing is performed based on an environmental change around the memory controller.
- the present invention is to start the above.
- a thirty-second aspect of the present invention (corresponding to claim 32) is the present invention, wherein the delay adjustment step starts the delay adjustment processing at a predetermined cycle.
- a thirty-third aspect of the present invention (corresponding to claim 33) is the present invention in which the delay adjustment step starts a delay adjustment process based on an error detection or error correction operation for the memory.
- a thirty-fourth aspect of the present invention includes: a comparison data register storing step of storing the same data as the data to be recorded in the memory in the comparison data register;
- a thirty-fifth aspect of the present invention is the memory control device according to the first aspect of the present invention, wherein the clock generation circuit generates a clock.
- the computer functions as all or a part of a delay adjustment circuit that performs delay adjustment processing for delaying and outputs as a capture clock, and a read data register that reads and stores data recorded in a memory based on the capture clock. It is a program for
- the 36th invention (corresponding to claim 36) is a 30th invention of the present invention.
- the computer executes all or part of a read data register storage step of reading data recorded in a memory and storing the data in a read data register. It is a program.
- a thirty-seventh aspect of the present invention is the memory control device according to the first aspect of the present invention, wherein the clock generation circuit generates a clock, and the clock is delayed by a variable delay value.
- a delay adjustment circuit that performs delay adjustment processing to output the data as a capture clock, and a read data register that reads and stores data recorded in a memory based on the capture clock.
- a thirty-eighth aspect of the present invention is a memory control method according to a thirtieth aspect of the present invention, wherein the clock generating step of generating a clock; A delay adjustment step of performing delay adjustment processing for delaying the data and outputting it as a capture clock; and a read data register for reading data recorded in a memory based on the capture clock and storing the data in a read data register.
- a medium that carries a program for causing a computer to execute all or a part of the storage process and is a medium that can be processed by a computer.
- FIG. 1 is a block diagram of a memory control apparatus according to the first embodiment of the present invention
- FIG. 2 is a timing chart for storing read data from the DRAM.
- FIG. 3 is a configuration diagram of a memory control device according to Embodiment 2 of the present invention.
- FIG. 4 is a configuration diagram of a memory control device according to Embodiment 3 of the present invention.
- FIG. 5 is a configuration diagram of a memory control device according to Embodiment 4 of the present invention.
- FIG. 6 is a configuration diagram of a memory control device according to the fifth embodiment of the present invention.
- FIG. 7 is a configuration diagram of a memory control device according to Embodiment 6 of the present invention.
- FIG. 8 is a configuration diagram of a memory control device according to Embodiment 7 of the present invention.
- FIG. 9 is a configuration diagram of a memory control device according to Embodiment 8 of the present invention.
- FIG. 10 is a configuration diagram of a memory control device according to Embodiment 9 of the present invention.
- FIG. 11 is a configuration diagram of a memory control device in which the embodiments of the present invention are collectively configured.
- FIG. 12 is a configuration diagram of a memory control device according to a conventional technique.
- Figure 13 is a timing chart for storing read data from the DRAM of the prior art.
- FIG. 14 (a) is a diagram for describing an example of the write Z-read process according to the second embodiment of the present invention. '
- FIG. 14B is a diagram for explaining an example of the write / read processing according to the second embodiment of the present invention.
- FIG. 1 is a configuration diagram of a memory control device according to a first embodiment of the present invention.
- 1 is a memory control device, and 1 is a capture clock.
- a generation circuit, 12 is a delay adjustment circuit, 13 is a read data register, and 31 is a DRAM.
- 100 is an rice signal generator, and 110 is a data path.
- FIG. 2 is a diagram showing the timing of storing data read from the DRAM 31 in the read data register 13.
- the time during which the data read from the DRAM 31 is determined on the data bus 110 (t_data) is determined by the period of the enable signal output from the enable signal generator 100, and the time The read data must be loaded into the read data register 13.
- the delay adjustment circuit 12 adjusts the delay time and outputs the adjusted capture clock to the read data register 13.
- the read data can be stored in the read data register 13 even if the time during which the read data is determined on the data bus 110 fluctuates due to wiring delay or the like.
- the setting of the delay value in the delay adjustment circuit 12 is performed as follows. In advance, determine an appropriate delay value from the specifications of the DRAM 31 and the wiring delay of the read data, enable signal, etc. from the DRAM 31 and set it at approximately the center of the fixed time of the read data on the output data bus 110. Set the value so that the capture clock comes, and set this as the initial value.
- the delay value in the delay adjustment circuit 12 is reset according to that, and the read data is read. You can adjust the amount of delay in the capture window so that it is time to capture it reliably.
- the read data is always stored on the data bus 110.
- the data can be surely taken into the read data register 13 at the time determined above.
- a plurality of delay elements may be provided, and the number of delay elements that pass through the intake port may be changed according to a desired delay value.
- Means for changing the delay value according to the control of an external CPU or the like may be used. .
- the memory control device includes a circuit necessary for confirming whether or not the write / read operation can be normally performed on the DRAM 31. This will be described below with reference to FIG.
- FIG. 3 is a configuration diagram of a memory control device according to Embodiment 2 of the present invention.
- Reference numeral 14 denotes a comparison data register
- reference numeral 15 denotes a comparison circuit
- reference numeral 19 denotes a register
- reference numeral 32 denotes a block A.
- the description of the enable signal generation circuit 100 is omitted because the same configuration and operation as those of the first embodiment are performed.
- the comparison data register When data is written from the block A32 to the DRAM31, the comparison data register stores the same data from the block A32.
- the comparison circuit 15 compares the read data with the data stored in the read data register 13. And compare it with the data stored in the data register 14.
- comparison circuit 15 If the comparison result of comparison circuit 15 is the same, it was written to DRAM 31 If the capture clock is set within the time that the data is read data is determined, and there is a discrepancy in the comparison result, the capture clock is shifted, so the delay adjustment circuit 12 resets the delay value. It is possible to confirm that it is necessary to carry out.
- the data written in the DRAM 31 and the address in the DRAM 31 can be specified by setting the register 19 which can be rewritten from the outside.
- the data read to the read data register 13 and the data in the comparison data register 14 are Is referred to as a write Z read process.
- the delay value data in the delay adjustment circuit 12 may be set in the register 19, or the fetched clock input to the delay adjustment circuit 12 may be inverted, and Alternatively, data such as inversion control data for adjustment by the delay adjustment circuit 12 1 may be set and used for the write / read processing.
- FIG. 14 shows an example of the inversion control data. As shown in Fig.
- the capture clock if the capture clock is set at a timing when the read data is not determined, the write / read signal is inverted by the inversion control data as shown in Fig. 14 (b). Inverts the capture clock during read processing. Thus, the capture clock can be set at the timing when the read data is determined.
- the read data from the DRAM 31 is set within the range determined on the data path 110 and the read data is set. It is not known at which timing in the range where the data is fixed the capture timer is set. In this case, a small delay may cause the capture clock to shift to the time domain where the read data is not determined. In such a case, write an arbitrary value to the DRAM 31 and make sure that the value can be read.
- ⁇ Set a predetermined delay value in the delay adjustment circuit 12 and check with the method described above. I do.
- the delay value in the delay adjusting circuit 12 is set to a value different from the predetermined value, and the write / read processing is performed again. At this time, the delay value may be set to the front or the back of the time arbitrarily. For example, by alternately setting the front and the back, it is possible to determine the direction of the delay value shift. Become.
- the delay adjusting circuit 12 sets the center value of the delay value having the predetermined range as the final delay value.
- the memory control device of the present embodiment it is possible to set the capture clock at a timing at which the data of DRAM 31 can be reliably read.
- the memory control device is such that the delay adjustment processing is performed when an external signal is input. This will be described below with reference to FIG.
- FIG. 4 is a configuration diagram of a memory control device according to Embodiment 3 of the present invention.
- the same or corresponding parts as those in FIG. 21 is an arbitration circuit.
- Description of the enable signal generation circuit 100 is omitted because it performs the same configuration and operation as in the first embodiment.
- the signal input to the memory control device 1 as an external signal includes a signal indicating a power-on, a reset signal, and a signal indicating a return from a sleep state of the power supply.
- the delay adjustment circuit 12 performs the delay adjustment processing when an external signal is input, thereby setting before the block A32 accesses the DRAM 31.
- the read data from the DRAM 31 can be surely taken into the read data register 13.
- the arbitration circuit 21 block A 32 is not accessing the DRAM 31, and during that time, the delay adjustment circuit 12 performs delay adjustment processing.
- the time when the DRAM 31 is not accessed can be effectively used without interrupting the access to the DRAM 31 of the block A32, and the data of the DRAM 31 can always be read reliably. It becomes possible to do.
- the arbitration circuit 21 is mounted on the configuration of the second embodiment
- the arbitration circuit may be added to the configuration of the first embodiment. Can obtain the same effect as that of the present embodiment c (Embodiment 4).
- FIG. 5 is a configuration diagram of a memory control device according to Embodiment 4 of the present invention.
- the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted.
- 16 is a timer
- 20 is a counter.
- the enable signal generation circuit 100 has the same configuration and operation as the first embodiment, so that the description is omitted.
- Embodiment 4 of the present invention having the above configuration
- the operation of the device will be described, and an embodiment of the memory control method according to the present invention will be described.
- portions common to Embodiments 2 to 4 are omitted, and only differences are described.
- the time is set by the timer 16 and the delay adjusting circuit 12 performs the delay adjusting process at a fixed time interval, which is an example of the predetermined time of the present invention, set in the timer 16.
- the fixed time interval may be set by an external register 19 to be adjustable, or may be a fixed value held by the delay adjustment circuit 12. Good.
- the register 19 may be omitted.
- the arbitration circuit 21 permits access to the DRA 31 of the block A 32, and if the access is being made, the arbitration circuit 21 gives priority to the access to the DRA 31 and delay adjustment processing is performed. Is not performed, or the delay adjustment processing a is performed after the access of the block A32 to the DRAM 31 is completed.
- the counter 20 counts the number of times that the access of the block A32 has priority, and the count value is incremented to a certain number. If it has, the priority of block A32 is lowered and the delay adjustment circuit 12 performs delay adjustment processing.
- the memory control device of the present embodiment it is possible to always reliably read the data of DRAM 31 by adjusting the delay value periodically.
- FIG. 6 is a configuration diagram of a memory control device according to Embodiment 5 of the present invention.
- the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted.
- 17 is a temperature monitor.
- the enable signal generation circuit 100 has the same configuration and operation as in the first embodiment, so that the description is omitted. '
- the temperature monitor 17 monitors the temperatures of the DRAM 31 and the memory controller 1, and if there is a change from the temperature when the block A 32 previously accessed the DRAM 31, the delay adjustment circuit 1 2 performs delay adjustment processing. This makes it possible to set the optimum delay value according to the temperature change during operation.
- the temperature at which the delay adjustment circuit 12 performs the delay adjustment is not limited to the temperature of the previous DRAM 31 and the memory controller 1 but may be a value that can be externally set by the register 19. You may. Of course, the register 19 may be omitted.
- the arbitration circuit 21 if the arbitration circuit 21 permits access to the DRAM 31 of the block A32 and the access is being made, the arbitration circuit 21 gives priority to that access and does not perform the delay adjustment processing. Alternatively, the delay adjustment processing is performed after the access to the DRAM 31 of the block A32 is completed.
- counter 20 counts the number of times block A32 has been given priority in access. When the count value reaches a certain number, the priority of block A32 is lowered, and the delay adjustment circuit 12 performs delay adjustment processing.
- the delay value is adjusted, so that the DRAM 31 data can always be read reliably. It is possible to do.
- FIG. 7 is a configuration diagram of a memory control device according to Embodiment 6 of the present invention.
- the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted.
- Reference numeral 18 denotes a power supply voltage monitor. The description of the enable signal generation circuit 100 is omitted because the same configuration and operation as in the first embodiment are performed.
- Embodiment 5 of the present invention having the above-described configuration will be described below, and an embodiment of the memory control method of the present invention will be described. However, parts common to Embodiments 2 to 5 are omitted, and only differences are described.
- the wiring delay changes to the data path 110 due to a change in the power supply voltage or the like, and there is a possibility that the read data cannot be taken.
- the power supply voltage monitor 18 monitors the power supply voltage of the memory controller 1 and delays if there is a change from the voltage when block A 32 previously accessed the DRAM 31.
- Adjustment circuit 12 performs delay adjustment processing. This makes it possible to set the optimum delay value according to the voltage change during operation.
- the voltage at which the delay adjustment circuit 12 performs the delay adjustment is not limited to the voltage at which the block A 32 previously accessed the DRAM 31 but may be externally applied to the register. It may be a value that can be set according to 19.
- the register 19 may be omitted.
- the arbitration circuit 21 permits access to the DRAM 31 of the block A 32, and when the access is being made, the arbitration circuit 21 gives priority to the access, and the delay adjustment processing is performed. Should not be performed, or delay adjustment processing will be performed after the access of block A32 to DRAM 31 is completed. "
- counter 20 counts the number of times that block A 32 has priority over access, and the count value reaches a certain number. In this case, the priority of the block A32 is lowered, and the delay adjustment circuit 12 performs the delay adjustment processing.
- the delay value is adjusted, so that the data of the DRAM 31 is always reliably read. It is possible to do.
- the power supply voltage monitor of the present embodiment is an example of the voltage monitor of the present invention, and the voltage monitor of the present invention is not limited to the operation of the above embodiment, and may be a predetermined portion of the memory control device ⁇ , or The voltage of the block performing data access may be monitored.
- FIG. 8 is a configuration diagram of a memory control device according to Embodiment 7 of the present invention.
- 33 is an error detection block.
- the description of the enable signal generation circuit 10 is omitted in order to perform the same configuration and operation as in the first embodiment.
- the counter 20 counts the number of error detections per specific number of codewords to be detected, and when the number of times exceeds a certain number, the delay adjusting circuit 12 adjusts the delay. Perform processing.
- a fixed number of error detection times may be set in an externally rewritable register 19 or may be stored in the DRAM 31 as a constant in advance. When the data is stored in the DRAM 31, the register 19 may be omitted.
- the arbitration circuit 21 permits access to the DR A M31 of the block A32, and if access is being made, the arbitration circuit 21 gives priority to the access and does not perform the delay adjustment processing. Or, after the access to the DRAM 31 of the block A 32 is completed, the delay adjustment processing a is performed.
- the counter 20 counts the number of times that the access of the block A32 is prioritized, and when the count value reaches a certain number, the block counts. Lower the priority of A32 so that the delay adjustment circuit 12 performs delay adjustment processing.
- the memory control device of the present embodiment it is possible to prevent an increase in the number of error detections due to incorrect reading of the DRAM 31.
- FIG. 9 is a configuration diagram of a memory control device according to the eighth embodiment of the present invention.
- the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted.
- Reference numeral 34 denotes an error correction block. The description of the enable signal generation circuit 100 is omitted because it performs the same configuration and operation as in the first embodiment. '
- the error correction block 34 makes an error correction by accessing the DRAM 31, if the error occurs, the data recorded in the DRAM 31 as well as the data that actually contains the error will be confirmed. There is a possibility that they cannot be imported to the Internet.
- the number of error corrections is counted by the counter 20, and when the number of corrections becomes larger than a certain number, the delay adjusting circuit 12 performs a delay adjusting process.
- the fixed number of error correction times may be set to the number set in the externally rewritable register 19, or may be stored in the DRAM 31 as a constant in advance.
- the register 19 may be omitted.
- the arbitration circuit 21 permits access to the DRAM 31 of the block A 32, and when the access is being performed, the arbitration circuit 21 gives priority to the access, and the delay adjustment processing is performed. Either this is not performed, or delay adjustment processing is performed after access to DRAM 31 of block A 32 is completed. '
- the counter 20 counts the number of times that the block A32 has been given priority for access, and when the count value reaches a certain number, the priority of the block A32 is lowered, and the delay adjustment circuit 12 performs the delay adjustment processing. Try to do it.
- the number of times at this time may be retained in the DRAM 31 with the force set in the register 19. '
- the memory control device of the present embodiment it is possible to prevent an increase in the number of uncorrectable errors due to incorrect reading of the DRAM 31.
- FIG. 10 is a configuration diagram of a memory control device according to Embodiment 9 of the present invention.
- the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted.
- description of the enable signal generation circuit 100 is omitted because the same configuration and operation as those in the first embodiment are performed.
- the memory control device performs delay adjustment processing in accordance with the number of times of writing of the block A3'2, and counts the number of times that the block A32 has written to the DR A31 by the counter 20, and When the number of times of writing becomes larger than a certain number, the delay adjusting circuit 12 performs a delay adjusting process. At this time, a fixed number of write times may be set in the externally rewritable register 19, or may be stored in the DRAM 31 as a constant in advance. When the data is stored in the DRAM 31, the register 19 may be omitted.
- the DRA By adjusting the delay value every time the number of writes to M31 reaches a specific number, it is possible to always read the data of DRAM31 reliably.
- the memory control device may be realized in one memory control device as shown in FIG. 11, and in this case, the environment surrounding the memory control device, the data access
- the optimal data capture timing can be obtained according to various conditions, such as the situation and the number of times.
- the memory of the present invention is a DRAM in each embodiment, but may be an SRAM in other embodiments. In this case, the same effect as described above can be obtained.
- the present invention provides a memory such as an SDRAM.
- the operation may be implemented as a memory control device for a memory whose operations are all synchronized with a clock, output data without using an enable signal, and can be determined on a data bus. That is, the present invention is implemented as a memory control device having no enable signal generation unit 100 or means equivalent thereto.
- the delay value of the delay adjustment circuit 12 is determined by the temperature monitor 17. The voltage may be changed based on the temperature measured by the power supply or the voltage measured by the power supply voltage monitor 18. Further, it may be changed based on a predetermined cycle set by the timer 16 and the counter 20.
- the memory control device according to the embodiment of the present invention has been described.
- the present invention relates to all or a part of the memory control device of the present invention described above (or the device). , Elements, circuits, sections, etc.) by a computer. It may be a program that operates in cooperation with a computer.
- the present invention is a program for causing a computer to execute all or some of the steps (or steps, operations, actions, etc.) of the above-described memory control method of the present invention. May be a program that works
- the present invention is a medium which carries a program for causing a computer to execute all or a part of the functions of all or part of the memory control device of the present invention described above.
- the read program may be a medium that executes the function in cooperation with the computer.
- the present invention is a medium that carries a program for causing a computer to execute all or a part of the operations of all or some of the above-described memory control methods of the present invention.
- the read program may be a medium that executes the operation in cooperation with the computer.
- some devices (or elements, circuits, units, and the like) of the present invention mean several devices among a plurality of devices, or one device among one device. It means a unit means (or an element, a circuit, a unit, or the like), or means a part of functions of a group of three means.
- a computer-readable recording medium that records the program of the present invention is also included in the present invention.
- One use form of the program of the present invention may be a form in which the program is recorded on a computer-readable recording medium and operates in cooperation with the computer.
- one usage form of the program of the present invention may be a mode in which the program is transmitted through a transmission medium, read by a computer, and operates in cooperation with a ⁇ computer. .
- the data structure of the present invention includes a database, a data format, a data table, a data list, a data type, and the like.
- the recording medium includes ROM and the like
- the transmission medium includes a transmission medium such as the Internet, light, radio waves, and sound waves.
- the computer of the present invention described above is not limited to pure hardware such as a CPU, but may include a firmware, an OS, and peripheral devices.
- the configuration of the present invention may be implemented in a software manner or in hardware.
- INDUSTRIAL APPLICABILITY As is clear from the above description, according to the present invention, it is possible to adjust the timing at which the read data is captured, and to surely recover the read data even in various situations. Data can be captured.
Landscapes
- Engineering & Computer Science (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Dram (AREA)
Abstract
A memory control device for controlling a DRAM, wherein data recorded in the DRAM is positively captured into a register. The memory control device comprises a capturing clock generating circuit (11) for generating a clock, a delay regulating circuit (12) for performing on the clock a delay regulating processing that effects delaying with a variable delay value and outputting the processed clock as a capturing clock, and a read-data register (13) for reading and storing data recorded in a memory based on the capturing clock.
Description
明 細 書 Specification
メモリ制御装置、 メモリ制御方法 Memory control device and memory control method
技術分野 ' Technical field '
本発明はメモリ制御に関するもので、 特に DRAMに記録されている データをリ一ドデータレジスタに取り込むタイミングに対し特徴を持つ ものに関する。 The present invention relates to a memory control, and more particularly to a memory control having a characteristic with respect to a timing at which data recorded in a DRAM is taken into a read data register.
背景技術 Background art
従来、 DRAMに記録されているデータをリ一ドレジスタに取り込む タイミングに関するメモリ制御装置として、 特開平 1 1— 21 2855 号公報に記載されたものが知られている。 具体的に D R AM制御におけ るリードデータの格納タイミングを決定する例について、 図 1 2、 図 1 2. Description of the Related Art Conventionally, as a memory control device relating to the timing of taking data recorded in a DRAM into a read register, the one described in Japanese Patent Application Laid-Open No. 11-285585 is known. For specific examples of determining the storage timing of read data in DRAM control, see Figs.
3を用いて説明する。 なお、 上記特開平 1 1一 212855号公報の全 ての開示は、 そっくりそのまま引用する (参照する) ことにより、 ここ に一体化する。 This will be described using 3. The entire disclosure of the above-mentioned Japanese Patent Application Laid-Open No. 11-212855 is incorporated herein by reference in its entirety.
図 1 2は、 従来の技術によるメモリ制御装置および t» RAMの構成図 である。 図において、 101がメモリ制御装置で、 その中に、 イネーブ ル信号生成部 1 1 1、 ディレイ回路 1 12、 リードデータ格納レジスタ 1 1 3が含まれる。 また 121は DRAM:、 1 22はメモリ制御装置 1 01と DRAM 121と間のデータの経路と'なるデータバスである。 以上のような構成を有する従来のメモリ制御装置の動作は次のような ものである。 DRAM1 21に記録されているデータをリードする場合 、 ィネーブル信号生成部 11 1は、 H i g iiまたは L o wのこ値で表さ
れるィネーブル信号を DRAM 121に対して出力する。 DRAM1 2 1は、 イネ一プル信号が L ow、 すなわちアクティブ状態になったとき 、 データパス 1 22上にリードデータを出力する。 FIG. 12 is a configuration diagram of a conventional memory control device and t-RAM. In the figure, reference numeral 101 denotes a memory control device, which includes an enable signal generation unit 111, a delay circuit 112, and a read data storage register 113. Reference numeral 121 denotes a DRAM: and 122 denotes a data bus which is a data path between the memory control device 101 and the DRAM 121. The operation of the conventional memory control device having the above configuration is as follows. When reading data recorded in the DRAM 121, the enable signal generator 111 indicates the value of Higii or Low. The enable signal is output to the DRAM 121. The DRAM 121 outputs the read data on the data path 122 when the enable signal is Low, that is, when the active state is activated.
一方、 メモリ制御装置 101内部においては、 イネ一'プル信号生成部 1 1 1で生成.されたイネ一ブル信号はディレイ回路 1 12へも出力され る。 ディレ'ィ回路 1 1 2に入力されたィネーブル信号は、' その極性が反 転され、 リードデータ格納レジスタ 1 1 3のセットアップ時間分だけ遅 延させたトリガ信号として、 リ一ドデータ格納レジスタ 1 1 3に出力さ れる。 ここで図 1 3に示すように、 セットアップ時間とは、 リードデー タ格納レジスタに正常なデータを取り込むために、 トリガ信号の立ち上 がりよりも前に、 安定な入力データを加えなければならない時間である。 リードデータ格納レジスタ 1 13は、 トリガ信号を用いて、 DRAM1 21から出力され、 データバス 122上に確定しているリードデータを 取り込む。 ただし、 上記の構成においては、 DRAMがィネーブル信号 の出力によりリードデータをデータバス 122に出力するものとしたが 、 例えばシンクロナス DRAM (SDRAM) のような DRAMの場合 は、 その動作がすべてクロックに同期しており、 このような SDRAM にリードコマンドを出力すると、 該コマンドを受け付けてから、 所定の 時間後にリ一ドバス上にリ一ドデータが出力、 確定されるようになって いるタイプのメモリ制御装置も存在する。 かかるメモリ制御装置におい ては、 この 「所定の時間」 や、 リードパス上にデータが確定している時 間は、 すべて S DRAMのクロックの立ち _tがりに対して一意に設定さ れており、 これにより、 ィネーブル信号を用いることなくデータを出力 することが可能となる。 On the other hand, in the memory control device 101, the enable signal generated by the rice pull signal generation unit 111 is also output to the delay circuit 112. The enable signal input to the delay circuit 1 1 2 has its polarity inverted and is used as a trigger signal delayed by the setup time of the read data storage register 1 13 as a read data storage register 1 1 Output to 3. Here, as shown in Fig. 13, the setup time is the time during which stable input data must be added before the trigger signal rises in order to load normal data into the read data storage register. is there. The read data storage register 113 takes in the read data that has been output from the DRAM 121 and is fixed on the data bus 122 by using a trigger signal. However, in the above configuration, the DRAM outputs read data to the data bus 122 by outputting an enable signal.However, in the case of a DRAM such as a synchronous DRAM (SDRAM), for example, all the operations are performed by a clock. Synchronous, when a read command is output to such an SDRAM, read data is output on the read bus after a predetermined time has elapsed after the command is accepted, and this type of memory control is determined. Devices also exist. In such a memory controller, the “predetermined time” and the time during which data is determined on the read path are all uniquely set with respect to the rising edge of the clock of the SDRAM. Thus, data can be output without using an enable signal.
ところで、 高速ページモードをサポートした D RAMゃシ.ンク口ナス DRAMなどを使用レデータの転送速度を早めようとすると、 リ一ドデ
ータがデータバス 1 2 2上にて確定している時間が自ずと短くなる。 リ 一ドデータ格納レジスタ 1 1 3は、 その確定している時間にリードデー タを取り込まなくてはならない。 By the way, if you try to increase the data transfer speed by using a DRAM with a high-speed page mode and a thin DRAM, etc. The time that the data is fixed on the data bus 1 2 2 is naturally shortened. The read data storage register 113 must take in the read data at the fixed time.
しかしながら、 トリガ信号により与えられるデータ取り込みのタイミ ングが固定されていた場合、 温度変化等で配線遅延が生じ、 データバス 1 2 2上にリードデータが確定していない時間に取り込みタイミングが 設定される可能性が生じる。 またメモリ制御装置 1 0 1 と D R AM 1 2 1間の距離によっても配線遅延にばらつきができてしまうため、 配線の レイァゥトの度に、 データ取り込みのタイミングの再設定が必要となる。 例えば、 設計した回路を L S I化する際に、 格納レジスタまでの配線 距離が長ければ、 該 L S Iの入力信号である D R AMからのリードデー タは、 トリガ信号の立ち上がり時にはまだ確定していないことになり、 セッ トアップ時間が満たせず、 データを格納することができない。 そこ で、 それらの配線遅延を考慮して、 トリガ信号の立ち上がり時間を調節 するために、 データ取り込みのタイミングの再設定が必要となる。 これ はィネーブル信号を用いない、 S D R AM等に対して用いるメモリ制御 装置でも同様となっていた。 発明の開示 However, if the timing of the data capture given by the trigger signal is fixed, wiring delay occurs due to temperature changes, etc., and the capture timing is set at a time when the read data is not fixed on the data bus 122. Possibilities arise. Also, the wiring delay varies depending on the distance between the memory controller 101 and the DRAM 122, so that it is necessary to reset the data fetch timing every time the wiring is performed. For example, when a designed circuit is implemented as an LSI, if the wiring distance to the storage register is long, the read data from the DRAM, which is the input signal of the LSI, means that the read data has not yet been determined at the rise of the trigger signal. , Setup time is not satisfied and data cannot be stored. Therefore, in order to adjust the rise time of the trigger signal in consideration of those wiring delays, it is necessary to reset the data acquisition timing. This is the same in a memory control device that does not use an enable signal and is used for an SDRAM or the like. Disclosure of the invention
本発明は上記の課題に鑑みてなされたものであり、 .データパスに配線 遅延が生じた場合にも、 最適の取り込みタイミングでリードデータを取 り込むことが可能なメモリ制御装置を得るこ'とを目的とする。 SUMMARY OF THE INVENTION The present invention has been made in view of the above problems, and has as its object to provide a memory control device capable of acquiring read data at an optimal acquisition timing even when a wiring delay occurs in a data path. aimed to.
上記の目的を達成するために、 第 1の本発明 (請求項 1に対応) は、 ク口ックを生成するクロック生成回路と、 In order to achieve the above object, a first invention (corresponding to claim 1) includes a clock generation circuit for generating a clock,
前記ク口ックに、 可変する遅延値にて遅延させるディレイ調節処理を
行い、 取り込みクロックとして出力するディレイ調節回路と、 A delay adjustment process for delaying the variable delay value with a variable delay value And a delay adjustment circuit that outputs the captured clock.
前記取り込みクロックに基づき、 メモリに記録ざれているデータをリ 一ドして格納するリ一ドデータレジスタとを備えたメモリ制御装置であ る。 A memory control device comprising: a read data register for reading data stored in a memory based on the fetch clock and storing the read data.
また、 第 2 本発明 (請求項 '2に対応) は、 前記ディレイ調節回路は 、 該メモリ制御装置周辺の環境変化に基づき前記ディレイ調節処理を開 始する上記本発明である。 A second aspect of the present invention (corresponding to claim '2) is the present invention, wherein the delay adjustment circuit starts the delay adjustment processing based on an environmental change around the memory control device.
また、 第 3の本発明 (請求項 3に対応) は、 前記ディレイ調節回路は 、 所定の周期にて前記ディレイ調節処理を開始する上記本発明である。 また、 第 4の本発明 (請求項 4に対応) は、 前記ディレイ調節回路は 、 前記メモリに対する誤り検出または誤り訂正の動作に基づきディレイ 調節処理を開始する上記本発明である。 A third aspect of the present invention (corresponding to claim 3) is the present invention, wherein the delay adjustment circuit starts the delay adjustment processing at a predetermined cycle. A fourth aspect of the present invention (corresponding to claim 4) is the above-described aspect of the present invention, wherein the delay adjustment circuit starts delay adjustment processing based on an error detection or error correction operation for the memory.
また、 第 5の本発明 (請求項 5に対応) は、 前記ディレイ調節回路は 、 該メモリ制御装置周辺の環境変化に基づき前記遅延値を可変する上記 本発明である。 A fifth aspect of the present invention (corresponding to claim 5) is the above-mentioned aspect of the present invention, wherein the delay adjustment circuit varies the delay value based on an environmental change around the memory control device.
また、 第 6の本発明 (請求項 6に対応) は、 前記ディレイ調節回路は 、 所定の周期に基づき前記遅延値を可変する上記本発明である。 A sixth aspect of the present invention (corresponding to claim 6) is the present invention, wherein the delay adjustment circuit varies the delay value based on a predetermined cycle.
また、 第 7の本発明 (請求項 7に対応) は、 前記ディレイ調節回路は 、 1つまたは複数の遅延素子を有し、 A seventh aspect of the present invention (corresponding to claim 7) is that the delay adjustment circuit has one or a plurality of delay elements,
前記クロックに所定数の前記遅延素子を経由させる.ことにより、 前記 ク口ック遅延処理を行う上記本発明である。 The present invention is the above-mentioned invention in which the clock delay processing is performed by passing the clock through a predetermined number of the delay elements.
また、 第 8の本発明 (請求項 8に対応) は、 前記ディレイ調節回路は 、 外部からの制御により、 前記ディレイ調節処理における遅延量を調節 できる上記本発明である。 - また、 第 9の本発明 (請求項 9に対応) は、 前記メモリへの記録対象 となるデータと同一のデータを格納する比較用データレジスタと、
前記リードデータレジスタに格納されたデータと、 前記比較用データ レジスタに格納されているデータとを比較する比較回路とを備え、 前記メモリ内の所定のァドレスおょぴ前記比較用データレジスタに所 定のデータがライ トされた後、 前記リードデータレジスタは、 前記所定 のデータをリードし、 前記比較回路は、 前記リードデータレジスタ内の 前記所定のヂータ.と、 前記比較用データレジスタ内の前記所定のデータ とを照合するライ ト /リード確認処理を行う上記本発明である。 An eighth aspect of the present invention (corresponding to claim 8) is the above-described aspect of the present invention, wherein the delay adjustment circuit can adjust a delay amount in the delay adjustment processing by external control. -Further, a ninth invention (corresponding to claim 9) is a comparison data register for storing the same data as data to be recorded in the memory, A comparison circuit that compares the data stored in the read data register with the data stored in the comparison data register, wherein a predetermined address in the memory is set in the comparison data register; After the data is written, the read data register reads the predetermined data, and the comparison circuit reads the predetermined data in the read data register and the predetermined data in the comparison data register. The present invention is the above-mentioned present invention, which performs a write / read confirmation process for collating with the data of the above.
また、 第 1 0の本発明 (請求項 1 0に対応) は、 外部から内容を書き 換え可能なレジスタをさらに備え、 Further, a tenth aspect of the present invention (corresponding to claim 10) further comprises a register whose contents can be rewritten from the outside,
前記比較回路は、 前記レジスタに設定されたデータを用いて、 前記ラ ィト Zリード確認処理を行う上記本発明である。 The present invention is the above-described present invention, wherein the comparison circuit performs the write Z read confirmation process using the data set in the register.
また、 第 1 1の本発明 (請求項 1 1に対応) は、 前記レジスタには、 前記メモリの前記所定のァドレスが少なくとも設定される上記本発明で ある。 The eleventh present invention (corresponding to claim 11) is the present invention in which the register is at least set to the predetermined address of the memory.
また、 第 1 2の本発明 (請求項 1 2に対応) は、 前記ディレイ調節回 路は、 前記ライ ト /リード確認処理の終了後、 前記ディレイ調節処理を 行い、 According to a twelfth aspect of the present invention (corresponding to claim 12), the delay adjustment circuit performs the delay adjustment processing after the end of the write / read confirmation processing.
前記比較回路は、 前記ディレイ調節処理が行われた後; 再び前記ライ ト /リード確認処理を行うライト Zリード繰り返し確認処理を行い、 前記ライト Zリード確認処理、 または前記ライト /.リード確認処理お よび前記ライ ト Zリード繰り返し確認処理により、 前記遅延値は最適化 される上記本発明である。 After the delay adjustment processing is performed, the comparison circuit performs write Z read repetition confirmation processing for performing the write / read confirmation processing again, and performs the write Z read confirmation processing or the write / read confirmation processing. And the delay value is optimized by the write Z-read repetition confirmation processing.
また、 第 1 3の本発明 (請求項 1 3に対応) は、 外部からの制御信号 入力時に、 前記ディレイ調節回路は、 前記ディレイ調節処理を行う上記 本発明である。 A thirteenth aspect of the present invention (corresponding to claim 13) is the above-described aspect of the present invention, in which the delay adjustment circuit performs the delay adjustment processing when a control signal is input from the outside.
また、 第 1 4の本発明 (請求項 1 4に対応) は、 前記外部信号は、 前
記メモリ制御装置の電源投入を示す信号である上記本発明である。 A fourteenth aspect of the present invention (corresponding to claim 14) is that the external signal is The present invention is the signal indicating that the power of the memory control device is turned on.
また、 第 1 5の本発明 (請求項 1 5に対応) は、 前記外部信号は、 前 記メモリ制御装置の初期化またはリセットを示す信号である上記本発明 である。 A fifteenth aspect of the present invention (corresponding to claim 15) is the present invention, wherein the external signal is a signal indicating initialization or reset of the memory control device.
また、 第 1 6の本発明 (請求項 1 6に対応) は、 前記外部信号は、 前 記メモリ制御装置のスリープ状態からの復帰を示す信号である上記本発 明である。 A sixteenth aspect of the present invention (corresponding to claim 16) is the present invention, wherein the external signal is a signal indicating a return from the sleep state of the memory control device.
また、 第 1 7の本発明 (請求項 1 7に対応) は、 前記メモリに対して アクセス権を有するプロックのアクセスを確認すると共に、 該ブロック のアクセスの優先順位を決定する調停回路をさらに備え、 The seventeenth invention (corresponding to claim 17) further comprises an arbitration circuit for confirming the access of the block having the access right to the memory and determining the access priority of the block. ,
前記調停回路が、 前記プロックが前記メモリにアクセスしていないこ とを少なくとも確認した場合、 前記ディレイ調節回路は、 前記ディレイ 調節処理を行う上記本発明である。 . When the arbitration circuit at least confirms that the block is not accessing the memory, the delay adjustment circuit is the present invention that performs the delay adjustment processing. .
また、 第 1 8の本発明 (請求項 1 8に対応) は、 前記調停回路が、 前 記プロックが前記メモリにアクセスしていることを確認した場合、 前記 ディレイ調節回路は、 前記ディレイ調節処理を行わない上記本発明であ る。 The eighteenth aspect of the present invention (corresponding to claim 18) is that, when the arbitration circuit confirms that the block is accessing the memory, the delay adjustment circuit performs the delay adjustment processing. The present invention does not perform the above.
また、 第 1 9の本発明 (請求項 1 9に対応) は、 外部または前記レジ スタによって設定可能な回数をカウントするカウンタをさらに備え、 前記調停回路が、 前記プロックが前記メモリにアクセスしていること を確認すれば、 前記ディレイ調節回路は、 前記ディレイ調節処理を行わ ないとともに、 前記カウンタの値をィンクリメントし、 前記カウンタの 値が所定の値になれば、 前記ディレイ調節処理を行う上記本発明である。 Further, a nineteenth invention (corresponding to claim 19) further comprises a counter for counting the number of times that can be set externally or by the register, wherein the arbitration circuit is configured so that the block accesses the memory. The delay adjustment circuit does not perform the delay adjustment processing, increments the value of the counter, and performs the delay adjustment processing when the value of the counter reaches a predetermined value. It is an invention.
また、 第 2 0の本発明 (請求項 2 0に対応) は、 時間計測を行うタイ マをさらに備え、 Further, the 20th invention (corresponding to claim 20) further includes a timer for measuring time,
前記タイマの時間計測に基づき、 前記ディレイ調節回路は、 所定の時
間ごとに前記ディレイ調節処理を行う上記本発明である。 On the basis of the time measurement of the timer, the delay adjustment circuit In the present invention, the delay adjustment processing is performed every interval.
また、 第 2 1の本発明 (請求項 2 1に対応) は、 前記レジスタには、 前記所定の時間が設定可能である上記本発明である。 A twenty-first invention (corresponding to claim 21) is the present invention, wherein the predetermined time can be set in the register.
また、 第 2 2の本発明 (請求項 2 2に対応) は、 温度を計測する温度 モニタをさら 備え、 1 The second 2 of the present invention (corresponding to claim 2 2) is provided with further temperature monitor for measuring the temperature, 1
前記メモリに対してアクセス権を有する前記プロックの,温度変化に基 づき、 前記ディレイ調節回路は、 前記ディレイ調節処理を行う上記本発 明である。 The delay adjustment circuit according to the present invention, wherein the delay adjustment circuit performs the delay adjustment processing based on a temperature change of the block having an access right to the memory.
また、 第 2 3の本発明 (請求項 2 3に対応) は、 前記レジスタには、 所定の温度が設定可能であり、 ' According to a twenty-third aspect of the present invention (corresponding to claim 23), a predetermined temperature can be set in the register.
前記温度モニタが、 前記所定の温度を検出した場合、 前記ディレイ調 節処理が行われる上記本発明である。 ' The present invention is the above-described present invention, wherein when the temperature monitor detects the predetermined temperature, the delay adjustment processing is performed. '
また、 第 2 4の本発明 (請求項 2 4に対応) は、 電圧を計測する電圧 モニタをさらに備え、 A twenty-fourth aspect of the present invention (corresponding to claim 24) further includes a voltage monitor for measuring a voltage,
前記メモリに対してアクセス権を持つプロックまたは該メモリ制御装 置の電圧変化に基づき、 前記ディレイ調節回路は、 前記ディレイ調節処 理を行う上己本発明である。 The delay adjusting circuit according to the present invention performs the delay adjusting process based on a block having an access right to the memory or a voltage change of the memory control device.
また、 第 2 5の本発明 (請求項 2 5に対応) は、 前記レジスタには、 所定の電圧が設定可能であり、 According to a twenty-fifth aspect of the present invention (corresponding to claim 25), a predetermined voltage can be set in the register,
前記電圧モニタが、 前記所定の電圧以上の電圧を検.出した場合、 前記 ディレイ調節処理が行われる上記本発明である。 The present invention is the above-described present invention, wherein the delay adjustment process is performed when the voltage monitor detects a voltage equal to or higher than the predetermined voltage.
また、 第 2 6の本発明 (請求項 2 6に対応) は、 前記メモリに対して アクセス権を持つ誤り検出プロックが前記メモリにアクセスすることに よって誤り検出を行った場合に、 誤り検出対象となる符号語の特定個数 あたりの誤り検出回数が、 所定の回数より大きくなつた場合、 前記ディ レイ調節回路は、 前記ディレイ調節処理を行う上記本発明である。
また、 第 2 7の本発明 (請求項 2 7に対応) は、 前記メモリに対して アクセス権を持つ誤り訂正プロックが前記メモリにアクセスすることに よって誤り訂正を行った場合に、 誤り訂正回数が、 所定の回数より大き くなつた場合、 前記ディレイ調節回路は、 前記ディレイ調節処理を行う 上記本発明である。 1 A twenty-sixth aspect of the present invention (corresponding to claim 26) is a method for detecting an error when an error detection block having an access right to the memory detects an error by accessing the memory. When the number of error detections per specific number of codewords becomes larger than a predetermined number, the delay adjustment circuit is the present invention that performs the delay adjustment processing. A twenty-seventh aspect of the present invention (corresponding to claim 27) is characterized in that when an error correction block having an access right to the memory performs error correction by accessing the memory, However, when the number of times becomes larger than a predetermined number, the delay adjustment circuit performs the delay adjustment processing. 1
また、 第 2 8の本発明 (請求項 2 8に対応) は、 前記メ,モリに対して アクセス権を持つ前記プロックが前記メモリにデータをライ トした回数 が所定の回数となった場合、 前記ディレイ調節回路は、 前記ディレイ調 節処理を行う上記本発明である。 The twenty-eighth invention (corresponding to claim 28) is characterized in that, when the number of times that the block having access right to the memory writes data to the memory reaches a predetermined number, The delay adjusting circuit is the present invention that performs the delay adjusting process.
また、 第 2 9の本発明 (請求項 2 9に対応) は、 前記レジスタには、 前記所定の回数が設定可能である上記本発明である。 A twentieth invention (corresponding to claim 29) is the invention described above, wherein the predetermined number of times can be set in the register.
以上のような本発明によれば、 ディレイ調節回路を備えることでリー ドデータの取り込みタイミングを実動作中においても調節可能とし、 常 にリードデータが確定している時間に取り込みタイミングを設定するこ とができ、 確実に取り込むことができるようになる。 これによりメモリ 制御装置と. D R AM間の配線遅延を考慮することなく レイァゥトするこ とが可能となる。 According to the present invention as described above, the provision of the delay adjustment circuit enables the read data capture timing to be adjusted even during actual operation, and sets the capture timing at a time when the read data is always determined. Will be able to be captured. This makes it possible to perform the layout without considering the wiring delay between the memory controller and the DRAM.
また、 第 3 0の本発明 (請求項 3 0に対応) は、 クロックを生成する ク口ック生成工程と、 A thirty-fifth aspect of the present invention (corresponding to claim 30) includes: a clock generation step of generating a clock;
前記ク口ックに、 可変する遅延値にて遅延させるデ.ィレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節工程と、 A delay adjusting step of performing a delay adjustment process of delaying the mouthpiece with a variable delay value and outputting the captured clock.
前記取り込みク口ックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程とを備えたメモリ制御方法である。 A read data register storing step of reading data recorded in a memory and storing the read data in a read data register based on the capture clock.
また、 第 3 1の本発明 (請求項 3 1に対応) は、 前記ディレイ調節ェ 程は、 該メモリ制御装置周辺の環境変化に基づき前記ディレイ調節処理
を開始する上記本発明である。 · また、 第 3 2の本発明 (請求項 3 2に対応) は、 前記ディレイ調節ェ 程は、 所定の周期にて前記ディレイ調節処理を開始する上記本発明であ る。 Further, in the thirty-first aspect of the present invention (corresponding to claim 31), the delay adjustment step is characterized in that the delay adjustment processing is performed based on an environmental change around the memory controller. The present invention is to start the above. · A thirty-second aspect of the present invention (corresponding to claim 32) is the present invention, wherein the delay adjustment step starts the delay adjustment processing at a predetermined cycle.
また、 第 3 3の本発明 (請求項 3 3に対応) は、 前記ディレイ調節ェ 程は、 前記メモリに対する誤り検出または誤り訂正の動作に基づきディ レイ調節処理を開始する上記本発明である。 A thirty-third aspect of the present invention (corresponding to claim 33) is the present invention in which the delay adjustment step starts a delay adjustment process based on an error detection or error correction operation for the memory.
また、 第 3 4の本発明 (請求項 3 4に対応) は、 前記メモリへの記録 対象となるデータと同一のデータを比較用データレジスタに格納する比 較用データレジスタ格納工程と、 A thirty-fourth aspect of the present invention (corresponding to claim 34) includes: a comparison data register storing step of storing the same data as the data to be recorded in the memory in the comparison data register;
前記リードデータレジスタにて格納されたデータと、 前記比較用デー タレジスタ工程にて格納されているデータとを比較する比較工程とを備 Χ·、 A comparison step of comparing the data stored in the read data register with the data stored in the comparison data register step.
前記メモリ内の所定のァドレスおよび前記比較用データレジスタに所 定のデータがライ トされた後、 前記リードデータレジスタから、 前記所 定のデータをリードし、 前記比較工程において、 前記リードデータレジ スタ内の前記所定のデータと、 前記比較用データレジスタ内の前記所定 のデータとを照合するライ ト /リード確認処理を行う上記本発明である。 また、 第 3 5の本発明 (請求項 3 5に対応) は、 第 1の本発明のメモ リ制御装置の、 クロックを生成するクロック生成回路.と、 前記クロック に、 可変する遅延値にて遅延させるディレイ調節処理を行い、 取り込み クロックとして出力するディレイ調節回路と、 前記取り込みクロックに 基づき、 メモリに記録されているデータをリードして格納するリードデ ータレジスタとの全部または一部としてコンピュータを機能させるため のプログラムである。 After the predetermined data in the memory and the predetermined data are written in the comparison data register, the predetermined data is read from the read data register, and in the comparison step, the read data register is read. The present invention is to perform a write / read confirmation process for collating the predetermined data in the data with the predetermined data in the comparison data register. A thirty-fifth aspect of the present invention (corresponding to claim 35) is the memory control device according to the first aspect of the present invention, wherein the clock generation circuit generates a clock. The computer functions as all or a part of a delay adjustment circuit that performs delay adjustment processing for delaying and outputs as a capture clock, and a read data register that reads and stores data recorded in a memory based on the capture clock. It is a program for
また、 第 3 6の本発明 (請求項 3 6に対応) は、 第 3 0の本発明のメ
モリ制御方法の、 クロックを生成するクロック生成工程と、 前記クロックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節工程と、 The 36th invention (corresponding to claim 36) is a 30th invention of the present invention. A clock generation step of generating a clock in the memory control method, a delay adjustment step of performing a delay adjustment process of delaying the clock with a variable delay value, and outputting the captured clock.
前記取り込みク口ックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程との全部または一部をコンピュータに実行させるための,プログラムで ある。 Based on the capture clock, the computer executes all or part of a read data register storage step of reading data recorded in a memory and storing the data in a read data register. It is a program.
また、 第 3 7の本発明 (請求項 3 7に対応) は、 第 1の本発明のメモ リ制御装置の、 クロックを生成するクロック生成回路と、 前記クロック に、 可変する遅延値にて遅延させるディレイ調節処理を行い、 取り込み クロックとして出力するディレイ調節回路と、 前記取り込みクロックに 基づき、 メモリに記録されているデータをリ一ドして格納するリ一ドデ ータレジスタとの全部または一部としてコンピュータを機能させるため のプログラムを担持した媒体であって、 コンピュータにより処理可能な ことを特徴とする媒体である。 · A thirty-seventh aspect of the present invention (corresponding to claim 37) is the memory control device according to the first aspect of the present invention, wherein the clock generation circuit generates a clock, and the clock is delayed by a variable delay value. A delay adjustment circuit that performs delay adjustment processing to output the data as a capture clock, and a read data register that reads and stores data recorded in a memory based on the capture clock. A medium that carries a program for causing a computer to function, and is a medium that can be processed by a computer. ·
また、 第 3 8の本発明 (請求項 3 8に対応) は、 第 3 0の本発明のメ モリ制御方法の、 クロックを生成するクロック生成工程と、 前記クロッ クに、 可変する遅延値にて遅延させるディレイ調節処理を行い、 取り込 みクロックとして出力するディレイ調節工程と、 前記取り込みクロック に基づき、 メモリに記録されているデータをリードしてリードデータレ ジスタに格納するリ一ドデータレジスタ格納工程との全^または一部を コンピュータに実行させるためのプログラムを担持した媒体であって、 コンピュータにより処理可能なことを特徴とする媒体である。 図面の簡単な説明 Further, a thirty-eighth aspect of the present invention (corresponding to claim 38) is a memory control method according to a thirtieth aspect of the present invention, wherein the clock generating step of generating a clock; A delay adjustment step of performing delay adjustment processing for delaying the data and outputting it as a capture clock; and a read data register for reading data recorded in a memory based on the capture clock and storing the data in a read data register. A medium that carries a program for causing a computer to execute all or a part of the storage process, and is a medium that can be processed by a computer. BRIEF DESCRIPTION OF THE FIGURES
図 1は、 本発明の実施の形態 1によるメモリ制御装置の構成図である c
図 2は、 D R AMからのリ一ドデータの格納タイミングチヤ一トであ る。 Figure 1 is a block diagram of a memory control apparatus according to the first embodiment of the present invention c FIG. 2 is a timing chart for storing read data from the DRAM.
図 3は、 本発明の実施の形態 2によるメモリ制御装置の構成図である。 図 4は、 本発明の実施の形態 3によるメモリ制御装置の構成図である。 図 5は、 本 明の実施の形態 4によるメモリ制御装置の構成図である。 図 6は、 本発明の実施の形態 5によるメモリ制御装置の構成図である。 図 7は、 本発明の実施の形態 6によるメモリ制御装置の構成図である。 図 8は、 本発明の実施の形態 7によるメモリ制御装置の構成図である。 図 9は、 本発明の実施の形態 8によるメモリ制御装置 構成図である。 図 1 0は、 本発明の実施の形態 9によるメモリ制御装置の構成図であ る。 FIG. 3 is a configuration diagram of a memory control device according to Embodiment 2 of the present invention. FIG. 4 is a configuration diagram of a memory control device according to Embodiment 3 of the present invention. FIG. 5 is a configuration diagram of a memory control device according to Embodiment 4 of the present invention. FIG. 6 is a configuration diagram of a memory control device according to the fifth embodiment of the present invention. FIG. 7 is a configuration diagram of a memory control device according to Embodiment 6 of the present invention. FIG. 8 is a configuration diagram of a memory control device according to Embodiment 7 of the present invention. FIG. 9 is a configuration diagram of a memory control device according to Embodiment 8 of the present invention. FIG. 10 is a configuration diagram of a memory control device according to Embodiment 9 of the present invention.
図 1 1は、 本発明の各実施の形態を一括して構成したメモリ制御装置 の構成図である。 FIG. 11 is a configuration diagram of a memory control device in which the embodiments of the present invention are collectively configured.
図 1 2は、 従来の技術によるメモリ制御装置の構成図である。 FIG. 12 is a configuration diagram of a memory control device according to a conventional technique.
図 1 3は、 従来の技術の D R AMからのリ一ドデータの格納タイミン グチヤートである。 Figure 13 is a timing chart for storing read data from the DRAM of the prior art.
図 1 4 ( a ) は、 本発明の実施の形態 2のライト Zリード処理の一例 を説明するための図である。 . ' FIG. 14 (a) is a diagram for describing an example of the write Z-read process according to the second embodiment of the present invention. '
図 1 4 ( b ) は、 本発明の実施の形態 2のライト/リード処理の一例 を説明するための図である。 FIG. 14B is a diagram for explaining an example of the write / read processing according to the second embodiment of the present invention.
符号の説明 Explanation of reference numerals
1 メモリ制御装置 1 Memory controller
1 1 取り込みクロック生成回路 1 1 Capture clock generation circuit
1 2 ディレイ調節回路 1 2 Delay adjustment circuit
1 3 リードデータを格納するレジスタ
14 比較用データを格納するレジスタ 1 3 Register for storing read data 14 Register for storing comparison data
1 5 比較回路. 1 5 Comparison circuit.
1 6 タイマ 1 6 Timer
1 7 温度モニタ 1 7 Temperature monitor
18 電源零圧モニタ ' 18 Power supply zero pressure monitor ''
1 9 外都から書き換え可能なレジスタ 1 9 Register rewritable from outside
20 カウンタ 20 counter
21 調停回路 21 Arbitration circuit
31 DRAM 31 DRAM
32 ブロック A 32 block A
33 誤り検出ブロック 33 Error detection block
34 誤り訂正ブロック 34 error correction block
1 00、 1 01 ィネーブル信号生成部 1 00, 1 01 Enable signal generator
1 01 従来のメモリ制御装置 1 01 Conventional memory controller
1 10、 1 22 データバス 1 10, 1 22 Data bus
1 12 ディレイ回路 1 12 Delay circuit
1 13 リードデータ格納レジスタ 1 13 Read data storage register
121 DRAM 発明を実施するための最良の形態 121 Best Mode for Carrying Out the Invention
以下、 本発明の実施の形態を、 図面を参照して説明する。 Hereinafter, embodiments of the present invention will be described with reference to the drawings.
(実施の形態 1) (Embodiment 1)
本発明の実施の形態 1によるメモリ制御装置について、 図 1、 図 2を 用いて説明する。 図 1は本発明の実施の形態 1によるメモリ制御装置の 構成図で、 図において、 1はメモリ制御装置、 1 1は取り込みクロック
生成回路、 1 2はディレイ調節回路、 1 3はリードデータレジスタ、 3 1は D R AMである。 1 0 0はイネ一プル信号生成部、 1 1 0はデータ パスである。 また、 図 2は D R AM 3 1からリードしたデータをリード データレジスタ 1 3に格納するタイミングを示した図である。 The memory control device according to the first embodiment of the present invention will be described with reference to FIGS. FIG. 1 is a configuration diagram of a memory control device according to a first embodiment of the present invention. In the drawing, 1 is a memory control device, and 1 is a capture clock. A generation circuit, 12 is a delay adjustment circuit, 13 is a read data register, and 31 is a DRAM. 100 is an rice signal generator, and 110 is a data path. FIG. 2 is a diagram showing the timing of storing data read from the DRAM 31 in the read data register 13.
以上のような構成を有する、 本発明の実施の形態 1によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、.本発明 のメモリ制御方法の一実施の形態について説明を行う。 The operation of the memory control device according to the first embodiment of the present invention having the above-described configuration will be described below, and thereby an embodiment of the memory control method of the present invention will be described.
D R AM 3 1からリードされたデータがデータバス 1 1 0上に確定し ている時間 ( t— d a t a ) はィネーブル信号生成部 1 0 0から出力さ れるィネーブル信号の周期によって決まっており、 その時間内にリード データをリードデータレジスタ 1 3に取り込まなければならない。 The time during which the data read from the DRAM 31 is determined on the data bus 110 (t_data) is determined by the period of the enable signal output from the enable signal generator 100, and the time The read data must be loaded into the read data register 13.
そこで、 ディレイ調節回路 1 2は、 取り込みクロック生成回路 1 1か らの入力を受けると、 遅延時間を調整して、 調整された取り込みクロッ クをリードデータレジスタ 1 3へ出力する。 これにより、 データバス 1 1 0上にリードデータが確定している時間が、 配線遅延などで前後して も、 リードデータをリードデータレジスタ 1 3に格納することができる。 このとき、' ディレイ調節回路 1 2内の遅延値の設定は次のように行う。 あらかじめ D R AM 3 1の仕様および D R AM 3 1からめリードデータ 、 ィネーブル信号などの配線遅延から適切な遅延値を求めておき、 リー ドデータの出力データバス 1 1 0上での確定時間のほぼ中央に取り込み クロックがくるような値にし、 これを初期値として設定する。 これによ り、 何らかの原因でリードデータがデータパス 1 1 0上で確定している 時間が前後した場合、 それに合わせてディレイ調節回路 1 2内の遅延値 を設定し直すことで、 リードデータを確実に取り込めるタイミングにな るよう取り込みク口ックの遅延量を調節することができる。 Therefore, upon receiving the input from the capture clock generation circuit 11, the delay adjustment circuit 12 adjusts the delay time and outputs the adjusted capture clock to the read data register 13. As a result, the read data can be stored in the read data register 13 even if the time during which the read data is determined on the data bus 110 fluctuates due to wiring delay or the like. At this time, the setting of the delay value in the delay adjustment circuit 12 is performed as follows. In advance, determine an appropriate delay value from the specifications of the DRAM 31 and the wiring delay of the read data, enable signal, etc. from the DRAM 31 and set it at approximately the center of the fixed time of the read data on the output data bus 110. Set the value so that the capture clock comes, and set this as the initial value. Thus, if the time that the read data is determined on the data path 110 fluctuates for some reason, the delay value in the delay adjustment circuit 12 is reset according to that, and the read data is read. You can adjust the amount of delay in the capture window so that it is time to capture it reliably.
以上のように本発明によれば、 常にリ一ドデータがデータバス 1 1 0
上で確定している時間に確実にデータをリードデータレジスタ 1 3に取 り込むことが可能となる。 As described above, according to the present invention, the read data is always stored on the data bus 110. The data can be surely taken into the read data register 13 at the time determined above.
なお、 ディレイ調節回路 1 2の構成としては、 複数の遅延素子を設け て、 所望の遅延値に応じて取り込みク口ックを通過させる遅延素子の個 数を変化させるようにしてもよいし、 外部の C P U等の制御におう じて 、 遅延値を変化させるような手段としてもよい。 . As the configuration of the delay adjustment circuit 12, a plurality of delay elements may be provided, and the number of delay elements that pass through the intake port may be changed according to a desired delay value. Means for changing the delay value according to the control of an external CPU or the like may be used. .
(実施の形態 2 ) (Embodiment 2)
本発明の実施の形態 2によるメモリ制御装置は、 D R AM 3 1に対し てライ ト/リード動作が正常に行えているかを確認するために必要な回 路を備えたものである。 以下、 図 3を用いて説明する。 The memory control device according to the second embodiment of the present invention includes a circuit necessary for confirming whether or not the write / read operation can be normally performed on the DRAM 31. This will be described below with reference to FIG.
図 3は本発明の実施の形態 2によるメモリ制御装置の構成図である。 図において、 図 1 と同一部または相当部には、 同一符号を付し説明を省 略する。 また、 1 4は比較用データレジスタ、 1 5は比較回路、 1 9は レジスタ、 3 2はブロック Aである。 なお、 ィネーブル信号生成回路 1 0 0については、 実施の形態 1 と同様の構成、 動作を行うため記載を省 略した。 FIG. 3 is a configuration diagram of a memory control device according to Embodiment 2 of the present invention. In the figure, the same or corresponding parts as those in FIG. Reference numeral 14 denotes a comparison data register, reference numeral 15 denotes a comparison circuit, reference numeral 19 denotes a register, and reference numeral 32 denotes a block A. The description of the enable signal generation circuit 100 is omitted because the same configuration and operation as those of the first embodiment are performed.
以上のような構成を有する、 本発明の実施の形態 2によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 The operation of the memory control device according to the second embodiment of the present invention having the above-described configuration will be described below, and an embodiment of the memory control method of the present invention will be described.
ブロック A 3 2から D R AM 3 1にデータがライ される際に、 比較 用データレジスタは、 ブロック A 3 2から同一のデータを格納する。 次に、 実施の形態 1 と同様にして、 リードデータレジスタ 1 3が D R AM 3 1からリードデータを取得、 格納すると、 比較回路 1 5は、 リー ドデータレジスタ 1 3に格納されたデータと比較用データレジスタ 1 4 に格納されているデータとを比較する。 When data is written from the block A32 to the DRAM31, the comparison data register stores the same data from the block A32. Next, as in the first embodiment, when the read data register 13 acquires and stores the read data from the DRAM 31, the comparison circuit 15 compares the read data with the data stored in the read data register 13. And compare it with the data stored in the data register 14.
比較回路 1 5の比較結果が同一であれば、 D R AM 3 1にライ トした
データがリードデータが確定している時間内に取り込みク口ックが設定 されており、 比較結果に食い違いがあれば、 取り込みクロックがずれて いるので、 ディレイ調節回路 1 2は遅延値の再設定を行う必要があると いうことを確認することができる。 If the comparison result of comparison circuit 15 is the same, it was written to DRAM 31 If the capture clock is set within the time that the data is read data is determined, and there is a discrepancy in the comparison result, the capture clock is shifted, so the delay adjustment circuit 12 resets the delay value. It is possible to confirm that it is necessary to carry out.
ここで D R AM 3 1内にライ トされるデータおょぴその D R AM 3 1 内のアドレ^は、 外部から書き換え可能なレジスタ 1 9に設定すること で、 指定することができる。 以上のように、 一旦 D R AM 3 1 と比較用 データレジスタ 1 4とに同一のデータをライ トしておいて、 リードデー タレジスタ 1 3にリードしたデータと、 比較用データレジスタ 1 4内の データとを比較する動作を、 ライ ト Zリード処理と呼ぶ。 なお、 レジス タ 1 9には、 他にディレイ調節回路 1 2内の遅延値データを設定してお いてもよいし、 ディレイ調節回路 1 2に入力される取り込みクロックを 反転し、 そのクロックに対してディレイ調節回路 1 2內で調節を行うた めの反転制御データ等のデータを設定して、 これをライ トノリード処理 に用いてもよい。 ここで図 1 4に、 反転制御データの一例を示す。 図 1 4 ( a ) に示すように、 リードデータの確定していないタイミングに取 り込みクロックが設定されていた場合、 反転制御データによって、 図 1 4 ( b ) に示すように、 ライ ト/リード処理時にその取'り込みクロック を反転させる。 これにより、 リードデータの確定しているタイミングに 取り込みクロックを設定することができる。 Here, the data written in the DRAM 31 and the address in the DRAM 31 can be specified by setting the register 19 which can be rewritten from the outside. As described above, once the same data is written to the DRAM 31 and the comparison data register 14, the data read to the read data register 13 and the data in the comparison data register 14 are Is referred to as a write Z read process. It should be noted that the delay value data in the delay adjustment circuit 12 may be set in the register 19, or the fetched clock input to the delay adjustment circuit 12 may be inverted, and Alternatively, data such as inversion control data for adjustment by the delay adjustment circuit 12 1 may be set and used for the write / read processing. Here, FIG. 14 shows an example of the inversion control data. As shown in Fig. 14 (a), if the capture clock is set at a timing when the read data is not determined, the write / read signal is inverted by the inversion control data as shown in Fig. 14 (b). Inverts the capture clock during read processing. Thus, the capture clock can be set at the timing when the read data is determined.
一方、 上記の動作においては、 D R AM 3 1からのリードデータが、 データパス 1 1 0上に確定している範囲内に取り込みク口ックが設定さ れているのは確認できるが、 リードデータの確定している範囲のどのタ ィミングに取り込みク口ックが設定されているかはわからない。 この場 合、 少しの遅延によって取り込みクロックがリードデータの確定してい ない時間領域にずれてしまう可能性が生じる。
このような場合は、 任意の値を D R AM 3 1 へライ トし、 その値がリ ードできるかどう力 \ ディレイ調節回路 1 2に所定の遅延値を設定した 後、 前述の方法で確認する。 次にディレイ調節回路 1 2内の遅延値を、 従前の所定の値とは違う値に設定し、 再びライ ト リード処理を行う。 このとき、 遅 値は時間前方おょぴ後方のいずれに設定するかは任意で よいが、 例えば前方、 後方を交互に設定することにより、,遅延値のずれ の方向を判定することが可能となる。 On the other hand, in the above operation, it can be confirmed that the read data from the DRAM 31 is set within the range determined on the data path 110 and the read data is set. It is not known at which timing in the range where the data is fixed the capture timer is set. In this case, a small delay may cause the capture clock to shift to the time domain where the read data is not determined. In such a case, write an arbitrary value to the DRAM 31 and make sure that the value can be read. \ Set a predetermined delay value in the delay adjustment circuit 12 and check with the method described above. I do. Next, the delay value in the delay adjusting circuit 12 is set to a value different from the predetermined value, and the write / read processing is performed again. At this time, the delay value may be set to the front or the back of the time arbitrarily. For example, by alternately setting the front and the back, it is possible to determine the direction of the delay value shift. Become.
遅延値を変更しながら、 ライ ト Zリード処理を繰り返すことにより、 設定される遅延値がある値からある値までの所定の範囲内では、 D R A M 3 1 へライ トした値をリードできることが確認できる。 ディレイ調節 回路 1 2は、 この所定の範囲を持つ遅延値の中心の値を、 最終的な遅延 値として設定する。 By repeating the write Z read process while changing the delay value, it can be confirmed that the value written to the DRAM 31 can be read within the specified range from the set delay value to a certain value . The delay adjusting circuit 12 sets the center value of the delay value having the predetermined range as the final delay value.
以上のように、 本実施の形態によるメモリ制御装置によれば、 D R A M 3 1のデータを確実にリードできるタイミングに取り込みクロックを 設定することが可能となる。 As described above, according to the memory control device of the present embodiment, it is possible to set the capture clock at a timing at which the data of DRAM 31 can be reliably read.
(実施の形態 3 ) (Embodiment 3)
本発明の実施の形態 3によるメモリ制御装置は、 ディレイ調節処理を 外部信号投入時に行うようにしたものである。 以下、 図 4を用いて説明 する。 The memory control device according to the third embodiment of the present invention is such that the delay adjustment processing is performed when an external signal is input. This will be described below with reference to FIG.
図 4は本発明の実施の形態 3によるメモリ制御装置の構成図である。 図において、 図 1 と同一部または相当部には、 同一符号を付し説明を省 略する。 また、 2 1は調停回路である。 またく ィネーブル信号生成回路 1 0 0については、 実施の形態 1 と同様の構成、 動作を行うため記載を 省略した。 FIG. 4 is a configuration diagram of a memory control device according to Embodiment 3 of the present invention. In the figure, the same or corresponding parts as those in FIG. 21 is an arbitration circuit. Description of the enable signal generation circuit 100 is omitted because it performs the same configuration and operation as in the first embodiment.
以上のような構成を有する、 本発明の実施の形態 3によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明
のメモリ制御方法の一実施の形態について説明を行う。 The operation of the memory control device according to Embodiment 3 of the present invention having the above-described configuration will be described below. An embodiment of the memory control method will be described.
'外部信号としてメモリ制御装置 1に入力される信号としては、 電源ォ ンを示す信号やリセッ ト信号、 電源のスリ プ状態からの復帰を示す信 号などがある。 'The signal input to the memory control device 1 as an external signal includes a signal indicating a power-on, a reset signal, and a signal indicating a return from a sleep state of the power supply.
本実施の形靡によるメモリ制御回路においては、 ディレイ調節回路 1 2が、 これもの外部信号が投入された際にディレイ調節処理を行うこと で、 ブロック A32が DRAM31にアクセスする前に設定をすること ができ、 DRAM3 1からのリードデータを確実にリードデータレジス タ 1 3に取り込むことができる。 In the memory control circuit according to the present embodiment, the delay adjustment circuit 12 performs the delay adjustment processing when an external signal is input, thereby setting before the block A32 accesses the DRAM 31. Thus, the read data from the DRAM 31 can be surely taken into the read data register 13.
さらに、 調停回路 21 ブロック A 32が DRAM 31に対してァ クセスしていないことを確認し、 その間にディレイ調節回路 1 2はディ レイ調節処理を行う。 Further, it is confirmed that the arbitration circuit 21 block A 32 is not accessing the DRAM 31, and during that time, the delay adjustment circuit 12 performs delay adjustment processing.
以上のように本発明によれば、 ブロック A32の DRAM 31へのァ クセスを中断することなく、 DRAM31がアクセスされてない時間を 有効に使うことができ、 常に DRAM 3 1のデータを確実にリードする ことが可能となる。 As described above, according to the present invention, the time when the DRAM 31 is not accessed can be effectively used without interrupting the access to the DRAM 31 of the block A32, and the data of the DRAM 31 can always be read reliably. It becomes possible to do.
なお、 本実施の形態は、 実施の形態 2の構成に調停回路 21を搭載し たものとして説明を行ったが、 調停回路は実施の形態 1 構成に付加す るようにしてもよく、 この場合も本実施の形態と同様の効果が得られる c (実施の形態 4) . Although the present embodiment has been described assuming that the arbitration circuit 21 is mounted on the configuration of the second embodiment, the arbitration circuit may be added to the configuration of the first embodiment. Can obtain the same effect as that of the present embodiment c (Embodiment 4).
図 5は本発明の実施の形態 4によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 1 6はタイマ、 20はカウンタである。 また、 ィ ネーブル信号生成回路 100については、 実施の形態 1と同様の構成、 動作を行うため記載を省略した。 FIG. 5 is a configuration diagram of a memory control device according to Embodiment 4 of the present invention. In the drawings, the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted. Also, 16 is a timer, and 20 is a counter. Further, the enable signal generation circuit 100 has the same configuration and operation as the first embodiment, so that the description is omitted.
以上のような構成を有する、 本発明の実施の形態 4によるメモリ制御
装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べる。 Memory control according to Embodiment 4 of the present invention having the above configuration Hereinafter, the operation of the device will be described, and an embodiment of the memory control method according to the present invention will be described. However, portions common to Embodiments 2 to 4 are omitted, and only differences are described.
メモリ制御装置 1が動作中、 温度や電源電圧の変化などでデータバス 1 1 0に配線 ¾延が変化し、 リードデータが取り込めなくなる可能性が 生じる。 こめような場合、 タイマ 1 6によって時間設定をし、 ディレイ 調節回路 1 2が、 タイマ 1 6に設定された、 本発明の所定の時間の一例 である一定の時間間隔でディレイ調節処理を行うようにする。 これによ り、 定期的に最適な遅延値の設定が可能となる。 このとき、 図 5に示す ように、 一定の時間間隔は、 外部からレジスタ 1 9によ て設定して、 調節可能でもよいし、 ディレイ調節回路 1 2にて保持される固定値であ つてもよい。 もちろんレジスタ 1 9は省いた構成としてもよい。 While the memory control device 1 is operating, the wiring length changes to the data bus 110 due to a change in temperature, power supply voltage, or the like, and there is a possibility that read data cannot be taken. In such a case, the time is set by the timer 16 and the delay adjusting circuit 12 performs the delay adjusting process at a fixed time interval, which is an example of the predetermined time of the present invention, set in the timer 16. To This makes it possible to set the optimal delay value periodically. At this time, as shown in FIG. 5, the fixed time interval may be set by an external register 19 to be adjustable, or may be a fixed value held by the delay adjustment circuit 12. Good. Of course, the register 19 may be omitted.
なお、 上記の動作において、 調停回路 2 1がブロック A 3 2の D R A 3 1へのアクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A 3 2の D R AM 3 1へのアクセスが終了後、 ディ レイ調節処 aを行うようにする。 In the above operation, the arbitration circuit 21 permits access to the DRA 31 of the block A 32, and if the access is being made, the arbitration circuit 21 gives priority to the access to the DRA 31 and delay adjustment processing is performed. Is not performed, or the delay adjustment processing a is performed after the access of the block A32 to the DRAM 31 is completed.
また、 ブロック A 3 2の D R AM 3 1へのアクセスが続いてしまう場 合は、 カウンタ 2 0がブロック A 3 2がアクセス優先された回数をカウ ントし、 カウント値がインクリメントして一定回数に達した場合は、 ブ ロック A 3 2の優先順位を下げ、 ディレイ調節回路 1 2がディレイ調節 処理を行うようにする。 When the access to the DRAM 31 of the block A32 continues, the counter 20 counts the number of times that the access of the block A32 has priority, and the count value is incremented to a certain number. If it has, the priority of block A32 is lowered and the delay adjustment circuit 12 performs delay adjustment processing.
以上のように、 本実施の形態によるメモリ制御装置によれば、 定期的 に遅延値を調節することで常に D R AM 3 1のデータを確実にリ一ドす ることが可能となる。 As described above, according to the memory control device of the present embodiment, it is possible to always reliably read the data of DRAM 31 by adjusting the delay value periodically.
(実施の形態 5 )
図 6は本発明の実施の形態 5によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 1 7は温度モニタである。 また、 ィネーブル信号 生成回路 100については、 実施の形態 1と同様の構成、'動作を行うた め記載を省略した。 ' (Embodiment 5) FIG. 6 is a configuration diagram of a memory control device according to Embodiment 5 of the present invention. In the drawings, the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted. 17 is a temperature monitor. The enable signal generation circuit 100 has the same configuration and operation as in the first embodiment, so that the description is omitted. '
以上のような構成を有する、 本発明の実施の形態 5によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べあ。 The operation of the memory control device having the above-described configuration according to the fifth embodiment of the present invention will be described below, and thereby, one embodiment of the memory control method of the present invention will be described. However, parts common to Embodiments 2 to 4 are omitted, and only differences are described.
メモリ制御装置 1が動作中、 温度の変化などでデータバス 1 10に配 線遅延が変化し、 リードデータが取り込めなくなる可能性が生じる。 こ のような場合、 温度モニタ 17が、 DRAM31およびメモリ制御装置 1の温度をモニタし、 ブロック A 32が以前に DRAM 31にアクセス した際の温度から、 変化があった場合に、 ディレイ調節回路 1 2がディ レイ調節処理を行う。 これにより、 動作時の温度変化に応じて最適な遅 延値の設定が可能となる。 また、 図 6に示すように、 ディレイ調節回路 12がディレイ調節を行う際の温度は、 以前の DRAM 31およびメモ リ制御装置 1の温度に限らず、 外部からレジスタ 19によって設定可能 な値であってもよい。 もちろんレジスタ 19は省いた構成としてもよい。 なお、 上記の動作において、 調停回路 21がブロック A32の DRA M31へのアクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A32の DRAM31へのアクセスが終了後、 ディ レイ調節処理を行うようにする。 While the memory control device 1 is operating, the wiring delay to the data bus 110 changes due to a change in temperature or the like, and there is a possibility that read data cannot be taken. In such a case, the temperature monitor 17 monitors the temperatures of the DRAM 31 and the memory controller 1, and if there is a change from the temperature when the block A 32 previously accessed the DRAM 31, the delay adjustment circuit 1 2 performs delay adjustment processing. This makes it possible to set the optimum delay value according to the temperature change during operation. As shown in FIG. 6, the temperature at which the delay adjustment circuit 12 performs the delay adjustment is not limited to the temperature of the previous DRAM 31 and the memory controller 1 but may be a value that can be externally set by the register 19. You may. Of course, the register 19 may be omitted. In the above operation, if the arbitration circuit 21 permits access to the DRAM 31 of the block A32 and the access is being made, the arbitration circuit 21 gives priority to that access and does not perform the delay adjustment processing. Alternatively, the delay adjustment processing is performed after the access to the DRAM 31 of the block A32 is completed.
また、 ブロック A32の DRAM 3 1へのアクセスが続いてしまう場 合は、 カウンタ 20がプロック A 32がアクセス優先された回数をカウ
ントし、 カウント値が一定回数に達した場合は、 ブロック A 3 2の優先 順位を下げ、 ディレイ調節回路 1 2がディレイ調節処理を行うようにす る。 If access to DRAM 31 in block A32 continues, counter 20 counts the number of times block A32 has been given priority in access. When the count value reaches a certain number, the priority of block A32 is lowered, and the delay adjustment circuit 12 performs delay adjustment processing.
以上のように本実施の形態によるメモリ制御装置によれば、 予測して いない温度変化によつて配線遅延が生じても遅延値を調節することで、 常に D R AM 3 1のデータを確実にリードすることが可能となる。 As described above, according to the memory control device of the present embodiment, even if a wiring delay occurs due to an unpredicted temperature change, the delay value is adjusted, so that the DRAM 31 data can always be read reliably. It is possible to do.
(実施の形態 6 ) (Embodiment 6)
図 7は本発明の実施の形態 6によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 1 8は電源電圧モニタである。 また、 ィネーブル 信号生成回路 1 0 0については、 実施の形態 1と同様の構成、 動作を行 うため記載を省略した。 FIG. 7 is a configuration diagram of a memory control device according to Embodiment 6 of the present invention. In the drawings, the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted. Reference numeral 18 denotes a power supply voltage monitor. The description of the enable signal generation circuit 100 is omitted because the same configuration and operation as in the first embodiment are performed.
以上のような構成を有する、 本発明の実施の形態 5によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これ (こより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜5と共通する部分は省略し、 相違点だけを述べる。 . The operation of the memory control device according to Embodiment 5 of the present invention having the above-described configuration will be described below, and an embodiment of the memory control method of the present invention will be described. However, parts common to Embodiments 2 to 5 are omitted, and only differences are described.
メモリ制 装置 1が動作中、 電源電圧の変化などでデータパス 1 1 0 に配線遅延が変化し、 リードデータが取り込めなくなる可能性が生じる。 このような場合、 電源電圧モニタ 1 8が、 メモリ制御装置 1の電源電圧 をモニタし、 ブロック A 3 2が前に D R AM 3 1にアクセスした際の電 圧から、 変化があった場合にディレイ調節回路 1 2がディレイ調節処理 を行う。 これにより、 動作時の電圧変化に応じて最適な遅延値の設定が 可能となる。 また、 図 7に示すように、 ディレイ調節回路 1 2がディレ ィ調節を行う際の電圧は、 ブロック A 3 2が前に D R AM 3 1にァクセ スした際の電圧に限らず、 外部からレジスタ 1 9によって設定可能な値 であってもよい。 もちろんレジスタ 1 9は省いた構成としてもよい。
なお、 上記の動作において、 調停回路 2 1がブロック A 3 2の D R A M 3 1へのアクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A 3 2の D R AM 3 1へのアクセスが終了後、 ディ レイ調節処理^行うようにする」 During the operation of the memory controller 1, the wiring delay changes to the data path 110 due to a change in the power supply voltage or the like, and there is a possibility that the read data cannot be taken. In such a case, the power supply voltage monitor 18 monitors the power supply voltage of the memory controller 1 and delays if there is a change from the voltage when block A 32 previously accessed the DRAM 31. Adjustment circuit 12 performs delay adjustment processing. This makes it possible to set the optimum delay value according to the voltage change during operation. In addition, as shown in FIG. 7, the voltage at which the delay adjustment circuit 12 performs the delay adjustment is not limited to the voltage at which the block A 32 previously accessed the DRAM 31 but may be externally applied to the register. It may be a value that can be set according to 19. Of course, the register 19 may be omitted. In the above operation, the arbitration circuit 21 permits access to the DRAM 31 of the block A 32, and when the access is being made, the arbitration circuit 21 gives priority to the access, and the delay adjustment processing is performed. Should not be performed, or delay adjustment processing will be performed after the access of block A32 to DRAM 31 is completed. "
また、 ブ ック A 3 2の D R AM 3 1へのアクセスが続いてしまう場 合は、 カウンタ 2 0がプロック A 3 2がアクセス優先された回数をカウ ントし、 カウント値が一定回数に達した場合は、 ブロック A 3 2の優先 順位を下げ、 ディレイ調節回路 1 2がディレイ調節処理を行うようにす る。 If access to DRAM 31 of block A 32 continues, counter 20 counts the number of times that block A 32 has priority over access, and the count value reaches a certain number. In this case, the priority of the block A32 is lowered, and the delay adjustment circuit 12 performs the delay adjustment processing.
以上のように本実施の形態によるメモリ制御装置によれば、 予測して いない電源電圧変化によって配線遅延が生じても遅延値を調節すること で常に D R AM 3 1のデータを確実にリ一ドすることが可能となる。 As described above, according to the memory control device of the present embodiment, even if a wiring delay occurs due to an unexpected power supply voltage change, the delay value is adjusted, so that the data of the DRAM 31 is always reliably read. It is possible to do.
なお、 本実施の形態の電源電圧モニタは本発明の電圧モエタの一例で あり、 本発明の電圧モニタは、 上記の実施の形態の動作に限らず、 メモ リ制御装置內の所定の部位、 もしくはデータアクセスを行うプロックの 電圧をモニタするようにしてもよい。 Note that the power supply voltage monitor of the present embodiment is an example of the voltage monitor of the present invention, and the voltage monitor of the present invention is not limited to the operation of the above embodiment, and may be a predetermined portion of the memory control device 內, or The voltage of the block performing data access may be monitored.
(実施の形態 7 ) . ' (Embodiment 7).
図 8は本発明の実施の形態 7によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 3 3は誤り検出ブロックである。 また、 イネーブ ル信号生成回路 1 0ひについては、 実施の形態 1 と同様の構成、 動 \作を 行うため記载を省略した。 FIG. 8 is a configuration diagram of a memory control device according to Embodiment 7 of the present invention. In the drawings, the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted. 33 is an error detection block. The description of the enable signal generation circuit 10 is omitted in order to perform the same configuration and operation as in the first embodiment.
以上のような構成を有する、 本発明の実施の形態 7によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の
形態 2〜4と共通する部分は省略し、 相違点だけを述べる。 The operation of the memory control device according to the seventh embodiment of the present invention having the above-described configuration will be described below, and thereby an embodiment of the memory control method of the present invention will be described. However, the implementation Parts common to modes 2 to 4 are omitted, and only differences are described.
誤り検出ブロック 33が DRAM 31にアクセスすることによって誤 り検出を行った結果誤りが検出された場合、 実際に誤りが生じている他 に DRAM31に記録されているデータを確実に取り込めてない可能性 も考えられる。. ' 。 If an error is detected as a result of error detection performed by the error detection block 33 accessing the DRAM 31, there is a possibility that the data recorded in the DRAM 31 cannot be reliably captured in addition to the actual error. Is also conceivable. '.
このような場合は、 誤り検出対象となる符号語の特定数あたりの誤り 検出の回数をカウンタ 20によって計数し、 その回数が一定数よりも大 きくなつた場合に、 ディレイ調節回路 12がディレイ調節処理を行う。 このとき、 誤り検出回数の一定数は、 外部から書き換え可能なレジスタ 1 9に設定してもよいし、 あらかじめ定数として DRAM 31に保持し ておいてもよい。 DRAM3 1に保持する場合は、 レジスタ 1 9は省略 した構成としてもよい。 In such a case, the counter 20 counts the number of error detections per specific number of codewords to be detected, and when the number of times exceeds a certain number, the delay adjusting circuit 12 adjusts the delay. Perform processing. At this time, a fixed number of error detection times may be set in an externally rewritable register 19 or may be stored in the DRAM 31 as a constant in advance. When the data is stored in the DRAM 31, the register 19 may be omitted.
なお、 上記の動作において、 調停回路 21がプロック A32の DR A M31へのアクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A 32の DRAM31へのアクセスが終了後、 ディ レイ調節処 aを行うようにする。 In the above operation, the arbitration circuit 21 permits access to the DR A M31 of the block A32, and if access is being made, the arbitration circuit 21 gives priority to the access and does not perform the delay adjustment processing. Or, after the access to the DRAM 31 of the block A 32 is completed, the delay adjustment processing a is performed.
また、 ブロック A32の DRAM 31へのアクセスが続いてしまう場 合は、 カウンタ 20がブロック A32がアクセス優先された回数を力ゥ ントし、 カウント値が一定回数に達した場合は、 プロ.ック A32の優先 順位を下げ、 ディレイ調節回路 12がディレイ調節処理を行うようにす る。 When the access to the DRAM 31 of the block A32 continues, the counter 20 counts the number of times that the access of the block A32 is prioritized, and when the count value reaches a certain number, the block counts. Lower the priority of A32 so that the delay adjustment circuit 12 performs delay adjustment processing.
以上のように、 本実施の形態によるメモリ制御装置によれば、 DRA M3 1のリードが正確に行われてないことによる誤り検出数の増加を防 ぐことが可能となる。 As described above, according to the memory control device of the present embodiment, it is possible to prevent an increase in the number of error detections due to incorrect reading of the DRAM 31.
(実施の形態 8) .
図 9は本発明の実施の形態 8によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 3 4は誤り訂正ブロックである。 また、 イネーブ ル信号生成回路 1 0 0については、 実施の形態 1 と同様の構成、 動作を 行うため記載を省略した。 ' (Embodiment 8). FIG. 9 is a configuration diagram of a memory control device according to the eighth embodiment of the present invention. In the drawings, the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted. Reference numeral 34 denotes an error correction block. The description of the enable signal generation circuit 100 is omitted because it performs the same configuration and operation as in the first embodiment. '
以上のような構成を有する、 本発明の実施の形態 8によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べる。 The operation of the memory control device according to the eighth embodiment of the present invention having the above-described configuration will be described below, and thereby an embodiment of the memory control method of the present invention will be described. However, portions common to Embodiments 2 to 4 are omitted, and only differences are described.
誤り訂正プロック 3 4が D R AM 3 1にアクセスすることによって誤 り訂正を行った結果訂正が発生した場合、 実際に誤りが含まれている他 に D R AM 3 1に記録されているデータを確実に取り込めてない可能性 も考えられる。 If the error correction block 34 makes an error correction by accessing the DRAM 31, if the error occurs, the data recorded in the DRAM 31 as well as the data that actually contains the error will be confirmed. There is a possibility that they cannot be imported to the Internet.
このような場合は、 誤り訂正の回数をカウンタ 2 0によって計数し、 その訂正回数が一定数よりも大きくなった場合に、 ディレイ調節回路 1 2がディレイ調節処理を行う。 このとき、 誤り訂正回数の一定数は、 あ るいは外部から書き換え可能なレジスタ 1 9に設定された数にしてもよ いし、 あらかじめ定数として D R AM 3 1に保持しておいてもよい。 D R AM 3 1に保持する場合は、 レジスタ 1 9は省略した構成としてもよ い。 In such a case, the number of error corrections is counted by the counter 20, and when the number of corrections becomes larger than a certain number, the delay adjusting circuit 12 performs a delay adjusting process. At this time, the fixed number of error correction times may be set to the number set in the externally rewritable register 19, or may be stored in the DRAM 31 as a constant in advance. When the data is held in DRAM 31, the register 19 may be omitted.
なお、 上記の動作において、 調停回路 2 1がブロック A 3 2の D R A M 3 1へ アクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A 3 2の D R AM 3 1へのアクセスが終了後、 ディ レイ調節処理を行うようにする。 ' In the above operation, the arbitration circuit 21 permits access to the DRAM 31 of the block A 32, and when the access is being performed, the arbitration circuit 21 gives priority to the access, and the delay adjustment processing is performed. Either this is not performed, or delay adjustment processing is performed after access to DRAM 31 of block A 32 is completed. '
また、 ブロック A 3 2の D R AM 3 1へのアクセスが続いてしまう場
合は、 カウンタ 20がブロック A 32がアクセス優先された回数を力ゥ ントし、 カウント値が一定回数に達した場合は、 ブロック A32の優先 順位を下げ、 ディレイ調節回路 1 2がディレイ調節処理を行うようにす る。 このときの回数も、 レジスタ 1 9に設定する力 、 DRAM31に保 持するようにしてもよい。 ' Also, if access to DRAM 31 of block A 32 continues, In this case, the counter 20 counts the number of times that the block A32 has been given priority for access, and when the count value reaches a certain number, the priority of the block A32 is lowered, and the delay adjustment circuit 12 performs the delay adjustment processing. Try to do it. The number of times at this time may be retained in the DRAM 31 with the force set in the register 19. '
以上のように、 本実施の形態によるメモリ制御装置によれば、 DRA M31のリードが正確に行われてないことによる誤り訂正不能数の増加 を防ぐことが可能となる。 As described above, according to the memory control device of the present embodiment, it is possible to prevent an increase in the number of uncorrectable errors due to incorrect reading of the DRAM 31.
(実施の形態 9) (Embodiment 9)
図 10は本発明の実施の形態 9によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 ただし、 ィネーブル信号生成回路 100については、 実 施の形態 1と同様の構成、 動作を行うため記載を省略した。 FIG. 10 is a configuration diagram of a memory control device according to Embodiment 9 of the present invention. In the drawings, the same or corresponding parts as in FIGS. 1 to 4 are denoted by the same reference numerals, and description thereof will be omitted. However, description of the enable signal generation circuit 100 is omitted because the same configuration and operation as those in the first embodiment are performed.
以上のような構成を有する、 本発明の実施の形態 9によるメモリ制御 装置の動† こついて、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べる。 The operation of the memory control device according to the ninth embodiment of the present invention having the above configuration will be described below, and thereby, one embodiment of the memory control method of the present invention will be described. . However, portions common to Embodiments 2 to 4 are omitted, and only differences are described.
本実施の形態によるメモリ制御装置は、 プロック A3 '2の書き込み回 数に応じてディレイ調節処理を行うものであり、 ブロック A32が DR A 31に対してライ トした回数をカウンタ 20によって計数し、 その ライ トした回数が一定数よりも大きくなった場合に、 ディレイ調節回路 12がディレイ調節処理を行う。 このとき、 ライ ト回数の一定数は、 外 部から書き換え可能なレジスタ 19に設定してもよいし、, あらかじめ定 数として DRAM3 1に保持しておいてもよい。 DRAM31に保持す る場合は、 レジスタ 19は省略した構成としてもよい。 The memory control device according to the present embodiment performs delay adjustment processing in accordance with the number of times of writing of the block A3'2, and counts the number of times that the block A32 has written to the DR A31 by the counter 20, and When the number of times of writing becomes larger than a certain number, the delay adjusting circuit 12 performs a delay adjusting process. At this time, a fixed number of write times may be set in the externally rewritable register 19, or may be stored in the DRAM 31 as a constant in advance. When the data is stored in the DRAM 31, the register 19 may be omitted.
以上のように、 本実施の形態によるメモリ制御装置によれば、 DRA
M 3 1へのライ ト回数が特定回数になる度に遅延値を調節することで、 常に D R AM 3 1のデータを確実にリードすることが可能となる。 As described above, according to the memory control device of the present embodiment, the DRA By adjusting the delay value every time the number of writes to M31 reaches a specific number, it is possible to always read the data of DRAM31 reliably.
なお、 本発明の各実施の形態によるメモリ制御装置は、 図 1 1に示す ように、 1つのメモリ制御装置内に実現してもよく、 この場合、 メモリ 制御装置を取り卷く環境、 データアクセスの状況、 回数といった各種条 件に応じて、 最適のデータ取り込みタイミングを得ることができる。 Note that the memory control device according to each embodiment of the present invention may be realized in one memory control device as shown in FIG. 11, and in this case, the environment surrounding the memory control device, the data access The optimal data capture timing can be obtained according to various conditions, such as the situation and the number of times.
また、 本発明のメモリは、 各実施の形態においては D R AMとしたが 、 他には S R AMとしてもよく、 この場合も上述したのと同様の効果が 得られる。 Further, the memory of the present invention is a DRAM in each embodiment, but may be an SRAM in other embodiments. In this case, the same effect as described above can be obtained.
また、 本発明の各実施の形態は、 D R AMがィネーブル信号の出力に よりリードデータをデータパス 1 1 0に出力する構成として説明を行つ たが、 本発明は、 S D R AMのようなメモリを対象に、 その動作がすぺ てクロックに同期しており、 ィネーブル信号を用いることなくデータを 出力して、 データバス上に確定することができるメモリに対するメモリ 制御装置として実現してもよい。 すなわち、 本発明は、 ィネーブル信号 生成部 1 0 0やそれに相当する手段を持たないメモリ制御装置として実 また、 上記各実施の形態においては、 ディレイ調節回路 1 2の遅延値 は、 温度モニタ 1 7が測定する温度または電源電圧モニタ 1 8が測定す る電圧に基づき可変するようにしてもよい。 さらに、 タイマ 1 6および カウンタ 2 0によって設定された所定の周期に基づき可変するようにし てもよい。 Further, although the embodiments of the present invention have been described as a configuration in which the DRAM outputs read data to the data path 110 by outputting an enable signal, the present invention provides a memory such as an SDRAM. The operation may be implemented as a memory control device for a memory whose operations are all synchronized with a clock, output data without using an enable signal, and can be determined on a data bus. That is, the present invention is implemented as a memory control device having no enable signal generation unit 100 or means equivalent thereto. In each of the above embodiments, the delay value of the delay adjustment circuit 12 is determined by the temperature monitor 17. The voltage may be changed based on the temperature measured by the power supply or the voltage measured by the power supply voltage monitor 18. Further, it may be changed based on a predetermined cycle set by the timer 16 and the counter 20.
また、 上記の説明においては、 本発明の実施の形態におけるメモリ制 御装置について説明を行ったが、 本発明は、 上述した本発明のメモリ制 御装置の全部または一部の手段 (または、 装置、 素子、 回路、 部等) の 機能をコンピュータにより実行させるためのプログラムであって、 コン
ピュータと協働して動作するプログラムであってもよい。 In the above description, the memory control device according to the embodiment of the present invention has been described. However, the present invention relates to all or a part of the memory control device of the present invention described above (or the device). , Elements, circuits, sections, etc.) by a computer. It may be a program that operates in cooperation with a computer.
また、 本発明は、 上述した本発明のメモリ制御方法の全部または一部 のステップ (または、 工程、 動作、 作用等) の動作をコンピュータによ り実行させるためのプログラムであって、 コンピュータと協働して動作 するプログラムであってもよい i Further, the present invention is a program for causing a computer to execute all or some of the steps (or steps, operations, actions, etc.) of the above-described memory control method of the present invention. May be a program that works
本発明は、' 上述.した本発明のメモリ制御装置の全部または一部の手段 の全部または一部の機能をコンピュータにより実行させるためのプログ ラムを担持した媒体であり、 コンピュータにより読み取り可能且つ、 読 み取られた前記プログラムが前記コンピュータと協動して前記機能を実 行する媒体であってもよい。 The present invention is a medium which carries a program for causing a computer to execute all or a part of the functions of all or part of the memory control device of the present invention described above. The read program may be a medium that executes the function in cooperation with the computer.
本発明は、 上述した本発明のメモリ制御方法の全部または一部のステ ップの全部または一部の動作をコンピュータにより実行させるためのプ ログラムを担持した媒体であり、 コンピュータにより読み取り可能且つ 、 読み取られた前記プログラムが前記コンピュータと協動して前記動作 を実行する媒体であってもよい。 The present invention is a medium that carries a program for causing a computer to execute all or a part of the operations of all or some of the above-described memory control methods of the present invention. The read program may be a medium that executes the operation in cooperation with the computer.
なお、 本発明の一部の手段 (または、 装置、 素子、 回路、 部等) 、 本発明の一部のステップ (または、 工程、 動作、 作用等) とは、 それら の複数の手段またはステツプの内の、 幾つかの手段またはステツプを意 味し、 あるいは、 一つの手段またはステップの內の、 一部の機能または 一部の動作を意味するものである。 Note that some means (or devices, elements, circuits, units, and the like) of the present invention and some steps (or steps, operations, functions, and the like) of the present invention refer to a plurality of these means or steps. Means several means or steps within, or means some function or part of one means or step.
また、 本発明の一部の装置 (または、 素子、 回路、 部等) とは、 それ らの複数の装置の内の、 幾つかの装置を意味し、 あるいは、 一つの装置 の内の、 一部の手段 (または、 素子、 回路、 部等) を意味し、 あるいは 、 一^ 3の手段の内の、 一部の機能を意味するものである。 Further, some devices (or elements, circuits, units, and the like) of the present invention mean several devices among a plurality of devices, or one device among one device. It means a unit means (or an element, a circuit, a unit, or the like), or means a part of functions of a group of three means.
また、 本発明のプログラムを記録した、 コンピュータに読みとり可能 な記録媒体も本発明に含まれる。
また、 本発明のプログラムの一利用形態は、 コンピュータにより読み 取り可能な記録媒体に記録され、 コンピュータと協働して動作する態様 であっても良い。 Further, a computer-readable recording medium that records the program of the present invention is also included in the present invention. One use form of the program of the present invention may be a form in which the program is recorded on a computer-readable recording medium and operates in cooperation with the computer.
また、 本発明のプログラムの一利用形態は、 伝送媒体中を伝送し、 コ ンピュータにより読みとられ、 πンピュータと協働して動作する態様で あっても良 ヽ。 . . Further, one usage form of the program of the present invention may be a mode in which the program is transmitted through a transmission medium, read by a computer, and operates in cooperation with a π computer. .
また、 本発明のデータ構造としては、 データベース、 データフォーマ ッ ト、 データテーブル、 データリスト、 データの種類などを含む。 Further, the data structure of the present invention includes a database, a data format, a data table, a data list, a data type, and the like.
また、 記録媒体としては、 R OM等が含まれ、 伝送媒体としては、 ィ ンターネッ ト等の伝送媒体、 光 ·電波 ·音波等が含まれる。 The recording medium includes ROM and the like, and the transmission medium includes a transmission medium such as the Internet, light, radio waves, and sound waves.
また、 上述した本発明のコンピュータは、 C P U等の純然たるハード ウエアに限らず、 ファームゥ-ァや、 O S、 更に周辺機器を含むもので あっても良い。 The computer of the present invention described above is not limited to pure hardware such as a CPU, but may include a firmware, an OS, and peripheral devices.
なお、 以上説明した様に、 本発明の構成は、 ソフトゥ ア的に実現し ても良いし、 ハードウェア的に実現しても良い。 産業上の利'用可能性 . 以上説明したところから明らかなように、 本発明によれば、 リードデ ータを取り込むタイミングを調節することができ、 さまぎまな状況に対 しても確実にリ ドデータを取り込むことが可能となる。
As described above, the configuration of the present invention may be implemented in a software manner or in hardware. INDUSTRIAL APPLICABILITY As is clear from the above description, according to the present invention, it is possible to adjust the timing at which the read data is captured, and to surely recover the read data even in various situations. Data can be captured.
Claims
1 . クロックを生成するクロック生成回路と、 1. A clock generation circuit for generating a clock,
前記クロックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節回路と、 A delay adjustment circuit that performs a delay adjustment process of delaying the clock by a variable delay value, and outputs the captured clock.
前記取り达みクロックに基づき、 メモリに記録されて るデータをリ 一ドして格納するリ一ドデータレジスタとを備えたメモリ制御装置。 A memory control device comprising: a read data register for reading and storing data recorded in a memory based on the take-in clock.
2 . 前記ディレイ調節回路は、 該メモリ制御装置周辺の環境変化に 基づき前記ディレイ調節処理を開始する請求項 1に記 ¾のメモリ制御装 置。 2. The memory control device according to claim 1, wherein the delay adjustment circuit starts the delay adjustment process based on an environmental change around the memory control device.
3 . 前記ディレイ調節回路は、 所定の周期にて前記ディレイ調節処 理を開始する請求項 1に記載のメモリ制御装置。 3. The memory control device according to claim 1, wherein the delay adjustment circuit starts the delay adjustment processing at a predetermined cycle.
4 . 前記ディレイ調節回路は、 前記メモリに対する誤り検出または 誤り訂正の動作に基づきディレイ調節処理を開始する請求項 1に記載の メモリ制御装置。 4. The memory control device according to claim 1, wherein the delay adjustment circuit starts delay adjustment processing based on an error detection or error correction operation for the memory.
5 . 前記ディレイ調節回路は、 該メモリ制御装置周辺の環境変化に 基づき前記遅延値を可変する請求項 1から 4のいずれかに記載のメモリ 制御装置。 '- 5. The memory control device according to claim 1, wherein the delay adjustment circuit changes the delay value based on an environmental change around the memory control device. '-
6 . 前記ディレイ調節回路は、 所定の周期に基づき前記遅延値を可 変する請求項 1から 4のいずれかに記載のメモリ制御装置。 6. The memory control device according to claim 1, wherein the delay adjustment circuit changes the delay value based on a predetermined cycle.
7 . 前記ディレイ調節回路は、 1つまたは複数の遅延素子を有し、 前記クロックに所定数の前記遅延素子を経由させることにより、 前記 ク口ック遅延処理を行う請求項 1に記載のメモリ制御装置。 7. The memory according to claim 1, wherein the delay adjustment circuit has one or a plurality of delay elements, and performs the quick delay processing by passing the clock through a predetermined number of the delay elements. Control device.
8 . 前記ディレイ調節回路は、 外部からの制御により、 前記ディレ ィ調節処理における遅延量を調節できる請求項 1に記載のメモリ制御装
8. The memory control device according to claim 1, wherein the delay adjustment circuit can adjust a delay amount in the delay adjustment process by external control.
9 . 前記メモリへの記録対象となるデータと同一のデータを格納す る比較用データレジスタと、 9. A comparison data register for storing the same data as the data to be recorded in the memory;
前記リードデータレジスタに格納されたデータと、 前記比較用データ レジスタに格納されているデータとを比較する比較回路とを備え、 前記メモリ内の所定のァドレスおよび前記比較用データレジスタに所 定のデータがライ トされた後、 前記リードデータレジスタは、 前記所定 のデータをリードし、 前記比較回路は、 前記リードデータレジスタ内の 前記所定のデータと、 前記比較用データレジスタ内の俞記所定のデータ とを照合するライ ト /リード確認処理を行う請求項 1から 8のいずれか に記載のメモリ制御装置。 A comparison circuit for comparing the data stored in the read data register with the data stored in the comparison data register, wherein a predetermined address in the memory and predetermined data in the comparison data register are provided. After the data is written, the read data register reads the predetermined data, and the comparison circuit reads the predetermined data in the read data register and the predetermined data in the comparison data register. The memory control device according to any one of claims 1 to 8, wherein the memory control device performs a write / read confirmation process for collating with a memory.
1 0 . 外部から内容を書き換え可能なレジスタをさらに備え、 前記比較回路は、 前記レジスタに設定されたデータを用いて、 前記ラ イ ト/リード確認処理を行う請求項 9に記載のメモリ制御装置。 10. The memory control device according to claim 9, further comprising a register whose contents can be rewritten externally, wherein the comparison circuit performs the write / read confirmation processing using data set in the register. .
1 1 . 前記レジスタには、 前記メモリの前記所定のアドレスが少な く とも設定される請求項 9記載のメモリ制御装置。 11. The memory control device according to claim 9, wherein at least the predetermined address of the memory is set in the register.
1 2 . 前記ディレイ調節回路は、 前記ライ ト /リード確認処理の終 了後、 前記ディレイ調節処理を行い、 . ' 12. The delay adjustment circuit performs the delay adjustment processing after the end of the write / read confirmation processing.
前記比較回路は、 前記ディレイ調節処理が行われた後、 再び前記ライ ト Zリード確認処理を行うライ ト Zリード繰り返し確認処理を行い、 前記ライ ト /リード確認処理、 または前記ライ ト Z'リード確認処理お ょぴ前記ライ トノリード繰り返し確認処理により、 前記遅延値は最適化 される請求項 9または 1 0に記載のメモリ制御装置。 After the delay adjustment processing is performed, the comparison circuit performs the write Z read repetition confirmation processing for performing the write Z read confirmation processing again, and performs the write / read confirmation processing or the write Z ′ read. 10. The memory control device according to claim 9, wherein the delay value is optimized by a confirmation process and the write / read repetition confirmation process.
1 3 . 外部からの制御信号入力時に、 前記ディレイ調節回路は、 前 記ディレイ調節処理を行う請求項 1から 8のいずれかに記載のメモリ制
13. The memory control according to claim 1, wherein the delay adjustment circuit performs the delay adjustment processing when a control signal is input from the outside.
1 4 . 前記外部信号は、 前記メモリ制御装置の電源投入を示す信号 である請求項 1 3に記載のメモリ制御装置。 14. The memory control device according to claim 13, wherein the external signal is a signal indicating power-on of the memory control device.
1 5 . 前記外部信号は、 前記メモリ制御装置の初期化またはリセッ トを示す信号である請求項 1 3に記載のメモリ制御装置。 15. The memory control device according to claim 13, wherein the external signal is a signal indicating initialization or reset of the memory control device.
1 6 . 前言己外部信号は、 前記メモリ制御装置のスリープ状態からの ' 復帰を示す信号である請求項 1 3に記載のメモリ制御装置。 16. The memory control device according to claim 13, wherein the external signal is a signal indicating a return from the sleep state of the memory control device.
1 7 . 前記メモリに対してアクセス権を有するブロックのアクセス 1 7. Access to blocks that have access to the memory
. を確認すると共に、 該ブロックのアクセスの優先順位を決定する調停回 路をさらに備え、 And further comprising an arbitration circuit for determining the priority of access to the block,
前記調停回路が、 前記ブロックが前記メモリにアクセスしていないこ とを少なくとも確認した場合、 前記ディレイ調節回路は、 前記ディレイ 調節処理を行う請求項 9または 1 0に記載のメモリ制御装置。 10. The memory control device according to claim 9, wherein the arbitration circuit performs the delay adjustment processing when at least confirming that the block does not access the memory.
1 8 . 前記調停回路が、 前記ブロックが前記メモリにアクセスして いることを確認した場合、 前記ディレイ調節回路は、 前記ディレイ調節 処理を行わない請求項 1 7に記載のメモリ制御装置。 18. The memory control device according to claim 17, wherein the arbitration circuit does not perform the delay adjustment processing when the arbitration circuit confirms that the block is accessing the memory.
1 9 . 外部または前記レジスタによって設定可能な所定の回数を力 ゥントするカウンタをさらに備え、 1 9. A counter for counting a predetermined number of times that can be set externally or by the register,
前記調停回路が、 前記プロックが前記メモリにァクセ していること を確認すれば、 前記ディレイ調節回路は、 前記ディレイ調節処理を行わ ないとともに、 前記カウンタの値をインクリメントし、 前記カウンタの 値が所定の値になれば、 前記ディレイ調節処理を行う請求項 9または 1 0に記載のメモリ制御装置。 If the arbitration circuit confirms that the block is accessing the memory, the delay adjustment circuit does not perform the delay adjustment processing, increments the value of the counter, and sets the value of the counter to a predetermined value. 10. The memory control device according to claim 9, wherein the delay adjustment processing is performed when the value of the memory control value becomes:
2 0 . 時間計測を行うタイマをさらに備え、 20. Further equipped with a timer to measure time,
前記タイマの時間計測に基づき、 前記ディレイ調節回路は、 所定の時 間ごとに前記ディレイ調節処理を行う請求項 1 9に記載のメモリ制御装
The memory control device according to claim 19, wherein the delay adjustment circuit performs the delay adjustment process at predetermined time intervals based on the time measurement of the timer.
2 1 . 前記レジスタには、 前記所定の時間が設定可能である請求項 2 1に記載のメモリ制御装置。 21. The memory control device according to claim 21, wherein the predetermined time can be set in the register.
2 2 . 温度を計測する温度モニタをさらに備え、 2 2. It is further equipped with a temperature monitor that measures the temperature.
前記メモリに対してアクセス権を有する前記プロックの温度変化に基 づき、 前記ディレイ調節回路は 前記ディレイ調節処理を行う請求項 9 、 1 0, ま汔は 1 ,9のいずれかに記載のメモリ制御装置。, 10. The memory control according to claim 9, wherein the delay adjustment circuit performs the delay adjustment processing based on a temperature change of the block having an access right to the memory. 11. apparatus. ,
2 3 . 前記レジスタには、 所定の温度が設定可能であり、 23. A predetermined temperature can be set in the register,
前記温度モニタが、 前記所定の温度を検出した場合、 前記ディレイ調 節処理が行われる請求項 2 2に記載のメモリ制御装置。' 23. The memory control device according to claim 22, wherein the delay adjustment process is performed when the temperature monitor detects the predetermined temperature. '
2 4 . 電圧を計測する電圧モニタをさらに備え、 2 4. A voltage monitor for measuring voltage is further provided.
前記メモリに対してアクセス権を持つプロックまたは該メモリ制御装 置の電圧変化に基づき、 前記ディレイ調節回路は、 前記ディレイ調節処 理を行う請求項 9、 1 0, または 1 9のいずれかに記載のメモリ制御装 置。 . 10. The delay adjustment circuit according to claim 9, wherein the delay adjustment circuit performs the delay adjustment processing based on a block having an access right to the memory or a voltage change of the memory control device. 11. Memory control device. .
2 5 . 前記レジスタには、 所定の電圧が設定可能であり、 25. A predetermined voltage can be set in the register,
前記電圧モニタが、 前記所定の電圧以上の電圧を検出した場合、 前記 ディレイ調節処理が行われる請求項 2 4に記載のメモリ制御装置。 25. The memory control device according to claim 24, wherein when the voltage monitor detects a voltage equal to or higher than the predetermined voltage, the delay adjustment process is performed.
2 6 . 前記メモリに対してアクセス権を持つ誤り検出プロックが前 記メモリにアクセスすることによって誤り検出を行った場合に、 誤り検 出対象となる符号語の特定個数あたりの誤り検出回数が、 所定の回数よ り大きくなつた場合、 前記ディレイ調節回路は、 前記ディレイ調節処理 を行う請求項 9、 1 0, または 1 9のいずれかに記載のメモリ制御装置 c 2 7 . 前記メモリに対してアクセス権を持つ誤り訂正プロックが前 記メモリにアクセスすることによって誤り訂正を行った場合に、 誤り訂 正回数が、 所定の回数より大きくなつた場合、 前記ディレイ調節回路は 、 前記ディレイ調節処理を行う請求項 9、 1 0, または 1 9のいずれか
に記載のメモリ制御装置。 26. When an error detection block having an access right to the memory performs error detection by accessing the memory, the number of error detections per specific number of codewords subject to error detection is: 10. The memory control device c27 according to any one of claims 9, 10, and 19, wherein when the number of times exceeds a predetermined number, the delay adjustment circuit performs the delay adjustment processing. If the error correction block having access right performs error correction by accessing the memory, and if the number of error corrections is greater than a predetermined number, the delay adjustment circuit performs the delay adjustment processing. Any of claims 9, 10, or 19 to be made 3. The memory control device according to 1.
2 8 . 前記メモリに対してアクセス権を持つ前記プロックが前記メ モリにデータをライ トした回数が所定の回数となった場合、 前記ディレ ィ調節回路は、 前記ディレイ調節処理を行う請求項 9、 1 0, または 1 9のいずれかに記載のメモリ制御装置。 28. The delay adjusting circuit performs the delay adjusting process when the number of times that the block having an access right to the memory writes data to the memory reaches a predetermined number. , 10, or 19.
2 9 . 前記レジスタには、 前記所定の回数が設定可能である請求項 2 6から 2 8のいずれかに記載のメモリ制御装置。 29. The memory control device according to claim 26, wherein the predetermined number of times can be set in the register.
3 0 . クロックを生成するクロック生成工程と、 30. A clock generation step of generating a clock,
前記ク口ックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節工程と、 A delay adjusting step of performing a delay adjusting process for delaying the mouthpiece with a variable delay value and outputting the captured clock.
前記取り込みク口ックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程とを備えたメモリ制御方法。 ' A read data register storing step of reading data recorded in a memory and storing the read data in a read data register based on the capture clock. '
3 1 . 前記ディレイ調節工程は、 該メモリ制御装置周辺の環境変化 に基づき前記ディレイ調節処理を開始する請求項 3 0に記載のメモリ制 御方法。 . 31. The memory control method according to claim 30, wherein the delay adjustment step starts the delay adjustment processing based on an environmental change around the memory control device. .
3 2 . 俞記ディレイ調節工程は、 所定の周期にて前記ディレイ調節 処理を開始する請求項 3 0に記載のメモリ制御方法。 . ' 32. The memory control method according to claim 30, wherein the delay adjustment step starts the delay adjustment processing at a predetermined cycle. '
3 3 . 前記ディレイ調節工程は、 前記メモリに対する誤り検出また は誤り訂正の動作に基づきディレイ調節処理を開始する請求項 3 0に記 載のメモリ制御工程。 33. The memory control step according to claim 30, wherein the delay adjustment step starts delay adjustment processing based on an error detection or error correction operation for the memory.
3 4 . 前記メモリへの記録対象となるデ^"タと同一のデータを比較 用データレジスタに格納する比較用データレジスタ格納工程と、 前記リードデータレジスタにて格納されたデータと、 前記比較用デー タレジスタ工程にて格納されているデータとを比較する比較工程とを備 え、
前記メモリ内の所定のァドレスおよび前記比較用データレジスタに所 定のデータがライトされた後、 前記リードデータレジスタから、 前記所 定のデータをリードし、 前記比較工程において、 前記リードデータレジ スタ内の前記所定のデータと、 前記比較用データレジスタ内の前記所定 のデータとを照合するライ ト Zリード確認処理を行う請求項 3 0に記載 のメモリ制御方法。 , 3 4. A comparison data register storing step of storing the same data as the data to be recorded in the memory in the comparison data register; and the data stored in the read data register and the comparison data register. A comparison step of comparing the data stored in the data register step with the data stored in the data register step. After the predetermined data in the memory and the predetermined data are written in the comparison data register, the predetermined data is read from the read data register. 30. The memory control method according to claim 30, wherein a write Z read confirmation process is performed for comparing the predetermined data in the comparison data with the predetermined data in the comparison data register. ,
3 5 . 請求項 1に記載のメモリ制御装置の、 クロックを生成するク ロック生成回路と、 前記クロックに、 可変する遅延値にて遅延させるデ ィレイ調節処理を行い、 取り込みクロックとして出力するディレイ調節 回路と、 前記取り込みクロックに基づき、 メモリに記録されているデー タをリードして格納するリ一ドデータレジスタとの全部または一部とし てコンピュータを機能させるためのプログラム。 35. The memory control device according to claim 1, wherein the clock generation circuit generates a clock, and the clock adjustment circuit performs delay adjustment processing for delaying the clock with a variable delay value and outputs the clock as a fetched clock. A program for causing a computer to function as all or part of a circuit and a read data register that reads and stores data recorded in a memory based on the capture clock.
3 6 . 請求項 3 0に記載のメモリ制御方法の、 クロックを生成する ク口ック生成工程と、 36. The memory control method according to claim 30, wherein a clock generation step of generating a clock;
前記ク口ックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り.込みクロックとして出力するディレイ調節工程と、 Performing a delay adjustment process of delaying with a variable delay value on the mouthpiece; a delay adjustment step of outputting as a capture clock;
前記取り込みクロックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程との全部または一部をコンピュータに実行させるためのプログラム。 A program for causing a computer to execute all or part of a read data register storage step of reading data recorded in a memory and storing the data in a read data register based on the capture clock.
3 7 . 請求項 1に記載のメモリ制御装置の、 クロックを生成するク ロック生成回路と、 前記クロックに、 可変する遅延値にて遅延させるデ ィレイ調節処理を行い、 取り込みクロックとして出力するディレイ調節 回路と、 前記取り込みクロックに基づき、 メモリに記録されているデー タをリードして格納するリ一ドデータレジスタとの全部または一部とし てコンピュータを機能させるためのプログラムを担持した媒体であって 、 コンピュータにより処理可能なことを特徴とする媒体。
37. The memory control device according to claim 1, wherein the clock generation circuit generates a clock, and performs delay adjustment processing for delaying the clock with a variable delay value, and outputs a delay as a capture clock. A medium carrying a program for causing a computer to function as all or part of a circuit and a read data register that reads and stores data recorded in a memory based on the fetch clock. A medium characterized by being processable by a computer.
3 8 . 請求項 3 0に記載のメモリ制御方法の、 クロックを生成する クロック生成工程と、 前記クロックに、 可変する遅延値にて遅延させる ディレイ調節処理を行い、 取り込みクロックとして出力するディレイ調 節工程と、 前記取り込みクロックに基づき、 メモリに記録されているデ ータをリードしてリードデータレジスタに格納するリ一ドデータレジス ' タ格納工程との全部または一部をコンピュータに実行させるためのプロ グラムを担持した媒体であって、 コンピュータにより処理可能なことを 特徴とする媒体。
38. The memory control method according to claim 30, wherein: a clock generation step of generating a clock; and a delay adjustment processing of performing a delay adjustment process of delaying the clock with a variable delay value and outputting the clock as a capture clock. And causing the computer to execute all or part of a read data register storing step of reading data recorded in a memory and storing the data in a read data register based on the capture clock. A medium carrying a program, which can be processed by a computer.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2000193464 | 2000-06-27 | ||
JP2000-193464 | 2000-06-27 |
Publications (1)
Publication Number | Publication Date |
---|---|
WO2002001363A1 true WO2002001363A1 (en) | 2002-01-03 |
Family
ID=18692454
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
PCT/JP2001/005412 WO2002001363A1 (en) | 2000-06-27 | 2001-06-25 | Memory control device, and memory control method |
Country Status (1)
Country | Link |
---|---|
WO (1) | WO2002001363A1 (en) |
Cited By (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010038422A1 (en) * | 2008-10-01 | 2010-04-08 | パナソニック株式会社 | Memory interface |
WO2010137330A1 (en) * | 2009-05-27 | 2010-12-02 | パナソニック株式会社 | Delay adjustment device and delay adjustment method |
CN113825898A (en) * | 2019-05-20 | 2021-12-21 | 舍弗勒技术股份两合公司 | Method for operating an electromechanical camshaft phaser |
Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0454544A (en) * | 1990-06-21 | 1992-02-21 | Nec Corp | Memory access controller |
JPH05342085A (en) * | 1992-06-09 | 1993-12-24 | Mitsubishi Electric Corp | Memory access control circuit |
JPH07146814A (en) * | 1993-11-24 | 1995-06-06 | Matsushita Electric Ind Co Ltd | Memory device |
JPH09185427A (en) * | 1995-12-28 | 1997-07-15 | Graphics Commun Lab:Kk | Clock phase adjusting circuit and clock phase adjusting method |
JPH10232818A (en) * | 1997-01-23 | 1998-09-02 | Hewlett Packard Co <Hp> | Memory controller |
JPH11161601A (en) * | 1997-08-19 | 1999-06-18 | Matsushita Electric Ind Co Ltd | Adjusting device for delay time between transmission lines |
-
2001
- 2001-06-25 WO PCT/JP2001/005412 patent/WO2002001363A1/en unknown
Patent Citations (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
JPH0454544A (en) * | 1990-06-21 | 1992-02-21 | Nec Corp | Memory access controller |
JPH05342085A (en) * | 1992-06-09 | 1993-12-24 | Mitsubishi Electric Corp | Memory access control circuit |
JPH07146814A (en) * | 1993-11-24 | 1995-06-06 | Matsushita Electric Ind Co Ltd | Memory device |
JPH09185427A (en) * | 1995-12-28 | 1997-07-15 | Graphics Commun Lab:Kk | Clock phase adjusting circuit and clock phase adjusting method |
JPH10232818A (en) * | 1997-01-23 | 1998-09-02 | Hewlett Packard Co <Hp> | Memory controller |
JPH11161601A (en) * | 1997-08-19 | 1999-06-18 | Matsushita Electric Ind Co Ltd | Adjusting device for delay time between transmission lines |
Cited By (6)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO2010038422A1 (en) * | 2008-10-01 | 2010-04-08 | パナソニック株式会社 | Memory interface |
WO2010137330A1 (en) * | 2009-05-27 | 2010-12-02 | パナソニック株式会社 | Delay adjustment device and delay adjustment method |
US8363492B2 (en) | 2009-05-27 | 2013-01-29 | Panasonic Corporation | Delay adjustment device and delay adjustment method |
CN113825898A (en) * | 2019-05-20 | 2021-12-21 | 舍弗勒技术股份两合公司 | Method for operating an electromechanical camshaft phaser |
US11680498B2 (en) | 2019-05-20 | 2023-06-20 | Schaeffler Technologies AG & Co. KG | Method for operating an electromechanical camshaft phaser |
CN113825898B (en) * | 2019-05-20 | 2023-11-24 | 舍弗勒技术股份两合公司 | Method for operating an electromechanical camshaft phaser |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JP5392688B2 (en) | Method for calibrating the start value of write leveling in a memory system | |
JP6832777B2 (en) | Semiconductor device | |
US6493836B2 (en) | Method and apparatus for scheduling and using memory calibrations to reduce memory errors in high speed memory devices | |
WO2010137330A1 (en) | Delay adjustment device and delay adjustment method | |
JP5577776B2 (en) | Memory control apparatus and mask timing control method | |
US20110040902A1 (en) | Compensation engine for training double data rate delays | |
CN111459557B (en) | Method and system for shortening starting time of server | |
US7143258B2 (en) | Method and device for masking ringing in a DDR SDRAM | |
US9910757B2 (en) | Semiconductor device, log acquisition method and electronic apparatus | |
JP4852770B2 (en) | Method and apparatus for delay circuit | |
JP2007157029A (en) | Memory control circuit, and memory control method | |
EP0855653A1 (en) | Memory controller with a programmable strobe delay | |
JP2002366421A (en) | Memory control circuit and memory control method | |
CN115565577B (en) | Signal generation circuit and method and semiconductor memory | |
TWI433163B (en) | Memory controller and associated controlling method | |
US6918016B1 (en) | Method and apparatus for preventing data corruption during a memory access command postamble | |
JP6179206B2 (en) | Memory control device | |
CN102110461A (en) | Memory controller and control method thereof | |
WO2002001363A1 (en) | Memory control device, and memory control method | |
JP6098418B2 (en) | Signal control circuit, information processing apparatus, and duty calculation method | |
JP2007293846A (en) | Method and system for performing maintenance and calibration operations for memory | |
JPH05342085A (en) | Memory access control circuit | |
US5235699A (en) | Timing calibrate and track control circuit | |
JP4100985B2 (en) | Data processing device, semiconductor memory device, and clock frequency detection method | |
JP6997857B2 (en) | In-vehicle system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
AK | Designated states |
Kind code of ref document: A1 Designated state(s): CN ID JP KR SG US |
|
NENP | Non-entry into the national phase |
Ref country code: JP |