JPH0219933A - Memory circuit controller - Google Patents

Memory circuit controller

Info

Publication number
JPH0219933A
JPH0219933A JP63168974A JP16897488A JPH0219933A JP H0219933 A JPH0219933 A JP H0219933A JP 63168974 A JP63168974 A JP 63168974A JP 16897488 A JP16897488 A JP 16897488A JP H0219933 A JPH0219933 A JP H0219933A
Authority
JP
Japan
Prior art keywords
signal
circuit
rom
area
ram
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
JP63168974A
Other languages
Japanese (ja)
Inventor
Kenichi Takano
憲一 高野
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 JP63168974A priority Critical patent/JPH0219933A/en
Publication of JPH0219933A publication Critical patent/JPH0219933A/en
Pending legal-status Critical Current

Links

Landscapes

  • Debugging And Monitoring (AREA)
  • Microcomputers (AREA)
  • Memory System (AREA)

Abstract

PURPOSE:To store a program into a memory area of the RAM of a memory circuit and to simplify a debugging job by selecting the memory area of the RAM instead of a memory area of the ROM of the memory circuit in a test mode. CONSTITUTION:A state holding circuit 14 outputs a state signal ROMS in a set state. Then a memory circuit control part 12 which inputted the signal ROMS and an address decoding signal received from an address decoding part 11 outputs the selection signals of a normal mode for selection of a ROM 21 of a memory circuit 20 and the memory areas of RAM 22-24. At the same time, the circuit 14 turns on a resetting switch 32 for input of a resetting signal and outputs a state signal RAMS in a reset state. While the part 12 outputs the selection signals for selection of the ROM 21 and the memory areas of the RAM 22-24 in a mode different from a normal mode. Thus a program to be debugged is stored in the RAM 24 instead of the ROM 21 and therefore a debugging job is simplified.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 この発明はマイクロプロセッサを搭載した機器における
記憶回路制御装置に関し、特に記憶回路であるROMの
ソフトウェアのデバッグ検証作業を簡単に行うことが可
能な記憶回路制御装置に関する。
[Detailed Description of the Invention] [Industrial Application Field] The present invention relates to a storage circuit control device in equipment equipped with a microprocessor, and in particular to a device that can easily debug and verify software of a ROM, which is a storage circuit. The present invention relates to a storage circuit control device.

〔従来の技術〕[Conventional technology]

第7図は、−船釣な8ビツトマイクロプロセツサシステ
ムにおける従来の記憶回路制御装置の一例を示す構成図
である。1は記憶回路制御装置であって、アドレスバス
ABに接続されたアドレス制御ROM回路2と、これの
出力信号及びマイクロプロセッサからの各制御信号(例
えばリード/ライト信号等)を入力して記憶回路4のメ
モリ領域を選択する選択信号を出力する記憶回路制御回
路302つの回路を有している。また、記憶回路4は、
パスバッファ5を介してデータバスDBとデータの入出
力を行っている。
FIG. 7 is a block diagram showing an example of a conventional memory circuit control device in a typical 8-bit microprocessor system. Reference numeral 1 denotes a storage circuit control device, which inputs an address control ROM circuit 2 connected to an address bus AB, its output signals, and various control signals (for example, read/write signals, etc.) from a microprocessor to control the storage circuit. The storage circuit control circuit 30 has two circuits that output a selection signal for selecting four memory areas. Furthermore, the memory circuit 4 is
Data is input and output to and from the data bus DB via the path buffer 5.

第8図は、記憶回路4のメモリマツプである。FIG. 8 is a memory map of the memory circuit 4.

この図において、アドレスoooo〜7FFF番地は主
にプログラム等のデータを格納するためのプログラム領
域であシ、一方8000〜FFFF番地はプログラム以
外のデータ、すなわち画信号データや制御情報データ等
を格納するためのデータ蓄積領域である。また、上記プ
ログラム領域のうち、0000〜IFFF番地を読出し
専用のROM領域とし、2000〜7FFF番地を読出
し及び書込み可能な損財領域としている。なお、第8図
に示すプログラム領域、oooo〜7FFF番地は8k
B毎にベースバンクθ〜3と呼ぶことにする。
In this figure, addresses oooo to 7FFF are mainly program areas for storing data such as programs, while addresses 8000 to FFFF are used to store data other than programs, such as image signal data and control information data. This is a data storage area for Further, in the program area, addresses 0000 to IFFF are a read-only ROM area, and addresses 2000 to 7FFF are a readable and writable loss area. Note that the program area shown in FIG. 8, addresses oooo to 7FFF, is 8k.
Each B will be called base bank θ~3.

第7図において、アドレス制御ROM回路2は、アドレ
スバスABの16本のアドレス線のうチ上位10本と接
続され、前述した記憶回路4の各メモリ領域を選択する
ために、次に示す581類の信号を出力する。
In FIG. 7, the address control ROM circuit 2 is connected to the top 10 of the 16 address lines of the address bus AB, and in order to select each memory area of the storage circuit 4 described above, the address control ROM circuit 2 is connected to the following 581 Outputs similar signals.

(a) ROM領域(ベースパンクO)選択信号(b)
 RAM領域(ベースバンク1)選択信号(c) RA
M領域(ベースバンク2)選択信号(d) RAM領域
(ベースバンク3)選択信号(d) ROM / RA
M領域識別信号第9図に、これらの信号(−)〜(、)
とアドレスとの対応図を示す。この図において、各々の
メモリ領域に対応するアドレスで各選択信号(、)〜(
d)がrHJとなっている。また、ROM/RAM領域
識別信号(、)は、ROM領域選択信号(、)がrHJ
となっているところでのみrHJとなってROM領域の
識別を行っている。なお、この図において(f)のRO
M / RAM領域識別信号については後述するテスト
時の動作の際に説明する。
(a) ROM area (base puncture O) selection signal (b)
RAM area (base bank 1) selection signal (c) RA
M area (base bank 2) selection signal (d) RAM area (base bank 3) selection signal (d) ROM/RA
M area identification signal Figure 9 shows these signals (-) to (,).
A correspondence diagram between and addresses is shown. In this figure, each selection signal (,) to (
d) is rHJ. In addition, the ROM/RAM area identification signal (,) is the ROM area selection signal (,) rHJ
rHJ is used to identify the ROM area only where . In addition, in this figure, the RO of (f)
The M/RAM area identification signal will be explained later in the test operation.

以上説明した5種類の信号及びマイクロプロセッサの各
制御信号(リード信号RD、ライト信号WR、メモリリ
クエスト信号MREQ等)が記憶回路制御回路3に入力
されることによって、この記憶回路制御回路3は、記憶
回路4の各メモリ領域に対して所定の制御作用(データ
の入出力等)を行うのである。
By inputting the five types of signals explained above and each control signal of the microprocessor (read signal RD, write signal WR, memory request signal MREQ, etc.) to the memory circuit control circuit 3, the memory circuit control circuit 3 Predetermined control actions (data input/output, etc.) are performed on each memory area of the storage circuit 4.

ところで、通常記憶回路4のROM領域に格納されてい
るプログラムは、初期の状態においてはデバッグによる
検証がなされていないので、このプログラムが正常に動
作するという保証はない。従つてデバッグによる検証作
業が必要となり、この場合通常は、デバッグの対象とな
るプログラムをRAMに格納してデバッグするために上
記のROM領域と同一アドレスで動作するRAM領域を
確保することが必要となる。ここで、このRAM領域を
どのように確保し制御するのかを説明する前に、通常の
場合記憶回路制御回路3により各メモリ領域に対して行
われる制御について、各メモリ領域ごとに説明する。
By the way, since the program stored in the ROM area of the normal storage circuit 4 has not been verified by debugging in its initial state, there is no guarantee that the program will operate normally. Therefore, verification work by debugging is required, and in this case, it is usually necessary to secure a RAM area that operates at the same address as the ROM area mentioned above in order to store the program to be debugged in RAM and debug it. Become. Before explaining how to secure and control this RAM area, the control normally performed on each memory area by the storage circuit control circuit 3 will be explained for each memory area.

(1)ROM領域(oooo〜I FFF’番地:ベー
スバンク0) この領域は記憶回路4の読み出し専用領域であシ、記憶
回路制御回路3は、アドレス制御ROM回路2から入力
したROM領域(ベースバンクO)選択信号及びROM
 / RAM fit別信号によシメモリ領域を識別す
るとともに、マイクロプロセッサから入力するメモリリ
クエスト信号MERQ及びリード信号RDに従って上記
メモリ領域に対して読み出しの制御を行う。
(1) ROM area (addresses oooo to I FFF': base bank 0) This area is a read-only area of the memory circuit 4, and the memory circuit control circuit 3 uses the ROM area (base bank 0) input from the address control ROM circuit 2. Bank O) Selection signal and ROM
/RAM The memory area is identified by the signal for each fit, and the readout of the memory area is controlled in accordance with the memory request signal MERQ and read signal RD input from the microprocessor.

(21RAM領域(2000〜7FFF番地:ベースバ
ンク1〜3) この領域は記憶回路4の読み出し及び書き込み領域であ
り、記憶回路制御回路3は、アドレス制御ROM回路2
から入力したRAM領域(ベースバンク1〜3)選択信
号及びROM / RAM識別信号によりメモリ領域を
識別するとともに、マイクロプロセッサから入力するメ
モリリクエスト信号MERQ 。
(21 RAM area (addresses 2000 to 7FFF: base banks 1 to 3) This area is the read and write area of the memory circuit 4, and the memory circuit control circuit 3 is the address control ROM circuit 2
A memory area is identified by a RAM area (base bank 1 to 3) selection signal and a ROM/RAM identification signal input from the microprocessor, and a memory request signal MERQ input from the microprocessor.

リード信号RD及びライト信号WRの組合せに従って上
記メモリ領域に対して読み出し及び書き込みの制御を行
なう。
Reading and writing to the memory area is controlled according to the combination of read signal RD and write signal WR.

以上が通常の場合のメモリ領域に対する制御である。次
にデバッグ作業する場合、すなわちテスト時のメモリ領
域に対する制御について説明する。
The above is the control for the memory area in the normal case. Next, control over the memory area when debugging, that is, during testing, will be explained.

テスト時には、デバッグの対象となるプログラムを格納
するために、前述のROM領域(ベースバンクO)に相
当するメモリ容量を有するRAM領域を新たに設けると
ともに、第9図のROM / RAM領域識別信号(f
)に示すように全てのアドレスに対応してrLJである
、すなわちRAM領域を選択するようなROM / R
AM識別信号を出力するアドレス制御ROM回路2を新
たに設けていた。このようにして、デバッグの対象とな
るプログラムを格納するRAM領域を確保して制御を行
っていたのである。
At the time of testing, in order to store the program to be debugged, a new RAM area with a memory capacity equivalent to the aforementioned ROM area (base bank O) is created, and the ROM/RAM area identification signal ( f
ROM/R that is rLJ corresponding to all addresses as shown in ), that is, selects the RAM area.
An address control ROM circuit 2 that outputs an AM identification signal was newly provided. In this way, the RAM area for storing the program to be debugged is secured and controlled.

〔発明が解決しようとする課題〕[Problem to be solved by the invention]

上述した従来の記憶回路制御装置においては、アドレス
制御ROM回路2はROMで構成されているために次の
様な問題があった。
In the conventional storage circuit control device described above, since the address control ROM circuit 2 is constituted by a ROM, there are the following problems.

(1)アドレス制御ROM回路2は、通常時に使用する
ものとデバッグ時に使用するものと28類必要であるこ
と。
(1) The address control ROM circuit 2 must be of type 28, including one for normal use and one for debugging.

(2)このアドレス制御ROM回路2は回路表記上ブラ
ックボックスとなるのでこれに書き込まれている論理的
内容はこのままでは判らないためこの論理的内容をタイ
ムチャート上に表記する必要があること。
(2) Since the address control ROM circuit 2 is a black box in terms of circuit notation, the logical contents written in it cannot be understood as it is, so it is necessary to write the logical contents on the time chart.

(3)このアドレス制御ROM回路2には論理的内容を
書き込む必要があるので書き込みエラー等によって誤っ
た内容を曹き込む可能性があること。
(3) Since it is necessary to write logical contents into this address control ROM circuit 2, there is a possibility that erroneous contents may be written due to a writing error or the like.

この発明の目的は上記の問題を解決するものであシ、簡
単な構成かつ明確な論理によって通常時及びデバッグ時
において記憶回路を制御することができる記憶回路制御
装置を提供するものである。
SUMMARY OF THE INVENTION An object of the present invention is to solve the above-mentioned problems, and to provide a storage circuit control device that can control a storage circuit in normal times and during debugging with a simple configuration and clear logic.

〔課題を解決するための手段〕[Means to solve the problem]

この発明の記憶回路制御装置は、異なるアドレス上に配
置されているROM及びRAMの指定メモリ領域を選択
するものであって以下のものから構成されている。
The storage circuit control device of the present invention selects designated memory areas of ROM and RAM located at different addresses, and is comprised of the following.

(a)アドレス信号をデコードしてアドレスデコード信
号を出力するアドレスデコーダ部。
(a) An address decoder section that decodes an address signal and outputs an address decoded signal.

(b)いわゆるフリップフロッグ回路等の2つの安定状
態を保持するものであって、マイクロプロセッサシステ
ムのパワーオンリセットやマニュアルのリセットスイッ
チ等によるノ1−トリセットによるイニシャルリセット
時に発生するセット信号を入力した場合にセット状態(
第1の安定状態)となり、一方、外部からリセット信号
を入力した場合にリセット状態(第2の安定状態)とな
り、この2種類の安定状態に対応した状態信号を出力す
る状態保持回路。
(b) A device that maintains two stable states, such as a so-called flip-flop circuit, and inputs a set signal generated at the time of initial reset by a power-on reset of a microprocessor system or a reset by a manual reset switch, etc. Set state (
A state holding circuit that enters a reset state (a second stable state) when a reset signal is input from the outside and outputs state signals corresponding to these two types of stable states.

(c)アドレスデコード信号及び状態信号に応じて前記
ROM及びRAMの指定メモリ領域を選択する選択信号
を出力する記憶回路制御部。
(c) A storage circuit control unit that outputs a selection signal for selecting a designated memory area of the ROM and RAM in accordance with the address decode signal and the status signal.

〔作用〕[Effect]

状態保持回路は、イニシャルリセット時セット信号を入
力するとセット状態となり、この状態に応じた状態信号
を出力する。この状態信号及びアドレスデコード信号を
入力した記憶回路制御部は指定のアドレスに対応してR
OM及びRAMのメモリ領域を選択する通常モードの選
択信号を出力する。
When the state holding circuit receives a set signal at the time of initial reset, it enters a set state and outputs a state signal corresponding to this state. The memory circuit control section that receives this status signal and address decode signal inputs the R
Outputs a normal mode selection signal for selecting memory areas of OM and RAM.

また、状態保持回路は、外部からリセット信号を入力す
るとリセット状態となり、この状態に応じた状態信号を
出力する。この状態信号及びアドレスデコード信号を入
力した記憶回路制御部は指定のアドレスに対応して、通
常モードとは異なるROM及びRAMのメモリ領域を選
択するテストモードの選択信号を出力する。
Furthermore, when a reset signal is input from the outside, the state holding circuit enters a reset state, and outputs a state signal corresponding to this state. The storage circuit control section which receives the state signal and the address decode signal outputs a test mode selection signal for selecting a memory area of the ROM and RAM different from the normal mode, corresponding to the designated address.

この結果記憶回路制御部は指定アドレスに対応して、通
常モードの場合にはROMのメモリ領域を選択し、テス
トモードの場合にはRAMのメモリ領域を選択すること
が可能となる。
As a result, the storage circuit control section can select a ROM memory area in the normal mode and a RAM memory area in the test mode, corresponding to the specified address.

〔実施例〕〔Example〕

次に、この発明の実施例について図面を参照して説明す
る。
Next, embodiments of the invention will be described with reference to the drawings.

第1図はこの発明の第1実施例を示す構成図である。1
1はアドレスデコード部であシ、アドレスバス(図示せ
ず)に接続されデコード信号Y。
FIG. 1 is a block diagram showing a first embodiment of the present invention. 1
1 is an address decode unit, which is connected to an address bus (not shown) and receives a decode signal Y.

〜Y3を出力する。13はセットパルス発−生部で、入
力がrLJのとき「L」のパルス信号を一定周期で繰返
して出力し、入力がrHJになるとこのrLJのパルス
信号の出力を停止することによって、後述の7リツプフ
ロツプ回路14の状態がノイズの影替によって反転した
とき誤動作しないように動作するものである。
~Y3 is output. Reference numeral 13 denotes a set pulse generator, which repeatedly outputs an "L" pulse signal at a constant cycle when the input is rLJ, and stops outputting the rLJ pulse signal when the input reaches rHJ, thereby generating the pulse signal described later. This circuit operates to prevent malfunction when the state of the 7-lip flop circuit 14 is reversed due to noise.

31はリセットパルス発生回路であシ、リセットスイッ
チ32がオンすることによってこの回路にrLJの信号
が入力されると「L」のパルス信号を出力する。14は
フリツプフロツプ回路(以下F/F回路という)であシ
、上記セットパルス発生部13の出力がセット人力Sへ
印加され、上記リセットパルス発生回路31の出力がリ
セット入力Rへ印加されるようになっている。また、と
のF/F回路14の2つの出力Q及びQは相反しておシ
、出力QはROkiS信号、出力QはRAM5信号とし
て出力されるようになっている。12は記憶回路制御部
で、論理素子の組合せで構成された組合せ回路であシ、
80M5信号及びRAM5信号を人力するとともにデコ
ード信号Y、%Y3を入力して、後述する記憶回路のR
OM領域及びRAM領域を選択する選択信号12A〜1
2Dを出力する。20は記憶回路でROM領域21 、
RAM領域22〜24を含んで構成されてお)、各々ベ
ースバンク0〜3に相当する。この実施例で各ベースバ
ンクは8にバイトのメモリ容量を有している。
A reset pulse generating circuit 31 outputs an "L" pulse signal when the reset switch 32 is turned on and the rLJ signal is input to this circuit. Reference numeral 14 denotes a flip-flop circuit (hereinafter referred to as an F/F circuit), and the output of the set pulse generating section 13 is applied to the set human power S, and the output of the reset pulse generating circuit 31 is applied to the reset input R. It has become. Further, the two outputs Q and Q of the F/F circuit 14 are contradictory to each other, and the output Q is outputted as the ROkiS signal and the output Q is outputted as the RAM5 signal. 12 is a memory circuit control unit, which is a combinational circuit made up of a combination of logic elements;
By manually inputting the 80M5 signal and the RAM5 signal, and inputting the decoded signals Y and %Y3,
Selection signals 12A to 1 for selecting the OM area and RAM area
Output 2D. 20 is a memory circuit; ROM area 21;
RAM areas 22 to 24) correspond to base banks 0 to 3, respectively. In this embodiment, each base bank has a memory capacity of 8 bytes.

次に動作について説明する。Next, the operation will be explained.

初めに、通常の動作を行う通常モードの場合について説
明する。電源投入時においては、一般のマイクロコンピ
ュータシステムと同様にパワーオンリセットが働いてF
/F回路14はセット入力(図示せず)が印加されてセ
ット状態となり、出力Qは「H」、出力QはrLJとな
るので80M5信号はrHJ 、RAM5信号はrLJ
の状態で記憶回路制御部12へ出力されることになる。
First, a normal mode in which normal operations are performed will be described. When the power is turned on, a power-on reset works like a general microcomputer system, and the F
The /F circuit 14 is applied with a set input (not shown) and enters the set state, and the output Q becomes "H" and the output Q becomes rLJ, so the 80M5 signal becomes rHJ and the RAM5 signal becomes rLJ.
It will be output to the storage circuit control section 12 in this state.

tた、セットパルス発生部13は、このRAM5信号(
「LJ)を入力した後、F/F回路140セット人力i
に対してrLJの繰返しパルス信号の出力を開始する。
In addition, the set pulse generator 13 receives this RAM5 signal (
After inputting "LJ)," 140 sets of F/F circuits are set manually.
The output of the rLJ repetitive pulse signal is started.

このため、F/F回路14の出力はセット状態、すなわ
ちQは「H」、QはrLJの状態に保持されるととKな
る。
Therefore, the output of the F/F circuit 14 becomes set state, that is, when Q is held at "H" and Q is held at rLJ state, it becomes K.

次に1記憶回路制御部12における入出力信号の波形図
を第2図に示す。この図に示すように通常モードの場合
は、80M5信号がrHJ 、RAM5信号がII、]
の状態に保持されておシ、この状態で、記憶回路制御部
12はその組合せ回路の作用によって、アドレスデコー
ド部11から印加されたデコード信号石〜Q、に応じて
選択信号12A〜12Dを記憶回路20に対して出力す
る。この結果、デコード信号yo−y3に対応してRO
M領域21、RAM領域22〜24.すなわちベースバ
ンク0〜3が選択されることになる。なお、第2図に示
すようにデコード信号yo−Y3及び選択信号12A〜
12Dは負論理信号である。
Next, a waveform diagram of input/output signals in the 1-memory circuit control section 12 is shown in FIG. As shown in this figure, in the normal mode, the 80M5 signal is rHJ, the RAM5 signal is II,]
In this state, the storage circuit control unit 12 stores the selection signals 12A to 12D according to the decode signal stones ~Q applied from the address decoding unit 11 by the action of the combinational circuit. Output to the circuit 20. As a result, RO
M area 21, RAM areas 22-24. That is, base banks 0 to 3 are selected. In addition, as shown in FIG. 2, the decode signal yo-Y3 and the selection signals 12A to
12D is a negative logic signal.

第3図(A)に、通常モード時のメモリマツプを示す。FIG. 3(A) shows a memory map in normal mode.

アドレスoooo〜IFFF番地にROM領域(ベース
バンク0)が、アドレス2000〜7FFF番地にRA
M領域(ベースバンク1〜3)が各々配置されている。
The ROM area (base bank 0) is located at addresses oooo to IFFF, and the RA area is located at addresses 2000 to 7FFF.
M areas (base banks 1 to 3) are arranged.

次に、記憶回路20のROM領域21に格納するプログ
ラムがデバッグ前であシ、このプログラムをROM領域
21の代シに例えばRAM領域24に格納して、このプ
ログラムのデバッグを行う場合、すなわちテストモード
の動作について説明する。
Next, if the program stored in the ROM area 21 of the storage circuit 20 is before debugging, and this program is stored in the RAM area 24 instead of the ROM area 21 and the program is to be debugged, that is, a test is performed. The operation of the mode will be explained.

ただしこのとき、このシステムはすでに電源投入されて
この記憶回路制御装置は前述の通常モードになっている
ものとする。第1図においてリセットスイッチ32をオ
ンにしてリセットパルス発生回路31へ[LJの信号を
入力すると、リセットパルス発生回路31はrLJのパ
ルス信号をF/F回路14のリセット人力Rへ出力する
。このため、F/F回路14の出力はリセット状態、す
なわちQは「L」、QはrHJの状態となるので80M
5信号は「L」、RAM5信号はrHJの状態で記憶回
路制御部12へ出力されることになる。また、セットパ
ルス発生部13は、このRAM5信号([HJ )を入
力した後、これまでF/F回路14のセット人力Sに対
して出力していた「L」の繰返しパルス信号を停止する
。このため、F/F回路14の出力はリセット状態、す
なわちQはrLJ、QはrHJの状態に保持されること
になる。
However, at this time, it is assumed that this system has already been powered on and this storage circuit control device is in the aforementioned normal mode. In FIG. 1, when the reset switch 32 is turned on and the signal [LJ is input to the reset pulse generation circuit 31, the reset pulse generation circuit 31 outputs the pulse signal rLJ to the reset input R of the F/F circuit 14. Therefore, the output of the F/F circuit 14 is in a reset state, that is, Q is "L" and Q is in rHJ state, so 80M
The RAM5 signal is output to the storage circuit controller 12 in the "L" state and the RAM5 signal in the rHJ state. Further, after receiving this RAM5 signal ([HJ), the set pulse generator 13 stops the "L" repetitive pulse signal that has been outputted to the set human power S of the F/F circuit 14 so far. Therefore, the output of the F/F circuit 14 is held in a reset state, that is, Q is maintained at rLJ and Q is maintained at rHJ.

次に、このときの記憶回路制御部12における入出力信
号の波形図を通常モードと同様に第2図に示す。この図
に示すようにテストモードの場合は、80M5信号が「
LJ 、RAM5信号がrHJの状態に保持されておシ
、この状態で記憶回路制御部12は、その組合せ回路の
作用によって、アドレスデコード部11から印加された
デコード信号Yo−Y3に応じて選択信号を出力してい
る。この場合前述のテストモードのときとは異なり、デ
コード信号7′Oに対して選択信号12Dが、同じ<Y
3に対しては12Aが各々出力される。この結果、デコ
ード信号Yoに対応してRAM領域24(ベースバンク
3)が、同じ<Ysに対応してROM領域21(ペース
バンクO)が選択されることになる。とのことを第3図
(B)に示すメモリマツプで説明すると、アドレスoo
oo〜1FFF番地にRAM領域(ペースバンク3)が
、アドレス6000〜7FFF番地にROM領域(ペー
スバンクO)が配置されておシ、アドレス2000〜5
FFF番地にはRAM領域(ペースバンク1及び2)が
配置されている。つまシ、通常モード時におけるROM
領域(ベースバンク0)とRAM領域(ペースバンク3
)とが交換されて配置されているととKなる。
Next, a waveform diagram of the input/output signals in the storage circuit control section 12 at this time is shown in FIG. 2 as in the normal mode. As shown in this figure, in the test mode, the 80M5 signal is
The LJ and RAM5 signals are held in the rHJ state, and in this state, the memory circuit control unit 12 outputs the selection signal according to the decode signal Yo-Y3 applied from the address decoder 11 by the action of the combinational circuit. is outputting. In this case, unlike in the test mode described above, the selection signal 12D is the same as <Y with respect to the decode signal 7'O.
3, 12A is output respectively. As a result, the RAM area 24 (base bank 3) is selected in response to the decode signal Yo, and the ROM area 21 (pace bank O) is selected in response to the same <Ys. To explain this using the memory map shown in FIG. 3(B), the address oo
A RAM area (pace bank 3) is located at addresses oo to 1FFF, a ROM area (pace bank O) is located at addresses 6000 to 7FFF, and a ROM area (pace bank O) is located at addresses 6000 to 7FFF.
A RAM area (pace banks 1 and 2) is arranged at address FFF. Tsumushi, ROM in normal mode
area (base bank 0) and RAM area (pace bank 3).
) are exchanged and placed, then K becomes.

このことによって、デバッグの対象となるプログラムを
ROM領域(ベースバンク0)の代シにRAM領域(ベ
ースバンク3)に格納してデバッグ作業を行うことが可
能となる。
This makes it possible to perform debugging by storing the program to be debugged in the RAM area (base bank 3) instead of the ROM area (base bank 0).

なお、この実施例の場合、テストモードのときにROM
領域(ペースバンクO)の代シにRAM領域(ベースバ
ンク3)を使ってしまうため、もともとこのRAM領域
(ベースバンク3)は空の領域であること、すなわち通
常モードのときにプログ2ムが書込まれていない領域で
あることが必要である。もし、このときRAM領域(ベ
ースバyり3)にプログラムが書込まれているような場
合には、次の第2実施例に示すようにRAM領域を拡張
することが必要となる。
In addition, in the case of this embodiment, the ROM is
Since the RAM area (base bank 3) is used in place of the area (pace bank O), this RAM area (base bank 3) is originally an empty area, that is, when the program 2 is in normal mode. It must be an unwritten area. If at this time a program is written in the RAM area (base byte 3), it is necessary to expand the RAM area as shown in the following second embodiment.

第4図はこの発明の第2実施例を示す構成図であシ第1
図と同符号は対応する部分を示す。第5図は同実施例の
記憶回路制御部12における入出力信号の波形図、第6
図は同実施例における記憶回路20のメモリマツプであ
る。以下これらの図面を参照して同実施例について説明
するが、第1実施例と重複する部分についてはその説明
を省略する。
FIG. 4 is a configuration diagram showing a second embodiment of the present invention.
The same symbols as in the figure indicate corresponding parts. FIG. 5 is a waveform diagram of input/output signals in the memory circuit control unit 12 of the same embodiment;
The figure shows a memory map of the storage circuit 20 in the same embodiment. The same embodiment will be described below with reference to these drawings, but the explanation of parts that overlap with the first embodiment will be omitted.

第4図において25は増設RAM領域であり、テストモ
ードのときのみ使用されるものである。また、この増設
RAM領域25は他のRAM領域と同じ容量である。3
0は増設RAM選択回路であり増設RAM領域25を選
択する選択信号12Eを出力するものである。
In FIG. 4, reference numeral 25 denotes an additional RAM area, which is used only in the test mode. Further, this additional RAM area 25 has the same capacity as the other RAM areas. 3
0 is an additional RAM selection circuit which outputs a selection signal 12E for selecting the additional RAM area 25.

次に動作について説明する。Next, the operation will be explained.

初めに通常モードの動作について説明する。この場合、
第5図に示すようiCROM5信号がrHJ、RAM5
信号がrLJの状態に保持されておシ、記憶回路制御部
12はその組合せ回路及びん1設RAM選択回路30の
作用によって、アドレスデコード部11から印加された
デコード信号y、−y、に応じて選択信号12A〜12
D (12Eは除く)を記憶回路20に対して出力して
いる。この結果、デコード信号yo−y3に対応してR
OM領域21 、RAM領域22〜24.すなわちベー
スバンク0〜3が選択されることになる。そしてこの場
合第6図(A)に示すようにメモリマツプの内容は第1
実施例の場合と同様となる。
First, the operation in normal mode will be explained. in this case,
As shown in Figure 5, the iCROM5 signal is rHJ, RAM5
While the signal is held in the rLJ state, the memory circuit control section 12 responds to the decode signals y, -y, applied from the address decoding section 11 through the action of its combination circuit and the RAM selection circuit 30. selection signals 12A to 12
D (excluding 12E) is output to the storage circuit 20. As a result, R
OM area 21, RAM areas 22-24. That is, base banks 0 to 3 are selected. In this case, as shown in FIG. 6(A), the contents of the memory map are
This is the same as in the embodiment.

次にテストモードの動作について説明する。この場合、
第5図に示すようK ROM5信号が「L」、RAM5
°信号が「H」の状態に保持されており、この状態で記
憶回路制御部12はその組合せ回路及び増設RAM選択
回路30の作用によって、アドレスデコード部11から
印加されたデコード信号石〜Y3に応じて選択信号を出
力する。この場合前述のテストモードのときとは異なシ
、デコード信号yoに対して選択信号12Kが出力され
るので増設RAM領域25が選択されることになる。こ
のことを第6図(B)に示すメモリマツプで説明すると
、アドレス0000−IFFF番地に増設RAM領域2
5が配置され、アドレス2000〜7FFF番地にはR
AM領域(ベースバンク1〜3)が配置されている。つ
l、通常モード時におけるROM領域21(ベースバン
ク0)の代りに増設RAM領域25が配置されていると
とKなる。
Next, the operation in test mode will be explained. in this case,
As shown in Fig. 5, the K ROM5 signal is “L” and the RAM5
° The signal is held in the "H" state, and in this state, the memory circuit control section 12 uses the combination circuit and the additional RAM selection circuit 30 to select the decode signal stone ~Y3 applied from the address decoding section 11. A selection signal is output accordingly. In this case, unlike in the test mode described above, the selection signal 12K is output in response to the decode signal yo, so the additional RAM area 25 is selected. To explain this using the memory map shown in FIG. 6(B), the additional RAM area 2 is located at addresses 0000-IFFF.
5 is placed, and R is placed at addresses 2000 to 7FFF.
AM areas (base banks 1 to 3) are arranged. First, if the additional RAM area 25 is arranged in place of the ROM area 21 (base bank 0) in the normal mode, then K is obtained.

このことによって、デバッグの対象となるプログラムを
ROM領域21(ベースバンク0)の代シに増設RAM
領域25に格納してデバッグ作業を行うことが可能とな
り、シかも使用することのできるRAM領域の容量は通
常モードの場合と同じ容量を確保することが可能となる
This allows the program to be debugged to be added to the RAM area instead of the ROM area 21 (base bank 0).
It becomes possible to store the data in the area 25 and perform debugging work, and it becomes possible to secure the same capacity of the RAM area that can be used in the normal mode as in the normal mode.

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

以上説明したようにこの発明の記憶回路制御装置は、指
定アドレスに対応して記憶回路のメモリ領域を選択する
際、通常モードの場合にはROMのメモリ領域を選択し
、テストモードの場合にはこのROMのメモリ領域の代
夛にRAMのメモリ領域を選択することが可能である。
As explained above, when selecting a memory area of a storage circuit corresponding to a designated address, the storage circuit control device of the present invention selects a ROM memory area in the normal mode, and selects a ROM memory area in the test mode. It is possible to select a RAM memory area as a substitute for this ROM memory area.

このため、プログラムをRAMのメモリ領域に格納して
デバッグ作業を行うことが可能とがる。
Therefore, it is possible to store the program in the memory area of the RAM and perform debugging work.

従って、従来使用していた2種類のアドレス制御ROM
回路が不要となるため、制御ROM回路の論理内容を示
すタイムチャートの作成、及びこのROM回路への書込
みエラーに対する配慮が必要なくなシ、簡単にプログラ
ムのデバッグ作業を行うことが可能となるという効果を
有する。
Therefore, the two types of address control ROMs conventionally used
Since no circuit is required, there is no need to create a time chart showing the logical contents of the control ROM circuit, and there is no need to worry about writing errors to this ROM circuit, making it possible to easily debug programs. have an effect.

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

第1図はこの発明の第1実施例を示す構成図、第2図は
同実施例の記憶回路制御部における入出力信号の波形図
、第3図は同実施例におけるメモリマツプ、第4図は第
2実施例を示す構成図、第5図は同実施例の記憶回路制
御部における入出力信号の波形図、第6図は同実施例に
おけるメモリマツプ、第7図は従来の記憶回路制御装置
の一例を示す構成図、第8図は同例のメモリマツプ、第
9図は同例における信号とアドレスの対応図である。 11・・・・アドレスデコーダ部、12・・・・記憶回
路制御部、13・・・・セットパルス発生部、14φ・
φφ7リツプフロツプ回路、31・φ・・リセットパル
ス発生回路、30・・・・記憶回路。
FIG. 1 is a block diagram showing a first embodiment of the present invention, FIG. 2 is a waveform diagram of input/output signals in the storage circuit control section of the same embodiment, FIG. 3 is a memory map of the same embodiment, and FIG. A configuration diagram showing the second embodiment, FIG. 5 is a waveform diagram of input/output signals in the storage circuit control section of the same embodiment, FIG. 6 is a memory map in the same embodiment, and FIG. 7 is a diagram of the conventional storage circuit control device. A configuration diagram showing an example, FIG. 8 is a memory map of the same example, and FIG. 9 is a correspondence diagram of signals and addresses in the same example. 11...Address decoder section, 12...Storage circuit control section, 13...Set pulse generation section, 14φ.
φφ7 lip-flop circuit, 31, φ, reset pulse generation circuit, 30, memory circuit.

Claims (1)

【特許請求の範囲】 記憶回路としてROM及びRAMを使用するマイクロプ
ロセッサシステムに設けられ、異なるアドレス上に配置
されている前記ROM及びRAMの指定メモリ領域を選
択する選択信号を出力する記憶回路制御装置において、 アドレス信号をデコードしてアドレスデコード信号を出
力するアドレスデコーダ部と、 前記マイクロプロセッサシステムのイニシャルリセット
時に発生するセット信号を入力した場合に第1の安定状
態となり、外部からリセット信号を入力した場合に第2
の安定状態となり、この2種類の安定状態に応じた状態
信号を出力する状態保持回路と、 前記アドレスデコード信号及び前記状態信号に応じて前
記選択信号を出力する記憶回路制御部とを有することを
特徴とする記憶回路制御装置。
[Scope of Claims] A storage circuit control device that is provided in a microprocessor system that uses ROM and RAM as storage circuits and outputs a selection signal that selects designated memory areas of the ROM and RAM that are arranged at different addresses. , an address decoder section that decodes an address signal and outputs an address decode signal; and a first stable state when a set signal generated at the time of initial reset of the microprocessor system is input, and a reset signal is input from the outside. second in case
and a storage circuit control section that outputs the selection signal in response to the address decode signal and the state signal. Characteristic memory circuit control device.
JP63168974A 1988-07-08 1988-07-08 Memory circuit controller Pending JPH0219933A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP63168974A JPH0219933A (en) 1988-07-08 1988-07-08 Memory circuit controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP63168974A JPH0219933A (en) 1988-07-08 1988-07-08 Memory circuit controller

Publications (1)

Publication Number Publication Date
JPH0219933A true JPH0219933A (en) 1990-01-23

Family

ID=15878018

Family Applications (1)

Application Number Title Priority Date Filing Date
JP63168974A Pending JPH0219933A (en) 1988-07-08 1988-07-08 Memory circuit controller

Country Status (1)

Country Link
JP (1) JPH0219933A (en)

Similar Documents

Publication Publication Date Title
JPH0827730B2 (en) Single-chip microcomputer and test method thereof
JPS6222199B2 (en)
JPH0219933A (en) Memory circuit controller
JPH10161899A (en) Sequence control circuit
KR910008570A (en) Memory system with self test function
JPH048838B2 (en)
JPH03142800A (en) Electrically erasable and writable programmable read only memory
JPS6161413B2 (en)
JPS5991558A (en) Program test method
JP2642975B2 (en) One-chip microcomputer with built-in EEPROM
JPH05165734A (en) Fixed failure diagnostic device for main memory
JP2600376B2 (en) Memory controller
JP2641917B2 (en) Memory element
JPS6220960Y2 (en)
JPS6365547A (en) Integrated circuit with built-in memory
JPS586568A (en) Memory device
JPH0426735B2 (en)
JPS58213349A (en) Information processor
JPH03145000A (en) Eprom built-in microcomputer
JP2581057B2 (en) Evaluation microcomputer
JP3149575B2 (en) In-circuit emulator
JPH04372025A (en) Storage device with access bit
JPH04312135A (en) Trace circuit
JPS59109950A (en) Error processing system of control storage device
JPS61262945A (en) Storage device