EP0507811A1 - Method and apparatus for controlling writing to memory - Google Patents

Method and apparatus for controlling writing to memory

Info

Publication number
EP0507811A1
EP0507811A1 EP91901421A EP91901421A EP0507811A1 EP 0507811 A1 EP0507811 A1 EP 0507811A1 EP 91901421 A EP91901421 A EP 91901421A EP 91901421 A EP91901421 A EP 91901421A EP 0507811 A1 EP0507811 A1 EP 0507811A1
Authority
EP
European Patent Office
Prior art keywords
memory
key code
write operation
writing
time interval
Prior art date
Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
Ceased
Application number
EP91901421A
Other languages
German (de)
French (fr)
Inventor
Jouko Laatikainen
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
Raha Automaattiyhdistys
Original Assignee
Raha Automaattiyhdistys
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 Raha Automaattiyhdistys filed Critical Raha Automaattiyhdistys
Publication of EP0507811A1 publication Critical patent/EP0507811A1/en
Ceased legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/20Address safety or protection circuits, i.e. arrangements for preventing unauthorized or accidental access
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/14Protection against unauthorised use of memory or access to memory
    • G06F12/1416Protection 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/1425Protection 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/1433Protection 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
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C7/00Arrangements for writing information into, or reading information out from, a digital store
    • G11C7/24Memory cell safety or protection circuits, e.g. arrangements for preventing inadvertent reading or writing; Status cells; Test cells
    • GPHYSICS
    • G11INFORMATION STORAGE
    • G11CSTATIC STORES
    • G11C8/00Arrangements for selecting an address in a digital store
    • G11C8/18Address timing or clocking circuits; Address control signal generation or management, e.g. for row address strobe [RAS] or column address strobe [CAS] signals
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F11/00Error detection; Error correction; Monitoring
    • G06F11/07Responding to the occurrence of a fault, e.g. fault tolerance
    • G06F11/0703Error 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/0751Error or fault detection not based on redundancy
    • G06F11/0754Error or fault detection not based on redundancy by exceeding limits
    • G06F11/0757Error or fault detection not based on redundancy by exceeding limits by exceeding a time limit, i.e. time-out, e.g. watchdogs

Definitions

  • 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 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.
  • a standby power supply e.g. a battery or an accumulator.
  • 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.
  • a so-called chip enable signal CE is used for 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.
  • 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.
  • 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 enabling 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.
  • 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.
  • 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- 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 of the apparatus according to the invention in a slot machine for copying cash and operation data from one memory to another for backup storage of the data.
  • 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.
  • 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 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 0 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 memory 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.
  • the signals RAMWR and TIMEOK are also applied 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 information 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.
  • 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 in copying. In the preferred embodiment of the inven ⁇ tion, the time interval is of the magnitude 5 ⁇ m.
  • the invention is particularly well suitable for use in the copying of cash and operation data in a slot machine or the like.

Abstract

L'appareil comporte un dispositif de commande (1-8) servant à former un signal activateur de la mémoire (C(Boolean not)E(Boolean not)) en réponse à l'application au dispositif de commande d'un code clé prédéterminé, le dispositif de commande comportant une horloge (2) actionnée par l'application du code clé et servant à empêcher la formation du signal activateur de la mémoire (C(Boolean not)E(Boolean not)) lorsqu'un temps prédéterminé s'est écoulé depuis l'application du code clé. Afin d'accélérer l'introduction en mémoire de longs blocs de données, le dispositif de commande comprend également un dispositif (3, 5, 6) de redémarrage de l'horloge (2) pendant une période prédéterminée suivant l'application du code clé ou suivant l'opération précédente d'introduction en mémoire à la suite d'une opération d'introduction en mémoire exécutée.The apparatus includes a controller (1-8) for forming a memory activator signal (C (Boolean not) E (Boolean not)) in response to the application to the controller of a predetermined key code , the control device comprising a clock (2) actuated by the application of the key code and serving to prevent the formation of the memory activating signal (C (Boolean not) E (Boolean not)) when a predetermined time s' has elapsed since the application of the key code. In order to speed up the introduction into memory of long blocks of data, the control device also comprises a device (3, 5, 6) for restarting the clock (2) for a predetermined period following the application of the key code. or according to the preceding operation of introduction into memory following an operation of introduction into memory executed.

Description

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 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 enabling 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- 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 of the apparatus according 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. 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 0 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 memory 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. The signals RAMWR and TIMEOK are also applied 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 information 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 in copying. In the preferred embodiment of the inven¬ tion, the time interval is of the magnitude 5 μm.
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

Claims:
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 (CE) 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 (CE) 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.
EP91901421A 1990-01-05 1991-01-02 Method and apparatus for controlling writing to memory Ceased EP0507811A1 (en)

Applications Claiming Priority (2)

Application Number Priority Date Filing Date Title
FI900063 1990-01-05
FI900063A FI86922C (en) 1990-01-05 1990-01-05 FOERFARANDE OCH ANORDNING FOER KONTROLLERING AV INSKRIVNING I ETT MINNE

Publications (1)

Publication Number Publication Date
EP0507811A1 true EP0507811A1 (en) 1992-10-14

Family

ID=8529649

Family Applications (1)

Application Number Title Priority Date Filing Date
EP91901421A Ceased EP0507811A1 (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) NO922652L (en)
PL (1) PL292013A1 (en)
WO (1) WO1991010192A1 (en)

Families Citing this family (1)

* Cited by examiner, † Cited by third party
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)

* Cited by examiner, † Cited by third party
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

Non-Patent Citations (1)

* Cited by examiner, † Cited by third party
Title
See references of WO9110192A1 *

Also Published As

Publication number Publication date
PL292013A1 (en) 1992-03-23
AU640442B2 (en) 1993-08-26
AU6973891A (en) 1991-07-24
HUT61109A (en) 1992-11-30
NO922652D0 (en) 1992-07-03
CA2070986A1 (en) 1991-07-06
WO1991010192A1 (en) 1991-07-11
HU9202106D0 (en) 1992-10-28
JPH05502957A (en) 1993-05-20
FI900063A (en) 1991-07-06
FI86922C (en) 1992-10-26
HU207593B (en) 1993-04-28
FI900063A0 (en) 1990-01-05
FI86922B (en) 1992-07-15
NO922652L (en) 1992-07-03

Similar Documents

Publication Publication Date Title
US5793774A (en) Flash memory controlling system
US5369754A (en) Block specific status information in a memory device
US5778440A (en) Floating gate memory device and method for terminating a program load cycle upon detecting a predetermined address/data pattern
EP0910826B1 (en) Block erasable memory system defect handling
US5592641A (en) Method and device for selectively locking write access to blocks in a memory array using write protect inputs and block enabled status
KR100492714B1 (en) Microcomputer
US5226006A (en) Write protection circuit for use with an electrically alterable non-volatile memory card
US5893135A (en) Flash memory array with two interfaces for responding to RAS and CAS signals
KR19990036312A (en) Fixed-safe nonvolatile memory programming system and method
EP0398545A1 (en) Method and apparatus for storing data in a non-volatile memory
JP3486057B2 (en) Semiconductor integrated circuit and contact IC card
JP2000099405A (en) Electronic equipment having flash memory
US7200759B2 (en) Method and device for making information contents of a volatile semiconductor memory irretrievable
US5765002A (en) Method and apparatus for minimizing power consumption in a microprocessor controlled storage device
JPS63221446A (en) Non-volatile memory protection apparatus and method
JP3376306B2 (en) Data processing apparatus and data processing method
JP3578175B2 (en) Memory word management circuit
AU640442B2 (en) Method and apparatus for controlling writing to memory
WO2002052575A1 (en) Special programming mode with external verification
JP2000066949A (en) Data recording/reproducing device and memory accessing method for the data recording/reproducing device
JPS60117340A (en) Electron system with trouble protecting function
JP3028567B2 (en) Microcomputer with built-in EEPROM
EP0829044B1 (en) Floating gate memory device with protocol to terminate program load cycle
US6236600B1 (en) Inhibiting memory data burn-in
JP3190421B2 (en) IC memory card system

Legal Events

Date Code Title Description
PUAI Public reference made under article 153(3) epc to a published international application that has entered the european phase

Free format text: ORIGINAL CODE: 0009012

17P Request for examination filed

Effective date: 19920611

AK Designated contracting states

Kind code of ref document: A1

Designated state(s): AT BE CH DE DK ES FR GB GR IT LI LU NL SE

GRAG Despatch of communication of intention to grant

Free format text: ORIGINAL CODE: EPIDOS AGRA

17Q First examination report despatched

Effective date: 19961212

STAA Information on the status of an ep patent application or granted ep patent

Free format text: STATUS: THE APPLICATION HAS BEEN REFUSED

18R Application refused

Effective date: 19970601