KR940006823B1 - Circuit for protecting memory write - Google Patents

Circuit for protecting memory write Download PDF

Info

Publication number
KR940006823B1
KR940006823B1 KR1019910017914A KR910017914A KR940006823B1 KR 940006823 B1 KR940006823 B1 KR 940006823B1 KR 1019910017914 A KR1019910017914 A KR 1019910017914A KR 910017914 A KR910017914 A KR 910017914A KR 940006823 B1 KR940006823 B1 KR 940006823B1
Authority
KR
South Korea
Prior art keywords
memory
write
data
microprocessor
unit
Prior art date
Application number
KR1019910017914A
Other languages
Korean (ko)
Other versions
KR930008853A (en
Inventor
박주용
Original Assignee
삼성전자 주식회사
정용문
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 삼성전자 주식회사, 정용문 filed Critical 삼성전자 주식회사
Priority to KR1019910017914A priority Critical patent/KR940006823B1/en
Publication of KR930008853A publication Critical patent/KR930008853A/en
Application granted granted Critical
Publication of KR940006823B1 publication Critical patent/KR940006823B1/en

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F12/00Accessing, addressing or allocating within memory systems or architectures
    • G06F12/16Protection against loss of memory contents

Abstract

The circuit improves the data reliability and the memory maintenance function adding the memory writting protection facility. The circuit comprises: a write protection memory (10B) outputting the control signal from the memory protection unit; a microprocessor (10A) generating the address signal when the processor (10A) accesses the D-RAM memory unit (70A); a bus control unit (80A) controlling the output data of the microprocessor (10A); and a write enable unit (10C) outputting the write control unit outputs the write control signal.

Description

메모리 라이트 보호회로Memory write protection circuit

제1도는 종래의 회로도.1 is a conventional circuit diagram.

제2도는 본 발명에 따른 개략도.2 is a schematic view according to the invention.

제3도는 본 발명에 따른 메모리 라이트 보호 어드레스 할당 맵.3 is a memory write protection address allocation map according to the present invention.

제4도는 본 발명에 따른 제2도의 구체회로도.4 is a detailed circuit diagram of FIG. 2 in accordance with the present invention.

본 발명은 통신 시스템에 있어서 메모리 라이트 보호회로에 관한 것으로, 특히 메모리 데이타의 신뢰성 및 메모리의 효율적인 관리를 위한 회로에 관한 것이다.The present invention relates to a memory write protection circuit in a communication system, and more particularly, to a circuit for reliability of memory data and efficient management of a memory.

일반적으로 프로세서에서는 데이타를 메모리에 저장하고, 이를 입·출력 장치를 통해 의도하고저 하는 데로 사용하는 것이 통례이다.In general, it is common for a processor to store data in memory and use it as an intention / disabled device through an input / output device.

제1도는 종래기술의 블럭도로서 현재 사용하는 방식의 대부분이 이 방식을 사용하고 있다. 마이크로 프로세서(10A)는 프로그램에 의해 입력 명령에 따라 회로의 각 부분을 제어하고, 데이타 트랜시버(20A)는 양방향성으로 데이타를 전송 및 수신하며, 어드레스 래치(30A)는 어드레스 싸이클에 따라 어드레스 신호를 래치하고, D-RAM 어드레스 멀티플렉서(40A)는 D-RAM 메모리부(70A)의 로우(ROW) 어드레스 컬럼(Column) 어드레스를 멀티플렉싱하며, 어드레스 디코더(50A)는 D-RAM 메모리부(70A)를 억세스하기 위한 칩 인에이블을 제어하고, (RAS, CAS신호 생성), D-RAM 제어부(60A)는 D-RAM 메모리부(70A)의 칩 인에이블 신호를 제어하며 (RAS, CAS), D-RAM 메모리부(70A)는 데이타를 저장하고, 버스제어부(80A)는 마이크로 프로세서(10A) 명령 신호를 생성하도록 구성되어 있다.1 is a block diagram of the prior art, and most of the current methods are used. The microprocessor 10A controls each part of the circuit according to an input command by a program, the data transceiver 20A transmits and receives data bidirectionally, and the address latch 30A latches the address signal according to the address cycle. The D-RAM address multiplexer 40A multiplexes the ROW address column addresses of the D-RAM memory section 70A, and the address decoder 50A accesses the D-RAM memory section 70A. To control the chip enable (RAS, CAS signal generation), the D-RAM controller 60A controls the chip enable signal of the D-RAM memory unit 70A (RAS, CAS), D-RAM The memory unit 70A stores data, and the bus control unit 80A is configured to generate a microprocessor 10A command signal.

제1도의 동작관계를 살펴보면 다음과 같다. 제1도에서 사용하고 있는 방식은 메모리의 데이타를 읽고 쓰는 방식중에 현재 사용하고 있는 대부분이 방식을 보여주고 있다.Looking at the operation relationship of Figure 1 as follows. The method used in Figure 1 shows how most of the current methods used to read and write data in memory.

첫째 메모리로 부터 데이타를 읽을때 마이크로 프로세서(10A)는 먼저 메모리 데이타를 읽게 하는 명령어(instruction)를 메모리로 부터 꺼내어 수행하게 되면, 마이크로 프로세서(10A)의 어드레스 버스를 통하여 어드레스를 어드레스 디코더(50A)를 통과하게 된다. 어드레스 디코더(50A)를 통과한 신호는 D-RAM 제어부(60A)를 통하여 D-RAM 메모리부(70A)의 칩을 인에이블 할 수 있는 RAS와 CAS 신호를 발생시키게 된다. 그리고 D-RAM 메모리부(70A)는 어드레스 래치(30A)와 D-RAM 어드레스 멀티플렉서(40A)를 통하여 로우 어드레스와 컬럼 어드레스를 구분하여 D-RAM 메모리부(70A)의 임의의 영역을 억세스(ACCESS)한 다음 마이크로 프로세서(10A)는 일정 타이밍이 지난후 메모리 읽기 신호를 D-RAM 메모리부(70A)로 송신하게 된다 이때 메모리의 데이타는 데이타 버스를 통하여 마이크로 프로세서(10A)로 전달된다.When reading data from the first memory, the microprocessor 10A first takes out an instruction from the memory to read the memory data, and then executes an address through the address bus of the microprocessor 10A. Will pass through. The signal passing through the address decoder 50A generates the RAS and CAS signals capable of enabling the chip of the D-RAM memory unit 70A through the D-RAM control unit 60A. The D-RAM memory unit 70A distinguishes a row address and a column address through an address latch 30A and a D-RAM address multiplexer 40A to access an arbitrary area of the D-RAM memory unit 70A. Next, the microprocessor 10A transmits a memory read signal to the D-RAM memory unit 70A after a predetermined timing passes. At this time, the data of the memory is transferred to the microprocessor 10A through the data bus.

두번째 메모리 데이타를 쓰는 싸이클은 마이크로 프로세서(10A)가 메모리 데이타를 쓰는 명령어(instruction)를 수행하게 되면, 먼저 어드레스 읽기 수행과 동일하게 한 다음 마이크로 프로세서(10A)는 일정 타이밍이 지난후 메모리 읽기 신호 대신에 메모리 쓰기 신호를 D-RAM 메모리부(70A)로 송신하고, 동시에 데이타 버스에 데이타를 실게 되면 원하는 메모리 영역에 데이타를 쓰게 된다. 메모리 읽기, 쓰기신호 제공은 마이크로 프로세서(10A)가 읽기 및 쓰기상태신호(S0-S2)를 각각 구분하여 버스 제어부(80A)로 전송하게 되면, 읽기, 쓰기, 싸이클 공히 버스 제어부(80A)가 그 싸이클을 구분하는 명링어를 생성하게 된다.When the second memory data writing cycle is executed by the microprocessor 10A to write the memory data, the same operation as the address read operation is performed first, and then the microprocessor 10A replaces the memory read signal after a predetermined timing. When a memory write signal is sent to the D-RAM memory unit 70A, and data is loaded onto the data bus at the same time, data is written to a desired memory area. When the microprocessor 10A transmits the read and write status signals S0-S2 to the bus control unit 80A, the memory control unit reads and writes the signals to the bus control unit 80A. You will create a command ring to identify the cycles.

이로 인하여 종래는 메모리의 일정한 영역에 이후 중요한 데이타가 존재한다고 가정하면, 메모리에 데이타를 저장할 경우 데이타 변경이 발생해서는 안되는 영역이 존재하게 된다. 이를 경우 종래의 기술에서는 메모리 쓰기 방지 기능이 구현되지 않아, 데이타를 메모리에 쓸 경우는 기존 중요한 데이타를 보존할 길이 없었다 이에 따라 메모리에 저장하고 있는 중요한 데이타를 유지 및 데이타의 효율적으로 관리가 필요하게 된다.For this reason, conventionally assuming that important data exists in a certain area later, there is an area where data change should not occur when data is stored in the memory. In this case, since the memory write protection function is not implemented in the conventional technology, there is no way to preserve the existing important data when writing data to the memory. Therefore, it is necessary to maintain and efficiently manage important data stored in the memory. do.

따라서 본 발명의 목적은 메모리에 데이타를 저장할때 저장을 허용하는 메모리 쓰기 방지 기능을 추가하므로써 데이타의 신뢰성 및 메모리 관리유지 기능을 갖는 회로를 제공함에 있다.Accordingly, an object of the present invention is to provide a circuit having data reliability and memory management function by adding a memory write protection function to allow storage when data is stored in the memory.

이하 본 발명을 첨부된 도면을 참조하여 상세히 설명한다.Hereinafter, the present invention will be described in detail with reference to the accompanying drawings.

제2도는 본 발명에 따른 블럭도로서, 마이크로 프로세서(10A)가 D-RAM 메모리부(70A)를 억세스하는데 있어서 상기 마이크로 프로세서(10A)로 부터 발생되는 어드레스 신호와 메모리보호 제어신호로 부터 쓰기방지 제어신호를 발생하는 쓰기방지 메모리(10B)와, 상기 마이크로 프로세서(10A)의 출력 데이타에 대해 버스 콘트롤하는 버스 제어부(80A)와, 상기 쓰기방지 메모리(10B)의 출력과 버스 제어부(80A)의 출력이 모두 상기 D-RAM 메모리부(70A)의 라이트 제어신호일시만 라이트 제어신호를 발생하는 라이트 인에이블 제어수단(10C)로 구성되어 있다.2 is a block diagram according to the present invention, in which the microprocessor 10A accesses the D-RAM memory unit 70A and write-protects from an address signal and a memory protection control signal generated from the microprocessor 10A. The write protection memory 10B for generating a control signal, the bus control unit 80A for bus control of the output data of the microprocessor 10A, the output of the write protection memory 10B and the bus control unit 80A All of the outputs are composed of the write enable control means 10C which generates the write control signal only when the write control signal of the D-RAM memory unit 70A is generated.

제3도는 본 발명에 따른 메모리 라이트 방지 어드레스 맵도이다.3 is a memory write protection address map diagram according to the present invention.

제4도는 본 발명에 따른 실시예 구체회로도로서, 쓰기방지 메모리(10B)는 메모리 쓰기방지가 되어 있는가에 대한 여부를 결정하는 데이타 버스정보로 저장하고, 프로세서 제어 레지스터(20B) : 프로세서를 제어하는 데이타 정보 비트를 저장하며, 로직 제어부 1(30B)는 메모리 쓰기방지 메모리에 인에이블 신호를 제공하고, 로직 제어부 2(40B)는 메모리 쓰기방지 메모리(10B)에 데이타 쓰기 신호를 제공하며, 로직 제어부 3(50B)는 프로세서 제어 레지스터(20B)에 메모리보호 바이얼레이션(MPV) 데이타 비트 신호를 제공함과 동시에 프로세서(10A)에게 비마스크된 인터럽트(NMi)신호를 제공한다.4 is a detailed circuit diagram of an embodiment according to the present invention, in which the write-protect memory 10B is stored as data bus information for determining whether the memory is write-protected, and the processor control register 20B: for controlling the processor. Stores data information bits, logic controller 1 30B provides an enable signal to memory write-protect memory, logic controller 2 40B provides a data write signal to memory write-protect memory 10B, and logic controller 3 (50B) provides a memory protection vibration (MPV) data bit signal to the processor control register 20B while providing an unmasked interrupt (NMi) signal to the processor 10A.

로직 제어부 4(60B)는 D-RAM 메모리부(70A)의 영역에 쓰기 금지로 프로그래밍되어 있을시 쓰기 싸이클 신호를 취소하고, 로직 제어부 5(70B)는 상기 D-RAM 메모리부(70A) 데이타를 읽을 경우, 메모리 쓰기(write)방지 기능과 무관하게 제어한다.Logic control unit 4 (60B) cancels the write cycle signal when the write prohibition is programmed in the area of D-RAM memory unit 70A, and logic control unit 5 (70B) cancels the D-RAM memory unit 70A data. When reading, it is controlled regardless of the memory write protection function.

따라서 본 발명의 구체적 일실시예를 제2도-제4도를 참조하여 상세히 설명하면, 메모리 쓰기방지 메모리 구조는 제3도와 같이 D-RAM 메모리부(70A)의 최대 크기를 1M바이트로 하므로 이를 쓰기방지 메모리 맵(10B)에서 D-RAM 메모리부(70A)의 1K바이트 크기 단위로 쓰기방지 프로그램 데이타 비트를 저장할 수 있다. 메모리 쓰기방지 메모리(10B)의 데이타 비트가 "0"이면 D-RAM 메모리부(70A)에 데이타를 써넣는 것이 금지(protection)되고, 그 반대로 "1"로 세트되어 있으면 데이타를 써넣는 것이 가능하다.Therefore, a specific embodiment of the present invention will be described in detail with reference to FIGS. 2 through 4, and the memory write-protect memory structure has a maximum size of the D-RAM memory unit 70A as 1M bytes as shown in FIG. In the write-protect memory map 10B, the write-protect program data bits may be stored in units of 1K bytes of the D-RAM memory unit 70A. If the data bit of the memory write-protect memory 10B is " 0 ", writing data to the D-RAM memory unit 70A is protected. If the data bit is set to " 1 ", the data can be written. Do.

쓰기방지 메모리(10B)의 프로그래밍은 제4도에서 쓰기방지 메모리(10B)에 데이타를 프로그래밍 할 경우, 먼저 프로세서 제어 레지스터(20B)의 「PROG」비트는 "1"로,「MPI」비트는 "0"로 각각 기입한다, 이때 로직 제어부 1(30A)로써 쓰기방지 메모리(10B)를 인에이블시키고, 그리고 프로세서 제어 레지스터(20B)는「PROG」의 비트로 인하여 어드레스 디코더(50A)는 D-RAM 메모리부(70A)를 억세스하지 않도록 하는 신호를 D-RAM 제어부(60A)를 통하여 RAS, CAS신호가 제공되지 않도록 한다. 따라서 D-RAM 메모리부(70A)는 쓰기(write)하는 모드(mode)가 아니고, 쓰기방지 메모리(10B)는 데이타 비트를 저장하는 모드로 전환되어 있다. 이와 같이 이 모드에서 마이크로 프로세서(10A)는 D-RAM 메모리부(70A)에 해당 영역의 쓰기방지(금지) 여부를 결정하는 어드레스를 어드레스 버스를 통하여 쓰기방지 메모리(10B)에 전달하고, 이와 동시에 마이크로 프로세서(10A)는 데이타를 데이타 버스(D0비트 유효)에 실어 로직 제어부 2(40B)가 쓰기방지 메모리(10B)에 데이타를 저장할 수 있도록 쓰기(write) 신호를 제공하므로써 프로그래밍은 완료한다. 이와같이 D-RAM 메모리부(70A)의 모든 영역을 쓰기방지 여부를 결정하는 데이타 비트를 쓰기방지 데이타(10B) 영역에 모두 프로그래밍하게 되면, 향후 D-RAM 메모리부(70A)의 쓰기(write) 싸이클시 쓰기방지 메모리(10B) 내용에 따라 D-RAM 메모리부(70A)에 데이타를 저장할지의 여부를 결정한다.In programming the write-protect memory 10B, when programming data to the write-protect memory 10B in FIG. 4, first, the "PROG" bit of the processor control register 20B is set to "1", and the "MPI" bit is set to "." 0 ", respectively, at this time, enabling write protection memory 10B with logic control unit 1 (30A), and processor control register (20B) having a bit of " PROG " The RAS and CAS signals are not provided through the D-RAM control unit 60A so as not to access the unit 70A. Therefore, the D-RAM memory unit 70A is not in a write mode, but the write-protect memory 10B is switched to a mode in which data bits are stored. In this mode, the microprocessor 10A transmits an address for determining whether the area is write protected (prohibited) to the write protection memory 10B via the address bus in this mode. The programming is completed by loading the data onto the data bus (D0 bit valid) and providing the write signal so that the logic controller 2 40B can store the data in the write-protect memory 10B. In this way, if all the data bits for determining whether to write-protect all the areas of the D-RAM memory unit 70A are programmed in the write-protect data 10B area, the write cycle of the D-RAM memory unit 70A will be described later. Determine whether to store data in the D-RAM memory section 70A according to the contents of the write protection memory 10B.

메모리 쓰기방지 기능 취소는 제4도에서 메모리 쓰기방지 기능을 사용하지 않을 경우, 즉 종래기술(제1도)과 같이 사용할 경우 먼저 프로세서 제어 레지스터(20B)의 「MPI」의 비트를 "1"로 세트시킴으로써 로직제어부 1(30B)을 통하여 쓰기방지 메모리(10B)를 디스에이블(disable)시킨다. 이렇게 하면 앞으로 D-RAM 메모리부(70A)에 데이타를 저장할 경우가 발생하더라도 메모리 쓰기방지 기능이 취소되어 비마스크된 인터럽트(NMi)가 발생하지 않는다.To cancel the memory write protection function, if the memory write protection function is not used in FIG. 4, that is, when used with the prior art (FIG. 1), first set the bit of the "MPI" in the processor control register 20B to "1". By setting, the write-protect memory 10B is disabled through the logic controller 1 30B. This cancels the memory write protection function even when data is stored in the D-RAM memory unit 70A in the future, so that an unmasked interrupt NMi does not occur.

메모리 쓰기방지 동작관계를 설명하면, 메모리 쓰기(write) 싸이클은 상술한 바와 같이 메모리 쓰기방지회로의 부분적인 설명을 제3도,제4도를 근거로 하여 설명한 바 있다, 다음은 제4도 회로 동작을 구체적으로 설명한다.Referring to the memory write protection operation relationship, the memory write cycle has described the partial description of the memory write protection circuit based on FIG. 3 and FIG. 4 as described above. The operation will be described in detail.

먼저 회로동작 설명에 앞서 몇가지 가정하기로 한다.First, a few assumptions are made prior to describing the circuit operation.

첫째 쓰기방지 메모리(10B) 프로그래밍에서 설명하였듯이 D-RAM 메모리부(70A)의 1K바이트 단위의 각 메모리 영역마다 메모리 쓰기방지 여부를 결정하는 데이타 비트(0 : 쓰기금지, 1 : 쓰기가능)를 쓰기방지 메모리(10B)에 저장하는 프로그래밍을 완료한다. 제3도와 같이 데이타 비트를 프로그래밍한다.As described in the programming of the first write-protect memory 10B, the data bits (0: write prohibited, 1: write enabled) for determining whether to prevent the memory write are written for each memory area of the 1-byte unit of the D-RAM memory unit 70A. Programming to be stored in the preventive memory 10B is completed. Program the data bits as shown in Figure 3.

둘째 메모리 쓰기방지 기능을 하도록 프로세서 제어 레지스터(20B)의 「PROG」비트와 「MPI」비트를 각각 "0"로 세트한다.Secondly, the "PROG" bit and the "MPI" bit in the processor control register 20B are set to "0" to enable the memory write protection function.

세번째 D-RAM 메모리부(70A)의 특정 영역이 메모리 쓰기금지(방지)하는 것으로 쓰기방지 메모리(10B)에 데이타 정보를 기억하고 있다고 가정한다. 또한 마이크로 프로세서(10A)는 그 특정 영역에 어떤 데이타를 저장하는 명령어(write instruction)를 수행한다고 가정하면, 그 동작은 다음과 같다.It is assumed that the specific area of the third D-RAM memory unit 70A is memory write inhibited (prevented) so that data information is stored in the write protect memory 10B. In addition, assuming that the microprocessor 10A performs a write instruction for storing some data in the specific area, the operation is as follows.

먼저 마이크로 프로세서(10A)가 메모리 쓰기 싸이클을 수행하게 되면, 어드레스 버스에 그 특정 영역의 메모리 어드레스가 실린다. 그 어드레스는 (메모리) 쓰기방지 메모리(10B)와 동시에 D-RAM 메모리부(70A)의 어드레스 단자에 도달하게 되고, 이는 D-RAM 제어부(60A)를 통하여 D-RAM 메모리부(70A)의 RAS, CAS신호를 제공하여 메모리 쓰기 인에이블한다. 이때 마이크로 프로세서(10A)는 다음 싸이클인 데이타 싸이클에서 데이타를 데이타 버스에 실고, 메모리 쓰기(write) 신호를 버스 제어부(80A)를 통하여 발생시킨다. 이는 로직 제어부 1(30B)을 통하여 해당 영역의 쓰기방지 메모리(10B)의 내용이 쓰기방지 메모리(10B) 출력단자를 통하여 데이타가 출력된다. 상기 출력된 데이타는 D-RAM 메모리부(70A)의 특정영역의 메모리 쓰기금지 신호라고 가정하였으므로, "0"로 출력된다. 이 출력신호는 로직 제어부 3(50B)을 통하여 프로세서 제어 레지스터(20B)의 「MPV」비트에 저장함과 동시에 마이크로 프로세서(10A)의 비마스크된 인터럽트(NMi)단자에 신호를 전달하게 된다. 이때 마이크로 프로세서(10A)는 현재 메모리 쓰기(write) 싸이클의 수행이 끝날때까지 비마스크된 인터럽트(NMi) 요청을 계속 보존하고 있다. 이때 마이크로 프로세서(10A)는 명령 싸이클이 완료하기전까지 계속 비마스크로 된 인터럽트(NMi) 처리를 하지 않는다.First, when the microprocessor 10A performs a memory write cycle, the memory address of the specific area is loaded on the address bus. The address reaches the address terminal of the D-RAM memory section 70A at the same time as the (memory) write protection memory 10B, which is connected to the RAS of the D-RAM memory section 70A via the D-RAM control section 60A. The CAS signal is provided to enable memory write. At this time, the microprocessor 10A loads data on the data bus in the next cycle, the data cycle, and generates a memory write signal through the bus controller 80A. This means that the contents of the write protection memory 10B of the corresponding area are output through the logic control unit 1 30B through the write protection memory 10B output terminal. Since the output data is assumed to be a memory write prohibition signal of a specific region of the D-RAM memory unit 70A, it is output as "0". This output signal is stored in the "MPV" bit of the processor control register 20B through logic control unit 3 (50B) and also transmitted to the unmasked interrupt (NMi) terminal of the microprocessor 10A. At this time, the microprocessor 10A continues to hold an unmasked interrupt (NMi) request until the current memory write cycle is completed. At this time, the microprocessor 10A does not process the non-masked interrupt NMi until the instruction cycle is completed.

한편, 이전에 데이타 싸이클에 데이타를 데이타 버스에 실었으므로 마이크로 프로세서(10A)가 쓰기(write)상태 신호를 버스 제어부(80A)로 전달하게 되면, 메모리 쓰기 명령어(/MWR)를 D-RAM 메모리부(70A)의 쓰기 인에이블(/WE)단자에 전달될 경우 데이타가 메모리에 쓰여지게 된다. 그러나 쓰기방지 메모리(10B) 출력신호는 마이크로 프로세서(10A)의 메모리 쓰기 명령상태를 버스 제어부(80A)로 전달하고, 버스 제어부(80A)의 명령어(/MWR) 출력신호가 샘플되는 시점과 조합되는 로직 제어부 4(60B)와 로직 제어부 5(70B)를 통하여 마이크로 프로세서(10A)가 메모리 쓰기(write) 싸이클이 완전히 완료하기 전에 D-RAM 메모리부(70A)의 쓰기 인에이블(/WE)단자를 디스에이블(Disable)시킴으로써 데이타 버스의 데이타가 메모리에 쓰여지는 것을 방지하게 된다. 이때 마이크로 프로세서(10A)는 메모리 쓰기(write) 싸이클을 완료함과 동시에 이전 등록된 비마스크된 인터럽트(NMi) 요청에 대한 처리를 수행하게 된다. 이 인터럽트(NMi)는 미리 지정한 인터럽트 서비스 처리 루틴이 있는 곳으로 마이크로 프로세서(10A)는 뛰어간다. 그 서비스 처리 루틴 소프트웨어는 프로세서 제어 레지스터(20B)의 「MPV」비트를 읽어 프로세서 메모리 쓰기금지 영역에 메모리 쓰기가 발생하였다는 메모리 쓰기 바이얼레이션(MPV)신호 정보를 분석할 수 있다. 따라서 「MPV」비트 정보에 따라 마이크로 프로세서(10A)는 적절한 처리를 할 수 있도록 소프트웨어가 준비되어 있어야 한다.On the other hand, since the microprocessor 10A transmits a write status signal to the bus controller 80A because data was previously loaded on the data bus in the data cycle, the memory write command (/ MWR) is transmitted to the D-RAM memory unit. When passed to the write enable (/ WE) terminal of 70A, data is written to the memory. However, the write protection memory 10B output signal transmits the memory write command status of the microprocessor 10A to the bus control unit 80A, and is combined with the point in time at which the command (/ MWR) output signal of the bus control unit 80A is sampled. Through the logic control unit 4 (60B) and logic control unit 5 (70B), the write enable (/ WE) terminal of the D-RAM memory unit 70A is completed before the microprocessor 10A completes the memory write cycle. Disabling prevents data on the data bus from being written to memory. At this time, the microprocessor 10A completes a memory write cycle and performs processing for a previously registered non-masked interrupt request. This interrupt NMi is jumped to the microprocessor 10A where a predetermined interrupt service processing routine is located. The service processing routine software can read the " MPV " bit of the processor control register 20B and analyze the memory write vibration (MPV) signal information indicating that a memory write has occurred in the processor memory write prohibited area. Therefore, according to the "MPV" bit information, software must be prepared for the microprocessor 10A to perform appropriate processing.

메모리 읽기(Read) 싸이클은 메모리 읽기 싸이클은 간단하다. 종래기술(제1도)과 동일하게 동작한다. 메모리 쓰기(write)방지 기능을 하는 것이므로(제4도), 메모리 읽기 싸이클에는 메모리 쓰기방지 기능(Memory write protection function)과는 무관하다. 이는 로직 제어부 5(70B)를 통할때 메모리 쓰기(write) 기능과 무관한 신호를 D-RAM 메모리부(70A)에 제공하므로써, 종래기술(제7도)과 동일하다.Memory Read Cycle The memory read cycle is simple. It operates in the same manner as the prior art (FIG. 1). Since the memory write protection function (Fig. 4), the memory read cycle is not related to the memory write protection function. This is the same as that of the prior art (Fig. 7) by providing the D-RAM memory unit 70A with a signal that is not related to the memory write function through the logic control unit 5 (70B).

상술한 바와 같이 본 발명의 메모리 쓰기방지 회로의 구현을 하므로써, 메모리에 데이타를 써넣을 경우 데이타 변경이 일어나서는 안되나 중요한 영역을 쓰기금지 신호를 제공하여 데이타의 신뢰성 및 메모리를 효율적으로 관리할 수 있다.As described above, by implementing the memory write-protection circuit of the present invention, when data is written into the memory, no data change should occur, but it is possible to efficiently manage the reliability and memory of the data by providing a write prohibition signal in an important area. .

따라서 일반적으로 D-RAM 메모리는 읽고, 쓰기가 가능한 메모리인 것은 자명하다 그러나 필요한 경우에 일정한 영역의 데이타를 보존하기 위해서는 그 영역은 읽기만 가능해야 하고, 그 영역의 데이타가 변경되어서는 안된다. 따라서 이를 본 발명에서는 그 기능을 추가하므로써, 소프트웨어적으로 제어할 수 있도록 하고 있다. 소프트웨어 수행중 데이타의 신뢰성이 없을 경우 사용자가 의도한대로 결과가 나타나지 않는다. 이와 같이 데이타를 안전하게 보호하며, 사용자의 용도에 따라 메모리 영역의 쓰기 방지하는 보호기능을 제공함과 동시에 효율적으로 메모리 관리 및 유지 가능하다는 것이 본 발명의 무엇보다도 큰 장점이다.Therefore, in general, it is obvious that a D-RAM memory is a memory that can be read and written. However, in order to preserve a certain area of data if necessary, the area should be read only and the data of the area should not be changed. Therefore, in the present invention, by adding the function, it can be controlled by software. If the data is not reliable while the software is running, the results are not as intended by the user. As described above, it is a major advantage of the present invention that the data can be securely protected, a write protection function of a memory area can be provided according to a user's use, and the memory can be efficiently managed and maintained.

Claims (1)

메모리 라이트 보호 회로에 있어서, 마이크로 프로세서(10A)가 D-RAM 메모리부(70A)를 억세스 하는데 있어서 마이크로 프로세서(10A)로 부터 발생되는 어드레스 신호와 메모리보호 제어신호로 부터 쓰기방지 제어신호를 발생하는 쓰기방지 메모리(10B)와, 상기 마이크로 프로세서(10A)의 출력 데이타에 대해 버스 콘트롤하는 버스 제어부(80A)와, 상기 쓰기방지 메모리(10B)의 출력과 버스 제어부(80A)의 출력이 모두 상기 D-RAM 메모리부(70A)의 라이트 제어신호일시만 라이트 제어신호를 발생하는 라이트 인에이블 제어수단(10C)로 구성함을 특징으로 하는 메모리 라이트 보호 회로.In the memory write protection circuit, the microprocessor 10A generates a write protection control signal from the memory protection control signal and the address signal generated from the microprocessor 10A in accessing the D-RAM memory unit 70A. The write control memory 10B, the bus control unit 80A for bus control of the output data of the microprocessor 10A, the output of the write protection memory 10B, and the output of the bus control unit 80A are all the D. And a write enable control means (10C) which generates a write control signal only at one time of the write control signal of the RAM memory unit (70A).
KR1019910017914A 1991-10-11 1991-10-11 Circuit for protecting memory write KR940006823B1 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
KR1019910017914A KR940006823B1 (en) 1991-10-11 1991-10-11 Circuit for protecting memory write

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
KR1019910017914A KR940006823B1 (en) 1991-10-11 1991-10-11 Circuit for protecting memory write

Publications (2)

Publication Number Publication Date
KR930008853A KR930008853A (en) 1993-05-22
KR940006823B1 true KR940006823B1 (en) 1994-07-28

Family

ID=19321124

Family Applications (1)

Application Number Title Priority Date Filing Date
KR1019910017914A KR940006823B1 (en) 1991-10-11 1991-10-11 Circuit for protecting memory write

Country Status (1)

Country Link
KR (1) KR940006823B1 (en)

Also Published As

Publication number Publication date
KR930008853A (en) 1993-05-22

Similar Documents

Publication Publication Date Title
US5991858A (en) Multi-user data processing system with storage protection
EP0979456B1 (en) Memory access protection
US4197580A (en) Data processing system including a cache memory
KR880000360B1 (en) Method for checking storage protection and a circuit for carrying out the same
US5089951A (en) Microcomputer incorporating memory
US4332009A (en) Memory protection system
KR100327854B1 (en) Cache Memory System
US6453397B1 (en) Single chip microcomputer internally including a flash memory
KR100305490B1 (en) Nonvolatile memory control circuit
US5119336A (en) Memory write protection circuit
US6715049B1 (en) Microcomputer and information processing system
US7260690B2 (en) Microprocessor circuit for data carriers and method for organizing access to data stored in a memory
JP2004280623A (en) Security system
EP0331407A2 (en) IC card
JPH11272828A (en) Chip card having integrated circuit
US4093986A (en) Address translation with storage protection
US6510501B1 (en) Non-volatile memory read/write security protection feature selection through non-volatile memory bits
US7054121B2 (en) Protection circuit for preventing unauthorized access to the memory device of a processor
US5444852A (en) I/O device interface having buffer mapped in processor memory addressing space and control registers mapped in processor I/O addressing space
US20020016890A1 (en) Secured microprocessor comprising a system for allocating rights to libraries
KR940006823B1 (en) Circuit for protecting memory write
JPS5894195A (en) One chip microcomputer
JPS6250863B2 (en)
JPS6346466B2 (en)
JPH06187520A (en) Ic memory card

Legal Events

Date Code Title Description
A201 Request for examination
G160 Decision to publish patent application
E701 Decision to grant or registration of patent right
GRNT Written decision to grant
FPAY Annual fee payment

Payment date: 20070611

Year of fee payment: 14

LAPS Lapse due to unpaid annual fee