CA2070986A1 - Method and apparatus for controlling writing to memory - Google Patents
Method and apparatus for controlling writing to memoryInfo
- Publication number
- CA2070986A1 CA2070986A1 CA002070986A CA2070986A CA2070986A1 CA 2070986 A1 CA2070986 A1 CA 2070986A1 CA 002070986 A CA002070986 A CA 002070986A CA 2070986 A CA2070986 A CA 2070986A CA 2070986 A1 CA2070986 A1 CA 2070986A1
- Authority
- CA
- Canada
- Prior art keywords
- memory
- key code
- write operation
- writing
- control means
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Abandoned
Links
Classifications
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C8/00—Arrangements for selecting an address in a digital store
- G11C8/20—Address safety or protection circuits, i.e. arrangements for preventing unauthorized or accidental access
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F12/00—Accessing, addressing or allocating within memory systems or architectures
- G06F12/14—Protection against unauthorised use of memory or access to memory
- G06F12/1416—Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights
- G06F12/1425—Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights the protection being physical, e.g. cell, word, block
- G06F12/1433—Protection against unauthorised use of memory or access to memory by checking the object accessibility, e.g. type of access defined by the memory independently of subject rights the protection being physical, e.g. cell, word, block for a module or a part of a module
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C7/00—Arrangements for writing information into, or reading information out from, a digital store
- G11C7/24—Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells
-
- G—PHYSICS
- G11—INFORMATION STORAGE
- G11C—STATIC STORES
- G11C8/00—Arrangements for selecting an address in a digital store
- G11C8/18—Address timing or clocking circuits; Address control signal generation or management, e.g. for row address strobe [RAS] or column address strobe [CAS] signals
-
- G—PHYSICS
- G06—COMPUTING; CALCULATING OR COUNTING
- G06F—ELECTRIC DIGITAL DATA PROCESSING
- G06F11/00—Error detection; Error correction; Monitoring
- G06F11/07—Responding to the occurrence of a fault, e.g. fault tolerance
- G06F11/0703—Error or fault processing not based on redundancy, i.e. by taking additional measures to deal with the error or fault not making use of redundancy in operation, in hardware, or in data representation
- G06F11/0751—Error or fault detection not based on redundancy
- G06F11/0754—Error or fault detection not based on redundancy by exceeding limits
- G06F11/0757—Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs
Landscapes
- Engineering & Computer Science (AREA)
- Computer Security & Cryptography (AREA)
- Microelectronics & Electronic Packaging (AREA)
- Theoretical Computer Science (AREA)
- Physics & Mathematics (AREA)
- General Engineering & Computer Science (AREA)
- General Physics & Mathematics (AREA)
- Techniques For Improving Reliability Of Storages (AREA)
- Storage Device Security (AREA)
- Input Circuits Of Receivers And Coupling Of Receivers And Audio Equipment (AREA)
Abstract
The invention relates to a method and apparatus for controlling writing to a memory. The apparatus comprises control means (1-8) for the formation of a memory activation signal (C^ B7E^ B7) in response to the applying of a predetermined key code to the control means, the control means comprising timer means (2) which are started by applying the key code and which prevent the formation of the memory activation signal (C^ B7E^ B7) when a predetermined time has elapsed from the applying of the key code. In order to speed up the writing of long data blocks into a memory, the invention is characterized in that the control means further comprise means (3, 5, 6) for restarting the time means (2) within a predetermined time interval from the applying of the key code or the previous memory write operation as a result of a performed memory write operation.
Description
2Q709~
Method and apparatus for controlling writing to memory The invention relates to a method for control-ling writing to a memory, in which method a memory write operation is permitted only within a predetermined time interval from the writing of a predetermined key code to a predetermined memory location.
Random-access memory (RAM) is a semiconductor memory to which information can be rapidly stored, wherefore RAM is used in microcomputers when rapid storing or reading of information is required. On the other hand, it is also characteristic of RAM that the information written into it is erased when supply voltage is shut off. However, the types of RAM that require only a little power to store information can be used to store information even during a power failure if they are provided with a standby power supply, e.g.
a battery or an accumulator.
In a slot machine RAM can be used, for example, for storing information on money and failures. This information is important for the operation of the whole machine, since without reliable information the opera-tion of the machine can stop. The same information can be stored simultaneously in several different memory circuits so that when a failure occurs, the operation can be continued with proper information. When several memory circuits are used, the likelihood that the same information would be erroneously treated reduces if an interrupted writing operation is considered to have caused the error.
In a known solution, unintentional alteration of RAM contents is prevented by keeping one of the signals controlling the memory write operation in a state preventing writing to a memory. In this known solution, a so-called chip enable signal CE is used for : . ~
, , .,. . , ~ . ,; , ~ , ~., .. - , , :
: -, . . ~ . . .: ., . . . , : , . ~, ., , ~ 2~70986 this purpose in such a manner that the CE signal can be activated only by such memory write sequences addressed to RAM that are written within a fixed interval of time from the writing of a key code word to a memory location outside the RAM storage space. Thus, the likelihood that the right code word is inadvertently given to the right memory location and erroneous writing to RAM takes place is extremely small.
When the information is secured by copying the memory contents to another memory circuit, functioning as a so-called backup memory, the copying rate is of great significance: the supply voltage of the apparatus may be shut off any time, and the copying may be left uncompleted. However, the faster the copying can be per-formed, the smaller is the likelihood that the copying would be left uncompleted and fail.
The object of the present invention is to provide a memory control ena~ling more rapid writing to a memory.
This object is achieved by a method of the type described in the introductory portion, said method being characterized in that after a successful memory write operation following the writing of each key code, a new memory write operation is permitted within a predeter-mined time interval from the previous one without re-writing of the key code.
In the invention, a property which enables a new write operation is connected with the giving of a key code: after each successful write operation to RAM, memory protection permits a new write operation without a new key code within a fixed time interval. In other words, if the first write operation is correctly per-formed, the following write operation can be performed without separate opening of the time window by a key code. Time control is, however, maintained in the inven-~ ~Q7~98~
tion. Due to the invention, a long data block can be written to RAM as rapidly as the apparatus controlling the memory can - provided, however, that there is not too long a pause between the write operations - without the time consuming operation of giving the key code in connection with each write operation.
A further object of the invention is an apparatus for controlling writing to a memory, compris-ing control means for forming a memory activation signal in response to the applying of a predetermined key code to the control means, the control means comprising timer means which are started by applying the key code and which prevent the formation of the memory activation signal when a predetermined time has elapsed since the applying of the key code. The apparatus is characterized in that the control means further comprise means for restarting the timer means within a predetermined time interval from the applying of the key code or the previous memory write operation as a result of a performed memory write operation.
Still another object of the invention is the use o the apparatus accordin~ to the invention in a slot machine for copying cash and operation data from one memory to another for backup storage of the data.
In the following the invention will be described, by way of example, in greater detail by means of an embodiment with reference to the attached drawing.
The figure shows an embodiment of the inven-tion, which generates one of the signals, in this case a chip enable signal CE. The signal CE can control a memory formed by one or several memory circuits.
; The circuitry shown in the figure generates the chip enable signal CE for both read and write opera-tions.
', 2Q7~98~
Information can be read without restrictions from a semiconductor RAM: when the storage space con-trolled by the circuitry is addressed for a RAM memory read operation, a decoder circuit 4 sets its output signal RAMREAD in an active state or 0, whereby an out-put signal of an AND gate 8, i.e. the chip enable signal CE, also changes to its active state 0, activating the memory.
Writing to RAM is, however, protected accord-ing to the invention.
Writing to the memory is started by addressing a RAM enable register 1 located in a memory location outside the RAM memory space to be written into and writing a key code word of at least two bits, preferably eight bits, to the register. The correct key code word activates an output signal RAMOK of the enable register 1 by setting it in state 0. The signal RAMOK is passed by an AND gate 5 to a time control timer 2, which sets its output signal TIMEOK in an active state O and starts to count the time interval. The TIMEOK signal is fed to a second input of an OR gate 7.
A signal RAMWR is fed to the second input of the OR gate 7 from a decoder circuit 3, which sets the signal RAMWR in an active state 0 when the RAM memorv space controlled by the circuitry is addressed for RAM
memory write. If a write operation is performed within a certain time interval, i.e. when the signal TIMEOK is 0, the output of the OR gate 7 changes its state to active or 0 and thereby activates even the signal CE.
If a write operation is not performed within the given time interval, the time control timer 2 forces the signal TIMEOK to assume a state 1, which prevents the activation of the output of the OR gate 7 and there-by the activation of the signal CE, even though RAMWR
would activate as a result of a write attempt.
2Q~9~6 The signals RAMWR and TIMEOK are also app'ied to the inputs of an OR gate 6. The output of the OR gate 6 is connected to an input of an AND gate 5, another input of which receives the signal RAMOK.
'; If a write operation is performed within the given time interval, i.e. when the signal TIMEOK is in state 0, both of the inputs of the OR gate 6 are simul-taneously in state 0, which activates the output of the gate 6 and resets the timer 2 through the AND gate 5.
It is then again possible, within the given time interval, to perform a new write operation, which again resets the timer 2. If a read operation is not performed within the time interval and the signal TIMEOK changes its state, the setting of the timer 2 through the OR
gate 6 is prevented. In this case, a write operation can be performed only by rewriting the key code word to the register 1.
The invention is particularly suitable for a system which is provided with at least two RAM circuits for storing inormation and in which one RAM circuit is used for copying the information in the other RAM
circuit(s). The information to be stored is thereby copied as blocks from a memory circuit to another.
Several memory circuit write operations are used for the copying of each block. According to the invention, it is necessary to write a key code word of at least two bits to an external register in order that copying might be started. There must not be a delay exceeding the given time interval between the instants of writing two pieces of information to be copied subsequently, or otherwise the key code word must be given again. The time interval is the time required for the control apparatus to read information out of one memory circuit - and to write information into another memory circuit plus the time taken by the additional measures needed ~: :
.
~ .
.. . ,.. , ...... . ,.. ~. . .. : . . -2 ~ 8 ~ ~ :
in copying. In the preferred embodiment of the inven-tion, the time interval is of the magnitude 5 ,um, The invention is particularly well suitable for use in the copying of cash and operation data in a slot machine or the like.
The figure and the description pertaining thereto are intended merely to illustrate the invention.
In its details the invention can vary within the scope of the attached claims.
~;~
';
Method and apparatus for controlling writing to memory The invention relates to a method for control-ling writing to a memory, in which method a memory write operation is permitted only within a predetermined time interval from the writing of a predetermined key code to a predetermined memory location.
Random-access memory (RAM) is a semiconductor memory to which information can be rapidly stored, wherefore RAM is used in microcomputers when rapid storing or reading of information is required. On the other hand, it is also characteristic of RAM that the information written into it is erased when supply voltage is shut off. However, the types of RAM that require only a little power to store information can be used to store information even during a power failure if they are provided with a standby power supply, e.g.
a battery or an accumulator.
In a slot machine RAM can be used, for example, for storing information on money and failures. This information is important for the operation of the whole machine, since without reliable information the opera-tion of the machine can stop. The same information can be stored simultaneously in several different memory circuits so that when a failure occurs, the operation can be continued with proper information. When several memory circuits are used, the likelihood that the same information would be erroneously treated reduces if an interrupted writing operation is considered to have caused the error.
In a known solution, unintentional alteration of RAM contents is prevented by keeping one of the signals controlling the memory write operation in a state preventing writing to a memory. In this known solution, a so-called chip enable signal CE is used for : . ~
, , .,. . , ~ . ,; , ~ , ~., .. - , , :
: -, . . ~ . . .: ., . . . , : , . ~, ., , ~ 2~70986 this purpose in such a manner that the CE signal can be activated only by such memory write sequences addressed to RAM that are written within a fixed interval of time from the writing of a key code word to a memory location outside the RAM storage space. Thus, the likelihood that the right code word is inadvertently given to the right memory location and erroneous writing to RAM takes place is extremely small.
When the information is secured by copying the memory contents to another memory circuit, functioning as a so-called backup memory, the copying rate is of great significance: the supply voltage of the apparatus may be shut off any time, and the copying may be left uncompleted. However, the faster the copying can be per-formed, the smaller is the likelihood that the copying would be left uncompleted and fail.
The object of the present invention is to provide a memory control ena~ling more rapid writing to a memory.
This object is achieved by a method of the type described in the introductory portion, said method being characterized in that after a successful memory write operation following the writing of each key code, a new memory write operation is permitted within a predeter-mined time interval from the previous one without re-writing of the key code.
In the invention, a property which enables a new write operation is connected with the giving of a key code: after each successful write operation to RAM, memory protection permits a new write operation without a new key code within a fixed time interval. In other words, if the first write operation is correctly per-formed, the following write operation can be performed without separate opening of the time window by a key code. Time control is, however, maintained in the inven-~ ~Q7~98~
tion. Due to the invention, a long data block can be written to RAM as rapidly as the apparatus controlling the memory can - provided, however, that there is not too long a pause between the write operations - without the time consuming operation of giving the key code in connection with each write operation.
A further object of the invention is an apparatus for controlling writing to a memory, compris-ing control means for forming a memory activation signal in response to the applying of a predetermined key code to the control means, the control means comprising timer means which are started by applying the key code and which prevent the formation of the memory activation signal when a predetermined time has elapsed since the applying of the key code. The apparatus is characterized in that the control means further comprise means for restarting the timer means within a predetermined time interval from the applying of the key code or the previous memory write operation as a result of a performed memory write operation.
Still another object of the invention is the use o the apparatus accordin~ to the invention in a slot machine for copying cash and operation data from one memory to another for backup storage of the data.
In the following the invention will be described, by way of example, in greater detail by means of an embodiment with reference to the attached drawing.
The figure shows an embodiment of the inven-tion, which generates one of the signals, in this case a chip enable signal CE. The signal CE can control a memory formed by one or several memory circuits.
; The circuitry shown in the figure generates the chip enable signal CE for both read and write opera-tions.
', 2Q7~98~
Information can be read without restrictions from a semiconductor RAM: when the storage space con-trolled by the circuitry is addressed for a RAM memory read operation, a decoder circuit 4 sets its output signal RAMREAD in an active state or 0, whereby an out-put signal of an AND gate 8, i.e. the chip enable signal CE, also changes to its active state 0, activating the memory.
Writing to RAM is, however, protected accord-ing to the invention.
Writing to the memory is started by addressing a RAM enable register 1 located in a memory location outside the RAM memory space to be written into and writing a key code word of at least two bits, preferably eight bits, to the register. The correct key code word activates an output signal RAMOK of the enable register 1 by setting it in state 0. The signal RAMOK is passed by an AND gate 5 to a time control timer 2, which sets its output signal TIMEOK in an active state O and starts to count the time interval. The TIMEOK signal is fed to a second input of an OR gate 7.
A signal RAMWR is fed to the second input of the OR gate 7 from a decoder circuit 3, which sets the signal RAMWR in an active state 0 when the RAM memorv space controlled by the circuitry is addressed for RAM
memory write. If a write operation is performed within a certain time interval, i.e. when the signal TIMEOK is 0, the output of the OR gate 7 changes its state to active or 0 and thereby activates even the signal CE.
If a write operation is not performed within the given time interval, the time control timer 2 forces the signal TIMEOK to assume a state 1, which prevents the activation of the output of the OR gate 7 and there-by the activation of the signal CE, even though RAMWR
would activate as a result of a write attempt.
2Q~9~6 The signals RAMWR and TIMEOK are also app'ied to the inputs of an OR gate 6. The output of the OR gate 6 is connected to an input of an AND gate 5, another input of which receives the signal RAMOK.
'; If a write operation is performed within the given time interval, i.e. when the signal TIMEOK is in state 0, both of the inputs of the OR gate 6 are simul-taneously in state 0, which activates the output of the gate 6 and resets the timer 2 through the AND gate 5.
It is then again possible, within the given time interval, to perform a new write operation, which again resets the timer 2. If a read operation is not performed within the time interval and the signal TIMEOK changes its state, the setting of the timer 2 through the OR
gate 6 is prevented. In this case, a write operation can be performed only by rewriting the key code word to the register 1.
The invention is particularly suitable for a system which is provided with at least two RAM circuits for storing inormation and in which one RAM circuit is used for copying the information in the other RAM
circuit(s). The information to be stored is thereby copied as blocks from a memory circuit to another.
Several memory circuit write operations are used for the copying of each block. According to the invention, it is necessary to write a key code word of at least two bits to an external register in order that copying might be started. There must not be a delay exceeding the given time interval between the instants of writing two pieces of information to be copied subsequently, or otherwise the key code word must be given again. The time interval is the time required for the control apparatus to read information out of one memory circuit - and to write information into another memory circuit plus the time taken by the additional measures needed ~: :
.
~ .
.. . ,.. , ...... . ,.. ~. . .. : . . -2 ~ 8 ~ ~ :
in copying. In the preferred embodiment of the inven-tion, the time interval is of the magnitude 5 ,um, The invention is particularly well suitable for use in the copying of cash and operation data in a slot machine or the like.
The figure and the description pertaining thereto are intended merely to illustrate the invention.
In its details the invention can vary within the scope of the attached claims.
~;~
';
Claims (4)
1. A method for controlling writing to a memory, in which method a memory write operation is permitted only within a predetermined time interval from the writing of a predetermined key code to a predeter-mined memory location, c h a r a c t e r i z e d in that after a successful memory write operation following the writing of each key code, a new memory write opera-tion is permitted within a predetermined time interval from the previous one without rewriting of the key code.
2. A method according to claim 1, c h a r a c -t e r i z e d in that the key code is written in a memory space into an area different from the one to which the memory write operation is to be addressed.
3. An apparatus for controlling writing to a memory, comprising control means (1-8) for forming a memory activation signal (??) in response to the apply-ing of a predetermined key code to the control means, the control means comprising timer means (2) which are started by applying a key code and which prevent the formation of the memory activation signal (??) when a predetermined time has elapsed since the applying of the key code, c h a r a c t e r i z e d in that the control means further comprise means (3, 5, 6) for restarting the timer means (2) within a predetermined time interval from the applying of the key code or the previous memory write operation as a result of a performed memory write operation.
4. Use of the apparatus according to claim 3 in a slot machine for copying cash and operation data from one memory to another for backup storage of the data.
Applications Claiming Priority (2)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
FI900063A FI86922C (en) | 1990-01-05 | 1990-01-05 | FOERFARANDE OCH ANORDNING FOER KONTROLLERING AV INSKRIVNING I ETT MINNE |
FI900063 | 1990-01-05 |
Publications (1)
Publication Number | Publication Date |
---|---|
CA2070986A1 true CA2070986A1 (en) | 1991-07-06 |
Family
ID=8529649
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
CA002070986A Abandoned CA2070986A1 (en) | 1990-01-05 | 1991-01-02 | Method and apparatus for controlling writing to memory |
Country Status (9)
Country | Link |
---|---|
EP (1) | EP0507811A1 (en) |
JP (1) | JPH05502957A (en) |
AU (1) | AU640442B2 (en) |
CA (1) | CA2070986A1 (en) |
FI (1) | FI86922C (en) |
HU (1) | HU207593B (en) |
NO (1) | NO922652D0 (en) |
PL (1) | PL292013A1 (en) |
WO (1) | WO1991010192A1 (en) |
Families Citing this family (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
WO1993007565A1 (en) * | 1991-10-01 | 1993-04-15 | Motorola, Inc. | Memory write protection method and apparatus |
Family Cites Families (3)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US4493031A (en) * | 1982-08-25 | 1985-01-08 | At&T Bell Laboratories | Memory write protection using timers |
DE3325887A1 (en) * | 1983-07-19 | 1985-01-31 | Bosch Gmbh Robert | METHOD AND DEVICE FOR PROTECTING THE INFORMATION ENTERED BY MEANS OF A KEYBOARD IN A RAM |
US4796235A (en) * | 1987-07-22 | 1989-01-03 | Motorola, Inc. | Write protect mechanism for non-volatile memory |
-
1990
- 1990-01-05 FI FI900063A patent/FI86922C/en active IP Right Grant
-
1991
- 1991-01-02 WO PCT/FI1991/000005 patent/WO1991010192A1/en not_active Application Discontinuation
- 1991-01-02 AU AU69738/91A patent/AU640442B2/en not_active Ceased
- 1991-01-02 JP JP3501832A patent/JPH05502957A/en active Pending
- 1991-01-02 CA CA002070986A patent/CA2070986A1/en not_active Abandoned
- 1991-01-02 HU HU9202106A patent/HU207593B/en not_active IP Right Cessation
- 1991-01-02 PL PL29201391A patent/PL292013A1/en unknown
- 1991-01-02 EP EP91901421A patent/EP0507811A1/en not_active Ceased
-
1992
- 1992-07-03 NO NO922652A patent/NO922652D0/en unknown
Also Published As
Publication number | Publication date |
---|---|
FI86922B (en) | 1992-07-15 |
WO1991010192A1 (en) | 1991-07-11 |
JPH05502957A (en) | 1993-05-20 |
FI86922C (en) | 1992-10-26 |
FI900063A0 (en) | 1990-01-05 |
AU640442B2 (en) | 1993-08-26 |
EP0507811A1 (en) | 1992-10-14 |
AU6973891A (en) | 1991-07-24 |
FI900063A (en) | 1991-07-06 |
HU9202106D0 (en) | 1992-10-28 |
PL292013A1 (en) | 1992-03-23 |
HUT61109A (en) | 1992-11-30 |
NO922652L (en) | 1992-07-03 |
NO922652D0 (en) | 1992-07-03 |
HU207593B (en) | 1993-04-28 |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
US4612640A (en) | Error checking and correction circuitry for use with an electrically-programmable and electrically-erasable memory array | |
US4777626A (en) | Memory device having backup power supply | |
US5159671A (en) | Data transfer unit for small computer system with simultaneous transfer to two memories and error detection and rewrite to substitute address | |
EP0910826B1 (en) | Block erasable memory system defect handling | |
US5226006A (en) | Write protection circuit for use with an electrically alterable non-volatile memory card | |
EP0845144B1 (en) | Fail-safe non-volatile memory programming system and method therefor | |
US6484270B1 (en) | Electric device with flash memory built-in | |
US6188603B1 (en) | Nonvolatile memory device | |
US5765002A (en) | Method and apparatus for minimizing power consumption in a microprocessor controlled storage device | |
JP3376306B2 (en) | Data processing apparatus and data processing method | |
US20020027508A1 (en) | Power failure managing device and method for managing a power failure | |
AU640442B2 (en) | Method and apparatus for controlling writing to memory | |
US6535442B2 (en) | Semiconductor memory capable of debugging an incorrect write to or an incorrect erase from the same | |
JPH0822422A (en) | Memory device | |
US4894805A (en) | Security printer/copier | |
JP3028567B2 (en) | Microcomputer with built-in EEPROM | |
JPS6217299B2 (en) | ||
JP2001014872A (en) | Erroneous write prevention system for nonvolatile semiconductor memory | |
JP3190421B2 (en) | IC memory card system | |
JP2701790B2 (en) | Nonvolatile semiconductor memory device | |
JPH09179787A (en) | Portable information storage medium | |
JPS597152B2 (en) | magnetic bubble storage device | |
JP3096371B2 (en) | Information processing apparatus control method | |
JPS5856177B2 (en) | magnetic bubble storage device | |
JPH01118974A (en) | Card module |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
FZDE | Discontinued |