+

WO2002001363A1 - Dispositif et procede de commande de memoire - Google Patents

Dispositif et procede de commande de memoire Download PDF

Info

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
Application number
PCT/JP2001/005412
Other languages
English (en)
French (fr)
Inventor
Daisuke Kondou
Yasushi Ueda
Toru Aoki
Original Assignee
Matsushita Electric Industrial, Co., Ltd.
Priority date (The priority date is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the date listed.)
Filing date
Publication date
Application filed by Matsushita Electric Industrial, Co., Ltd. filed Critical Matsushita Electric Industrial, Co., Ltd.
Publication of WO2002001363A1 publication Critical patent/WO2002001363A1/ja

Links

Classifications

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

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)

Description

明 細 書
メモリ制御装置、 メモリ制御方法
技術分野 '
本発明はメモリ制御に関するもので、 特に DRAMに記録されている データをリ一ドデータレジスタに取り込むタイミングに対し特徴を持つ ものに関する。
背景技術
従来、 DRAMに記録されているデータをリ一ドレジスタに取り込む タイミングに関するメモリ制御装置として、 特開平 1 1— 21 2855 号公報に記載されたものが知られている。 具体的に D R AM制御におけ るリードデータの格納タイミングを決定する例について、 図 1 2、 図 1
3を用いて説明する。 なお、 上記特開平 1 1一 212855号公報の全 ての開示は、 そっくりそのまま引用する (参照する) ことにより、 ここ に一体化する。
図 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上にリードデータを出力する。
一方、 メモリ制御装置 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がりに対して一意に設定さ れており、 これにより、 ィネーブル信号を用いることなくデータを出力 することが可能となる。
ところで、 高速ページモードをサポートした D RAMゃシ.ンク口ナス DRAMなどを使用レデータの転送速度を早めようとすると、 リ一ドデ ータがデータバス 1 2 2上にて確定している時間が自ずと短くなる。 リ 一ドデータ格納レジスタ 1 1 3は、 その確定している時間にリードデー タを取り込まなくてはならない。
しかしながら、 トリガ信号により与えられるデータ取り込みのタイミ ングが固定されていた場合、 温度変化等で配線遅延が生じ、 データバス 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等に対して用いるメモリ制御 装置でも同様となっていた。 発明の開示
本発明は上記の課題に鑑みてなされたものであり、 .データパスに配線 遅延が生じた場合にも、 最適の取り込みタイミングでリードデータを取 り込むことが可能なメモリ制御装置を得るこ'とを目的とする。
上記の目的を達成するために、 第 1の本発明 (請求項 1に対応) は、 ク口ックを生成するクロック生成回路と、
前記ク口ックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節回路と、
前記取り込みクロックに基づき、 メモリに記録ざれているデータをリ 一ドして格納するリ一ドデータレジスタとを備えたメモリ制御装置であ る。
また、 第 2 本発明 (請求項 '2に対応) は、 前記ディレイ調節回路は 、 該メモリ制御装置周辺の環境変化に基づき前記ディレイ調節処理を開 始する上記本発明である。
また、 第 3の本発明 (請求項 3に対応) は、 前記ディレイ調節回路は 、 所定の周期にて前記ディレイ調節処理を開始する上記本発明である。 また、 第 4の本発明 (請求項 4に対応) は、 前記ディレイ調節回路は 、 前記メモリに対する誤り検出または誤り訂正の動作に基づきディレイ 調節処理を開始する上記本発明である。
また、 第 5の本発明 (請求項 5に対応) は、 前記ディレイ調節回路は 、 該メモリ制御装置周辺の環境変化に基づき前記遅延値を可変する上記 本発明である。
また、 第 6の本発明 (請求項 6に対応) は、 前記ディレイ調節回路は 、 所定の周期に基づき前記遅延値を可変する上記本発明である。
また、 第 7の本発明 (請求項 7に対応) は、 前記ディレイ調節回路は 、 1つまたは複数の遅延素子を有し、
前記クロックに所定数の前記遅延素子を経由させる.ことにより、 前記 ク口ック遅延処理を行う上記本発明である。
また、 第 8の本発明 (請求項 8に対応) は、 前記ディレイ調節回路は 、 外部からの制御により、 前記ディレイ調節処理における遅延量を調節 できる上記本発明である。 - また、 第 9の本発明 (請求項 9に対応) は、 前記メモリへの記録対象 となるデータと同一のデータを格納する比較用データレジスタと、 前記リードデータレジスタに格納されたデータと、 前記比較用データ レジスタに格納されているデータとを比較する比較回路とを備え、 前記メモリ内の所定のァドレスおょぴ前記比較用データレジスタに所 定のデータがライ トされた後、 前記リードデータレジスタは、 前記所定 のデータをリードし、 前記比較回路は、 前記リードデータレジスタ内の 前記所定のヂータ.と、 前記比較用データレジスタ内の前記所定のデータ とを照合するライ ト /リード確認処理を行う上記本発明である。
また、 第 1 0の本発明 (請求項 1 0に対応) は、 外部から内容を書き 換え可能なレジスタをさらに備え、
前記比較回路は、 前記レジスタに設定されたデータを用いて、 前記ラ ィト Zリード確認処理を行う上記本発明である。
また、 第 1 1の本発明 (請求項 1 1に対応) は、 前記レジスタには、 前記メモリの前記所定のァドレスが少なくとも設定される上記本発明で ある。
また、 第 1 2の本発明 (請求項 1 2に対応) は、 前記ディレイ調節回 路は、 前記ライ ト /リード確認処理の終了後、 前記ディレイ調節処理を 行い、
前記比較回路は、 前記ディレイ調節処理が行われた後; 再び前記ライ ト /リード確認処理を行うライト Zリード繰り返し確認処理を行い、 前記ライト Zリード確認処理、 または前記ライト /.リード確認処理お よび前記ライ ト Zリード繰り返し確認処理により、 前記遅延値は最適化 される上記本発明である。
また、 第 1 3の本発明 (請求項 1 3に対応) は、 外部からの制御信号 入力時に、 前記ディレイ調節回路は、 前記ディレイ調節処理を行う上記 本発明である。
また、 第 1 4の本発明 (請求項 1 4に対応) は、 前記外部信号は、 前 記メモリ制御装置の電源投入を示す信号である上記本発明である。
また、 第 1 5の本発明 (請求項 1 5に対応) は、 前記外部信号は、 前 記メモリ制御装置の初期化またはリセットを示す信号である上記本発明 である。
また、 第 1 6の本発明 (請求項 1 6に対応) は、 前記外部信号は、 前 記メモリ制御装置のスリープ状態からの復帰を示す信号である上記本発 明である。
また、 第 1 7の本発明 (請求項 1 7に対応) は、 前記メモリに対して アクセス権を有するプロックのアクセスを確認すると共に、 該ブロック のアクセスの優先順位を決定する調停回路をさらに備え、
前記調停回路が、 前記プロックが前記メモリにアクセスしていないこ とを少なくとも確認した場合、 前記ディレイ調節回路は、 前記ディレイ 調節処理を行う上記本発明である。 .
また、 第 1 8の本発明 (請求項 1 8に対応) は、 前記調停回路が、 前 記プロックが前記メモリにアクセスしていることを確認した場合、 前記 ディレイ調節回路は、 前記ディレイ調節処理を行わない上記本発明であ る。
また、 第 1 9の本発明 (請求項 1 9に対応) は、 外部または前記レジ スタによって設定可能な回数をカウントするカウンタをさらに備え、 前記調停回路が、 前記プロックが前記メモリにアクセスしていること を確認すれば、 前記ディレイ調節回路は、 前記ディレイ調節処理を行わ ないとともに、 前記カウンタの値をィンクリメントし、 前記カウンタの 値が所定の値になれば、 前記ディレイ調節処理を行う上記本発明である。
また、 第 2 0の本発明 (請求項 2 0に対応) は、 時間計測を行うタイ マをさらに備え、
前記タイマの時間計測に基づき、 前記ディレイ調節回路は、 所定の時 間ごとに前記ディレイ調節処理を行う上記本発明である。
また、 第 2 1の本発明 (請求項 2 1に対応) は、 前記レジスタには、 前記所定の時間が設定可能である上記本発明である。
また、 第 2 2の本発明 (請求項 2 2に対応) は、 温度を計測する温度 モニタをさら 備え、 1
前記メモリに対してアクセス権を有する前記プロックの,温度変化に基 づき、 前記ディレイ調節回路は、 前記ディレイ調節処理を行う上記本発 明である。
また、 第 2 3の本発明 (請求項 2 3に対応) は、 前記レジスタには、 所定の温度が設定可能であり、 '
前記温度モニタが、 前記所定の温度を検出した場合、 前記ディレイ調 節処理が行われる上記本発明である。 '
また、 第 2 4の本発明 (請求項 2 4に対応) は、 電圧を計測する電圧 モニタをさらに備え、
前記メモリに対してアクセス権を持つプロックまたは該メモリ制御装 置の電圧変化に基づき、 前記ディレイ調節回路は、 前記ディレイ調節処 理を行う上己本発明である。
また、 第 2 5の本発明 (請求項 2 5に対応) は、 前記レジスタには、 所定の電圧が設定可能であり、
前記電圧モニタが、 前記所定の電圧以上の電圧を検.出した場合、 前記 ディレイ調節処理が行われる上記本発明である。
また、 第 2 6の本発明 (請求項 2 6に対応) は、 前記メモリに対して アクセス権を持つ誤り検出プロックが前記メモリにアクセスすることに よって誤り検出を行った場合に、 誤り検出対象となる符号語の特定個数 あたりの誤り検出回数が、 所定の回数より大きくなつた場合、 前記ディ レイ調節回路は、 前記ディレイ調節処理を行う上記本発明である。 また、 第 2 7の本発明 (請求項 2 7に対応) は、 前記メモリに対して アクセス権を持つ誤り訂正プロックが前記メモリにアクセスすることに よって誤り訂正を行った場合に、 誤り訂正回数が、 所定の回数より大き くなつた場合、 前記ディレイ調節回路は、 前記ディレイ調節処理を行う 上記本発明である。 1
また、 第 2 8の本発明 (請求項 2 8に対応) は、 前記メ,モリに対して アクセス権を持つ前記プロックが前記メモリにデータをライ トした回数 が所定の回数となった場合、 前記ディレイ調節回路は、 前記ディレイ調 節処理を行う上記本発明である。
また、 第 2 9の本発明 (請求項 2 9に対応) は、 前記レジスタには、 前記所定の回数が設定可能である上記本発明である。
以上のような本発明によれば、 ディレイ調節回路を備えることでリー ドデータの取り込みタイミングを実動作中においても調節可能とし、 常 にリードデータが確定している時間に取り込みタイミングを設定するこ とができ、 確実に取り込むことができるようになる。 これによりメモリ 制御装置と. D R AM間の配線遅延を考慮することなく レイァゥトするこ とが可能となる。
また、 第 3 0の本発明 (請求項 3 0に対応) は、 クロックを生成する ク口ック生成工程と、
前記ク口ックに、 可変する遅延値にて遅延させるデ.ィレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節工程と、
前記取り込みク口ックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程とを備えたメモリ制御方法である。
また、 第 3 1の本発明 (請求項 3 1に対応) は、 前記ディレイ調節ェ 程は、 該メモリ制御装置周辺の環境変化に基づき前記ディレイ調節処理 を開始する上記本発明である。 · また、 第 3 2の本発明 (請求項 3 2に対応) は、 前記ディレイ調節ェ 程は、 所定の周期にて前記ディレイ調節処理を開始する上記本発明であ る。
また、 第 3 3の本発明 (請求項 3 3に対応) は、 前記ディレイ調節ェ 程は、 前記メモリに対する誤り検出または誤り訂正の動作に基づきディ レイ調節処理を開始する上記本発明である。
また、 第 3 4の本発明 (請求項 3 4に対応) は、 前記メモリへの記録 対象となるデータと同一のデータを比較用データレジスタに格納する比 較用データレジスタ格納工程と、
前記リードデータレジスタにて格納されたデータと、 前記比較用デー タレジスタ工程にて格納されているデータとを比較する比較工程とを備 Χ·、
前記メモリ内の所定のァドレスおよび前記比較用データレジスタに所 定のデータがライ トされた後、 前記リードデータレジスタから、 前記所 定のデータをリードし、 前記比較工程において、 前記リードデータレジ スタ内の前記所定のデータと、 前記比較用データレジスタ内の前記所定 のデータとを照合するライ ト /リード確認処理を行う上記本発明である。 また、 第 3 5の本発明 (請求項 3 5に対応) は、 第 1の本発明のメモ リ制御装置の、 クロックを生成するクロック生成回路.と、 前記クロック に、 可変する遅延値にて遅延させるディレイ調節処理を行い、 取り込み クロックとして出力するディレイ調節回路と、 前記取り込みクロックに 基づき、 メモリに記録されているデータをリードして格納するリードデ ータレジスタとの全部または一部としてコンピュータを機能させるため のプログラムである。
また、 第 3 6の本発明 (請求項 3 6に対応) は、 第 3 0の本発明のメ モリ制御方法の、 クロックを生成するクロック生成工程と、 前記クロックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節工程と、
前記取り込みク口ックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程との全部または一部をコンピュータに実行させるための,プログラムで ある。
また、 第 3 7の本発明 (請求項 3 7に対応) は、 第 1の本発明のメモ リ制御装置の、 クロックを生成するクロック生成回路と、 前記クロック に、 可変する遅延値にて遅延させるディレイ調節処理を行い、 取り込み クロックとして出力するディレイ調節回路と、 前記取り込みクロックに 基づき、 メモリに記録されているデータをリ一ドして格納するリ一ドデ ータレジスタとの全部または一部としてコンピュータを機能させるため のプログラムを担持した媒体であって、 コンピュータにより処理可能な ことを特徴とする媒体である。 ·
また、 第 3 8の本発明 (請求項 3 8に対応) は、 第 3 0の本発明のメ モリ制御方法の、 クロックを生成するクロック生成工程と、 前記クロッ クに、 可変する遅延値にて遅延させるディレイ調節処理を行い、 取り込 みクロックとして出力するディレイ調節工程と、 前記取り込みクロック に基づき、 メモリに記録されているデータをリードしてリードデータレ ジスタに格納するリ一ドデータレジスタ格納工程との全^または一部を コンピュータに実行させるためのプログラムを担持した媒体であって、 コンピュータにより処理可能なことを特徴とする媒体である。 図面の簡単な説明
図 1は、 本発明の実施の形態 1によるメモリ制御装置の構成図である c 図 2は、 D R AMからのリ一ドデータの格納タイミングチヤ一トであ る。
図 3は、 本発明の実施の形態 2によるメモリ制御装置の構成図である。 図 4は、 本発明の実施の形態 3によるメモリ制御装置の構成図である。 図 5は、 本 明の実施の形態 4によるメモリ制御装置の構成図である。 図 6は、 本発明の実施の形態 5によるメモリ制御装置の構成図である。 図 7は、 本発明の実施の形態 6によるメモリ制御装置の構成図である。 図 8は、 本発明の実施の形態 7によるメモリ制御装置の構成図である。 図 9は、 本発明の実施の形態 8によるメモリ制御装置 構成図である。 図 1 0は、 本発明の実施の形態 9によるメモリ制御装置の構成図であ る。
図 1 1は、 本発明の各実施の形態を一括して構成したメモリ制御装置 の構成図である。
図 1 2は、 従来の技術によるメモリ制御装置の構成図である。
図 1 3は、 従来の技術の D R AMからのリ一ドデータの格納タイミン グチヤートである。
図 1 4 ( a ) は、 本発明の実施の形態 2のライト Zリード処理の一例 を説明するための図である。 . '
図 1 4 ( b ) は、 本発明の実施の形態 2のライト/リード処理の一例 を説明するための図である。
符号の説明
1 メモリ制御装置
1 1 取り込みクロック生成回路
1 2 ディレイ調節回路
1 3 リードデータを格納するレジスタ 14 比較用データを格納するレジスタ
1 5 比較回路.
1 6 タイマ
1 7 温度モニタ
18 電源零圧モニタ '
1 9 外都から書き換え可能なレジスタ
20 カウンタ
21 調停回路
31 DRAM
32 ブロック A
33 誤り検出ブロック
34 誤り訂正ブロック
1 00、 1 01 ィネーブル信号生成部
1 01 従来のメモリ制御装置
1 10、 1 22 データバス
1 12 ディレイ回路
1 13 リードデータ格納レジスタ
121 DRAM 発明を実施するための最良の形態
以下、 本発明の実施の形態を、 図面を参照して説明する。
(実施の形態 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に格納するタイミングを示した図である。
以上のような構成を有する、 本発明の実施の形態 1によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、.本発明 のメモリ制御方法の一実施の形態について説明を行う。
D R AM 3 1からリードされたデータがデータバス 1 1 0上に確定し ている時間 ( t— d a t a ) はィネーブル信号生成部 1 0 0から出力さ れるィネーブル信号の周期によって決まっており、 その時間内にリード データをリードデータレジスタ 1 3に取り込まなければならない。
そこで、 ディレイ調節回路 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内の遅延値 を設定し直すことで、 リードデータを確実に取り込めるタイミングにな るよう取り込みク口ックの遅延量を調節することができる。
以上のように本発明によれば、 常にリ一ドデータがデータバス 1 1 0 上で確定している時間に確実にデータをリードデータレジスタ 1 3に取 り込むことが可能となる。
なお、 ディレイ調節回路 1 2の構成としては、 複数の遅延素子を設け て、 所望の遅延値に応じて取り込みク口ックを通過させる遅延素子の個 数を変化させるようにしてもよいし、 外部の C P U等の制御におう じて 、 遅延値を変化させるような手段としてもよい。 .
(実施の形態 2 )
本発明の実施の形態 2によるメモリ制御装置は、 D R AM 3 1に対し てライ ト/リード動作が正常に行えているかを確認するために必要な回 路を備えたものである。 以下、 図 3を用いて説明する。
図 3は本発明の実施の形態 2によるメモリ制御装置の構成図である。 図において、 図 1 と同一部または相当部には、 同一符号を付し説明を省 略する。 また、 1 4は比較用データレジスタ、 1 5は比較回路、 1 9は レジスタ、 3 2はブロック Aである。 なお、 ィネーブル信号生成回路 1 0 0については、 実施の形態 1 と同様の構成、 動作を行うため記載を省 略した。
以上のような構成を有する、 本発明の実施の形態 2によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。
ブロック 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 に格納されているデータとを比較する。
比較回路 1 5の比較結果が同一であれば、 D R AM 3 1にライ トした データがリードデータが確定している時間内に取り込みク口ックが設定 されており、 比較結果に食い違いがあれば、 取り込みクロックがずれて いるので、 ディレイ調節回路 1 2は遅延値の再設定を行う必要があると いうことを確認することができる。
ここで 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 ) に示すように、 ライ ト/リード処理時にその取'り込みクロック を反転させる。 これにより、 リードデータの確定しているタイミングに 取り込みクロックを設定することができる。
一方、 上記の動作においては、 D R AM 3 1からのリードデータが、 データパス 1 1 0上に確定している範囲内に取り込みク口ックが設定さ れているのは確認できるが、 リードデータの確定している範囲のどのタ ィミングに取り込みク口ックが設定されているかはわからない。 この場 合、 少しの遅延によって取り込みクロックがリードデータの確定してい ない時間領域にずれてしまう可能性が生じる。 このような場合は、 任意の値を D R AM 3 1 へライ トし、 その値がリ ードできるかどう力 \ ディレイ調節回路 1 2に所定の遅延値を設定した 後、 前述の方法で確認する。 次にディレイ調節回路 1 2内の遅延値を、 従前の所定の値とは違う値に設定し、 再びライ ト リード処理を行う。 このとき、 遅 値は時間前方おょぴ後方のいずれに設定するかは任意で よいが、 例えば前方、 後方を交互に設定することにより、,遅延値のずれ の方向を判定することが可能となる。
遅延値を変更しながら、 ライ ト Zリード処理を繰り返すことにより、 設定される遅延値がある値からある値までの所定の範囲内では、 D R A M 3 1 へライ トした値をリードできることが確認できる。 ディレイ調節 回路 1 2は、 この所定の範囲を持つ遅延値の中心の値を、 最終的な遅延 値として設定する。
以上のように、 本実施の形態によるメモリ制御装置によれば、 D R A M 3 1のデータを確実にリードできるタイミングに取り込みクロックを 設定することが可能となる。
(実施の形態 3 )
本発明の実施の形態 3によるメモリ制御装置は、 ディレイ調節処理を 外部信号投入時に行うようにしたものである。 以下、 図 4を用いて説明 する。
図 4は本発明の実施の形態 3によるメモリ制御装置の構成図である。 図において、 図 1 と同一部または相当部には、 同一符号を付し説明を省 略する。 また、 2 1は調停回路である。 またく ィネーブル信号生成回路 1 0 0については、 実施の形態 1 と同様の構成、 動作を行うため記載を 省略した。
以上のような構成を有する、 本発明の実施の形態 3によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。
'外部信号としてメモリ制御装置 1に入力される信号としては、 電源ォ ンを示す信号やリセッ ト信号、 電源のスリ プ状態からの復帰を示す信 号などがある。
本実施の形靡によるメモリ制御回路においては、 ディレイ調節回路 1 2が、 これもの外部信号が投入された際にディレイ調節処理を行うこと で、 ブロック A32が DRAM31にアクセスする前に設定をすること ができ、 DRAM3 1からのリードデータを確実にリードデータレジス タ 1 3に取り込むことができる。
さらに、 調停回路 21 ブロック A 32が DRAM 31に対してァ クセスしていないことを確認し、 その間にディレイ調節回路 1 2はディ レイ調節処理を行う。
以上のように本発明によれば、 ブロック A32の DRAM 31へのァ クセスを中断することなく、 DRAM31がアクセスされてない時間を 有効に使うことができ、 常に DRAM 3 1のデータを確実にリードする ことが可能となる。
なお、 本実施の形態は、 実施の形態 2の構成に調停回路 21を搭載し たものとして説明を行ったが、 調停回路は実施の形態 1 構成に付加す るようにしてもよく、 この場合も本実施の形態と同様の効果が得られる c (実施の形態 4) .
図 5は本発明の実施の形態 4によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 1 6はタイマ、 20はカウンタである。 また、 ィ ネーブル信号生成回路 100については、 実施の形態 1と同様の構成、 動作を行うため記載を省略した。
以上のような構成を有する、 本発明の実施の形態 4によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べる。
メモリ制御装置 1が動作中、 温度や電源電圧の変化などでデータバス 1 1 0に配線 ¾延が変化し、 リードデータが取り込めなくなる可能性が 生じる。 こめような場合、 タイマ 1 6によって時間設定をし、 ディレイ 調節回路 1 2が、 タイマ 1 6に設定された、 本発明の所定の時間の一例 である一定の時間間隔でディレイ調節処理を行うようにする。 これによ り、 定期的に最適な遅延値の設定が可能となる。 このとき、 図 5に示す ように、 一定の時間間隔は、 外部からレジスタ 1 9によ て設定して、 調節可能でもよいし、 ディレイ調節回路 1 2にて保持される固定値であ つてもよい。 もちろんレジスタ 1 9は省いた構成としてもよい。
なお、 上記の動作において、 調停回路 2 1がブロック A 3 2の D R A 3 1へのアクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A 3 2の D R AM 3 1へのアクセスが終了後、 ディ レイ調節処 aを行うようにする。
また、 ブロック A 3 2の D R AM 3 1へのアクセスが続いてしまう場 合は、 カウンタ 2 0がブロック A 3 2がアクセス優先された回数をカウ ントし、 カウント値がインクリメントして一定回数に達した場合は、 ブ ロック A 3 2の優先順位を下げ、 ディレイ調節回路 1 2がディレイ調節 処理を行うようにする。
以上のように、 本実施の形態によるメモリ制御装置によれば、 定期的 に遅延値を調節することで常に D R AM 3 1のデータを確実にリ一ドす ることが可能となる。
(実施の形態 5 ) 図 6は本発明の実施の形態 5によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 1 7は温度モニタである。 また、 ィネーブル信号 生成回路 100については、 実施の形態 1と同様の構成、'動作を行うた め記載を省略した。 '
以上のような構成を有する、 本発明の実施の形態 5によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べあ。
メモリ制御装置 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へのアクセスが終了後、 ディ レイ調節処理を行うようにする。
また、 ブロック A32の DRAM 3 1へのアクセスが続いてしまう場 合は、 カウンタ 20がプロック A 32がアクセス優先された回数をカウ ントし、 カウント値が一定回数に達した場合は、 ブロック A 3 2の優先 順位を下げ、 ディレイ調節回路 1 2がディレイ調節処理を行うようにす る。
以上のように本実施の形態によるメモリ制御装置によれば、 予測して いない温度変化によつて配線遅延が生じても遅延値を調節することで、 常に D R AM 3 1のデータを確実にリードすることが可能となる。
(実施の形態 6 )
図 7は本発明の実施の形態 6によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 1 8は電源電圧モニタである。 また、 ィネーブル 信号生成回路 1 0 0については、 実施の形態 1と同様の構成、 動作を行 うため記載を省略した。
以上のような構成を有する、 本発明の実施の形態 5によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これ (こより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜5と共通する部分は省略し、 相違点だけを述べる。 .
メモリ制 装置 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へのアクセスが終了後、 ディ レイ調節処理^行うようにする」
また、 ブ ック A 3 2の D R AM 3 1へのアクセスが続いてしまう場 合は、 カウンタ 2 0がプロック A 3 2がアクセス優先された回数をカウ ントし、 カウント値が一定回数に達した場合は、 ブロック A 3 2の優先 順位を下げ、 ディレイ調節回路 1 2がディレイ調節処理を行うようにす る。
以上のように本実施の形態によるメモリ制御装置によれば、 予測して いない電源電圧変化によって配線遅延が生じても遅延値を調節すること で常に D R AM 3 1のデータを確実にリ一ドすることが可能となる。
なお、 本実施の形態の電源電圧モニタは本発明の電圧モエタの一例で あり、 本発明の電圧モニタは、 上記の実施の形態の動作に限らず、 メモ リ制御装置內の所定の部位、 もしくはデータアクセスを行うプロックの 電圧をモニタするようにしてもよい。
(実施の形態 7 ) . '
図 8は本発明の実施の形態 7によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 3 3は誤り検出ブロックである。 また、 イネーブ ル信号生成回路 1 0ひについては、 実施の形態 1 と同様の構成、 動 \作を 行うため記载を省略した。
以上のような構成を有する、 本発明の実施の形態 7によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べる。
誤り検出ブロック 33が DRAM 31にアクセスすることによって誤 り検出を行った結果誤りが検出された場合、 実際に誤りが生じている他 に DRAM31に記録されているデータを確実に取り込めてない可能性 も考えられる。. ' 。
このような場合は、 誤り検出対象となる符号語の特定数あたりの誤り 検出の回数をカウンタ 20によって計数し、 その回数が一定数よりも大 きくなつた場合に、 ディレイ調節回路 12がディレイ調節処理を行う。 このとき、 誤り検出回数の一定数は、 外部から書き換え可能なレジスタ 1 9に設定してもよいし、 あらかじめ定数として DRAM 31に保持し ておいてもよい。 DRAM3 1に保持する場合は、 レジスタ 1 9は省略 した構成としてもよい。
なお、 上記の動作において、 調停回路 21がプロック A32の DR A M31へのアクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A 32の DRAM31へのアクセスが終了後、 ディ レイ調節処 aを行うようにする。
また、 ブロック A32の DRAM 31へのアクセスが続いてしまう場 合は、 カウンタ 20がブロック A32がアクセス優先された回数を力ゥ ントし、 カウント値が一定回数に達した場合は、 プロ.ック A32の優先 順位を下げ、 ディレイ調節回路 12がディレイ調節処理を行うようにす る。
以上のように、 本実施の形態によるメモリ制御装置によれば、 DRA M3 1のリードが正確に行われてないことによる誤り検出数の増加を防 ぐことが可能となる。
(実施の形態 8) . 図 9は本発明の実施の形態 8によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 また、 3 4は誤り訂正ブロックである。 また、 イネーブ ル信号生成回路 1 0 0については、 実施の形態 1 と同様の構成、 動作を 行うため記載を省略した。 '
以上のような構成を有する、 本発明の実施の形態 8によるメモリ制御 装置の動作について、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べる。
誤り訂正プロック 3 4が D R AM 3 1にアクセスすることによって誤 り訂正を行った結果訂正が発生した場合、 実際に誤りが含まれている他 に D R AM 3 1に記録されているデータを確実に取り込めてない可能性 も考えられる。
このような場合は、 誤り訂正の回数をカウンタ 2 0によって計数し、 その訂正回数が一定数よりも大きくなった場合に、 ディレイ調節回路 1 2がディレイ調節処理を行う。 このとき、 誤り訂正回数の一定数は、 あ るいは外部から書き換え可能なレジスタ 1 9に設定された数にしてもよ いし、 あらかじめ定数として D R AM 3 1に保持しておいてもよい。 D R AM 3 1に保持する場合は、 レジスタ 1 9は省略した構成としてもよ い。
なお、 上記の動作において、 調停回路 2 1がブロック A 3 2の D R A M 3 1へ アクセスを許可しており、 アクセスがなされている最中であ る場合は、 そちらを優先し、 ディレイ調節処理は行わないようにするか 、 あるいはブロック A 3 2の D R AM 3 1へのアクセスが終了後、 ディ レイ調節処理を行うようにする。 '
また、 ブロック A 3 2の D R AM 3 1へのアクセスが続いてしまう場 合は、 カウンタ 20がブロック A 32がアクセス優先された回数を力ゥ ントし、 カウント値が一定回数に達した場合は、 ブロック A32の優先 順位を下げ、 ディレイ調節回路 1 2がディレイ調節処理を行うようにす る。 このときの回数も、 レジスタ 1 9に設定する力 、 DRAM31に保 持するようにしてもよい。 '
以上のように、 本実施の形態によるメモリ制御装置によれば、 DRA M31のリードが正確に行われてないことによる誤り訂正不能数の増加 を防ぐことが可能となる。
(実施の形態 9)
図 10は本発明の実施の形態 9によるメモリ制御装置の構成図である。 図において、 図 1〜図 4と同一部または相当部には、 同一符号を付し説 明を省略する。 ただし、 ィネーブル信号生成回路 100については、 実 施の形態 1と同様の構成、 動作を行うため記載を省略した。
以上のような構成を有する、 本発明の実施の形態 9によるメモリ制御 装置の動† こついて、 以下、 説明を行うとともに、 これにより、 本発明 のメモリ制御方法の一実施の形態について説明を行う。 ただし、 実施の 形態 2〜4と共通する部分は省略し、 相違点だけを述べる。
本実施の形態によるメモリ制御装置は、 プロック A3 '2の書き込み回 数に応じてディレイ調節処理を行うものであり、 ブロック A32が DR A 31に対してライ トした回数をカウンタ 20によって計数し、 その ライ トした回数が一定数よりも大きくなった場合に、 ディレイ調節回路 12がディレイ調節処理を行う。 このとき、 ライ ト回数の一定数は、 外 部から書き換え可能なレジスタ 19に設定してもよいし、, あらかじめ定 数として DRAM3 1に保持しておいてもよい。 DRAM31に保持す る場合は、 レジスタ 19は省略した構成としてもよい。
以上のように、 本実施の形態によるメモリ制御装置によれば、 DRA M 3 1へのライ ト回数が特定回数になる度に遅延値を調節することで、 常に D R AM 3 1のデータを確実にリードすることが可能となる。
なお、 本発明の各実施の形態によるメモリ制御装置は、 図 1 1に示す ように、 1つのメモリ制御装置内に実現してもよく、 この場合、 メモリ 制御装置を取り卷く環境、 データアクセスの状況、 回数といった各種条 件に応じて、 最適のデータ取り込みタイミングを得ることができる。
また、 本発明のメモリは、 各実施の形態においては D R AMとしたが 、 他には S R AMとしてもよく、 この場合も上述したのと同様の効果が 得られる。
また、 本発明の各実施の形態は、 D R AMがィネーブル信号の出力に よりリードデータをデータパス 1 1 0に出力する構成として説明を行つ たが、 本発明は、 S D R AMのようなメモリを対象に、 その動作がすぺ てクロックに同期しており、 ィネーブル信号を用いることなくデータを 出力して、 データバス上に確定することができるメモリに対するメモリ 制御装置として実現してもよい。 すなわち、 本発明は、 ィネーブル信号 生成部 1 0 0やそれに相当する手段を持たないメモリ制御装置として実 また、 上記各実施の形態においては、 ディレイ調節回路 1 2の遅延値 は、 温度モニタ 1 7が測定する温度または電源電圧モニタ 1 8が測定す る電圧に基づき可変するようにしてもよい。 さらに、 タイマ 1 6および カウンタ 2 0によって設定された所定の周期に基づき可変するようにし てもよい。
また、 上記の説明においては、 本発明の実施の形態におけるメモリ制 御装置について説明を行ったが、 本発明は、 上述した本発明のメモリ制 御装置の全部または一部の手段 (または、 装置、 素子、 回路、 部等) の 機能をコンピュータにより実行させるためのプログラムであって、 コン ピュータと協働して動作するプログラムであってもよい。
また、 本発明は、 上述した本発明のメモリ制御方法の全部または一部 のステップ (または、 工程、 動作、 作用等) の動作をコンピュータによ り実行させるためのプログラムであって、 コンピュータと協働して動作 するプログラムであってもよい i
本発明は、' 上述.した本発明のメモリ制御装置の全部または一部の手段 の全部または一部の機能をコンピュータにより実行させるためのプログ ラムを担持した媒体であり、 コンピュータにより読み取り可能且つ、 読 み取られた前記プログラムが前記コンピュータと協動して前記機能を実 行する媒体であってもよい。
本発明は、 上述した本発明のメモリ制御方法の全部または一部のステ ップの全部または一部の動作をコンピュータにより実行させるためのプ ログラムを担持した媒体であり、 コンピュータにより読み取り可能且つ 、 読み取られた前記プログラムが前記コンピュータと協動して前記動作 を実行する媒体であってもよい。
なお、 本発明の一部の手段 (または、 装置、 素子、 回路、 部等) 、 本発明の一部のステップ (または、 工程、 動作、 作用等) とは、 それら の複数の手段またはステツプの内の、 幾つかの手段またはステツプを意 味し、 あるいは、 一つの手段またはステップの內の、 一部の機能または 一部の動作を意味するものである。
また、 本発明の一部の装置 (または、 素子、 回路、 部等) とは、 それ らの複数の装置の内の、 幾つかの装置を意味し、 あるいは、 一つの装置 の内の、 一部の手段 (または、 素子、 回路、 部等) を意味し、 あるいは 、 一^ 3の手段の内の、 一部の機能を意味するものである。
また、 本発明のプログラムを記録した、 コンピュータに読みとり可能 な記録媒体も本発明に含まれる。 また、 本発明のプログラムの一利用形態は、 コンピュータにより読み 取り可能な記録媒体に記録され、 コンピュータと協働して動作する態様 であっても良い。
また、 本発明のプログラムの一利用形態は、 伝送媒体中を伝送し、 コ ンピュータにより読みとられ、 πンピュータと協働して動作する態様で あっても良 ヽ。 . .
また、 本発明のデータ構造としては、 データベース、 データフォーマ ッ ト、 データテーブル、 データリスト、 データの種類などを含む。
また、 記録媒体としては、 R OM等が含まれ、 伝送媒体としては、 ィ ンターネッ ト等の伝送媒体、 光 ·電波 ·音波等が含まれる。
また、 上述した本発明のコンピュータは、 C P U等の純然たるハード ウエアに限らず、 ファームゥ-ァや、 O S、 更に周辺機器を含むもので あっても良い。
なお、 以上説明した様に、 本発明の構成は、 ソフトゥ ア的に実現し ても良いし、 ハードウェア的に実現しても良い。 産業上の利'用可能性 . 以上説明したところから明らかなように、 本発明によれば、 リードデ ータを取り込むタイミングを調節することができ、 さまぎまな状況に対 しても確実にリ ドデータを取り込むことが可能となる。

Claims

請 求 の 範 囲
1 . クロックを生成するクロック生成回路と、
前記クロックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節回路と、
前記取り达みクロックに基づき、 メモリに記録されて るデータをリ 一ドして格納するリ一ドデータレジスタとを備えたメモリ制御装置。
2 . 前記ディレイ調節回路は、 該メモリ制御装置周辺の環境変化に 基づき前記ディレイ調節処理を開始する請求項 1に記 ¾のメモリ制御装 置。
3 . 前記ディレイ調節回路は、 所定の周期にて前記ディレイ調節処 理を開始する請求項 1に記載のメモリ制御装置。
4 . 前記ディレイ調節回路は、 前記メモリに対する誤り検出または 誤り訂正の動作に基づきディレイ調節処理を開始する請求項 1に記載の メモリ制御装置。
5 . 前記ディレイ調節回路は、 該メモリ制御装置周辺の環境変化に 基づき前記遅延値を可変する請求項 1から 4のいずれかに記載のメモリ 制御装置。 '-
6 . 前記ディレイ調節回路は、 所定の周期に基づき前記遅延値を可 変する請求項 1から 4のいずれかに記載のメモリ制御装置。
7 . 前記ディレイ調節回路は、 1つまたは複数の遅延素子を有し、 前記クロックに所定数の前記遅延素子を経由させることにより、 前記 ク口ック遅延処理を行う請求項 1に記載のメモリ制御装置。
8 . 前記ディレイ調節回路は、 外部からの制御により、 前記ディレ ィ調節処理における遅延量を調節できる請求項 1に記載のメモリ制御装
9 . 前記メモリへの記録対象となるデータと同一のデータを格納す る比較用データレジスタと、
前記リードデータレジスタに格納されたデータと、 前記比較用データ レジスタに格納されているデータとを比較する比較回路とを備え、 前記メモリ内の所定のァドレスおよび前記比較用データレジスタに所 定のデータがライ トされた後、 前記リードデータレジスタは、 前記所定 のデータをリードし、 前記比較回路は、 前記リードデータレジスタ内の 前記所定のデータと、 前記比較用データレジスタ内の俞記所定のデータ とを照合するライ ト /リード確認処理を行う請求項 1から 8のいずれか に記載のメモリ制御装置。
1 0 . 外部から内容を書き換え可能なレジスタをさらに備え、 前記比較回路は、 前記レジスタに設定されたデータを用いて、 前記ラ イ ト/リード確認処理を行う請求項 9に記載のメモリ制御装置。
1 1 . 前記レジスタには、 前記メモリの前記所定のアドレスが少な く とも設定される請求項 9記載のメモリ制御装置。
1 2 . 前記ディレイ調節回路は、 前記ライ ト /リード確認処理の終 了後、 前記ディレイ調節処理を行い、 . '
前記比較回路は、 前記ディレイ調節処理が行われた後、 再び前記ライ ト Zリード確認処理を行うライ ト Zリード繰り返し確認処理を行い、 前記ライ ト /リード確認処理、 または前記ライ ト Z'リード確認処理お ょぴ前記ライ トノリード繰り返し確認処理により、 前記遅延値は最適化 される請求項 9または 1 0に記載のメモリ制御装置。
1 3 . 外部からの制御信号入力時に、 前記ディレイ調節回路は、 前 記ディレイ調節処理を行う請求項 1から 8のいずれかに記載のメモリ制
1 4 . 前記外部信号は、 前記メモリ制御装置の電源投入を示す信号 である請求項 1 3に記載のメモリ制御装置。
1 5 . 前記外部信号は、 前記メモリ制御装置の初期化またはリセッ トを示す信号である請求項 1 3に記載のメモリ制御装置。
1 6 . 前言己外部信号は、 前記メモリ制御装置のスリープ状態からの ' 復帰を示す信号である請求項 1 3に記載のメモリ制御装置。
1 7 . 前記メモリに対してアクセス権を有するブロックのアクセス
. を確認すると共に、 該ブロックのアクセスの優先順位を決定する調停回 路をさらに備え、
前記調停回路が、 前記ブロックが前記メモリにアクセスしていないこ とを少なくとも確認した場合、 前記ディレイ調節回路は、 前記ディレイ 調節処理を行う請求項 9または 1 0に記載のメモリ制御装置。
1 8 . 前記調停回路が、 前記ブロックが前記メモリにアクセスして いることを確認した場合、 前記ディレイ調節回路は、 前記ディレイ調節 処理を行わない請求項 1 7に記載のメモリ制御装置。
1 9 . 外部または前記レジスタによって設定可能な所定の回数を力 ゥントするカウンタをさらに備え、
前記調停回路が、 前記プロックが前記メモリにァクセ していること を確認すれば、 前記ディレイ調節回路は、 前記ディレイ調節処理を行わ ないとともに、 前記カウンタの値をインクリメントし、 前記カウンタの 値が所定の値になれば、 前記ディレイ調節処理を行う請求項 9または 1 0に記載のメモリ制御装置。
2 0 . 時間計測を行うタイマをさらに備え、
前記タイマの時間計測に基づき、 前記ディレイ調節回路は、 所定の時 間ごとに前記ディレイ調節処理を行う請求項 1 9に記載のメモリ制御装
2 1 . 前記レジスタには、 前記所定の時間が設定可能である請求項 2 1に記載のメモリ制御装置。
2 2 . 温度を計測する温度モニタをさらに備え、
前記メモリに対してアクセス権を有する前記プロックの温度変化に基 づき、 前記ディレイ調節回路は 前記ディレイ調節処理を行う請求項 9 、 1 0, ま汔は 1 ,9のいずれかに記載のメモリ制御装置。,
2 3 . 前記レジスタには、 所定の温度が設定可能であり、
前記温度モニタが、 前記所定の温度を検出した場合、 前記ディレイ調 節処理が行われる請求項 2 2に記載のメモリ制御装置。'
2 4 . 電圧を計測する電圧モニタをさらに備え、
前記メモリに対してアクセス権を持つプロックまたは該メモリ制御装 置の電圧変化に基づき、 前記ディレイ調節回路は、 前記ディレイ調節処 理を行う請求項 9、 1 0, または 1 9のいずれかに記載のメモリ制御装 置。 .
2 5 . 前記レジスタには、 所定の電圧が設定可能であり、
前記電圧モニタが、 前記所定の電圧以上の電圧を検出した場合、 前記 ディレイ調節処理が行われる請求項 2 4に記載のメモリ制御装置。
2 6 . 前記メモリに対してアクセス権を持つ誤り検出プロックが前 記メモリにアクセスすることによって誤り検出を行った場合に、 誤り検 出対象となる符号語の特定個数あたりの誤り検出回数が、 所定の回数よ り大きくなつた場合、 前記ディレイ調節回路は、 前記ディレイ調節処理 を行う請求項 9、 1 0, または 1 9のいずれかに記載のメモリ制御装置 c 2 7 . 前記メモリに対してアクセス権を持つ誤り訂正プロックが前 記メモリにアクセスすることによって誤り訂正を行った場合に、 誤り訂 正回数が、 所定の回数より大きくなつた場合、 前記ディレイ調節回路は 、 前記ディレイ調節処理を行う請求項 9、 1 0, または 1 9のいずれか に記載のメモリ制御装置。
2 8 . 前記メモリに対してアクセス権を持つ前記プロックが前記メ モリにデータをライ トした回数が所定の回数となった場合、 前記ディレ ィ調節回路は、 前記ディレイ調節処理を行う請求項 9、 1 0, または 1 9のいずれかに記載のメモリ制御装置。
2 9 . 前記レジスタには、 前記所定の回数が設定可能である請求項 2 6から 2 8のいずれかに記載のメモリ制御装置。
3 0 . クロックを生成するクロック生成工程と、
前記ク口ックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り込みクロックとして出力するディレイ調節工程と、
前記取り込みク口ックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程とを備えたメモリ制御方法。 '
3 1 . 前記ディレイ調節工程は、 該メモリ制御装置周辺の環境変化 に基づき前記ディレイ調節処理を開始する請求項 3 0に記載のメモリ制 御方法。 .
3 2 . 俞記ディレイ調節工程は、 所定の周期にて前記ディレイ調節 処理を開始する請求項 3 0に記載のメモリ制御方法。 . '
3 3 . 前記ディレイ調節工程は、 前記メモリに対する誤り検出また は誤り訂正の動作に基づきディレイ調節処理を開始する請求項 3 0に記 載のメモリ制御工程。
3 4 . 前記メモリへの記録対象となるデ^"タと同一のデータを比較 用データレジスタに格納する比較用データレジスタ格納工程と、 前記リードデータレジスタにて格納されたデータと、 前記比較用デー タレジスタ工程にて格納されているデータとを比較する比較工程とを備 え、 前記メモリ内の所定のァドレスおよび前記比較用データレジスタに所 定のデータがライトされた後、 前記リードデータレジスタから、 前記所 定のデータをリードし、 前記比較工程において、 前記リードデータレジ スタ内の前記所定のデータと、 前記比較用データレジスタ内の前記所定 のデータとを照合するライ ト Zリード確認処理を行う請求項 3 0に記載 のメモリ制御方法。 ,
3 5 . 請求項 1に記載のメモリ制御装置の、 クロックを生成するク ロック生成回路と、 前記クロックに、 可変する遅延値にて遅延させるデ ィレイ調節処理を行い、 取り込みクロックとして出力するディレイ調節 回路と、 前記取り込みクロックに基づき、 メモリに記録されているデー タをリードして格納するリ一ドデータレジスタとの全部または一部とし てコンピュータを機能させるためのプログラム。
3 6 . 請求項 3 0に記載のメモリ制御方法の、 クロックを生成する ク口ック生成工程と、
前記ク口ックに、 可変する遅延値にて遅延させるディレイ調節処理を 行い、 取り.込みクロックとして出力するディレイ調節工程と、
前記取り込みクロックに基づき、 メモリに記録されているデータをリ ードしてリードデータレジスタに格納するリ一ドデータレジスタ格納ェ 程との全部または一部をコンピュータに実行させるためのプログラム。
3 7 . 請求項 1に記載のメモリ制御装置の、 クロックを生成するク ロック生成回路と、 前記クロックに、 可変する遅延値にて遅延させるデ ィレイ調節処理を行い、 取り込みクロックとして出力するディレイ調節 回路と、 前記取り込みクロックに基づき、 メモリに記録されているデー タをリードして格納するリ一ドデータレジスタとの全部または一部とし てコンピュータを機能させるためのプログラムを担持した媒体であって 、 コンピュータにより処理可能なことを特徴とする媒体。
3 8 . 請求項 3 0に記載のメモリ制御方法の、 クロックを生成する クロック生成工程と、 前記クロックに、 可変する遅延値にて遅延させる ディレイ調節処理を行い、 取り込みクロックとして出力するディレイ調 節工程と、 前記取り込みクロックに基づき、 メモリに記録されているデ ータをリードしてリードデータレジスタに格納するリ一ドデータレジス ' タ格納工程との全部または一部をコンピュータに実行させるためのプロ グラムを担持した媒体であって、 コンピュータにより処理可能なことを 特徴とする媒体。
PCT/JP2001/005412 2000-06-27 2001-06-25 Dispositif et procede de commande de memoire WO2002001363A1 (fr)

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 (fr) 2002-01-03

Family

ID=18692454

Family Applications (1)

Application Number Title Priority Date Filing Date
PCT/JP2001/005412 WO2002001363A1 (fr) 2000-06-27 2001-06-25 Dispositif et procede de commande de memoire

Country Status (1)

Country Link
WO (1) WO2002001363A1 (ja)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010038422A1 (ja) * 2008-10-01 2010-04-08 パナソニック株式会社 メモリインターフェース
WO2010137330A1 (ja) * 2009-05-27 2010-12-02 パナソニック株式会社 遅延調整装置、遅延調整方法
CN113825898A (zh) * 2019-05-20 2021-12-21 舍弗勒技术股份两合公司 用于操作机电式凸轮轴相位器的方法

Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0454544A (ja) * 1990-06-21 1992-02-21 Nec Corp メモリアクセス制御装置
JPH05342085A (ja) * 1992-06-09 1993-12-24 Mitsubishi Electric Corp メモリアクセス制御回路
JPH07146814A (ja) * 1993-11-24 1995-06-06 Matsushita Electric Ind Co Ltd メモリ装置
JPH09185427A (ja) * 1995-12-28 1997-07-15 Graphics Commun Lab:Kk クロック位相調整回路およびクロック位相調整方法
JPH10232818A (ja) * 1997-01-23 1998-09-02 Hewlett Packard Co <Hp> メモリ・コントローラ
JPH11161601A (ja) * 1997-08-19 1999-06-18 Matsushita Electric Ind Co Ltd 複数伝送線路間の遅延時間の調整装置

Patent Citations (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH0454544A (ja) * 1990-06-21 1992-02-21 Nec Corp メモリアクセス制御装置
JPH05342085A (ja) * 1992-06-09 1993-12-24 Mitsubishi Electric Corp メモリアクセス制御回路
JPH07146814A (ja) * 1993-11-24 1995-06-06 Matsushita Electric Ind Co Ltd メモリ装置
JPH09185427A (ja) * 1995-12-28 1997-07-15 Graphics Commun Lab:Kk クロック位相調整回路およびクロック位相調整方法
JPH10232818A (ja) * 1997-01-23 1998-09-02 Hewlett Packard Co <Hp> メモリ・コントローラ
JPH11161601A (ja) * 1997-08-19 1999-06-18 Matsushita Electric Ind Co Ltd 複数伝送線路間の遅延時間の調整装置

Cited By (6)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
WO2010038422A1 (ja) * 2008-10-01 2010-04-08 パナソニック株式会社 メモリインターフェース
WO2010137330A1 (ja) * 2009-05-27 2010-12-02 パナソニック株式会社 遅延調整装置、遅延調整方法
US8363492B2 (en) 2009-05-27 2013-01-29 Panasonic Corporation Delay adjustment device and delay adjustment method
CN113825898A (zh) * 2019-05-20 2021-12-21 舍弗勒技术股份两合公司 用于操作机电式凸轮轴相位器的方法
US11680498B2 (en) 2019-05-20 2023-06-20 Schaeffler Technologies AG & Co. KG Method for operating an electromechanical camshaft phaser
CN113825898B (zh) * 2019-05-20 2023-11-24 舍弗勒技术股份两合公司 用于操作机电式凸轮轴相位器的方法

Similar Documents

Publication Publication Date Title
JP5392688B2 (ja) メモリシステムにおける書込レベリングの開始値を較正する方法
JP6832777B2 (ja) 半導体装置
US6493836B2 (en) Method and apparatus for scheduling and using memory calibrations to reduce memory errors in high speed memory devices
WO2010137330A1 (ja) 遅延調整装置、遅延調整方法
JP5577776B2 (ja) メモリ制御装置及びマスクタイミング制御方法
US20110040902A1 (en) Compensation engine for training double data rate delays
CN111459557B (zh) 一种缩短服务器开机时间的方法及系统
US7143258B2 (en) Method and device for masking ringing in a DDR SDRAM
US9910757B2 (en) Semiconductor device, log acquisition method and electronic apparatus
JP4852770B2 (ja) 遅延回路のための方法および装置
JP2007157029A (ja) メモリ制御回路及びメモリ制御方法
EP0855653A1 (en) Memory controller with a programmable strobe delay
JP2002366421A (ja) メモリ制御回路とメモリ制御方法
CN115565577B (zh) 一种信号生成电路、方法及半导体存储器
TWI433163B (zh) 記憶體控制器及其控制方法
US6918016B1 (en) Method and apparatus for preventing data corruption during a memory access command postamble
JP6179206B2 (ja) メモリ制御装置
CN102110461A (zh) 存储器控制器及其控制方法
WO2002001363A1 (fr) Dispositif et procede de commande de memoire
JP6098418B2 (ja) 信号制御回路、情報処理装置及びデューティ算出方法
JP2007293846A (ja) メモリに関する保守および調整操作を行う方法およびシステム
JPH05342085A (ja) メモリアクセス制御回路
US5235699A (en) Timing calibrate and track control circuit
JP4100985B2 (ja) データ処理装置、半導体記憶装置及びクロック周波数検出方法
JP6997857B2 (ja) 車載システム

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

点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载