JPH01161556A - Memory controlling circuit - Google Patents
Memory controlling circuitInfo
- 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
Links
- 238000010586 diagram Methods 0.000 description 4
Landscapes
- Techniques For Improving Reliability Of Storages (AREA)
- Debugging And Monitoring (AREA)
Abstract
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.
従来、この種のメモリ制御回路では、メモリが読み出し
専用メモリ(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.
上述したメモリ制御回路は、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.
本発明はシステムを制御し、割り込み発生時ホルトする
マイクロ・プロセッサと、前記マイクロ・プロセッサの
マイクロ・プログラム及びシステム制御用のワーク・テ
ーブル等が格納されている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.
次に、本発明について図面を参照して説明する。 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.
以上説明したように本発明によれば、マイクロ・プロセ
ッサの不当なエリアへのリード/ライト時にマイクロ・
プロセッサに割り込みをかけることにより、マイクロ・
プログラムの不当なメモリ・エリアへのリード/ライト
命令を短時間でまた容易に見つけることができる効果が
ある。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.
第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)
イクロ・プロセッサと、前記マイクロ・プロセッサのマ
イクロ・プログラム及びシステム制御用のワーク・テー
ブル等が格納されている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. .
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) |
-
1987
- 1987-12-18 JP JP62320802A patent/JPH01161556A/en active Pending
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 |