JPH039427A - Microprogram controller - Google Patents

Microprogram controller

Info

Publication number
JPH039427A
JPH039427A JP14434089A JP14434089A JPH039427A JP H039427 A JPH039427 A JP H039427A JP 14434089 A JP14434089 A JP 14434089A JP 14434089 A JP14434089 A JP 14434089A JP H039427 A JPH039427 A JP H039427A
Authority
JP
Japan
Prior art keywords
address
control
resident
overlay
area
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
JP14434089A
Other languages
Japanese (ja)
Inventor
Hidetoshi Kondo
秀俊 近藤
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 Computertechno Ltd
Original Assignee
NEC Computertechno Ltd
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 Computertechno Ltd filed Critical NEC Computertechno Ltd
Priority to JP14434089A priority Critical patent/JPH039427A/en
Publication of JPH039427A publication Critical patent/JPH039427A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To attain optimum overlay control by providing the controller with a physical address conversion circuit converting a logical address into a physical address, then comparing a non-resident microprogram(muP) logical address loaded to an overlay area with the logical address of an address register used for the current access. CONSTITUTION:The address register 1 holds a physical address capable of accessing a logical area including a control storage device 3 and an external memory 8 and a physical address converting circuit 2 converts the logical address into a physical address. At the time of confirming a non-resident muP is not stored, a comparator 6 executes control for storing the logical address included in a resident area 15 in the address register 1 and a load control means 7 controlled by an overlay control muP read out from the resident area 15 in accordance with the logical address loads the relevant non-resident muP from the external memory 8 to the overlay area 10. Thus, the address including the control storage device 3 and the external memory 8 can be used to attain control.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明はマイクロプログラム制御装置に関し、特にオー
バーレイ制御方式を採用したマイクロプログラム制御装
置に関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a microprogram control device, and particularly to a microprogram control device employing an overlay control method.

〔従来の技術〕[Conventional technology]

制御記憶装置の記憶領域を、常駐マイクロプロダラム(
以下、マイクロプログラムをμPと称す)を格納する常
駐領域と非常駐μPを格納するオーバーレイ領域とに分
け、オーバーレイ領域には、非常駐μPを格納した外部
メモリより適宜にオーバーレイモジュールである非常駐
μPを取り出してロードすることにより、高価な制御記
憶装置の有効利用とトータルなμP量の増大を図ったオ
ーバーレイ制御方式のμP制御装置が提案されている。
The storage area of the control storage device is transferred to the resident microprogram (
The overlay area is divided into a resident area that stores a microprogram (hereinafter referred to as μP) and an overlay area that stores non-resident μPs. An overlay control type μP control device has been proposed which aims to effectively utilize an expensive control storage device and increase the total amount of μP by loading.

従来、この種のμPi!II御装置においては、制御記
憶装置のワード量分のみアクセス可能なビット数のアド
レス(物理アドレス)を保持するアドレスレジスタを使
用し、その物理アドレスで制御記憶装置のアクセスを行
っていた。そして、オーバーレイ制御は次のように実行
されていた。先ず、制御記憶装置の常駐領域に記憶され
たオーバーレイ制御を行うサブルーチンの先頭アドレス
即ちオーバーレイ制?IIIμPの先頭アドレスをその
オーバーレイ制御μPの前ステップで示し、同時に外部
メモリからロードされるμPを保持するオーバーレイ領
域の先頭アドレスをスタックにブツシュする。そして、
前記オーバーレイ制御μPの実行によって外部メモリか
ら前記オーバーレイ領域にμPをロードした後、前記オ
ーバーレイ制御μPの最終ステップで前記ブツシュした
先頭アドレスをポツプし、オーバーレイ領域のそのポン
プした先頭アドレスからμPの実行が為されるように制
御するものである。以上の動作を可能ならしめる為には
、ファームウェアコーディングにおいてオーバーレイ制
御を意識したコーディングが必要となる。
Conventionally, this type of μPi! In the II control device, an address register that holds an address (physical address) with a number of bits that can be accessed by the number of words in the control storage device is used, and the control storage device is accessed using the physical address. And overlay control was executed as follows. First, the start address of the subroutine that performs overlay control stored in the resident area of the control storage device, that is, the overlay system? The starting address of the III μP is indicated in the previous step of its overlay control μP, and at the same time, the starting address of the overlay area holding the μP loaded from the external memory is pushed onto the stack. and,
After loading μP from external memory into the overlay area by executing the overlay control μP, the pumped start address is popped in the final step of the overlay control μP, and μP execution starts from the pumped start address in the overlay area. It is controlled so that it is carried out. In order to enable the above operations, firmware coding must be done with overlay control in mind.

〔発明が解決しようとする課題] 上述した従来のオーバーレイ制御方式によるμP制御装
置は、制御記憶装置のワード数分のみをアクセスし得る
ビット数の物理アドレスをアドレスレジスタに保持して
制御記憶装置の常駐領域及びオーバーレイ2M域のアク
セスを行う為、アドレスレジスタに保持されたアドレス
だけでは、オーバーレイ制御により外部メモリからロー
ドされるμPが特定できない。つまり、制御記憶装置と
外部メモリとを包含するアドレス体系を持たずアドレス
レジスタには常に制御記憶装置に対する物理アドレスが
保持されるので、外部メモリからμPをオーバーレイ領
域にロードしてそれを実行している最中においてもアド
レスレジスタは制御記憶装置のオーバーレイ領域内を指
示するアドレスになっており、オーバーレイ対象μPの
内の何れのμPが実行されているのか、アドレスレジス
タの保持するアドレスだけでは分からない。この為、ア
ドレスレジスタに保持されたアドレスが予め定めたアド
レスと一致した時点で動作を停止してデバッグ処理等の
制御を行うことが有効に行えなくなる。同様に、成る種
の情報処理装置においてはμPの正当性をチエツクする
チエツクプログラムにより実際に実行されたμP語を測
る機能(ファームウェア網羅率の測定機能)を有するが
、そのような機能も不完全とする。また、ファームウェ
アコーディング作業においてオーバーレイ制御を強く意
識したコーディングが必要であり、これに伴ってファー
ムウェアステップ数が増大しオーバーレイ制御の性能低
下、延いてはμP制御装置の性能低下を招来していた。
[Problems to be Solved by the Invention] The μP control device using the conventional overlay control method described above stores in an address register a physical address with a number of bits that can access only the number of words in the control storage device. Since the resident area and overlay 2M area are accessed, it is not possible to specify the μP to be loaded from external memory under overlay control using only the address held in the address register. In other words, since there is no address system that includes the control storage device and external memory, and the physical address for the control storage device is always held in the address register, it is possible to load μP from external memory into the overlay area and execute it. The address register is an address that points to the overlay area of the control storage even when the overlay is in progress, and it is not possible to tell which μP among the overlay target μPs is being executed just from the address held in the address register. . For this reason, it is no longer possible to effectively control debug processing or the like by stopping the operation when the address held in the address register matches a predetermined address. Similarly, certain types of information processing devices have a function to measure the μP words actually executed by the check program that checks the validity of the μP (firmware coverage measurement function), but such a function is also incomplete. shall be. Further, in the firmware coding work, it is necessary to code with strong awareness of overlay control, and this increases the number of firmware steps, leading to a decrease in the performance of overlay control and, by extension, a decrease in the performance of the μP control device.

本発明の目的は、このような従来の問題点を解決する為
に制御記憶装置および外部メモリを包含したアドレスを
使用して制御を行うことができるオーバーレイ制御方式
によるμP制御装置を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a μP control device using an overlay control method that can perform control using addresses that include a control storage device and an external memory in order to solve such conventional problems. be.

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

本発明は上記の目的を達成するために、常駐μPを格納
する常駐領域および非常駐μPを格納するオーバーレイ
領域を有する制御記憶装置と、前記非常駐μPを格納し
た外部メモリとを備えたオーバーレイ方式のμP制御装
置において、前記制御記憶装置および前記外部メモリを
包含する論理領域をアクセスし得るビット数の論理アド
レスを保持するアドレスレジスタと、このアドレスレジ
スタに保持された論理アドレスを前記制御記憶装置に対
するアドレスである物理アドレスに変換する物理アドレ
ス変換回路と、前記オーバーレイ領域にロードされてい
る非常駐μPの論理アドレスを保持する論理アドレスレ
ジスタと、この論理アドレスレジスタの出力と前記アド
レスレジスタの出力との比較によって前記オーバーレイ
領域に実行すべき非常駐μPが保持されていないことが
判明することにより、前記常駐領域中のオーバーレイ制
御μPの論理アドレスを前記アドレスレジスタに保持す
る制御を行う比較器と、この比較器の制御によって前記
アドレスレジスタに保持された論理アドレスに従って前
記常駐領域から読み出された前記オーバーレイ制御μP
にて制御され、該当する非常駐μPを前記外部メモリか
ら前記オーバーレイ領域にロードするロード制御手段と
を備えている。
In order to achieve the above object, the present invention provides an overlay type μP comprising a control storage device having a resident area for storing resident μPs and an overlay area for storing non-resident μPs, and an external memory storing the non-resident μPs. The control device includes an address register that holds a logical address with a number of bits that can access a logical area including the control storage device and the external memory, and the logical address held in this address register as an address for the control storage device. A physical address conversion circuit that converts to a certain physical address, a logical address register that holds the logical address of the non-resident μP loaded in the overlay area, and a comparison between the output of this logical address register and the output of the address register. A comparator that performs control to hold the logical address of the overlay control μP in the resident area in the address register when it is determined that the non-resident μP to be executed is not held in the overlay area, and control of this comparator. The overlay control μP read from the resident area according to the logical address held in the address register by
and load control means for loading the corresponding non-resident μP from the external memory into the overlay area.

〔作用〕[Effect]

本発明のμP制御装置においては、アドレスレジスタが
制御記憶装置および外部メモリを包含する論理領域をア
クセスし得るピット数の論理アドレスを保持し、物理ア
ドレス変換回路がそのアドレスレジスタに保持された論
理アドレスを前記制御記憶装置に対するアドレスである
物理アドレスに変換する。他方、比較器が、前記オーバ
ーレイ領域にロードされている非常駐μPの論理アドレ
スを保持する論理アドレスレジスタの出力と前記アトロ
スレジスタの出力との比較によって前記オーバーレイ領
域に次に実行すべき非常駐μPが保持されていないこと
を確認すると、前記常駐領域中のオーバーレイ制御μP
の論理アドレスを前記アドレスレジスタに保持する制御
を行い、このアドレスレジスタに保持された論理アドレ
スに従って前記常駐領域から読み出された前記オーバー
レイ制御μPにて制御されるロード制御手段が、該当す
る非常駐μPを外部メモリから前記オーバーレイ領域に
ロードする。
In the μP control device of the present invention, the address register holds logical addresses of the number of pits that can access the logical area including the control storage device and external memory, and the physical address conversion circuit stores the logical addresses held in the address register. is converted into a physical address that is an address for the control storage device. On the other hand, a comparator holds the non-resident μP to be executed next in the overlay area by comparing the output of the logical address register that holds the logical address of the non-resident μP loaded in the overlay area with the output of the atros register. If it is confirmed that the overlay control μP in the resident area is not
A load control means controlled by the overlay control μP that is read out from the resident area according to the logical address held in the address register stores the logical address of the non-resident μP in the corresponding non-resident μP. is loaded from external memory into the overlay area.

〔実施例〕〔Example〕

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

第1図は本発明のμP制御装置の一実施例の要部ブロッ
ク図である。この実施例のμP制御装置は、アドレスレ
ジスタ1と、物理アドレス変換回路2と、制御記憶装置
3と、読み出しレジスタ4と、論理アドレスレジスタ5
と、比較器6と、ロード制御回路7と、外部メモリ8と
、セレクタ9およびセレクタ14とを有している。各々
、次のような構成乃至機能を有する。
FIG. 1 is a block diagram of essential parts of an embodiment of the μP control device of the present invention. The μP control device of this embodiment includes an address register 1, a physical address conversion circuit 2, a control storage device 3, a read register 4, and a logical address register 5.
, a comparator 6 , a load control circuit 7 , an external memory 8 , a selector 9 and a selector 14 . Each has the following configurations and functions.

O制御記憶装置3 常駐領域15およびオーバーレイ領域10で構成される
。たとえばその容量は8KWであり、第3図に示すよう
に0000(ゎ〜IFFF+。の物理空間を有し、その
内のIFOO(Ml−IFFF (M)がオーバーレイ
領域10に割り当てられ、残りが常駐領域15に割り当
てられている。常駐領域15にはオーバーレイ制御μP
やその他の常駐μPが格納されている。また、オーバー
レイ領域10には後述するようにして外部メモリ8から
ロードされた非常駐μPが格納される。本実施例ではオ
ーバーレイ単位はハードウェア上最大256Wであり、
オーバーレイ領域10は複数のオーバーレイ領域に分割
して使用可能である。このため、オーバーレイ単位も2
56W以内ならば、何ワード単位とするかは任意である
O-control storage device 3 consists of a resident area 15 and an overlay area 10. For example, its capacity is 8KW, and as shown in Fig. 3, it has a physical space of 0000 (ゎ ~ IFFF +. It is allocated to area 15. Overlay control μP is allocated to resident area 15.
and other resident μPs are stored. Additionally, a non-resident μP loaded from the external memory 8 as described later is stored in the overlay area 10. In this example, the overlay unit is a maximum of 256W in hardware,
The overlay area 10 can be divided into a plurality of overlay areas. Therefore, the overlay unit is also 2.
As long as it is within 56W, the number of words can be determined arbitrarily.

O外部メモリ8 非常駐μPを格納する。例えばその容量は制御記憶装置
3と同じ8KWである。
O External memory 8 Stores non-resident μP. For example, its capacity is 8KW, which is the same as the control storage device 3.

Oアドレスレジスタ1 制御記憶装置3の容ff1(8KW)および外部メモリ
8の容量(8KW)を包含する第3図に示す論理空間(
16KW)をアクセスし得るビット数(14ビツト)の
論理アドレスを格納する。ここで、第3図を参照して物
理空間と論理空間との関係について説明すると、論理ア
ドレスの示す論理空間はoooo□、〜3 F F F
 on の16KWであり、そのうちo o o o 
flll 〜I F F F 、、、 の8KWが物理
空間と一致し、2000 on 〜3FFF (Ill
 の8KWが外部メモリ8に割り当てられている。すな
わち、アドレスレジスタ1に保持された14ビツト構成
の論理アドレスの最上位ビット目(0ビツト目)の値で
制御記憶装置3と外部メモリ8の何れかを選択し、1〜
5ビツト目の出力で前記容量(8KW)を256W単位
に32分割し、6〜13ピント目の出力でその256W
内をアクセスする。後述するオーバーレイ制御によって
2000+。〜3 F F F 、、、の論理空間にあ
る非常駐μPが制御記憶装置3のオーバーレイ領域10
に適宜ロードされるものである。
O address register 1 The logical space shown in FIG.
A logical address of the number of bits (14 bits) that can be accessed (16KW) is stored. Here, to explain the relationship between physical space and logical space with reference to FIG. 3, the logical space indicated by the logical address is oooo□, ~3 F F F
on 16KW, of which o o o o
8KW of fllll ~ I F F F ,,, coincides with the physical space, and 2000 on ~ 3FFF (Ill
8KW is allocated to the external memory 8. That is, either the control storage device 3 or the external memory 8 is selected based on the value of the most significant bit (0th bit) of the 14-bit logical address held in the address register 1, and
The 5th bit output divides the capacity (8KW) into 32 units of 256W, and the 6th to 13th pin outputs divide the 256W into 256W units.
Access inside. 2000+ by overlay control described later. The non-resident μP in the logical space of ~3 F F F ,... is in the overlay area 10 of the control storage device
It is loaded as appropriate.

O物理アドレス変換回路2 アドレスレジスタ1に保持された論理アドレスを入力し
、これを制御記憶装置3に対するアクセスに使用する物
理アドレスに変換する回路であり、その−例を第2図に
示す。同図の物理アドレス変換回路2は、アドレスレジ
スタ1の最上位ビット(0ビツト目)の反転値と1〜5
ビツト目の値の反転値とのそれぞれのナンド条件をとる
ナントゲート21〜25と、ナントゲート21〜25の
出力とアドレスレジスタ1の6〜13ビツト目の出力と
を合成して13ビツト構成の物理アドレスを生成する合
成回路26とで構成されている。アドレスレジスタlの
最上位ビットである0ビツト目の値が「1」であるとき
即ち2000+ゎ〜3FF F (Ml に位置する外
部メモリ8をアクセスする場合には、第3図の論理アド
レスと物理アドレスとの対応図に示すように制御■記憶
装置3のオーバーレイ領域10をアクセスする物理アド
レスに変換され、最上位ビットがr□、の場合には常駐
領域15をアクセスする物理アドレスに変換される。
O Physical address conversion circuit 2 This is a circuit that inputs the logical address held in the address register 1 and converts it into a physical address used for accessing the control storage device 3. An example thereof is shown in FIG. The physical address conversion circuit 2 in the figure converts the inverted value of the most significant bit (0th bit) of the address register 1 and the
The Nant gates 21 to 25 each take the NAND condition with the inverted value of the value of the bit, and the outputs of the Nant gates 21 to 25 and the output of the 6th to 13th bits of the address register 1 are combined to form a 13-bit configuration. It is composed of a synthesis circuit 26 that generates physical addresses. When the value of the 0th bit, which is the most significant bit of address register l, is "1", that is, 2000+ゎ~3FFF (When accessing the external memory 8 located in Ml, the logical address and physical As shown in the correspondence diagram with addresses, control is converted into a physical address that accesses the overlay area 10 of the storage device 3, and if the most significant bit is r□, it is converted into a physical address that accesses the resident area 15. .

O論理アドレスレジスタ5 2000 ++n 〜3 F F F (Ml の論理
領域をアクセスする論理アドレスのみ保持するよう働く
。換言すれば、オーバーレイ制御時域10にロードされ
る、または保持されているμPの論理アドレスを保持す
るレジスタである。
O logical address register 5 2000 ++n ~ 3 F F F (Works to hold only the logical address that accesses the logical area of Ml. In other words, the logic of μP loaded or held in the overlay control time area 10 This is a register that holds addresses.

O比較器6 アドレスレジスタ1の最上位ビットが「1」で・ある場
合に、アドレスレジスタ1の上位6ビノト(0〜5ピン
ト目のビット)と、論理アドレスレジスタ5の上位6ビ
ノトとを比較し、論理アドレスレジスタ5に保持された
論理アドレスの非常駐IPが、オーバーレイ領域10に
既に保持されているか否かを検出する。もし、両者が一
致していなければ、該当する非常駐μPがオーバーレイ
領域10に保持されていないので、常駐領域15に格納
されたオーバーレイ制御μPの先頭番地の割り出し信号
11を発生する。オーバーレイ制御μPの先頭番地は固
定番地であり、割り出し信号11に応答してセレクタ9
はその固定番地をセレクトし、アドレスレジスタlにセ
ントするように構成されている。
O comparator 6 When the most significant bit of address register 1 is "1", compares the upper 6 bits of address register 1 (0th to 5th pin bits) with the upper 6 bits of logical address register 5. Then, it is detected whether the non-resident IP of the logical address held in the logical address register 5 is already held in the overlay area 10. If they do not match, the corresponding non-resident μP is not held in the overlay area 10, and therefore an indexing signal 11 for the first address of the overlay control μP stored in the resident area 15 is generated. The starting address of the overlay control μP is a fixed address, and in response to the index signal 11, the selector 9
is arranged to select that fixed address and write it to address register l.

○ロード制御回路7 比較器6から出力される割り出し信号11によって起動
され、オーバーレイ制御時に、外部メモリ8からアドレ
スレジスタ1に保持された論理アドレスが指し示す非常
駐μPを256Wのオーバーレイ単位でオーバーレイ領
域10にロードする制御を行う回路である。このロード
制御回路7は、制御記憶装置3から読み出され読み出し
レジスタ4を介して供給されるオーバーレイ制御μPに
より制御される。なお、ロード制御回路7から制御記憶
装置3へはライト信号12. ライトデーク13が出力
され、これらによって非常駐μPのロードが行われる。
○Load control circuit 7 is activated by the index signal 11 output from the comparator 6, and during overlay control, loads the non-resident μP pointed to by the logical address held in the address register 1 from the external memory 8 into the overlay area 10 in overlay units of 256W. This is a circuit that controls loading. This load control circuit 7 is controlled by an overlay control μP read from the control storage 3 and supplied via the read register 4. Note that a write signal 12. is sent from the load control circuit 7 to the control storage device 3. The write data 13 is output, and the non-resident μP is loaded by these data.

Oセレクタ9 起動アドレス、論理アドレスレジスタ5の出力および図
示しないオーバーレイ制御μPの先頭番地をセレクトし
てアドレスレジスタ1に入力する手段である。
O selector 9 This is means for selecting the starting address, the output of the logical address register 5, and the starting address of an overlay control μP (not shown) and inputting them to the address register 1.

Oセレクタ14 割り出し信号11をセレクト制御信号としてアドレスレ
ジスタ1の出力および論理アドレスレジスタ5の出力を
セレクトし′ζ論理アドレスレジスタ5に入力し、論理
アドレスレジスタ5が、オーバーレイ領域10に格納さ
れている非常駐μPの論理アドレスを保持するように機
能する。
O selector 14 selects the output of the address register 1 and the output of the logical address register 5 using the index signal 11 as a select control signal and inputs it to the 'ζ logical address register 5, and the logical address register 5 is stored in the overlay area 10. It functions to hold the logical address of non-resident μP.

次に、このように構成された本実施例のμP制御装置の
動作を説明する。
Next, the operation of the μP control device of this embodiment configured as described above will be explained.

アドレスレジスタ1にμPの論理アドレスがセットされ
ると、物理アドレス変換回路2がそれを物理アドレスに
変換し、この物理アドレスで制御記憶装置3がアクセス
される。制御記憶装置3から読み出されたμPは読み出
しレジスタ4にセントされ、その解読等の公知の動作が
行われる。
When the logical address of μP is set in the address register 1, the physical address conversion circuit 2 converts it into a physical address, and the control storage device 3 is accessed using this physical address. The μP read from the control storage device 3 is sent to the read register 4, and known operations such as decoding are performed thereon.

上記の動作と並行して、オーバーレイ領域10に格納さ
れている非常駐μPの論理アドレスを保持する論理アド
レスレジスタ5の出力とアドレスレジスタ1の出力とが
比較器6に入力される。このとき、アドレスレジスタ1
から出力された最上位ビットが「1」である場合には2
000.□〜3 F F F 、、、の範囲のアクセス
となるが、このとき両者の値が一致していれば該当する
非常駐μPは既にオーバーレイ領域10に格納されてお
り、有効な読み出しが行えたので、比較器6の出力であ
る割り出し信号11は有効とならず、オーバーレイ制御
μPの固定番地の割り出しは行われない。
In parallel with the above operation, the output of the logical address register 5 holding the logical address of the non-resident μP stored in the overlay area 10 and the output of the address register 1 are input to the comparator 6. At this time, address register 1
2 if the most significant bit output from
000. The access will be in the range of □ to 3 F F F , . . . If the two values match, the corresponding non-resident μP has already been stored in the overlay area 10 and a valid readout has been performed. , the index signal 11 which is the output of the comparator 6 is not valid, and the fixed address of the overlay control μP is not determined.

従って、物理アドレス変換回路2から出力された物理ア
ドレスによって制御記憶装置3のオーバーレイ領域10
から読み出されていたμPが実行されることになる。
Therefore, the overlay area 10 of the control storage device 3 is
The μP that had been read from is executed.

他方、比較器6で不一致が検出された場合、比較器6の
割り出し信号11が有効化され、ロード制御回路7が起
動されると共に、オーバーレイ制御μPの先頭番地がセ
レクタ9を介してアドレスレジスタ1にセットされる。
On the other hand, if a mismatch is detected in the comparator 6, the index signal 11 of the comparator 6 is enabled, the load control circuit 7 is activated, and the first address of the overlay control μP is transferred to the address register 1 via the selector 9. is set to

なお、アドレスレジスタ1に元セットされていた論理ア
ドレスはセレクタ14を介して論理アドレスレジスタ5
に移送されると共に、ロード制御回路7に通知される。
Note that the logical address originally set in the address register 1 is transferred to the logical address register 5 via the selector 14.
At the same time, the load control circuit 7 is notified.

続い°C、アドレスレジスタ1にセントされたオーバー
レイ制御μPの先頭アドレスが物理アドレス変換回路2
により物理アドレスに変換されて制御記憶装置3がアク
セスされ、読み出しレジスタ4にオーバーレイ制御μP
がセットされる。読み出しレジスタ4にセットされたオ
ーバーレイ制御μPによってロード制御回路7が制御さ
れ、ロード制御回路7は、ロード制御を開始する。すな
わち、外部メモリ8をアクセスし、前記通知された論理
アドレスが指し示す外部メモリ8中の非常駐μPをオー
バーレイ単位(256W)で読み出し、ライト信号12
.ライトデータ信号13によって制御記憶装置3のオー
バーレイ領域10にロードする。
Next, at °C, the first address of the overlay control μP written to address register 1 is transferred to physical address conversion circuit 2.
The control storage device 3 is accessed by converting it into a physical address, and the overlay control μP is stored in the read register 4.
is set. The load control circuit 7 is controlled by the overlay control μP set in the read register 4, and the load control circuit 7 starts load control. That is, the external memory 8 is accessed, the non-resident μP in the external memory 8 pointed to by the notified logical address is read out in overlay units (256W), and the write signal 12
.. The overlay area 10 of the control storage device 3 is loaded by the write data signal 13 .

上記のロードが完了すると、論理アトレスレジスタ5に
セントされていた論理アドレスがセレクタ9を介してア
ドレスレジスタ1にセットされ、物理アドレス変換回路
2がその論理アドレスを物理アドレスに変換して制御記
憶装置3をアクセスし、上記ロードされた非常駐μPを
、読み出しレジスタ4に読み出す。このとき、論理アド
レスレジスタ5はアドレスレジスタ1にセットされた論
理アドレスをホールドした状態にあり、従って比較器6
におけるアドレスレジスタ1の出力と論理アドレスレジ
スタ5の出力との比較結果は一致を示す。即ちオーバー
レイ領域10にはアドレスレジスタ1の保持する論理ア
ドレスにかかる非常駐μPが格納されていたことが確認
されるので、読み出しレジスタ4に前記読み出されたμ
Pは無効化されることなく有効に実行されることになる
When the above loading is completed, the logical address that has been written to the logical address register 5 is set to the address register 1 via the selector 9, and the physical address conversion circuit 2 converts the logical address into a physical address and stores it in the control memory. The device 3 is accessed and the loaded non-resident μP is read into the read register 4. At this time, the logical address register 5 is holding the logical address set in the address register 1, and therefore the comparator 6
The comparison result between the output of the address register 1 and the output of the logical address register 5 at is a match. That is, it is confirmed that the overlay area 10 stores the non-resident μP corresponding to the logical address held by the address register 1, so the read register 4 stores the read μP.
P will be validly executed without being invalidated.

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

以上説明したように、本発明のμP制御装置においては
、論理アドレスを物理アドレスに変換する物理アドレス
変換回路を設けたことにより、制御記憶装置および外部
メモリを包含した論理アドレスをアドレスレジスタに保
持しつつオーバーレイ制御等の制御を行うことが可能と
なる。この結果、アドレスレジスタに保持されたアドレ
スのみで、外部メモリに記憶された複数のオーバーレイ
モジュールにかかる非常駐μPを含む全てのμPを特定
することができ、デバッグ処理やファームウェア網羅率
測定等を有効に実施することが可能となる。また、ファ
ームウェアコーディングにおいてもオーバーレイを余り
意識せずにコーディングでき、オーバーレイ制御中のフ
ァームウェアステップ故の削減、延いてはμP制御装置
の性能向上が可能となる。さらに、制御記憶装置内のオ
ーバーレイ領域にロードされている非常駐μPの論理ア
ドレスと、今回のアクセスにかかるアドレスレジスタの
論理アドレスとを比較することによりオーバーレイ領域
に実行ずべき非常駐μPが保持されているか否かを判定
しており、既にオーバーレイ領域に目的とする非常駐μ
Pがロードされている場合にはそのまま実行を可能とし
たので無駄なロード動作がなく、オーバーレイ単位も可
変でき、無駄のない最適なオーバーレイ制御が実現でき
る。
As explained above, in the μP control device of the present invention, by providing a physical address conversion circuit that converts a logical address into a physical address, the logical address including the control storage device and external memory can be held in the address register. This makes it possible to perform controls such as overlay control. As a result, it is possible to identify all μPs, including non-resident μPs related to multiple overlay modules stored in external memory, using only the addresses held in the address register, making debugging processing and firmware coverage measurements effective. It becomes possible to implement it. In addition, firmware coding can be done without being too conscious of overlays, reducing firmware steps during overlay control and improving the performance of the μP control device. Furthermore, by comparing the logical address of the non-resident μP loaded in the overlay area in the control storage device with the logical address of the address register related to the current access, it is determined whether the non-resident μP that should be executed is held in the overlay area. The target non-resident μ is already in the overlay area.
If P is loaded, it can be executed as is, so there is no wasted loading operation, and the overlay unit can also be varied, making it possible to realize efficient and optimal overlay control.

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

第1図は本発明の一実施例の要部ブロック図、第2図は
物理アドレス変換回路の構成例を示す図および、 第3図は論理アドレスと物理アドレスとの対応図である
。 図において、 1・・・アドレスレジスタ 2・・・物理アドレス変換回路 3・・・制御記憶装置 4・・・読み出しレジスタ 5・・・論理アドレスレジスタ 6・・・比較器 7・・・ロード制御回路 8・・・外部メモリ 9.14・・・セレクタ 10・・・オーバーレイ領域 11・・・割り出し信号 12・・・ライト信号 13・・・ライトデータ信号 本全日月の一実殆ψjの要部ブロック図第 1 図 15・・・常駐領域
FIG. 1 is a block diagram of a main part of an embodiment of the present invention, FIG. 2 is a diagram showing an example of the configuration of a physical address conversion circuit, and FIG. 3 is a diagram showing the correspondence between logical addresses and physical addresses. In the figure, 1... Address register 2... Physical address conversion circuit 3... Control storage device 4... Read register 5... Logical address register 6... Comparator 7... Load control circuit 8...External memory 9.14...Selector 10...Overlay area 11...Identification signal 12...Write signal 13...Write data signal Main block of main part of ψj of all dates and months Figure 1 Figure 15...Resident area

Claims (1)

【特許請求の範囲】 常駐マイクロプログラムを格納する常駐領域および非常
駐マイクロプログラムを格納するオーバーレイ領域を有
する制御記憶装置と、前記非常駐マイクロプログラムを
格納した外部メモリとを備えたオーバーレイ方式のマイ
クロプログラム制御装置において、 前記制御記憶装置および前記外部メモリを包含する論理
領域をアクセスし得るビット数の論理アドレスを保持す
るアドレスレジスタと、 該アドレスレジスタに保持された論理アドレスを前記制
御記憶装置に対するアドレスである物理アドレスに変換
する物理アドレス変換回路と、前記オーバーレイ領域に
ロードされている非常駐マイクロプログラムの論理アド
レスを保持する論理アドレスレジスタと、 該論理アドレスレジスタの出力と前記アドレスレジスタ
の出力との比較によって前記オーバーレイ領域に実行す
べき非常駐マイクロプログラムが保持されていないこと
が判明することにより、前記常駐領域中のオーバーレイ
制御マイクロプログラムの論理アドレスを前記アドレス
レジスタに保持する制御を行う比較器と、 該比較器の制御によって前記アドレスレジスタに保持さ
れた論理アドレスに従って前記常駐領域から読み出され
た前記オーバーレイ制御マイクロプログラムにて制御さ
れ、該当する非常駐マイクロプログラムを前記外部メモ
リから前記オーバーレイ領域にロードするロード制御手
段とを具備したことを特徴とするマイクロプログラム制
御装置。
[Scope of Claims] An overlay type microprogram control device comprising a control storage device having a resident area for storing a resident microprogram and an overlay area for storing a non-resident microprogram, and an external memory storing the non-resident microprogram. an address register that holds a logical address with a number of bits that can access a logical area that includes the control storage device and the external memory; and a physical address that is an address for the control storage device, and a physical address conversion circuit that converts the address into an address; a logical address register that holds the logical address of the non-resident microprogram loaded in the overlay area; a comparator that performs control to hold a logical address of an overlay control microprogram in the resident area in the address register when it is determined that a non-resident microprogram to be executed is not held in the area; load control means that is controlled by the overlay control microprogram read from the resident area according to a logical address held in the address register and loads a corresponding non-resident microprogram from the external memory into the overlay area; A microprogram control device characterized by comprising:
JP14434089A 1989-06-07 1989-06-07 Microprogram controller Pending JPH039427A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP14434089A JPH039427A (en) 1989-06-07 1989-06-07 Microprogram controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP14434089A JPH039427A (en) 1989-06-07 1989-06-07 Microprogram controller

Publications (1)

Publication Number Publication Date
JPH039427A true JPH039427A (en) 1991-01-17

Family

ID=15359831

Family Applications (1)

Application Number Title Priority Date Filing Date
JP14434089A Pending JPH039427A (en) 1989-06-07 1989-06-07 Microprogram controller

Country Status (1)

Country Link
JP (1) JPH039427A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07219765A (en) * 1994-01-28 1995-08-18 Kofu Nippon Denki Kk Microprogram controller
JP2008050014A (en) * 2006-08-22 2008-03-06 Fuji Pr:Kk Bag body
JP2011210278A (en) * 2005-09-14 2011-10-20 Sandisk Corp Hardware driver integrity check of memory card controller firmware

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH07219765A (en) * 1994-01-28 1995-08-18 Kofu Nippon Denki Kk Microprogram controller
JP2011210278A (en) * 2005-09-14 2011-10-20 Sandisk Corp Hardware driver integrity check of memory card controller firmware
JP2008050014A (en) * 2006-08-22 2008-03-06 Fuji Pr:Kk Bag body

Similar Documents

Publication Publication Date Title
WO1985003150A1 (en) Data processing system including memory hierarchy
US3992702A (en) Code conversion arrangements for addresses to faulty memory locations
WO1995022803A2 (en) Circuit and method for detecting segment limit errors for code fetches
JPH039427A (en) Microprogram controller
US4984150A (en) Virtual memory control management system
JP2578182B2 (en) Data processing device and data processing system
JPH01214948A (en) Access controller for random access memory
JPS58213349A (en) Information processor
JPS6148049A (en) Check device of mamory-access
JPS6284500A (en) Microcomputer
JPS6073763A (en) Detecting system of memory address error
JPS63307543A (en) Debug device
JPS6398052A (en) Memory device
JPS61148559A (en) Program loading control system
JPS623353A (en) Address space expanding device
JPS59153247A (en) Debugging device
JPS60132254A (en) Data processor
JPS62221755A (en) Detecting circuit for memory fault
JPS62290951A (en) Memory check device
JPH06250937A (en) Method for memory control, memory control circuit with ecc function and information processor
JPS6212542B2 (en)
JPH01217531A (en) Testing method for cache memory system
JPS59203289A (en) Address conversion buffer controlling system
JPS6072036A (en) Error detecting system of control storage device
JPH04209046A (en) Memory access circuit