JPH01161556A - Memory controlling circuit - Google Patents

Memory controlling circuit

Info

Publication number
JPH01161556A
JPH01161556A JP62320802A JP32080287A JPH01161556A JP H01161556 A JPH01161556 A JP H01161556A JP 62320802 A JP62320802 A JP 62320802A JP 32080287 A JP32080287 A JP 32080287A JP H01161556 A JPH01161556 A JP H01161556A
Authority
JP
Japan
Prior art keywords
memory
microprocessor
circuit
write
address
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.)
Pending
Application number
JP62320802A
Other languages
Japanese (ja)
Inventor
Chikara Suzuki
鈴木 主税
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.)
NEC Corp
Original Assignee
NEC Corp
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 NEC Corp filed Critical NEC Corp
Priority to JP62320802A priority Critical patent/JPH01161556A/en
Publication of JPH01161556A publication Critical patent/JPH01161556A/en
Pending legal-status Critical Current

Links

Landscapes

  • Techniques For Improving Reliability Of Storages (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PURPOSE:To easily discover a read/write instruction to an improper memory area of a microprogram in a short time by providing a microprocessor and memory controlling circuit which set a faulty state when an interruption is issued. CONSTITUTION:When writing is made from a microprocessor 1 in the microprogram area of a RAM 2 or ROM 3, the address of the microprogram area is sent to an address information line 11 and a write instruction is sent to a memory write information line 13. Moreover, at the RAM 2 and ROM 3 the content of a data information line 10 is written in an instructed address. Simultaneously, a memory controlling circuit 4 checks the memory access of the processor and since the address indicates the write instruction to the microprogram area, discriminates that the memory access is improper one. Then the circuit 4 interrupts the microprocessor 1 through a read/write error information line 14 and sets the processor 1 to a faulty state. Therefore, the read/write instruction of the microprogram to an improper memory area can easily be discovered in a short time.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はメモリのリード及びライト制御、特にマイクロ
・プロセッサに使用されるマイクロ・プログラム及びワ
ーク・テーブルが格納されているメモリの制御回路に関
する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to memory read and write control, and particularly to a control circuit for a memory in which micro programs and work tables used in a micro processor are stored.

〔従来の技術〕[Conventional technology]

従来、この種のメモリ制御回路では、メモリが読み出し
専用メモリ(RO阿)、書き換え可能メモリ(RAM)
に関係なく、また、未実装エリア(第2図のNot U
sedエリア)へのメモリ・リード/ライトであっても
マイクロ・プロセッサがらのメモリ・リード/ライト信
号によりメモリのリード/ライトを行っていた。
Conventionally, in this type of memory control circuit, the memory is read-only memory (ROA) or rewritable memory (RAM).
Regardless of the
Even when reading/writing the memory to the sed area), the reading/writing of the memory was performed using memory read/write signals from the microprocessor.

〔発明が解決しようとする問題点〕[Problem that the invention seeks to solve]

上述したメモリ制御回路は、ROM及びRAMに関係な
く、また、未実装エリアへのメモリ・リード/ライトで
あってもマイクロ・プロセッサからのメモリ・アクセス
によりメモリ・リード/ライトを行っているので、プロ
グラムのバグなどによりマイクロ・プログラム・エリア
のライト、未実装エリアへのり−ド/ライトなどにより
プログラムの暴走を招き、そのチェックに長時間を要す
るという欠点があった。
The above-mentioned memory control circuit performs memory read/write based on memory access from the microprocessor, regardless of whether it is ROM or RAM, and even when reading/writing memory to an unimplemented area. This has the drawback that a bug in the program may cause the program to run out of control due to writing in the micro program area or reading/writing to an unimplemented area, and it takes a long time to check.

本発明の目的は上記欠点を解消したメモリ制御回路を提
供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a memory control circuit that eliminates the above-mentioned drawbacks.

〔問題点を解決するための手段〕[Means for solving problems]

本発明はシステムを制御し、割り込み発生時ホルトする
マイクロ・プロセッサと、前記マイクロ・プロセッサの
マイクロ・プログラム及びシステム制御用のワーク・テ
ーブル等が格納されているROM回路及びRAM回路と
、前記マイクロ・プロセッサの前記ROM回路及びRA
M回路等のメモリ・リード/ライト時に前記マイクロ・
プロセッサのアドレス情報とメモリ・リード/ライト情
報とにより前記マイクロ・プロセッサのメモリ・アクセ
スをチェックするメモリ制御回路とを有することを特徴
とするメモリ制御回路である。
The present invention includes a microprocessor that controls a system and halts when an interrupt occurs, a ROM circuit and a RAM circuit that store microprograms of the microprocessor, work tables for system control, and the like; The ROM circuit and RA of the processor
When reading/writing memory of M circuit etc., the micro-
A memory control circuit characterized in that it has a memory control circuit that checks memory access of the microprocessor based on processor address information and memory read/write information.

〔実施例〕〔Example〕

次に、本発明について図面を参照して説明する。 Next, the present invention will be explained with reference to the drawings.

第1図は本発明の一実施例の構成図である。本発明はサ
ブシステムを制御するマイクロ・プロセッサ(CPU)
 1と、ワーク・テーブル(リード/ライト可)及びマ
イクロ・プログラム(リード可)が格納されているRA
M回路2と、マイクロ・プログラム(リード可)が格納
されているROM回路3と、マイクロ・プロセッサ1の
アドレス情報線11とメモリ・リード/ライト情報線1
2.13によりマイクロ・プロセッサ1のメモリ・アク
セスをチェックするメモリ制御回路4とから構成されて
いる。10はデータ情報線、14はメモリ・R/Wエラ
ー情報線である。
FIG. 1 is a block diagram of an embodiment of the present invention. The present invention uses a microprocessor (CPU) that controls the subsystem.
1, RA where the work table (readable/writable) and micro program (readable) are stored.
M circuit 2, ROM circuit 3 in which a micro program (readable) is stored, address information line 11 of micro processor 1, and memory read/write information line 1
2.13, the memory control circuit 4 checks the memory access of the microprocessor 1. 10 is a data information line, and 14 is a memory/R/W error information line.

また第2図は本発明のマイクロ・プロセッサ1のメモリ
・マツプ及びメモリ制御回路4のメモリ・アクセス情報
を示す。
FIG. 2 also shows a memory map of the microprocessor 1 and memory access information of the memory control circuit 4 of the present invention.

第1図、第2図において、マイクロ・プロセッサ1のメ
モリ・アクセス時に、アドレス情報線11にアクセスす
るメモリ・アドレス、メモリ・リード/ライト情報線1
2.13にメモリをリードするのかライトするのかの情
報が送出する。
1 and 2, when the microprocessor 1 accesses the memory, the memory address to be accessed on the address information line 11, the memory read/write information line 1
2.13, information on whether to read or write the memory is sent.

ここで、マイクロ・プロセッサ1のROM回路3又はR
AM回路2のマイクロ・プログラム領域へのライト時、
マイクロ・プロセッサ1からマイクロ・プログラム領域
のアドレスがアドレス情報線11にのり、また、ライト
命令がメモリ・ライト情報線13に送出される。
Here, the ROM circuit 3 or R of the microprocessor 1
When writing to the micro program area of AM circuit 2,
The address of the micro program area is transferred from the microprocessor 1 to the address information line 11, and a write command is sent to the memory write information line 13.

ROM回路3又はRAM回路2では指示されたアドレス
にデータ情報線10の内容を書き込む、このとき、アド
レス情報とライト情報とによりメモリ制御回路4でマイ
クロ・プロセッサ1のメモリ・アクセスのチェックを行
う。アドレスがマイクロ・プログラム領域でライト命令
であるからメモリ制御回路4では不当なメモリ・アクセ
スと判定し、メモリ・R/Wエラー情報線14によりマ
イクロ・プロセッサ1に対して割り込みをかける。マイ
クロ・プロセッサ1では本割り込みによりホルトする0
割り込んだアドレスにより不当なメモリ・アクセスをし
たアドレスを知ることができる。
The ROM circuit 3 or RAM circuit 2 writes the contents of the data information line 10 to the designated address. At this time, the memory control circuit 4 checks the memory access of the microprocessor 1 based on the address information and write information. Since the address is a write command in the micro program area, the memory control circuit 4 determines that it is an illegal memory access, and issues an interrupt to the microprocessor 1 via the memory/R/W error information line 14. Microprocessor 1 halts due to this interrupt.
The address at which the illegal memory access was made can be determined by the address at which the interrupt occurred.

〔発明の効果〕〔Effect of the invention〕

以上説明したように本発明によれば、マイクロ・プロセ
ッサの不当なエリアへのリード/ライト時にマイクロ・
プロセッサに割り込みをかけることにより、マイクロ・
プログラムの不当なメモリ・エリアへのリード/ライト
命令を短時間でまた容易に見つけることができる効果が
ある。
As explained above, according to the present invention, when a microprocessor reads/writes to an illegal area,
By interrupting the processor,
This has the advantage that read/write commands to illegal memory areas in a program can be easily found in a short time.

【図面の簡単な説明】[Brief explanation of the drawing]

第1図は本発明の構成図、第2図は本発明のマイクロ・
プロセッサのメモリ・マツプ及びメモリ制御回路のメモ
リ・アクセス情報を示す図である。
Fig. 1 is a block diagram of the present invention, and Fig. 2 is a micro-computer diagram of the present invention.
FIG. 3 is a diagram showing a memory map of a processor and memory access information of a memory control circuit.

Claims (1)

【特許請求の範囲】[Claims] (1)システムを制御し、割り込み発生時ホルトするマ
イクロ・プロセッサと、前記マイクロ・プロセッサのマ
イクロ・プログラム及びシステム制御用のワーク・テー
ブル等が格納されているROM回路及びRAM回路と、
前記マイクロ・プロセッサの前記ROM回路及びRAM
回路等のメモリ・リード/ライト時に前記マイクロ・プ
ロセッサのアドレス情報とメモリ・リード/ライト情報
とにより前記マイクロ・プロセッサのメモリ・アクセス
をチェックするメモリ制御回路とを有することを特徴と
するメモリ制御回路。
(1) a microprocessor that controls the system and halts when an interrupt occurs; a ROM circuit and a RAM circuit that store microprograms for the microprocessor, work tables for system control, etc.;
the ROM circuit and RAM of the microprocessor;
A memory control circuit comprising: a memory control circuit that checks memory access of the microprocessor based on address information of the microprocessor and memory read/write information during memory read/write of a circuit or the like. .
JP62320802A 1987-12-18 1987-12-18 Memory controlling circuit Pending JPH01161556A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP62320802A JPH01161556A (en) 1987-12-18 1987-12-18 Memory controlling circuit

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP62320802A JPH01161556A (en) 1987-12-18 1987-12-18 Memory controlling circuit

Publications (1)

Publication Number Publication Date
JPH01161556A true JPH01161556A (en) 1989-06-26

Family

ID=18125401

Family Applications (1)

Application Number Title Priority Date Filing Date
JP62320802A Pending JPH01161556A (en) 1987-12-18 1987-12-18 Memory controlling circuit

Country Status (1)

Country Link
JP (1) JPH01161556A (en)

Similar Documents

Publication Publication Date Title
JPH01169557A (en) Storage control system for computer
JPH01161556A (en) Memory controlling circuit
JPS60242579A (en) Control method for magnetic bubble memory device
JP2682707B2 (en) Programmable controller
JPH0635747A (en) Debug support device
JPH10312307A (en) Emulator for computer system
JPH03208158A (en) Electronic controller
JPS61166630A (en) Microprogram control system
JPS60258654A (en) Semiconductor memory
JPH0497455A (en) Memory control circuit
JPS62165263A (en) Memory control system
JPS63184154A (en) Shared ram accessing system
JPH04199208A (en) System for controlling resetting of memory
JPH045738A (en) Memory system
JPH1027153A (en) Bus transfer device
JPH0481939A (en) Control system for microcomputer
JPS60112148A (en) Memory device
JPH02125303A (en) Programmable controller
JPS63173129A (en) Information processor
JPH03147457A (en) Debugger for peripheral equipment in exchange
JPH03168845A (en) Instruction execution control system
JPH01251375A (en) Magnetic disk controller
JPH04282741A (en) Control device identification method
JPS635463A (en) multiprocessor system
JPH03116244A (en) emulator