[go: up one dir, main page]

JPH09160768A - Program execution device - Google Patents

Program execution device

Info

Publication number
JPH09160768A
JPH09160768A JP7316967A JP31696795A JPH09160768A JP H09160768 A JPH09160768 A JP H09160768A JP 7316967 A JP7316967 A JP 7316967A JP 31696795 A JP31696795 A JP 31696795A JP H09160768 A JPH09160768 A JP H09160768A
Authority
JP
Japan
Prior art keywords
address
signal
instruction
stored
address signal
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
JP7316967A
Other languages
Japanese (ja)
Inventor
Taiichi Yaoi
泰一 矢追
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.)
Sharp Corp
Original Assignee
Sharp 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 Sharp Corp filed Critical Sharp Corp
Priority to JP7316967A priority Critical patent/JPH09160768A/en
Publication of JPH09160768A publication Critical patent/JPH09160768A/en
Pending legal-status Critical Current

Links

Landscapes

  • Stored Programmes (AREA)
  • Debugging And Monitoring (AREA)

Abstract

PROBLEM TO BE SOLVED: To replace the instruction to be carried out by an instruction execution means with another instruction with no interruption given from the instruction execution means during execution of a program. SOLUTION: A CPU 1 outputs an address signal D1 for execution of an instruction included in a ROM 2. When a judging means 8 judges that the address designated by the signal D1 is coincident with the address of a specific instruction to be replaced with another in the ROM 2, an address signal D3 showing the address of a RAM 3 is given to the RAM 3 from an address conversion means 16. At the same time, a RAM selection signal is given from an enabling signal generation means 9. Therefore, an instruction is outputted from the RAM 3 and executed by the CPU 1 in place of the specific instruction that should be originally outputted to the CPU 1 from the ROM 2.

Description

【発明の詳細な説明】Detailed Description of the Invention

【0001】[0001]

【発明の属する技術分野】本発明は、中央処理装置(以
下、CPUとする)、リードオンリメモリ(以下、RO
Mとする)、ランダムアクセスメモリ(以下、RAMと
する)、およびその他の構成を含んで構成されるコンピ
ュータなどに好適に用いられ、ROMに記憶された命令
のうち、CPUでは実行不可能な命令または実行させな
い命令を実行可能な別の命令に差し換えて実行するプロ
グラム実行装置に関する。
BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a central processing unit (hereinafter referred to as CPU), a read only memory (hereinafter referred to as RO).
M), random access memory (hereinafter referred to as RAM), and the like, which is preferably used in a computer including other configurations, among the instructions stored in the ROM, instructions that cannot be executed by the CPU. Alternatively, the present invention relates to a program execution device that executes an instruction that is not executed by replacing it with another executable instruction.

【0002】[0002]

【従来の技術】図10は、第1従来技術の具体的構成を
示すブロック図である。第1従来技術は、CPU、RO
M、RAM、およびその他の回路を含んで構成されたコ
ンピュータなどの電子装置に備えられる。従来、コンピ
ュータなどの電子装置のCPUが行うべき予め定められ
た処理は、読出し専用であるROMに記憶されたプログ
ラムを用いて行われている。
2. Description of the Related Art FIG. 10 is a block diagram showing a specific configuration of the first conventional technique. The first conventional technology is CPU, RO
It is provided in an electronic device such as a computer including M, RAM, and other circuits. Conventionally, predetermined processing to be performed by the CPU of an electronic device such as a computer is performed using a program stored in a read-only ROM.

【0003】コンピュータなどの電子装置は、近年の技
術の進歩によって、基本的な構成は同様であるが、小規
模な改良が、頻繁に行われている。特にCPU等の改良
により装置の全体的な処理速度の向上が図られている。
しかし、コストなどの問題により、CPUの差し換えだ
けによって装置を改良しようとする場合には、予め定め
られた処理は、既存のROMに記憶された変更されてい
ないプログラムを構成する命令を用いて行われるため、
改良されたCPUでは命令の一部が実行不可能な場合が
生じる。また、プログラムをROMに書込んだ後に、プ
ログラムに不備が見つかり、プログラムの変更が必要な
場合もある。このような問題は、ROM自体を差し換え
ることによって生じるコストの増加を避けるために、R
OMに記憶された一部の実行不可能な命令または実行さ
せない命令を実行可能な命令と差し換えることによって
対応している。
Electronic devices such as computers have basically the same structure due to technological advances in recent years, but small-scale improvements are frequently made. In particular, improvements in the CPU and the like have been made to improve the overall processing speed of the apparatus.
However, when it is desired to improve the device only by replacing the CPU due to a problem such as cost, the predetermined process is performed by using an instruction that constitutes an unmodified program stored in the existing ROM. Because
In some cases, some of the instructions cannot be executed by the improved CPU. In addition, after the program is written in the ROM, a defect may be found in the program and it may be necessary to change the program. To avoid the increase in cost caused by replacing the ROM itself, such a problem may occur.
This is achieved by replacing some non-executable instructions or non-executable instructions stored in the OM with executable instructions.

【0004】第1従来技術は、実行不可能な命令または
実行させない命令を実行可能な別の命令と差し換えるこ
とを目的として、コンピュータなどの電子装置に備えら
れる。第1従来技術は、レジスタr1〜rnと、比較器
s1〜snと、OR回路55とを含んで構成される。各
レジスタr1〜rnは、ROMに記憶されている複数の
特定命令の各アドレスをそれぞれ記憶する。つまり、1
つのレジスタには、1つの特定命令を示すアドレスが記
憶される。特定命令とは、ROMに記憶された命令であ
って、CPUが実行しないように別の命令に差し換えら
れる命令をいう。
The first prior art is provided in an electronic device such as a computer for the purpose of replacing an unexecutable instruction or an instruction not to be executed with another executable instruction. The first conventional technique includes registers r1 to rn, comparators s1 to sn, and an OR circuit 55. Each register r1 to rn stores each address of a plurality of specific instructions stored in the ROM. That is, 1
An address indicating one specific instruction is stored in one register. The specific instruction is an instruction stored in the ROM and is replaced with another instruction so as not to be executed by the CPU.

【0005】各比較器s1〜snは、2の入力端子と1
の出力端子とを備え、一方の各入力端子には、各レジス
タr1〜rnがそれぞれ接続される。また各比較器s1
〜snの他方の各入力端子には、CPUからのアドレス
線54がそれぞれ接続される。また各比較器s1〜sn
の出力のすべてがOR回路55に与えられ、OR回路5
5の出力は、CPUの割り込み要求端子に接続される。
Each of the comparators s1 to sn has two input terminals and one
Output terminals, and the respective registers r1 to rn are connected to the respective one input terminals. In addition, each comparator s1
An address line 54 from the CPU is connected to each of the other input terminals of -sn. In addition, each comparator s1 to sn
Are all supplied to the OR circuit 55, and the OR circuit 5
The output of 5 is connected to the interrupt request terminal of the CPU.

【0006】ROMには、CPUで実行されるプログラ
ムを構成する複数の命令が、各記憶領域にそれぞれ記憶
される。CPUは、ROMに記憶された命令を実行する
ためにアドレス線54にアドレス信号を出力する。各比
較器s1〜snは、出力されたアドレス信号で示される
アドレスと、順次各レジスタr1〜rnに記憶されてい
る各アドレスとの比較を行い、一致するかどうかを検出
する。各比較器s1〜snは、一致を検出すると、OR
回路55にたとえばハイレベルの一致信号を出力する。
OR回路55は、比較器s1〜snのいずれかからハイ
レベルの一致信号が与えられると、ハイレベルの検出信
号をCPUの割り込み要求端子に出力する。CPUは、
検出信号が割り込み要求端子に入力されると、割り込み
処理によって、どのアドレスによって一致が検出された
かを調査し、そのアドレスの示す特定命令に応じて別の
命令と差し換える処理を行っている。したがって、特定
命令を別の命令に差し換えるときに、CPUは割り込み
処理を用いるため、プログラム実行処理以外の処理であ
るオーバーヘッドの処理が行われ、プログラム実行処理
の効率が悪くなるという問題点が生じる。また、CPU
の割り込み処理を用いて、特定命令に応じて実行可能な
別の命令と差し換える処理を行うため、その処理の間、
別の割り込み処理を滞らせるという問題点も生じる。
In the ROM, a plurality of instructions forming a program executed by the CPU are stored in respective storage areas. The CPU outputs an address signal to the address line 54 to execute the instruction stored in the ROM. Each of the comparators s1 to sn sequentially compares the address indicated by the output address signal with each address stored in each of the registers r1 to rn, and detects whether they match. When each of the comparators s1 to sn detects a match, the OR
For example, a high-level match signal is output to the circuit 55.
The OR circuit 55 outputs a high-level detection signal to the interrupt request terminal of the CPU when a high-level match signal is given from any of the comparators s1 to sn. The CPU
When the detection signal is input to the interrupt request terminal, the interrupt process examines which address detected the match, and performs a process of replacing with another instruction according to the specific instruction indicated by the address. Therefore, when the specific instruction is replaced with another instruction, the CPU uses the interrupt processing, and therefore overhead processing that is processing other than the program execution processing is performed, resulting in a problem that the efficiency of the program execution processing deteriorates. . Also, CPU
The interrupt process of is used to replace another command that can be executed according to a specific command, so during that process,
There is also a problem of delaying another interrupt process.

【0007】特開平2−135547に開示される第2
従来技術は、コンピュータなどの電子装置のインサーキ
ットエミュレータにおいて、ROMからCPUに命令が
入力されるデータ線に設けられる命令注入手段を用い
て、自番地への相対分岐命令、またはソフトウェアの割
り込み命令を注入して、割り込み端子を用いないでプロ
グラムの実行にブレークをかけることが目的である。
Second disclosed in Japanese Laid-Open Patent Publication No. 2-135547
In the prior art, in an in-circuit emulator of an electronic device such as a computer, a relative branch instruction to its own address or a software interrupt instruction is used by using an instruction injection unit provided in a data line in which an instruction is input from a ROM to a CPU. The purpose is to inject and break the program execution without using the interrupt terminal.

【0008】したがって、第2従来技術では命令を注入
することはできるが、特定命令に応じて実行可能な別の
命令と差し換える処理においては、ソフトウェア的に割
り込み命令を注入して割り込み処理を発生させなければ
行うことができない。そのため、プログラム実行処理以
外の処理であるオーバヘッドの処理が行われ、プログラ
ム実行処理の効率が悪くなる。またソフトウェア的に割
り込み処理を発生させる場合の方が、第1従来技術の割
り込み要求端子を用いて割り込み処理を行う場合より構
成が複雑になる。
Therefore, in the second prior art, an instruction can be injected, but in the process of replacing with another instruction that can be executed according to a specific instruction, an interrupt instruction is injected by software to generate an interrupt process. You can't do it without it. Therefore, overhead processing, which is processing other than the program execution processing, is performed, and the efficiency of the program execution processing deteriorates. Further, the case where the interrupt processing is generated by software has a more complicated structure than the case where the interrupt processing is performed using the interrupt request terminal of the first prior art.

【0009】[0009]

【発明が解決しようとする課題】第1および第2従来技
術では、CPU等の命令実行手段が特定命令を実行可能
な命令に差し換える場合に、プログラム実行中に割り込
み処理によって対応させているため、プログラム実行の
ための処理以外のオーバーヘッドの処理が行われ、プロ
グラム実行処理の効率が悪くなるという問題点が生じ
る。
In the first and second prior arts, when the instruction executing means such as the CPU replaces the specific instruction with the executable instruction, the interrupt processing is performed during the execution of the program. However, the overhead processing other than the processing for executing the program is performed, which causes a problem that the efficiency of the program execution processing deteriorates.

【0010】本発明の目的は、プログラム実行中に命令
実行手段が割り込み処理を行うことなく、命令実行手段
が実行する命令を別の命令に差し換えるプログラム実行
装置を提供することである。
An object of the present invention is to provide a program execution device which replaces an instruction executed by the instruction executing means with another instruction without the instruction executing means performing interrupt processing during execution of the program.

【0011】[0011]

【課題を解決するための手段】本発明は、実行すべきプ
ログラムを構成する複数の命令が予め記憶されており、
各命令が記憶されている記憶領域には、それぞれ予め定
める複数のアドレスが設定され、命令の読出しを指示す
る読出し信号と、読出すべき命令が記憶された記憶領域
を指定するアドレス信号と、命令の読出しを許可する許
可信号とが与えられたときに指定された命令を出力する
読出し専用の第1記憶手段と、前記実行すべきプログラ
ムを構成する複数の命令の中から選ばれた特定命令に代
えて実行させるべき命令が予め記憶されており、命令が
記憶されている記憶領域には、前記第1記憶手段のアド
レスとは異なるアドレスが設定され、命令の読出しを指
示する読出し信号と、読出すべき命令が記憶された記憶
領域を指定するアドレス信号と、命令の読出しを許可す
る許可信号とが与えられたときに指定された命令を出力
する第2記憶手段と、命令を読出すために前記読出し信
号および第1記憶手段のアドレスを指定するアドレス信
号を出力し、前記第1または第2記憶手段から読出した
命令を実行する命令実行手段と、前記命令実行手段から
のアドレス信号が指定するアドレスが、前記特定命令が
記憶された記憶領域のアドレスと一致するかどうかを判
断する判断手段と、前記判断手段の出力に応答し、アド
レスが一致したときは第2記憶手段のアドレスを指定す
るアドレス信号を、アドレスが一致しないときは命令実
行手段からのアドレス信号を、第1および第2記憶手段
に与えるアドレス変換手段と、前記判断手段の出力に応
答し、アドレスが一致したときは第2記憶手段に許可信
号を出力し、アドレスが一致しないときは第1記憶手段
に許可信号を出力する許可信号発生手段とを含むことを
特徴とするプログラム実行装置である。 本発明に従えば、第1記憶手段には実行すべきプログラ
ムを構成する命令が記憶されており、第2記憶手段には
第1記憶手段に記憶されている命令の中から選ばれた特
定命令に代えて実行させるべき命令が記憶されている。
命令実行手段は、第1記憶手段に記憶されているプログ
ラムを実行するために、第1記憶手段のアドレスを指定
するアドレス信号と読出し信号とを出力する。読出し信
号は、第1および第2記憶手段に共通に与えられる。 判断手段によって、命令実行手段からのアドレス信号の
指定するアドレスが、特定命令が記憶されたアドレスと
一致していないと判断されたとき、すなわち命令実行手
段が特定命令以外の命令を実行しようとしているとき
は、アドレス変換手段からは、命令実行手段からのアド
レス信号が第1および第2記憶手段に与えられ、また許
可信号発生手段からは、第1記憶手段に許可信号が与え
られる。したがって、第1記憶手段から指定されたアド
レスの命令が出力され、命令実行手段ではその命令が実
行される。 また判断手段によって、命令実行手段からのアドレス信
号の指定するアドレスが、特定命令が記憶されたアドレ
スと一致していると判断されたとき、アドレス変換手段
からは、第2記憶手段のアドレスを示すアドレス信号が
第1および第2記憶手段に与えられ、また許可信号発生
手段からは、第2記憶手段に許可信号が与えられる。し
たがって、本来第1記憶手段から出力されるべき特定命
令に代えて、第2記憶手段から命令が出力されて命令実
行手段で実行される。 これによって、第1記憶手段に記憶されたプログラムを
実行する場合に、命令実行手段は特別な処理を行うこと
なく、第1記憶手段に記憶されている命令内の特定命令
を第2記憶手段に記憶された命令と差し換えて実行する
ことが可能となる。したがって、第1および第2従来技
術のように、たとえばCPUで実現される命令実行手段
が持つ割り込み処理を利用して、実行すべきプログラム
を構成する命令の内のいずれかの命令を差し換える場合
より、命令実行手段におけるプログラム実行処理以外の
処理であるオーバーヘッドが軽減できる。さらに第1従
来技術のように、たとえばCPUで実現される命令実行
手段の割り込み処理を用いないため、別の割り込み処理
を滞らせることを防ぐことができる。
According to the present invention, a plurality of instructions constituting a program to be executed are stored in advance,
A plurality of predetermined addresses are set in the storage area in which each instruction is stored, a read signal for instructing the reading of the instruction, an address signal for designating the storage area in which the instruction to be read is stored, and an instruction Read-only first storage means for outputting a designated instruction when a permission signal for permitting the reading of the data is given, and a specific instruction selected from a plurality of instructions constituting the program to be executed. Instead, an instruction to be executed is stored in advance, an address different from the address of the first storage means is set in the storage area in which the instruction is stored, and a read signal for instructing the read of the instruction and a read signal Second storage means for outputting the designated instruction when an address signal designating a storage area storing the instruction to be issued and a permission signal permitting the reading of the instruction are given. An instruction execution means for outputting the read signal and an address signal designating an address of the first storage means for reading the instruction, and executing the instruction read from the first or second storage means; and the instruction execution means. Determining means for determining whether or not the address designated by the address signal from the determining means matches the address of the storage area in which the specific instruction is stored, and in response to the output of the determining means, when the addresses match, the second In response to the address signal designating the address of the storage means and the address conversion means for giving the address signal from the instruction execution means to the first and second storage means when the addresses do not match, and the output of the determination means, the address Generating a permission signal that outputs a permission signal to the second storage means when the addresses match and outputs a permission signal to the first storage means when the addresses do not match. A program execution device which comprises a stage. According to the invention, the first storage means stores the instructions constituting the program to be executed, and the second storage means stores the specific instruction selected from the instructions stored in the first storage means. The instruction to be executed instead of is stored.
The instruction execution means outputs an address signal designating an address of the first storage means and a read signal in order to execute the program stored in the first storage means. The read signal is commonly applied to the first and second storage means. When the determining means determines that the address designated by the address signal from the instruction executing means does not match the address at which the specific instruction is stored, that is, the instruction executing means is about to execute an instruction other than the specific instruction. At this time, the address conversion means gives the address signal from the instruction execution means to the first and second storage means, and the permission signal generation means gives the permission signal to the first storage means. Therefore, the instruction at the designated address is output from the first storage means, and the instruction execution means executes the instruction. When the determining means determines that the address designated by the address signal from the instruction executing means matches the address at which the specific instruction is stored, the address converting means indicates the address of the second storage means. An address signal is given to the first and second storage means, and a permission signal is given to the second storage means from the permission signal generating means. Therefore, instead of the specific instruction that should originally be output from the first storage means, an instruction is output from the second storage means and executed by the instruction execution means. As a result, when executing the program stored in the first storage means, the instruction execution means does not perform any special processing, and the specific instruction in the instructions stored in the first storage means is stored in the second storage means. It becomes possible to execute by replacing the stored instruction. Therefore, as in the first and second prior arts, for example, when any of the instructions forming the program to be executed is replaced using the interrupt processing of the instruction executing means realized by the CPU. As a result, the overhead that is a process other than the program execution process in the instruction executing means can be reduced. Further, unlike the first conventional technique, since the interrupt processing of the instruction executing means realized by the CPU is not used, it is possible to prevent the interruption of another interrupt processing.

【0012】また本発明は、実行すべきプログラムを構
成する複数の命令が予め記憶されており、各命令が記憶
されている記憶領域には、それぞれ予め定める複数の第
1アドレスが設定され、命令の読出しを指示する読出し
信号と、読出すべき命令が記憶された記憶領域を指定す
るアドレス信号と、命令の読出しを許可する許可信号と
が与えられたときに指定された命令を出力する読出し専
用の第1記憶手段と、前記第1アドレスとは異なる複数
の第2アドレスがそれぞれ設定されたデータ記憶領域を
有し、第2アドレスの中から選ばれた1以上の第3アド
レスを持つデータ記憶領域には、前記実行すベきプログ
ラムを構成する命令の中から選ばれた特定命令に代えて
実行させるべき命令が記憶されており、データの読出し
/書込みを指示する読出し/書込み信号と、データの読
出し/書込みをするデータ記憶領域を指定するアドレス
信号と、データの読出し/書込みを許可する許可信号と
が与えられたときに指定されたデータを出力/入力する
読出し/書込み自在な第2記憶手段と、命令を読出すた
めに前記読出し信号および第1記憶手段のアドレスを指
定するアドレス信号を第1記憶手段に出力し、読出した
命令を実行し、命令を実行するときに必要に応じて第2
記憶手段に対してデータを読出し/書込みを行うために
前記読出し/書込み信号および第2記憶手段のアドレス
を指定するアドレス信号を出力する命令実行手段と、前
記命令実行手段からのアドレス信号が指定するアドレス
が、前記特定命令が記憶された記憶領域のアドレスと一
致するかどうかを判断する判断手段と、前記判断手段の
出力に基づいて、判断手段の判断が肯定であるときは、
前記第3アドレスを指定するアドレス信号を第2記憶手
段に出力し、判断手段の判断が否定であるときは、命令
実行手段からのアドレス信号を第2記憶手段に出力する
アドレス変換手段と、前記命令実行手段からのアドレス
信号および前記判断手段の出力に基づいて、アドレス信
号が指定するアドレスが前記第1アドレスであり、かつ
判断手段の判断が肯定であるときは、第2記憶手段に許
可信号を出力し、アドレス信号が指定するアドレスが前
記第1アドレスであり、かつ判断手段の判断が否定であ
るときは、第1記憶手段に許可信号を出力し、アドレス
信号が指定するアドレスが前記第2アドレスであるとき
は、第2記憶手段に許可信号を出力する許可信号発生手
段とを含むことを特徴とするプログラム実行装置であ
る。 本発明に従えば、第1記憶手段は、読出し専用であり、
実行すべきプログラムを構成する命令が記憶されてお
り、第2記憶手段は、読出し/書込み自在であり、第1
記憶手段の第1アドレスとは異なる複数の第2アドレス
がそれぞれ設定されたデータ記憶領域を有する。また第
2記憶手段は、第2アドレス内に存在する1以上の第3
アドレスに示されるデータ記憶領域に、第1記憶手段に
記憶されている命令の内の特定命令に代えて実行させる
べき命令が記憶されている。命令実行手段は、第1記憶
手段に記憶されているプログラムを実行するために、第
1記憶手段の第1アドレスを指定するアドレス信号と読
出し信号とを、第1記憶手段に出力する。また命令実行
手段はプログラム実行途中に、必要に応じて第2記憶手
段に対して、データの読出し/書込みを行う場合に、読
出し/書込み信号と第2アドレスを示すアドレス信号と
を出力する。 命令実行手段からのアドレス信号が第1アドレスを指定
しているときに、判断手段によって、第1アドレスが特
定命令が記憶されたアドレスと一致していないと判断さ
れた場合、アドレス変換手段からは命令実行手段からの
アドレス信号が第2記憶手段に与えられ、命令実行手段
からは、第1記憶手段にアドレス信号が与えられてい
る。また許可信号発生手段からは、第1記憶手段に許可
信号が与えられる。したがって、命令実行手段では、第
1記憶手段からの命令が読出されて実行される。 次に命令実行手段からのアドレス信号が第1アドレスを
指定しているときに、判断手段によって、第1アドレス
が特定命令が記憶されたアドレスと一致していると判断
されたとき、アドレス変換手段からは、第3アドレスを
示すアドレス信号が第2記憶手段に与えられ、また許可
信号発生手段からは、第2記憶手段に許可信号が与えら
れる。したがって、命令実行手段では、第2記憶手段か
らの命令が読出されて実行される。 命令実行手段からのアドレス信号が第2アドレスを指定
しているときは、アドレス変換手段からは、命令実行手
段からのアドレス信号が第2記憶手段に与えられ、許可
信号発生手段からは、第2記憶手段に許可信号が与えら
れる。また第2記憶手段に対して、読出しおよび書込み
のどちらを行うかによって、読出しおよび書込みのいず
れかの信号が出力される。したがって、第2記憶手段に
おいて、データの書込みおよび読出しが実行される。 これによって、第1記憶手段に記憶されたプログラムを
実行する場合に、命令実行手段は特別な処理を行うこと
なく、第1記憶手段に記憶されている命令内の特定命令
を第2記憶手段に記憶された命令と差し換えて実行する
ことが可能となる。また、第2記憶手段は、命令実行手
段がプログラム実行中に必要に応じていわゆるワークエ
リアとして使用するRAMなどで実現できるので、特定
命令に代えて実行させるべき命令を記憶させるための専
用の記憶手段を準備する必要がなく、比較的簡単な構成
で既存の手段を利用して本発明を実現することができ
る。したがって、第1および第2従来技術のように、命
令実行手段が持つ割り込み処理を利用して、実行すべき
プログラムを構成する命令の内のいずれかの命令を差し
換える場合より、命令実行手段におけるプログラム実行
処理以外の処理であるオーバーヘッドを軽減できる。さ
らに第1従来技術のように、たとえばCPUで実現され
る命令実行手段の割り込み処理を用いないため、別の割
り込み処理を滞らせることを防ぐことができる。
Further, according to the present invention, a plurality of instructions forming a program to be executed are stored in advance, and a plurality of predetermined first addresses are set in a storage area in which the respective instructions are stored. Read-only that outputs the specified instruction when a read signal that instructs the reading of the instruction, an address signal that specifies the storage area in which the instruction to be read is stored, and a permission signal that permits the reading of the instruction are given Data storage area having a plurality of second addresses different from the first address, and one or more third addresses selected from the second addresses. The area stores an instruction to be executed in place of a specific instruction selected from the instructions constituting the above-mentioned execution program, and indicates reading / writing of data. A read / write signal, an address signal for designating a data storage area for reading / writing data, and a read / write operation for outputting / inputting designated data when a permission signal for permitting reading / writing of data is given. / Writable second storage means, the read signal for reading an instruction and an address signal designating an address of the first storage means are output to the first storage means, the read instruction is executed, and the instruction is executed. Second when needed
An instruction execution means for outputting the read / write signal and an address signal for designating an address of the second storage means for reading / writing data from / to the storage means, and an address signal from the instruction execution means are designated. When the address of the determination means is affirmative, based on the output of the determination means and the determination means that determines whether the address matches the address of the storage area in which the specific command is stored,
An address converting means for outputting an address signal designating the third address to the second storage means, and outputting an address signal from the instruction executing means to the second storage means when the judgment of the judging means is negative; Based on the address signal from the instruction executing means and the output of the judging means, when the address designated by the address signal is the first address and the judgment of the judging means is affirmative, the permission signal is sent to the second storage means. Is output and the address designated by the address signal is the first address, and the determination by the determination means is negative, a permission signal is output to the first storage means and the address designated by the address signal is the first address. When it has two addresses, the program execution device is characterized by including a permission signal generating means for outputting a permission signal to the second storage means. According to the invention, the first storage means is read-only,
Instructions constituting a program to be executed are stored, the second storage means is readable / writable, and the first storage means is readable / writable.
The data storage area has a plurality of second addresses different from the first address of the storage means. Further, the second storage means is provided with one or more third storages existing in the second address.
In the data storage area indicated by the address, an instruction to be executed is stored instead of the specific instruction among the instructions stored in the first storage means. The instruction executing means outputs, to the first storage means, an address signal designating a first address of the first storage means and a read signal in order to execute the program stored in the first storage means. Further, the instruction executing means outputs a read / write signal and an address signal indicating the second address when reading / writing data from / to the second storage means as needed during the execution of the program. When the determination means determines that the first address does not match the address in which the specific instruction is stored when the address signal from the instruction execution means specifies the first address, the address conversion means determines The address signal from the instruction executing means is given to the second storage means, and the address signal from the instruction executing means is given to the first storage means. Further, the permission signal generating means gives a permission signal to the first storage means. Therefore, the instruction execution means reads and executes the instruction from the first storage means. Next, when the address signal from the instruction executing means specifies the first address and the determining means determines that the first address matches the address in which the specific instruction is stored, the address converting means. From the above, an address signal indicating the third address is given to the second storage means, and from the permission signal generating means, a permission signal is given to the second storage means. Therefore, the instruction execution means reads and executes the instruction from the second storage means. When the address signal from the instruction executing means specifies the second address, the address converting means gives the address signal from the instruction executing means to the second storage means, and the permit signal generating means outputs the second signal. A permission signal is given to the storage means. Further, either a read signal or a write signal is output to the second storage means depending on whether reading or writing is performed. Therefore, writing and reading of data are executed in the second storage means. As a result, when executing the program stored in the first storage means, the instruction execution means does not perform any special processing, and the specific instruction in the instructions stored in the first storage means is stored in the second storage means. It becomes possible to execute by replacing the stored instruction. Further, the second storage means can be realized by a RAM or the like used by the instruction execution means as a so-called work area as needed during the execution of the program. Therefore, a dedicated storage for storing an instruction to be executed instead of the specific instruction. It is not necessary to prepare the means, and the present invention can be realized by utilizing the existing means with a relatively simple structure. Therefore, as in the first and second prior arts, the interrupt processing of the instruction executing means is utilized to replace any of the instructions constituting the program to be executed by the instruction executing means. It is possible to reduce the overhead that is a process other than the program execution process. Further, unlike the first conventional technique, since the interrupt processing of the instruction executing means realized by the CPU is not used, it is possible to prevent the interruption of another interrupt processing.

【0013】また本発明は、前記判断手段は、前記特定
命令が記憶された記憶領域のアドレスを示すアドレス信
号を記憶するアドレス記憶手段と、前記アドレス記憶手
段に記憶されているアドレス信号と、命令実行手段から
のアドレス信号とが一致するどうかを検出する検出手段
とを含むことを特徴とする。 本発明に従えば、アドレス記憶手段では、第1記憶手段
に記憶されている命令の内の特定命令を指定するアドレ
スを示すアドレス信号を予め記憶しておき、検出手段
は、命令実行手段からのアドレス信号が入力されると、
アドレス記憶手段に記憶されたアドレス信号と比較して
一致するかどうかを検出する。これによって、判断手段
は命令実行手段が出力したアドレス信号が特定命令を指
定するアドレスを示すアドレス信号であるかどうかが検
知できる。
According to the present invention, the judging means includes an address storing means for storing an address signal indicating an address of a storage area in which the specific instruction is stored, an address signal stored in the address storing means, and an instruction. And a detection means for detecting whether or not the address signal from the execution means matches. According to the invention, the address storage means stores in advance an address signal indicating an address designating a specific instruction among the instructions stored in the first storage means, and the detection means stores the address signal from the instruction execution means. When the address signal is input,
The address signal stored in the address storage means is compared to detect whether they match. Thereby, the judging means can detect whether or not the address signal output by the instruction executing means is an address signal indicating an address designating a specific instruction.

【0014】また本発明は、前記アドレス記憶手段は、
複数のビットからなるアドレス信号を記憶する1以上の
レジスタであり、前記検出手段は、前記レジスタに対応
して設けられ、レジスタからのアドレス信号と命令実行
手段からのアドレス信号とを比較する比較回路と、前記
比較回路からの出力が与えられる論理和演算回路とを含
むことを特徴とする。 本発明に従えば、アドレス記憶手段は、複数のビットか
らなるアドレス信号を記憶する1以上のレジスタであ
り、各レジスタに、第1記憶手段に記憶されている命令
の内の特定命令を指定するアドレスを示すアドレス信号
をそれぞれ記憶する。比較回路は、命令実行手段からア
ドレス信号が入力されると、各レジスタごとに、入力さ
れたアドレス信号とそれぞれ比較し、判断手段は、論理
和演算回路によって、いずれか一つの比較回路が一致で
ある信号を出力した場合は、判断が肯定である信号を出
力し、すべての比較回路が一致しない信号を出力した場
合は、判断が否定である信号を出力する。
According to the present invention, the address storage means is
Comparing circuit which is one or more registers for storing an address signal composed of a plurality of bits, wherein the detecting means is provided corresponding to the register and compares the address signal from the register with the address signal from the instruction executing means. And an OR operation circuit to which the output from the comparison circuit is given. According to the present invention, the address storage means is one or more registers for storing an address signal composed of a plurality of bits, and each register specifies a specific instruction among the instructions stored in the first storage means. The address signal indicating the address is stored. When the address signal is input from the instruction execution means, the comparison circuit compares each address with the input address signal for each register, and the determination means uses the OR operation circuit to determine whether any one of the comparison circuits matches. When a certain signal is output, a signal whose determination is positive is output, and when all the comparison circuits output signals that do not match, a signal whose determination is negative is output.

【0015】また本発明は、前記アドレス記憶手段は、
複数のビットからなるアドレス信号を予め定める数の上
位ビットと残余の下位ビットに分割し、上位ビットが共
通するアドレス信号ごとにグループ分けをして、グルー
プ単位でアドレス信号を記憶し、各グループごとに、1
の上位ビットレジスタと、グループに属するアドレス信
号と同じ数の下位ビットレジスタとを備え、前記検出手
段は、前記各グループごとに、上位ビットレジスタの信
号と命令実行手段からのアドレス信号の上位ビットとを
比較する1つの上位ビット比較回路と、下位ビットレジ
スタと同じ数だけ設けられ、各下位ビットレジスタの信
号と命令実行手段からのアドレス信号の下位ビットとを
比較する1以上の下位ビット比較回路と、下位ビットレ
ジスタと同じ数だけ設けられ、各下位ビット比較回路の
出力と上位ビット比較回路の出力とが与えられる1以上
の論理積回路と、各論理積回路の出力が与えられる第1
論理和回路とを備え、さらに、各グループの前記第1論
理和回路の出力が与えられる第2論理和回路を備えるこ
とを特徴とする。 本発明に従えば、アドレス記憶手段は、アドレス信号の
予め定める数の上位ビットを記憶する1の上位ビットレ
ジスタと、アドレス信号における上位ビットが共通の残
余の下位ビットを記憶する複数の下位ビットレジスタと
を1グループとして、複数のグループ単位でアドレス信
号を記憶する。第1記憶手段に記憶されている命令の内
の特定命令を指定するアドレスを示すアドレス信号の予
め定める数の上位ビットを上位ビットレジスタに記憶
し、そのアドレス信号の上位ビットが共通の複数の下位
ビットをそれぞれ下位ビットレジスタに記憶する。検出
手段は、命令実行手段からのアドレス信号が入力された
場合に、各グループごとに比較を行う。各グループ内で
はアドレス信号の上位ビットと上位ビットレジスタに記
憶されたビット値と比較し、アドレス信号の下位ビット
と各下位ビットレジスタに記憶されたビット値とをそれ
ぞれ比較する。上位ビットと下位ビットとの両方ともが
一致を検出した場合に、検出手段はアドレス信号の一致
を検出する。判断手段は、アドレス信号の一致を検出し
た場合には、判断が肯定である信号を出力し、すべての
グループにおいて一致を検出しなかった場合には、判断
が否定である信号を出力する。これによって、レジスタ
を上位ビットレジスタと下位ビットレジスタとの2つに
分割しないでレジスタが構成される場合より、レジスタ
の数を減少させることができ、さらに1ビットに対する
レジスタは複数のゲートで構成されるため、ゲート数も
減少させることができる。
According to the present invention, the address storage means is
The address signal consisting of multiple bits is divided into a predetermined number of upper bits and the remaining lower bits, and each address signal having the same upper bit is divided into groups, and the address signals are stored in group units. To 1
Of the upper bit register and the same number of lower bit registers as the number of address signals belonging to the group, and the detection means, for each group, the upper bit register signal and the upper bit of the address signal from the instruction execution means. And one or more lower bit comparison circuits for comparing the signal of each lower bit register and the lower bit of the address signal from the instruction execution means, which are provided in the same number as the lower bit register. , One or more AND circuits to which the output of each lower bit comparison circuit and the output of the upper bit comparison circuit are provided, and the output of each AND circuit are provided.
And a second OR circuit to which the output of the first OR circuit of each group is given. According to the present invention, the address storage means includes one high-order bit register for storing a predetermined number of high-order bits of the address signal and a plurality of low-order bit registers for storing the remaining low-order bits of which the high-order bits in the address signal are common. Address signals are stored in units of a plurality of groups. A predetermined number of high-order bits of an address signal indicating an address designating a specific instruction among the instructions stored in the first storage means are stored in a high-order bit register, and the high-order bits of the address signal are common to a plurality of low-order bits. Each bit is stored in the lower bit register. The detecting means compares each group when the address signal from the instruction executing means is input. Within each group, the upper bit of the address signal is compared with the bit value stored in the upper bit register, and the lower bit of the address signal is compared with the bit value stored in each lower bit register. When both the upper bit and the lower bit detect a match, the detecting means detects a match of the address signal. The determination means outputs a signal that the determination is affirmative when detecting a match of the address signals, and outputs a signal that the determination is negative when a match is not detected in all the groups. As a result, the number of registers can be reduced as compared with the case where the register is configured without dividing the register into the upper bit register and the lower bit register, and the register for one bit is composed of a plurality of gates. Therefore, the number of gates can be reduced.

【0016】また本発明は、前記許可信号発生手段は、
命令実行手段からのアドレス信号に基づいて、当該アド
レス信号が指定するアドレスが第1アドレスであるとき
は第1の信号を出力し、第2のアドレスであるときは第
2の信号を出力するデコード手段と、第1信号と前記判
断手段の出力の反転信号の論理積演算を行い、演算結果
を第1記憶手段に与える論理積演算手段と、第2信号と
前記判断手段の出力の論理和演算を行い、演算結果を第
2記憶手段に与える論理和演算手段とを含むことを特徴
とする。 本発明に従えば、許可信号発生手段において、命令実行
手段からのアドレス信号が入力されると、アドレス信号
の指定するアドレスが第1記憶手段の第1アドレスを示
す場合には、デコード手段は、第1信号としてたとえば
ハイレベルの信号を出力し、第2信号としてたとえばロ
ーレベルの信号を出力する。判断手段の出力が肯定であ
るときは、論理積演算手段は第1信号と判断手段の肯定
を示す信号、たとえばハイレベルの信号を反転した信号
とを入力し、第1記憶手段に演算結果として、たとえば
不許可を示すローレベルの許可信号を出力する。一方、
論理和演算手段は、第2信号と判断手段の肯定を示す信
号、たとえばハイレベルの信号とを入力して、第2記憶
手段に演算結果として、たとえば許可を示すハイレベル
の許可信号を出力する。したがって、命令実行手段で
は、第2記憶手段からの命令が読出されて実行される。 また、判断手段の出力が否定であるときは、論理積演算
手段は第1信号と判断手段の否定を示す信号、たとえば
ローレベルの信号を反転した信号とを入力し、第1記憶
手段に演算結果として、たとえば許可を示すハイレベル
の許可信号を出力する。一方、論理和演算手段は、第2
信号と判断手段の否定を示す信号、たとえばローレベル
の信号とを入力して、第2記憶手段に演算結果として、
たとえば不許可を示すローレベルの許可信号を出力す
る。したがって、命令実行手段では、第1記憶手段から
の命令が読出されて実行される。 またアドレス信号の指定するアドレスが第2記憶手段の
第2アドレスを示す場合には、デコード手段は、第1信
号としてたとえばローレベルの信号を出力し、第2信号
としてたとえばハイレベルの信号を出力する。論理積演
算手段は第1信号と判断手段の結果を示す信号を入力
し、第1記憶手段に演算結果として、たとえば不許可を
示す許可信号を出力する。一方、論理和演算手段は、第
2信号と判断手段の結果を示す信号を入力し、第2記憶
手段に演算結果として、たとえば許可を示す許可信号を
出力する。
According to the present invention, the permission signal generating means is
Decoding for outputting a first signal when the address designated by the address signal is the first address and outputting a second signal when the address designated by the address signal is the second address based on the address signal from the instruction executing means Means, a logical AND operation of the first signal and the inverted signal of the output of the judging means, and giving the operation result to the first storage means, an OR operation of the second signal and the output of the judging means. And an OR operation means for giving the operation result to the second storage means. According to the present invention, when the address signal from the instruction execution means is input to the permission signal generation means, if the address designated by the address signal indicates the first address of the first storage means, the decoding means For example, a high level signal is output as the first signal, and a low level signal is output as the second signal. When the output of the judging means is affirmative, the logical product calculating means inputs the first signal and a signal indicating affirmative of the judging means, for example, a signal obtained by inverting a high level signal, and outputs the result to the first storing means as the calculation result. , For example, it outputs a low-level permission signal indicating non-permission. on the other hand,
The logical sum calculation means inputs the second signal and a signal indicating affirmative of the determination means, for example, a high level signal, and outputs a high level permission signal indicating permission, for example, as a calculation result to the second storage means. . Therefore, the instruction execution means reads and executes the instruction from the second storage means. When the output of the judging means is negative, the logical product calculating means inputs the first signal and a signal indicating the negative of the judging means, for example, a signal obtained by inverting a low level signal, and calculates in the first storing means. As a result, for example, a high-level permission signal indicating permission is output. On the other hand, the logical sum operation means is the second
A signal and a signal indicating the negation of the determination means, for example, a low level signal, are input, and the second storage means outputs a calculation result.
For example, a low level permission signal indicating non-permission is output. Therefore, the instruction execution means reads and executes the instruction from the first storage means. When the address designated by the address signal indicates the second address of the second storage means, the decoding means outputs, for example, a low level signal as the first signal and outputs a high level signal as the second signal. To do. The logical product calculating means inputs the first signal and a signal indicating the result of the judging means, and outputs, for example, a permission signal indicating non-permission as the calculation result to the first storage means. On the other hand, the logical sum calculation means inputs the second signal and a signal indicating the result of the determination means, and outputs, for example, a permission signal indicating permission as the calculation result to the second storage means.

【0017】また本発明は、前記許可信号発生手段は、
前記判断手段の出力を予め定める期間遅延させて前記論
理和演算手段に与える遅延手段を含むことを特徴とす
る。 本発明に従えば、許可信号発生手段において、論理和演
算手段は、判断手段の結果を示す信号と第2信号が入力
されて、第2記憶手段に演算結果を出力する。遅延手段
は、判断手段の結果を示す信号を論理和演算手段に入力
される前に入力し、予め定める期間遅延させて、論理和
演算手段に出力する。したがって、アドレス変換手段か
らの変換されたアドレス信号が与えられてから許可信号
が与えられるので、第2記憶手段において、特定命令に
差し換えられるべき命令の読出しが確実に実行される。
According to the present invention, the permission signal generating means is
The present invention is characterized by including delay means for delaying the output of the judging means for a predetermined period and giving it to the OR operation means. According to the invention, in the permission signal generating means, the logical sum calculating means receives the signal indicating the result of the judging means and the second signal and outputs the calculation result to the second storing means. The delay means inputs the signal indicating the result of the judging means before being input to the logical sum calculating means, delays the signal for a predetermined period, and outputs the signal to the logical sum calculating means. Therefore, since the converted address signal is supplied from the address conversion means and then the permission signal is supplied, the reading of the instruction to be replaced with the specific instruction is surely executed in the second storage means.

【0018】また本発明は、前記アドレス変換手段は、
前記第3アドレスを指定するアドレス信号を発生するア
ドレス信号発生手段と、前記判断手段の出力に応答し、
判断手段の判断が肯定であるときは、アドレス信号発生
手段からのアドレス信号を出力し、判断手段の判断が否
定であるときは、命令実行手段からのアドレス信号を出
力する切換手段とを含むことを特徴とする。 本発明に従えば、アドレス変換手段における切換手段
は、判断手段から判断の肯定を示す信号が入力される
と、アドレス信号発生手段の出力であるアドレス信号を
第2記憶手段に出力し、判断手段から判断の否定を示す
信号が入力されると、命令実行手段からのアドレス信号
を第2記憶手段に出力する。
According to the present invention, the address conversion means is
Address signal generating means for generating an address signal for designating the third address, and in response to the output of the judging means,
Switching means for outputting the address signal from the address signal generating means when the judgment of the judging means is affirmative, and for outputting the address signal from the instruction executing means when the judgment of the judging means is negative. Is characterized by. According to the invention, the switching means in the address converting means outputs the address signal which is the output of the address signal generating means to the second storing means when the signal indicating the affirmative of the judgment is inputted from the judging means, and the judging means. When a signal indicating negative determination is input from, the address signal from the instruction executing means is output to the second storage means.

【0019】また本発明は、前記判断手段は、複数のア
ドレス信号を記憶するアドレス記憶手段と、命令実行手
段からのアドレス信号と、前記アドレス記憶手段に記憶
されているアドレス信号とをそれぞれ比較して一致する
かどうかを検出する検出手段とを含み、前記アドレス信
号発生手段は、予め定める数の上位ビットのアドレス信
号を記憶する上位アドレスメモリと、前記検出手段にお
ける比較結果に基づいて、残余の下位ビットのアドレス
信号を生成する下位アドレス発生手段とを含むことを特
徴とする。 本発明に従えば、判断手段におけるアドレス記憶手段で
は、複数の第1記憶手段に記憶されている命令の内の特
定命令を指定するアドレスを示すアドレス信号を予め記
憶しており、たとえば、アドレス記憶手段のアドレスの
順番に複数のアドレス信号が記憶される。アドレス信号
発生手段における上位アドレスメモリには、第2記憶手
段の第3アドレスの予め定める数の上位ビットが記憶さ
れる。判断手段における検出手段は、判断手段に命令実
行手段からのアドレス信号が入力されると、複数のアド
レス記憶手段に記憶されたアドレス信号とそれぞれ比較
して一致するかどうかを検出する。アドレス信号発生手
段は、検出手段における比較結果に基づいて、どのアド
レス信号と一致したかを検出し、残余の下位ビットを生
成し、上位ビットと合成してアドレス信号を生成する。
たとえば、16個のアドレス信号がアドレス記憶手段に
順番に記憶されている場合に、8番目の記憶されている
アドレス信号が命令実行手段からのアドレス信号と一致
した場合に、残余の下位ビットは、“8”を示す4ビッ
トの“0100”となる。したがって、判断手段に記憶
された複数の特定命令を指定するアドレスを示すアドレ
ス信号のそれぞれに対応して、第3アドレスが決定され
るため、実行すべき命令の差し換えを正確に行うことが
できる。
According to the present invention, the judging means compares the address storing means for storing a plurality of address signals, the address signal from the instruction executing means, and the address signal stored in the address storing means. The address signal generating means includes a high-order address memory for storing a predetermined number of high-order bit address signals, and a residual result based on the comparison result in the detecting means. And a lower address generating means for generating an address signal of lower bits. According to the present invention, the address storage means in the determination means stores in advance an address signal indicating an address designating a specific instruction among the instructions stored in the plurality of first storage means. A plurality of address signals are stored in the order of the address of the means. The predetermined number of high-order bits of the third address of the second storage means are stored in the high-order address memory of the address signal generating means. When the address signal from the instruction execution means is input to the determination means, the detection means in the determination means compares the address signals stored in the plurality of address storage means with each other to detect whether they match. The address signal generating means detects, based on the comparison result in the detecting means, which address signal matches, generates the remaining lower bits, and synthesizes the remaining lower bits to generate the address signal.
For example, when 16 address signals are sequentially stored in the address storage means and the eighth stored address signal matches the address signal from the instruction execution means, the remaining lower bits are: It is 4-bit “0100” indicating “8”. Therefore, since the third address is determined corresponding to each of the address signals indicating the addresses designating the plurality of specific instructions stored in the determination means, the instructions to be executed can be replaced accurately.

【0020】また本発明は、前記命令実行手段は、前記
上位アドレスメモリに対して読出し/書込みを行うこと
を特徴とする。 本発明に従えば、命令実行手段は、第1記憶手段に記憶
されている命令の内の特定命令に代えて実行させるべき
命令が記憶されている第2記憶手段の第3アドレスの値
を変更する場合に、アドレス信号発生手段における上位
アドレスメモリに記憶されたビット値を、変更された第
3アドレスの値に適応するように書換えを行う。したが
って、上位アドレスメモリの書込みができない場合よ
り、本装置のシステムデザインのときに選択の幅が広が
るため、本装置の汎用性が高まる。
The present invention is also characterized in that the instruction executing means performs reading / writing on the upper address memory. According to the invention, the instruction execution means changes the value of the third address of the second storage means in which the instruction to be executed is stored instead of the specific instruction among the instructions stored in the first storage means. In this case, the bit value stored in the upper address memory in the address signal generating means is rewritten so as to be adapted to the changed third address value. Therefore, the versatility of the present device is improved because the range of selection is widened when designing the system of the present device, compared to the case where the upper address memory cannot be written.

【0021】[0021]

【発明の実施の形態】本発明のプログラム実行装置を備
えるコンピュータなどの電子装置では、当該装置が行う
べき予め定められた処理は読出し専用であるROMに記
憶されたプログラムを用いて行われている。コンピュー
タなどの電子装置は、近年の技術の進歩によって、基本
的な構成は同様であるが、小規模な改良が、頻繁に行わ
れている。特にCPU等の改良により装置の全体的な処
理速度の向上が図られている。しかし、コストなどの問
題により、CPUの差し換えだけによって装置を構成し
ようとする場合には、予め定められた処理は、既存のR
OMに記憶された変更されていないプログラムを構成す
る命令を用いて行われるため、改良されたCPUでは命
令の一部が実行不可能な場合が生じる。また、プログラ
ムをROMに書込んだ後に、プログラムに不備が見つか
り、プログラムの変更が必要な場合もある。このような
問題は、ROMに記憶された一部の実行不可能な命令な
どを実行可能な命令と差し換えることによって回避して
いる。本発明は、上記命令の差し換えを容易に行うこと
を目的としてなされたものであり、以下に本発明の実施
の一形態について説明を行う。
BEST MODE FOR CARRYING OUT THE INVENTION In an electronic device such as a computer including the program execution device of the present invention, predetermined processing to be performed by the device is performed using a program stored in a read-only ROM. . Electronic devices such as computers have the same basic configuration due to technological advances in recent years, but small-scale improvements are frequently made. In particular, improvements in the CPU and the like have been made to improve the overall processing speed of the apparatus. However, if the device is configured only by replacing the CPU due to cost or the like, the predetermined process is performed in the existing R
Because it is done with the instructions that make up the unmodified program stored in the OM, some of the instructions may not be executable in the improved CPU. In addition, after the program is written in the ROM, a defect may be found in the program and it may be necessary to change the program. Such a problem is avoided by replacing some non-executable instructions stored in the ROM with executable instructions. The present invention has been made for the purpose of facilitating the replacement of the above instructions, and one embodiment of the present invention will be described below.

【0022】図1は、本発明の実施の一形態であるプロ
グラム実行装置の電気的構成を示す図である。プログラ
ム実行装置は、中央処理装置(以下、CPUとする)1
と、リードオンリメモリ(以下、ROMとする)2と、
ランダムアクセスメモリ(以下、RAMとする)3と、
特定用途向け集積回路(以下、ASICとする)4とを
含んで構成される。ASIC4は、判断手段8と、許可
信号発生手段9と、アドレス変換手段16とを含んで構
成される。
FIG. 1 is a diagram showing an electrical configuration of a program execution device according to an embodiment of the present invention. The program execution device is a central processing unit (hereinafter, CPU) 1
And read-only memory (hereinafter referred to as ROM) 2,
Random access memory (hereinafter referred to as RAM) 3,
And an integrated circuit (hereinafter referred to as ASIC) 4 for a specific application. The ASIC 4 includes a determination unit 8, a permission signal generation unit 9, and an address conversion unit 16.

【0023】ROM2には、CPU1で実行されるプロ
グラムを構成する複数の命令が、各記憶領域にそれぞれ
記憶される。ROM2内の記憶領域のアドレスを第1ア
ドレスと総称する。
The ROM 2 stores a plurality of instructions constituting a program executed by the CPU 1 in each storage area. The address of the storage area in the ROM 2 is generically called the first address.

【0024】RAM3は、CPU1がプログラムの実行
に用いることが可能な記憶領域を備え、その記憶領域を
示すアドレスを第2アドレスと総称する。第2アドレス
が示す記憶領域に対しては、データの書込みおよび読出
しが可能である。さらに、第2アドレス内の一部の記憶
領域を示す複数のアドレスを第3アドレスとし、その第
3アドレスの示す記憶領域に、ROM2に記憶された命
令の代わりに実行させるべき命令(以下、特定命令と称
する)が記憶される。また記憶される命令数は、ROM
2内の特定命令の数と同じであり、ROM2のプログラ
ムが実行される前に、装置の付属のメモリ、ハードディ
スク等から読出されて、RAM3内の第3アドレスの示
す記憶領域に書き込まれる。
The RAM 3 has a storage area that can be used by the CPU 1 to execute programs, and the address indicating the storage area is generically called the second address. Data can be written to and read from the storage area indicated by the second address. Further, a plurality of addresses indicating a part of the storage area in the second address is set as a third address, and an instruction to be executed in the storage area indicated by the third address instead of the instruction stored in the ROM 2 (hereinafter, specified (Referred to as an instruction) is stored. The number of instructions stored is in the ROM
It is the same as the number of specific instructions in 2, and is read from the attached memory, hard disk, etc. of the apparatus and written in the storage area indicated by the third address in RAM 3 before the program in ROM 2 is executed.

【0025】CPU1は、ROM2に記憶されているプ
ログラムを順次実行するために、アドレス線5にアドレ
ス信号を出力し、リード/ライト線7に読出し信号およ
び書込み信号を出力する。CPU1からのアドレス線5
は、ROM2と、ASIC4内の許可信号発生手段9
と、判断手段8と、アドレス変換手段16とに接続され
る。またCPU1が実行する命令およびデータを読出し
および書込みすることができるデータ線6が、CPU1
とROM2およびRAM3との間に接続される。CPU
1からのリード/ライト線7は、ROM2およびRAM
3に接続される。ROM2には読出し信号のみが入力さ
れ、実行される命令および必要なデータが、CPU1に
読出される。RAM3には読出し信号および書込み信号
が入力され、CPU1ではそれぞれの信号に応じて処理
が行われる。
The CPU 1 outputs an address signal to the address line 5 and a read signal and a write signal to the read / write line 7 in order to sequentially execute the programs stored in the ROM 2. Address line 5 from CPU1
Is the ROM 2 and the permission signal generating means 9 in the ASIC 4.
Then, it is connected to the judging means 8 and the address converting means 16. Further, the data line 6 capable of reading and writing instructions and data executed by the CPU 1 is the CPU 1
And ROM2 and RAM3. CPU
Read / write lines 7 from 1 are ROM 2 and RAM
3 is connected. Only the read signal is input to the ROM 2, and the instruction to be executed and necessary data are read to the CPU 1. A read signal and a write signal are input to the RAM 3, and the CPU 1 performs processing according to each signal.

【0026】判断手段8は、CPU1からのアドレス線
5から入力されるアドレス信号D1が指定するアドレス
が、ROM2内に記憶されている特定命令を示すアドレ
スと一致するか判断して、一致した場合には、検出信号
SSPを許可信号発生手段9とアドレス変換手段16と
に与え、一致結果信号X16をアドレス変換手段16に
与える。
The judging means 8 judges whether the address designated by the address signal D1 input from the address line 5 from the CPU 1 matches the address indicating the specific instruction stored in the ROM 2, and when they match. For example, the detection signal SSP is given to the permission signal generating means 9 and the address converting means 16, and the coincidence result signal X16 is given to the address converting means 16.

【0027】アドレス変換手段16は、CPU1からは
アドレス線5によってアドレス信号D1が与えられ、判
断手段8からは検出信号SSPと一致結果信号X16と
が与えられる。検出信号SSPが入力されると、一致結
果信号X16に基づいて作成されたRAM2内の第3ア
ドレスを示すアドレス信号D3がRAM3に出力され
る。また検出信号SSPが入力されない場合は、入力さ
れたアドレス信号D1がRAM3に出力される。
The address converting means 16 is supplied with the address signal D1 from the CPU 1 through the address line 5 and the detecting signal SSP and the coincidence result signal X16 from the judging means 8. When the detection signal SSP is input, the address signal D3 indicating the third address in the RAM2 created based on the match result signal X16 is output to the RAM3. When the detection signal SSP is not input, the input address signal D1 is output to the RAM3.

【0028】許可信号発生手段9は、アドレス線5を介
してCPU1からアドレス信号D1を入力し、判断手段
8から検出信号SSPを入力する。許可信号発生手段9
は、入力された信号に基づいて、ROM2の命令の読出
しを許可するROMセレクト信号、またはRAM3の命
令およびデータの読出しを許可するRAMセレクト信号
を、それぞれROM2またはRAM3に出力する。
The permission signal generating means 9 inputs the address signal D1 from the CPU 1 through the address line 5 and the detection signal SSP from the judging means 8. Permission signal generating means 9
Outputs to the ROM 2 or the RAM 3 a ROM select signal permitting the reading of the instruction of the ROM 2 or a RAM select signal permitting the reading of the instruction and the data of the RAM 3, respectively, based on the input signal.

【0029】たとえば、許可信号発生手段9は、入力さ
れたアドレス信号D1が第1アドレスを示し、検出信号
SSPが入力されない場合には、ROMセレクト信号を
ROM2に出力し、アドレス信号D1が第1アドレスを
示し、検出信号SSPが入力された場合には、RAMセ
レクト信号をRAM3に出力し、アドレス信号D1が第
2アドレスを示す場合には、RAMセレクト信号をRA
M3に出力する。
For example, when the input address signal D1 indicates the first address and the detection signal SSP is not input, the permission signal generating means 9 outputs the ROM select signal to the ROM2, and the address signal D1 indicates the first address. When the detection signal SSP is input, the RAM select signal is output to the RAM 3, and when the address signal D1 is the second address, the RAM select signal is RA.
Output to M3.

【0030】CPU1がアドレス信号D1をアドレス線
5に出力し、読出し信号をリード/ライト線7に出力す
ると、読出し信号は、ROM2およびRAM3に与えら
れる。アドレス信号D1は、判断手段8に与えられ、判
断手段8によって、アドレス信号D1の示すアドレスと
ROM2内の複数の特定命令のアドレスとが比較され、
一致するかどうかが判断される。
When the CPU 1 outputs the address signal D1 to the address line 5 and the read signal to the read / write line 7, the read signal is given to the ROM 2 and the RAM 3. The address signal D1 is given to the judging means 8, and the judging means 8 compares the address indicated by the address signal D1 with the addresses of a plurality of specific instructions in the ROM 2,
It is determined whether they match.

【0031】判断手段8が一致すると判断した場合に
は、判断手段8は、許可信号発生手段9とアドレス変換
手段16とに、検出信号SSPを出力し、アドレス変換
手段16に一致結果信号X16を出力する。アドレス変
換手段16は、一致結果信号X16に基づいて、第3ア
ドレスを示すアドレス信号D3を作成して、RAMアド
レス線15によって、アドレス信号D3をRAM3に出
力する。このとき許可信号発生手段9はRAMセレクト
信号をRAM3に出力する。したがって、RAM3の読
出しが許可されて、CPU1はROM2に記憶されてい
る命令に差し換えて、RAM3に記憶されている命令を
実行する。
When the judging means 8 judges that they coincide with each other, the judging means 8 outputs the detection signal SSP to the permission signal generating means 9 and the address converting means 16, and outputs the coincidence result signal X16 to the address converting means 16. Output. The address conversion means 16 creates an address signal D3 indicating the third address based on the coincidence result signal X16, and outputs the address signal D3 to the RAM3 via the RAM address line 15. At this time, the permission signal generating means 9 outputs a RAM select signal to the RAM 3. Therefore, the reading of the RAM 3 is permitted, and the CPU 1 replaces the instruction stored in the ROM 2 and executes the instruction stored in the RAM 3.

【0032】次に判断手段8が一致しないと判断した場
合に、アドレス信号D1の示すアドレスが第1アドレス
であるときには、判断手段8は、許可信号発生手段9と
アドレス変換手段16とに、検出信号SSPを出力しな
い。アドレス変換手段16は、RAMアドレス線15に
よって、入力したアドレス信号D1をRAM3に出力す
る。許可信号発生手段9はROMセレクト信号をROM
2に出力する。したがって、ROM2の読出しが許可さ
れて、CPU1はROM2に記憶されている命令を実行
する。
Next, when the judging means 8 judges that they do not coincide with each other and the address indicated by the address signal D1 is the first address, the judging means 8 detects the enable signal generating means 9 and the address converting means 16. Does not output the signal SSP. The address conversion means 16 outputs the input address signal D1 to the RAM 3 via the RAM address line 15. The permission signal generating means 9 outputs the ROM select signal to the ROM.
Output to 2. Therefore, the reading of the ROM 2 is permitted, and the CPU 1 executes the instruction stored in the ROM 2.

【0033】また判断手段8が一致しないと判断した場
合に、アドレス信号D1の示すアドレスが第2アドレス
であるときには、判断手段8は、許可信号発生手段9と
アドレス変換手段16とに、検出信号SSPを出力しな
い。アドレス変換手段16は、RAMアドレス線15に
よって、入力したアドレス信号D1をRAM3に出力す
る。許可信号発生手段9はRAMセレクト信号をRAM
3に出力する。したがって、RAM3の読出しが許可さ
れて、CPU1はRAM3に記憶されているデータを読
出して処理を行う。またリード/ライト線7に出力され
た信号が書込み信号の場合は、CPU1は、RAM3に
データを書込む処理を行う。
Further, when the judging means 8 judges that they do not coincide with each other and the address indicated by the address signal D1 is the second address, the judging means 8 causes the enable signal generating means 9 and the address converting means 16 to detect the detection signal. Do not output SSP. The address conversion means 16 outputs the input address signal D1 to the RAM 3 via the RAM address line 15. The permission signal generating means 9 sends the RAM select signal to the RAM.
Output to 3. Therefore, the reading of the RAM 3 is permitted, and the CPU 1 reads the data stored in the RAM 3 and performs the processing. If the signal output to the read / write line 7 is a write signal, the CPU 1 performs a process of writing data in the RAM 3.

【0034】判断手段8は、ROM2内に記憶される複
数の特定命令のアドレスを記憶するレジスタR1〜R
n、各レジスタR1〜Rnに記憶されたアドレスと、C
PU1からアドレス線5によって入力されたアドレス信
号の示すアドレスとを比較する比較器S1〜Sn、およ
び各比較器S1〜Snにおける各比較結果を入力して検
出信号SSPを出力するOR回路21を含んで構成され
る。
The judgment means 8 is a register R1 to R for storing the addresses of a plurality of specific instructions stored in the ROM2.
n, the address stored in each of the registers R1 to Rn, and C
It includes comparators S1 to Sn for comparing with the address indicated by the address signal input from PU1 via the address line 5, and an OR circuit 21 for inputting each comparison result in each comparator S1 to Sn and outputting a detection signal SSP. Composed of.

【0035】各レジスタR1〜Rnは、ROM2内に記
憶される複数の特定命令の各アドレスをそれぞれ記憶す
る。つまり、1つのレジスタには、1つの特定命令を示
すアドレスが記憶される。たとえば、1つの特定命令を
示すアドレスが“0110”である場合に、レジスタR
1には、“0110”が記憶される。
The registers R1 to Rn respectively store the addresses of a plurality of specific instructions stored in the ROM2. That is, an address indicating one specific instruction is stored in one register. For example, when the address indicating one specific instruction is “0110”, the register R
“0110” is stored in 1.

【0036】各比較器S1〜Snは、それぞれ2の入力
端子と1の出力端子とを備え、一方の各入力端子S1a
〜Snaには、各レジスタR1〜Rnがそれぞれ接続さ
れる。また各比較器S1〜Snの他方の各入力端子S1
b〜Snbには、CPU1からのアドレス線5がそれぞ
れ接続される。各比較器S1〜Snの出力のすべてがO
R回路21に入力され、OR回路21が論理和演算を行
い、その演算結果を検出信号SSPとしてアドレス変換
手段16と許可信号発生手段9とに出力する。さらに各
比較器S1〜Snの各出力である一致結果信号X16
は、アドレス変換手段16に与えられる。
Each of the comparators S1 to Sn has two input terminals and one output terminal, and one input terminal S1a.
Each register R1 to Rn is connected to Sna. The other input terminal S1 of each comparator S1 to Sn
Address lines 5 from the CPU 1 are connected to b to Snb, respectively. All the outputs of the comparators S1 to Sn are O.
It is input to the R circuit 21, the OR circuit 21 performs an OR operation, and the operation result is output to the address conversion means 16 and the permission signal generation means 9 as a detection signal SSP. Further, the coincidence result signal X16 which is each output of each comparator S1 to Sn
Is given to the address conversion means 16.

【0037】判断手段8において、アドレス線5によっ
てCPU1からアドレス信号D1が入力されると、各比
較器S1〜Snは、アドレス信号D1の示すアドレス
と、順次各レジスタR1〜Rnに記憶されている各アド
レスとの比較を行い、一致するかどうかを検出する。各
比較器S1〜Snは、一致を検出すると、OR回路21
にたとえばハイレベルの一致信号を出力し、さらに比較
器S1〜Snの各出力信号は一致結果信号X16として
アドレス変換手段16に与えられる。OR回路21は、
比較器S1〜Snのいずれか1つからハイレベルの一致
信号が与えられると、ハイレベルの検出信号SSPをア
ドレス変換手段16と許可信号発生手段9とに出力す
る。
In the judging means 8, when the address signal D1 is inputted from the CPU 1 through the address line 5, the comparators S1 to Sn are sequentially stored in the registers R1 to Rn and the address indicated by the address signal D1. It compares each address and detects whether they match. When the comparators S1 to Sn detect a match, the OR circuit 21
For example, a high-level match signal is output, and the output signals of the comparators S1 to Sn are applied to the address conversion means 16 as the match result signal X16. The OR circuit 21 is
When a high level coincidence signal is given from any one of the comparators S1 to Sn, a high level detection signal SSP is output to the address conversion means 16 and the permission signal generation means 9.

【0038】たとえば、レジスタR8に記憶されている
アドレスとCPU1から入力されたアドレス信号D1の
示すアドレスとにおいて、比較器S8が一致を検出した
場合に、ハイレベルの一致信号をOR回路21に出力
し、一致信号を含んだ一致結果信号X16をアドレス変
換手段16に出力する。OR回路21は、ハイレベルの
検出信号SSPをアドレス変換手段16と許可信号発生
手段9とに出力する。
For example, when the comparator S8 detects a match between the address stored in the register R8 and the address indicated by the address signal D1 input from the CPU 1, it outputs a high-level match signal to the OR circuit 21. Then, the match result signal X16 including the match signal is output to the address conversion means 16. The OR circuit 21 outputs the high-level detection signal SSP to the address conversion means 16 and the permission signal generation means 9.

【0039】許可信号発生手段9は、デコーダ23と、
AND回路24と、OR回路25と、ディレイユニット
22とを含んで構成される。
The permission signal generating means 9 includes a decoder 23,
The AND circuit 24, the OR circuit 25, and the delay unit 22 are included.

【0040】デコーダ23は、アドレス線5が接続さ
れ、CPU1からのアドレス信号D1が入力される。デ
コーダ23は、アドレス信号D1の示すアドレスが第1
アドレスである場合は、ハイレベルの選択信号CxをA
ND回路24の一方入力端子に出力し、一方、第2アド
レスである場合には、ハイレベルの選択信号CyをOR
回路25の一方入力端子に出力する。
The decoder 23 is connected to the address line 5 and receives the address signal D1 from the CPU 1. In the decoder 23, the address indicated by the address signal D1 is the first
If it is an address, the high level selection signal Cx is set to A
The signal is output to one input terminal of the ND circuit 24. On the other hand, when it is the second address, the high-level selection signal Cy is OR
It outputs to one input terminal of the circuit 25.

【0041】AND回路24は2入力の論理積回路であ
り、一方入力端子にはデコーダ23からの選択信号Cx
が入力され、他方入力端子には検出信号SSPが反転入
力される。AND回路24は、入力した信号に対する論
理積演算を行って、演算結果をROMセレクト信号とし
てROM2に出力する。
The AND circuit 24 is a 2-input AND circuit, and the selection signal Cx from the decoder 23 is applied to one input terminal.
Is input, and the detection signal SSP is inverted and input to the other input terminal. The AND circuit 24 performs an AND operation on the input signals and outputs the operation result to the ROM 2 as a ROM select signal.

【0042】OR回路23は、2入力の論理和回路であ
り、一方入力端子にはデコーダ23からの選択信号Cy
が入力され、他方入力端子には、ディレイユニット22
を間に介して検出信号SSPが入力される。OR回路2
3は、論理和演算を行って、演算結果をRAMセレクト
信号としてRAM3に出力する。
The OR circuit 23 is a 2-input OR circuit, and the selection signal Cy from the decoder 23 is applied to one input terminal.
Is input to the other input terminal and the delay unit 22
The detection signal SSP is input via the. OR circuit 2
3 performs a logical sum operation and outputs the operation result to the RAM 3 as a RAM select signal.

【0043】図2は、ディレイユニット22の構成例を
示す回路図である。ディレイユニット22は、予め定め
られる期間だけ入力信号を遅延させる遅延素子30とD
型フリップフロップ31とを含んで構成される。
FIG. 2 is a circuit diagram showing a configuration example of the delay unit 22. The delay unit 22 includes a delay element 30 and a delay element 30 that delay the input signal by a predetermined period.
And a type flip-flop 31.

【0044】ディレイユニット22には、検出信号SS
Pが入力される。入力された検出信号SSPは、遅延素
子30を介してD型フリップフロップ31のクロック端
子CKに入力される。また検出信号SSPの反転信号
は、D型フリップフロップ31の反転リセット端子に入
力され、D型フリップフロップ31の入力端子Dには一
定の直流電圧Vccが印加されている。
The delay unit 22 includes a detection signal SS
P is input. The input detection signal SSP is input to the clock terminal CK of the D-type flip-flop 31 via the delay element 30. Further, the inverted signal of the detection signal SSP is input to the inversion reset terminal of the D-type flip-flop 31, and the constant DC voltage Vcc is applied to the input terminal D of the D-type flip-flop 31.

【0045】ディレイユニット22に“L”から“H”
に立ち上がった検出信号SSPが入力されると、反転リ
セット端子には、反転した検出信号SSPが入力され、
クロック端子CKには、遅延素子30で予め定められる
時間分遅延されたハイレベルの検出信号が入力される。
したがって、検出信号SSPが入力されてから、遅延素
子30に定められた遅延時間と、D型フリップフロップ
31においてクロック端子CKのレベルが変化してから
出力端子Qのレベルが変化するまでに要する時間との和
の時間だけ遅延して、出力信号のレベルが変化する。逆
にディレイユニット22に“H”から“L”に立ち下が
った検出信号SSPが入力されると、D型フリップフロ
ップ31において反転リセット端子のレベルが変化して
から出力端子Qのレベルが変化するまでに要する時間だ
け遅延して、出力信号が立ち下がる。
"L" to "H" for the delay unit 22
When the detection signal SSP that has risen at is input, the inverted detection signal SSP is input to the inverting reset terminal,
A high-level detection signal delayed by a predetermined time by the delay element 30 is input to the clock terminal CK.
Therefore, after the detection signal SSP is input, the delay time determined in the delay element 30 and the time required from the level of the clock terminal CK in the D-type flip-flop 31 to the level of the output terminal Q changes. The level of the output signal changes with a delay of the sum of and. Conversely, when the detection signal SSP falling from "H" to "L" is input to the delay unit 22, the level of the inverting reset terminal in the D-type flip-flop 31 changes and then the level of the output terminal Q changes. The output signal falls with a delay of the time required until.

【0046】アドレス変換手段16は、RAM2内に記
憶される特定命令に代えて実行させるべき命令を示す第
3アドレスを指定するアドレス信号D3を生成するエン
コーダユニット10と、判断手段8から出力された検出
信号SSPに基づいて、CPU1から出力されたアドレ
ス信号D1とエンコーダユニット10が生成したアドレ
ス信号D3とのどちらか一方をRAM3に出力するセレ
クタ11とを含んで構成される。
The address conversion means 16 outputs from the encoder unit 10 for generating an address signal D3 designating a third address indicating an instruction to be executed in place of the specific instruction stored in the RAM 2, and the determination means 8. The selector 11 is configured to output to the RAM 3 either the address signal D1 output from the CPU 1 or the address signal D3 generated by the encoder unit 10 based on the detection signal SSP.

【0047】図3は、エンコーダユニット10の具体的
構成例を示すブロック図であり、図4はRAM3内の第
3アドレスに指定された記憶領域を示した図である。エ
ンコーダユニット10は、図3に示されるように、16
本ずつの入力信号線および出力信号線を有し、判断手段
8から16ビットの一致結果信号X16を入力する。な
お、ここでは判断手段8のレジスタR1〜Rnに記憶さ
れる特定命令の数は、16個以下であるとし、nの数値
は“16”以下であるとする。エンコーダユニット10
は、第3アドレスを指定するアドレス信号D3のうちの
4ビットを一致結果信号X16に基づいて算出するエン
コーダ35と、アドレス信号D3のうちの10ビットを
RAM3の第3アドレスに対応して記憶するメモリ36
とを含んで構成される。なお、エンコーダユニット10
は、16の出力端子A0〜A15を備える。出力端子A
0は、LSB(最下位ビット)を示し、出力端子A15
は、MSB(最上位ビット)を示す。またここでは、エ
ンコーダユニット10の出力端子A0,A1は、エンコ
ーダユニット10の内部でグランド電位に接続され、常
時ローレベルの信号を出力する。
FIG. 3 is a block diagram showing a concrete configuration example of the encoder unit 10, and FIG. 4 is a diagram showing a storage area designated in the RAM 3 at the third address. The encoder unit 10 has 16 units as shown in FIG.
It has an input signal line and an output signal line for each line, and receives the 16-bit coincidence result signal X16 from the judging means 8. Here, it is assumed that the number of specific instructions stored in the registers R1 to Rn of the judging means 8 is 16 or less, and the numerical value of n is "16" or less. Encoder unit 10
Stores an encoder 35 that calculates 4 bits of the address signal D3 designating the third address based on the match result signal X16, and stores 10 bits of the address signal D3 corresponding to the third address of the RAM 3. Memory 36
It is comprised including. The encoder unit 10
Has 16 output terminals A0 to A15. Output terminal A
0 indicates the LSB (least significant bit), and the output terminal A15
Indicates the MSB (most significant bit). Further, here, the output terminals A0 and A1 of the encoder unit 10 are connected to the ground potential inside the encoder unit 10 and always output a low level signal.

【0048】エンコーダ35は、判断手段8からの一致
結果信号X16が入力され、エンコーダユニット10の
出力端子A2〜A5から出力される4ビットの信号を作
成する。たとえば、判断手段8の比較器S5がアドレス
信号D1の示す第1アドレスとレジスタR5の記憶され
た第1アドレスとの一致を検出した場合には、エンコー
ダ35には、5番目の入力信号線のみがハイレベルの一
致結果信号X16が与えられ、4ビットの“0101”
の信号が生成され、出力端子A2〜A5から出力され
る。
The encoder 35 receives the coincidence result signal X16 from the judging means 8 and produces a 4-bit signal output from the output terminals A2 to A5 of the encoder unit 10. For example, when the comparator S5 of the judging means 8 detects a match between the first address indicated by the address signal D1 and the first address stored in the register R5, the encoder 35 has only the fifth input signal line. Is given a high-level match result signal X16 and 4-bit "0101"
Signal is generated and output from the output terminals A2 to A5.

【0049】メモリ36には、エンコーダユニット10
の出力端子A6〜A15から出力される10ビットのア
ドレスが記憶され、アドレス信号D3の上位10ビット
として各出力端子A6〜A15から出力される。エンコ
ーダ35によって生成されたアドレス信号D3の4ビッ
トと、メモリ36に予め記憶されているアドレス信号D
3の10ビットと、出力端子A0,A1を強制的にロー
レベルにすることによって作成されるアドレス信号D3
の2ビットとによって、エンコーダユニット10の出力
端子A0〜A15から16ビットのアドレス信号D3が
出力される。
In the memory 36, the encoder unit 10
The 10-bit address output from the output terminals A6 to A15 is stored and is output from the output terminals A6 to A15 as the upper 10 bits of the address signal D3. 4 bits of the address signal D3 generated by the encoder 35 and the address signal D previously stored in the memory 36
3 bit and address signal D3 created by forcibly setting the output terminals A0 and A1 to low level
2 bits, the 16-bit address signal D3 is output from the output terminals A0 to A15 of the encoder unit 10.

【0050】このように、アドレス信号D3は、判断手
段8のレジスタR1〜R16に記憶される特定命令のア
ドレスとCPU1からのアドレス信号D1の示すアドレ
スとの一致を検出した各比較器S1〜S16に応じて決
定される。たとえば出力されたアドレス信号D3におい
て、メモリ36からのアドレス信号D3の上位10ビッ
トの出力がTBLADRである場合には、TBLAD
R,TBLADR+4,…,TBLADR+4×15と
なり、RAM3内の第3アドレスに示される記憶領域
は、図4に示されるような構成となる。
As described above, the address signal D3 is detected by the comparators S1 to S16 which detect the coincidence between the address of the specific instruction stored in the registers R1 to R16 of the judging means 8 and the address indicated by the address signal D1 from the CPU 1. It is decided according to. For example, in the output address signal D3, when the upper 10 bits of the address signal D3 from the memory 36 is TBLADR, TBLAD
R, TBLADR + 4, ..., TBLADR + 4 × 15, and the storage area at the third address in the RAM 3 has the configuration shown in FIG.

【0051】たとえば、比較器S1が一致を検出した場
合には、エンコーダ35によって、アドレス信号D3の
下位6ビットは“000000”となり、アドレス信号
D3の示すアドレスはTBLADRとなり、CPU1は
ROM2内の特定命令と差し換えて、RAM3内の記憶
領域m1の命令である絶対ジャンプ命令を実行し、その
ジャンプ先の処理が行われる。また比較器S2が一致を
検出した場合には、エンコーダ35によって、アドレス
信号D3の下位6ビットは“000100”となり、ア
ドレス信号D3の示すアドレスはTBLADR+4とな
り、CPU1はROM2内の特定命令と差し換えて、R
AM3内の記憶領域m2の命令である絶対ジャンプ命令
を実行し、そのジャンプ先の処理が行われる。以下同様
に比較器S3〜S15がそれぞれ一致を検出した場合に
は、エンコーダ35によって、アドレス信号D3の下位
6ビットが決定され、アドレス信号D3の示すアドレス
はTBLADR+4×2,TBLADR+4×3,…,
TBLADR+4×15となり、CPU1はROM2内
の特定命令と差し換えて、RAM3内の各記憶領域m3
〜m16の命令である絶対ジャンプ命令を実行し、その
ジャンプ先の処理が行われる。
For example, when the comparator S1 detects a match, the lower 35 bits of the address signal D3 becomes "000000" by the encoder 35, the address indicated by the address signal D3 becomes TBLADR, and the CPU 1 specifies in the ROM2. Instead of the instruction, an absolute jump instruction which is an instruction in the storage area m1 in the RAM 3 is executed, and the processing of the jump destination is performed. When the comparator S2 detects a match, the encoder 35 causes the lower 6 bits of the address signal D3 to be “000100”, the address indicated by the address signal D3 to be TBLADR + 4, and the CPU 1 replaces the specific instruction in the ROM 2 with it. , R
The absolute jump instruction which is the instruction of the storage area m2 in the AM3 is executed, and the processing of the jump destination is performed. Similarly, when the comparators S3 to S15 respectively detect a match, the encoder 35 determines the lower 6 bits of the address signal D3, and the address indicated by the address signal D3 is TBLADR + 4 × 2, TBLADR + 4 × 3 ,.
TBLADR + 4 × 15, and the CPU 1 replaces the specific instruction in the ROM 2 with each storage area m3 in the RAM 3
The absolute jump instruction, which is the instruction up to m16, is executed, and the processing of the jump destination is performed.

【0052】図5は、RAM3から命令を読出す際の動
作を説明するためのタイムチャートである。CPU1か
らアドレス線5にアドレス信号D1が出力されると、図
5に示すようにアドレス線のレベルが変化する。判断手
段8において、CPU1から出力されたアドレス信号D
1と各レジスタR1〜Rnに記憶された各特定命令のア
ドレスとが一致した場合、期間Aだけ遅延して検出信号
SSPが立ち上がる。期間Aは、判断手段8の各比較器
S1〜SnとOR回路21とによる遅延時間を示す。
FIG. 5 is a time chart for explaining the operation when reading an instruction from the RAM 3. When the address signal D1 is output from the CPU 1 to the address line 5, the level of the address line changes as shown in FIG. In the judging means 8, the address signal D outputted from the CPU 1
When 1 and the address of each specific instruction stored in each register R1 to Rn match, the detection signal SSP rises with a delay of the period A. The period A indicates a delay time by each of the comparators S1 to Sn of the judging means 8 and the OR circuit 21.

【0053】RAMアドレス線15のレベルは、アドレ
ス線5のレベルの変化に同期して変化する。セレクタ1
1は、検出信号SSPが入力されると(立上がると)、
エンコーダユニット10が生成したアドレス信号がRA
M3に出力されるように切換わる。したがって、RAM
アドレス線15は、検出信号SSPの立ち上がり時刻か
ら期間Bだけ遅延して、さらにRAMアドレス線15が
変化する。期間Bは、セレクタ11の出力の変更にかか
る遅延時間である。
The level of the RAM address line 15 changes in synchronization with the change of the level of the address line 5. Selector 1
1, when the detection signal SSP is input (when it rises),
The address signal generated by the encoder unit 10 is RA
The output is switched to M3. Therefore RAM
The address line 15 is delayed by the period B from the rising time of the detection signal SSP, and the RAM address line 15 is further changed. The period B is a delay time required for changing the output of the selector 11.

【0054】許可信号発生手段9のディレイユニット2
2は、“L”から“H”に立ち上がった検出信号SSP
が入力されると、RAMセレクト信号をRAM3に出力
する。そのため、RAMセレクト信号は検出信号SSP
が立ち上がってから期間B+Cだけ遅延して立ち上が
る。期間B+Cは、遅延素子30に定められた遅延時間
と、D型フリップフロップ31のクロック端子CKのレ
ベルが変化してから出力端子Qのレベルが変化するまで
に要する遅延時間とを加算した遅延時間を示す。これに
よって、CPU1にはRAM3からの命令が与えられ、
ROM2にはROMセレクト信号が入力されないため、
ROM2からの命令の読出しは行われない。
Delay unit 2 of permission signal generating means 9
2 is a detection signal SSP that rises from "L" to "H"
Is input, a RAM select signal is output to RAM3. Therefore, the RAM select signal is the detection signal SSP.
Rises with a delay of B + C after the rise. The period B + C is a delay time obtained by adding the delay time determined by the delay element 30 and the delay time required from the change of the level of the clock terminal CK of the D-type flip-flop 31 to the change of the level of the output terminal Q. Indicates. As a result, the instruction from the RAM 3 is given to the CPU 1,
Since no ROM select signal is input to ROM2,
No instructions are read from the ROM2.

【0055】期間B+Cの遅延時間は、アドレス信号D
3がRAM3に入力されるために要するセットアップ時
間を確保するために設けられる。これは、RAM3にア
ドレス信号D3より先にRAMセレクト信号の入力(立
ち上げ)が行われると、本来入力されるアドレス信号D
3とは異なるアドレス信号によってアドレスが指定さ
れ、そのために本来実行させるべき命令とは異なる命令
がCPU1に入力され、これによってCPU1の誤動作
が生じるためである。
The delay time of the period B + C is the address signal D
3 is provided in order to ensure the setup time required for the data to be input to the RAM 3. This is because when the RAM select signal is input (started) to the RAM 3 before the address signal D3, the address signal D originally input is input.
This is because an address is designated by an address signal different from 3, and therefore an instruction different from the instruction to be originally executed is input to the CPU 1, which causes malfunction of the CPU 1.

【0056】CPU1は、ROM2に記憶されている特
定命令に差し換えてRAM3内の第3アドレスに示され
る命令を実行した後に、次のアドレス信号D1をアドレ
ス線5に出力すると、図5に示されるようにアドレス線
5のレベルは変化する。
When the CPU 1 outputs the next address signal D1 to the address line 5 after executing the instruction indicated by the third address in the RAM 3 in place of the specific instruction stored in the ROM 2, it is shown in FIG. Thus, the level of the address line 5 changes.

【0057】出力されたアドレス信号D1が判断手段8
の各比較器S1〜Snに入力されて、一致が検出されな
い場合には、そのアドレス線5のレベル変化から時間D
だけ遅れて検出信号SSPが立ち下がる。期間Dは、判
断手段8の各比較器S1〜SnとOR回路21とによる
遅延時間を示す。
The output address signal D1 is the judgment means 8
When no match is detected by being input to each of the comparators S1 to Sn, the time change from the level change of the address line 5 to the time D
The detection signal SSP falls with a delay. The period D indicates a delay time by each of the comparators S1 to Sn of the judging means 8 and the OR circuit 21.

【0058】検出信号SSPが立ち下がると、アドレス
変換手段16のセレクタ11は、CPU1が出力したア
ドレス信号D1を、RAM3に出力するように切換わ
る。したがって、RAMアドレス線15は、検出信号S
SPの立ち下がり時刻から期間Eだけ遅延して、レベル
が変化する。期間Eは、セレクタ11の出力の変更にか
かる遅延時間である。
When the detection signal SSP falls, the selector 11 of the address conversion means 16 switches to output the address signal D1 output by the CPU 1 to the RAM 3. Therefore, the RAM address line 15 is connected to the detection signal S
The level changes with a delay of a period E from the fall time of SP. The period E is a delay time required for changing the output of the selector 11.

【0059】許可信号発生手段9のディレイユニット2
2は、検出信号SSPが“H”から“L”に立ち下がる
と、RAMセレクト信号を“H”から“L”に立ち下げ
る。そのため、RAMセレクト信号は検出信号SSPが
立ち下がってから期間Fだけ遅延して立ち下がる。期間
Fは、D型フリップフロップ31の反転リセット端子の
レベルが変化してから出力端子Qのレベルが変化するま
でに要する遅延時間を示す。期間Fは、RAMセレクト
信号が立ち上がる場合の期間Cより短く設定され、RA
Mアドレス線15の立ち下がりとほぼ同時にRAMセレ
クト信号も立ち下がる。これによって、不要なRAMセ
レクト信号の出力によって生ずるCPU1の誤動作が防
止される。
Delay unit 2 of permission signal generating means 9
2 lowers the RAM select signal from "H" to "L" when the detection signal SSP falls from "H" to "L". Therefore, the RAM select signal falls with a delay of the period F after the detection signal SSP falls. The period F indicates a delay time required from the change of the level of the inverting reset terminal of the D-type flip-flop 31 to the change of the level of the output terminal Q. The period F is set shorter than the period C when the RAM select signal rises, and RA
At almost the same time as the fall of the M address line 15, the RAM select signal also falls. This prevents malfunction of the CPU 1 caused by the output of an unnecessary RAM select signal.

【0060】図6は、発明の実施の他の形態を説明する
ための図であり、図6(1)は、前述の実施の形態にお
けるレジスタ構成を示す図であり、図6(2)は、本実
施の形態におけるレジスタ構成を示す図である。図6
(1)に示される構成Aでは、1つの特定命令を指定す
るアドレスは、1つのレジスタに記憶される。したがっ
て、レジスタに記憶すべきアドレス数が増加すると、そ
れに伴ってレジスタの数が増加し、さらにレジスタ数の
増加に比例してレジスタを構成するゲート数も増加す
る。またレジスタR1〜Rnが設けられるASIC内で
用いられるゲート数は制限されているため、記憶すべき
アドレスが増加してもレジスタの増加を制限数を超えな
い程度に抑える必要がある。
FIG. 6 is a diagram for explaining another embodiment of the invention, FIG. 6 (1) is a diagram showing a register configuration in the above-mentioned embodiment, and FIG. 6 (2) is a diagram. FIG. 3 is a diagram showing a register configuration in the present embodiment. FIG.
In the configuration A shown in (1), the address designating one specific instruction is stored in one register. Therefore, when the number of addresses to be stored in the register increases, the number of registers increases accordingly, and the number of gates configuring the register also increases in proportion to the increase in the number of registers. Further, since the number of gates used in the ASIC in which the registers R1 to Rn are provided is limited, it is necessary to suppress the increase in the number of registers so as not to exceed the limited number even if the number of addresses to be stored increases.

【0061】そこで本実施の形態では、図6(2)に示
されるように、1つの上位ビットを記憶する上位ビット
レジスタRA1と、その上位ビットを共通に持つ複数の
下位ビットを記憶する下位ビットレジスタR1a〜Rn
aから構成されるグループBと、別の1つの上位ビット
を記憶する上位ビットレジスタRA2と、その別の上位
ビットを共通に持つ複数の下位ビットを記憶する下位ビ
ットレジスタR1b〜Rnbから構成されるグループC
とでレジスタを構成する。つまり、上位ビットの共通な
複数の下位ビットを1グループとして、複数のグループ
単位でアドレスを記憶する。これによって、図6(1)
のレジスタ構成より、(上位ビット数)×(記憶するア
ドレスの数−グループ数)分のビットレジスタ数を減少
させることができ、それに伴ってゲート数を減少させる
ことができる。たとえば、構成Aのレジスタの総本数を
32本とし、上位ビットを4ビットとして、グループ
B,Cの2つのグループに分割すると、4×(32−
2)=120より、120ビット分のレジスタ数Gを減
少させることができる。
Therefore, in the present embodiment, as shown in FIG. 6B, an upper bit register RA1 for storing one upper bit and a lower bit for storing a plurality of lower bits having the upper bit in common. Registers R1a to Rn
a group B composed of a, another upper bit register RA2 for storing another upper bit, and lower bit registers R1b to Rnb for storing a plurality of lower bits having another upper bit in common Group C
And form a register. That is, a plurality of lower bits that are common to the upper bits are set as one group, and the address is stored in units of a plurality of groups. As a result, FIG. 6 (1)
From the register configuration of (1), the number of bit registers of (the number of upper bits) × (the number of addresses to be stored-the number of groups) can be reduced, and the number of gates can be reduced accordingly. For example, if the total number of registers of the configuration A is 32 and the upper bits are 4 bits and divided into two groups B and C, 4 × (32−
From 2) = 120, the number of registers G for 120 bits can be reduced.

【0062】図7は、本実施の形態における判断手段4
0の具体的構成例を示す図である。判断手段40は、上
述したように、アドレスのグループ単位で回路が構成さ
れる。1つのグループは、ROM2内に記憶された特定
命令のアドレスの各上位ビットを記憶する上位ビットレ
ジスタRA1と、上位ビットレジスタRA1に記憶され
た上位ビットを共通に持つアドレスの各下位ビットを記
憶する下位ビットレジスタR1a〜Rnaと、上位ビッ
トレジスタRA1に記憶されたアドレスの上位ビットと
CPU1から入力されたアドレス信号D1の示すアドレ
スの上位ビットとの比較を行う上位ビット比較器SA1
と、各下位ビットレジスタR1a〜Rnaに記憶された
アドレスの下位ビットとCPU1から入力されたアドレ
ス信号D1のアドレスの下位ビットとの比較を行う下位
ビット比較器Sa1〜Sanと、上位ビット比較器SA
1の比較結果と各下位ビット比較器Sa1〜Sanの各
比較結果とを入力して、論理積演算を行うAND回路A
1a〜Anaと、各AND回路A1a〜Anaの演算結
果を入力して論理和演算を行い、グループの比較結果を
出力する第1OR回路OA1とを含んで構成される。こ
こでは、1グループのみについて説明を行ったが、他の
グループも同様の構成である。さらに判断手段40は、
各第1OR回路OA1〜OAxからの比較結果を入力し
て、検出信号SSPを出力する第2OR回路41を含ん
で構成される。
FIG. 7 shows the judging means 4 in this embodiment.
It is a figure which shows the example of a specific structure of 0. As described above, the determining unit 40 is configured by a circuit in units of addresses. One group stores an upper bit register RA1 that stores each upper bit of an address of a specific instruction stored in the ROM 2 and each lower bit of an address that commonly has the upper bit stored in the upper bit register RA1. Lower bit register R1a to Rna and upper bit comparator SA1 for comparing the upper bit of the address stored in upper bit register RA1 with the upper bit of the address indicated by address signal D1 input from CPU1.
A lower bit comparator Sa1 to San for comparing the lower bit of the address stored in each lower bit register R1a to Rna with the lower bit of the address of the address signal D1 input from the CPU1, and an upper bit comparator SA.
An AND circuit A which inputs the comparison result of 1 and the comparison results of the lower bit comparators Sa1 to San and performs a logical product operation
1a to Ana and a first OR circuit OA1 which inputs the operation results of the AND circuits A1a to Ana, performs a logical sum operation, and outputs the comparison result of the groups. Although only one group has been described here, other groups have the same configuration. Further, the judging means 40
It is configured to include a second OR circuit 41 which inputs the comparison result from each of the first OR circuits OA1 to OAx and outputs the detection signal SSP.

【0063】判断手段40において、アドレス線5によ
ってCPU1からアドレス信号D1が入力されると、上
位ビット比較器SA1はアドレス信号D1の示すアドレ
スの上位ビットと、上位ビットレジスタRA1に記憶さ
れているアドレスの上位ビットとを比較し、さらに各下
位ビット比較器Sa1〜Sanはアドレス信号D1の示
すアドレスの下位ビットと、各下位ビットレジスタR1
a〜Rnaに記憶されている各下位ビットとをそれぞれ
比較する。上位ビット比較器SA1と各下位ビット比較
器Sa1〜Sanとの両方が一致した場合に、両方の比
較器ともハイレベル信号を出力する。その2つのハイレ
ベルの信号を入力したAND回路A1a〜Anaの中の
1つのAND回路は、ハイレベルの一致信号を第1OR
回路OA1に出力する。ハイレベルの一致信号が入力さ
れた第1OR回路OA1は、第2OR回路41にハイレ
ベルの一致信号を出力し、第2OR回路41はハイレベ
ルの検出信号SSPを出力する。
In the judging means 40, when the address signal D1 is inputted from the CPU 1 through the address line 5, the upper bit comparator SA1 causes the upper bit of the address indicated by the address signal D1 and the address stored in the upper bit register RA1. Of the lower bit of the address indicated by the address signal D1 and the lower bit register R1.
The lower bits stored in a to Rna are compared with each other. When both the high-order bit comparator SA1 and each of the low-order bit comparators Sa1 to San match, both comparators output a high level signal. One of the AND circuits A1a to Ana that has input the two high-level signals inputs the high-level match signal to the first OR.
Output to the circuit OA1. The first OR circuit OA1 to which the high-level match signal is input outputs a high-level match signal to the second OR circuit 41, and the second OR circuit 41 outputs a high-level detection signal SSP.

【0064】たとえば、上位ビットレジスタRA1に記
憶されている上位ビットと、入力されたアドレス信号D
1の上位ビットとにおいて、上位ビット比較器SA1が
一致を検出し、下位ビットレジスタR5aに記憶されて
いる下位ビットと、入力されたアドレス信号D1の下位
ビットとにおいて、下位ビット比較器S5aが一致を検
出した場合に、上位ビット比較器SA1と下位ビット比
較器S5aとがハイレベルの信号を出力し、両方の入力
にハイレベルの信号が入力されたAND回路A5aはハ
イレベルの一致信号を第1OR回路OA1に出力する。
第1OR回路OA1はハイレベルの一致信号の入力によ
って、第2OR回路41にハイレベルの一致信号を出力
する。第2OR回路41は、ハイレベルの検出信号SS
Pをアドレス変換手段16と許可信号発生手段9に出力
する。
For example, the high-order bit stored in the high-order bit register RA1 and the input address signal D
The upper bit comparator SA1 detects a match with the upper bit of 1, and the lower bit comparator S5a matches the lower bit stored in the lower bit register R5a and the lower bit of the input address signal D1. If the high-order bit comparator SA1 and the low-order bit comparator S5a output high-level signals, and the high-level signals are input to both inputs, the AND circuit A5a outputs the high-level match signal Output to the 1OR circuit OA1.
The first OR circuit OA1 outputs a high-level match signal to the second OR circuit 41 when the high-level match signal is input. The second OR circuit 41 has a high level detection signal SS.
P is output to the address conversion means 16 and the permission signal generation means 9.

【0065】図8は、本実施の形態における他のレジス
タ構成例を示す図であり、図8(1)は前述の実施の形
態におけるレジスタ構成AAを示し、図8(2)はレジ
スタ構成AAと総ビット数が同じであるレジスタ構成D
を示す図である。ここでは、24ビットのアドレス線を
有する場合を想定する。24ビットのアドレス線を有す
るプログラム実行装置は、16Mバイトのアドレス空間
を有する。レジスタ構成AAは、1つのレジスタで24
ビットのアドレスが記憶でき、32本のレジスタR1〜
R32によって構成され、レジスタ構成AAの総ビット
数は、24×32=768ビットとなる。同じ総ビット
数で、1つの上位ビットレジスタと複数の下位ビットレ
ジスタとからなるグループを2つ作成すると、図8
(2)に示されるように、レジスタ構成Dは、4ビット
の上位ビットレジスタRA1と19本の20ビットレジ
スタである下位ビットレジスタR1a〜R19aとで構
成されるグループBB、および上位ビットレジスタRA
2と下位ビットレジスタR1b〜R19bとで構成され
るグループCCで構成される。このため、レジスタ構成
Dでは、38個のアドレスを記憶することができ、レジ
スタ構成AAの場合の32個よりも6個多いアドレスを
記憶することができる。したがって、レジスタ構成の総
ビット数が同一であれば、1対1対応でアドレスを記憶
するレジスタ構成AAより、記憶できるアドレスの数を
増やすことができる。
FIG. 8 is a diagram showing another example of register configuration in the present embodiment. FIG. 8 (1) shows the register configuration AA in the above-mentioned embodiment, and FIG. 8 (2) shows the register configuration AA. Configuration D with the same total number of bits as
FIG. Here, it is assumed that there is a 24-bit address line. A program execution device having a 24-bit address line has an address space of 16 Mbytes. Register configuration AA is 24 in one register
Bit address can be stored and 32 registers R1 ~
The total number of bits of the register configuration AA configured by R32 is 24 × 32 = 768 bits. If two groups of one high-order bit register and a plurality of low-order bit registers are created with the same total number of bits,
As shown in (2), the register configuration D includes a group BB composed of a 4-bit upper bit register RA1 and nineteen lower bit registers R1a to R19a, and an upper bit register RA.
2 and lower bit registers R1b to R19b. Therefore, 38 addresses can be stored in the register configuration D, and 6 more addresses than the 32 addresses in the register configuration AA. Therefore, if the total number of bits in the register configuration is the same, the number of addresses that can be stored can be increased compared to the register configuration AA that stores addresses in a one-to-one correspondence.

【0066】なお、記憶される特定命令のアドレスの上
位ビットを共有した場合に、特定命令を示す複数のアド
レスが近隣に集中したときに、下位ビットレジスタ数が
足りなくなる可能性が考えられるが、全体のアドレス空
間において、ROM2の第1アドレスの占める空間は、
全体のアドレス空間の一部となるため、上位ビットレジ
スタのビット数を調整して上位ビットをROM2の第1
アドレス空間に対応させることによって、回避すること
ができる。たとえば、ROM2の記憶領域が1Mバイト
の場合には、上位4ビットを上位ビットレジスタRA1
に記憶させ、下位20ビットを下位ビットレジスタR1
a〜Rnaに記憶させることができ、ROM2の記憶領
域が2Mバイトの場合には、一方の上位4ビットを上位
ビットレジスタRA1に記憶させ、その上位ビットに対
応した下位20ビットを下位ビットレジスタR1a〜R
naに記憶させ、他方の上位4ビットを上位ビットレジ
スタRA2に記憶させ、その上位ビットに対応した下位
20ビットを下位ビットレジスタR1b〜Rnbに記憶
させることにより、上記不都合を回避することができ
る。
When the upper bits of the address of a specific instruction to be stored are shared, the number of lower bit registers may be insufficient when a plurality of addresses indicating the specific instruction are concentrated in the neighborhood. In the entire address space, the space occupied by the first address of ROM2 is
Since it becomes a part of the entire address space, the number of bits of the high-order bit register is adjusted so that the high-order bit is the first bit of the ROM 2.
This can be avoided by associating with the address space. For example, when the storage area of the ROM 2 is 1 Mbyte, the upper 4 bits are set to the upper bit register RA1
And store the lower 20 bits in the lower bit register R1.
a to Rna, and when the storage area of the ROM 2 is 2 Mbytes, one upper 4 bits is stored in the upper bit register RA1 and the lower 20 bits corresponding to the upper bit are stored in the lower bit register R1a. ~ R
The above inconvenience can be avoided by storing the upper 4 bits of the other in the upper bit register RA2 and storing the lower 20 bits corresponding to the upper bit in the lower bit registers R1b to Rnb.

【0067】図9は、本発明の実施のさらに他の形態に
おけるエンコーダユニット10の電気的構成を示すブロ
ック図である。図1と同様の構成には、同一の参照符を
付与して説明を省略する。エンコーダユニット10は、
レジスタ化されたメモリ36を備える。エンコーダユニ
ット10を備えるアドレス変換手段16は、メモリ36
専用のデコーダ45を備える。CPU1からデコーダ4
5にアドレス線46が接続され、デコーダ45にアドレ
ス信号が入力されると、セレクト線48によって、メモ
リ36にセレクト信号が出力される。メモリ36にはデ
ータ線47と、リード/ライト線49が接続される。こ
れによって、CPU1からの読出し/書込み信号と、デ
コーダ45からのセレクト信号によって、メモリ36内
に記憶される第3アドレスの上位ビットが自由に読み書
きできる。
FIG. 9 is a block diagram showing an electrical configuration of an encoder unit 10 according to still another embodiment of the present invention. The same components as those in FIG. 1 are designated by the same reference numerals and the description thereof will be omitted. The encoder unit 10 is
It comprises a memory 36 that is registered. The address conversion means 16 including the encoder unit 10 includes a memory 36.
A dedicated decoder 45 is provided. CPU1 to decoder 4
When the address line 46 is connected to 5 and the address signal is input to the decoder 45, the select signal is output to the memory 36 by the select line 48. A data line 47 and a read / write line 49 are connected to the memory 36. As a result, the upper bit of the third address stored in the memory 36 can be freely read and written by the read / write signal from the CPU 1 and the select signal from the decoder 45.

【0068】[0068]

【発明の効果】以上のように本発明によれば、判断手段
によって、命令実行手段からのアドレス信号の指定する
アドレスが、特定命令が記憶されたアドレスと一致して
いると判断されたときに、アドレス変換手段から第2記
憶手段のアドレスを示すアドレス信号が第1および第2
記憶手段に与えられ、また許可信号発生手段からは、第
2記憶手段に許可信号が与えられることによって、本来
第1記憶手段から出力されるべき特定命令に代えて、第
2記憶手段から命令が出力されて命令実行手段で実行さ
れる。したがって、第1および第2従来技術のように、
たとえばCPUで実現される命令実行手段が持つ割り込
み処理を利用して、実行すべきプログラムを構成する命
令の内のいずれかの命令を差し換える場合より、命令実
行手段におけるプログラム実行処理以外の処理であるオ
ーバーヘッドが軽減できる。さらに第1従来技術のよう
に、たとえばCPUで実現される命令実行手段の割り込
み処理を用いないため、別の割り込み処理を滞らせるこ
とを防ぐことができる。
As described above, according to the present invention, when it is judged by the judging means that the address designated by the address signal from the instruction executing means coincides with the address in which the specific instruction is stored. , An address signal indicating an address of the second storage means from the address conversion means is the first and second address signals.
By giving a permission signal to the second storage means from the permission signal generation means and given to the storage means, an instruction from the second storage means is given instead of the specific instruction that should originally be output from the first storage means. It is output and executed by the instruction executing means. Therefore, as in the first and second prior arts,
For example, by using the interrupt processing of the instruction executing means realized by the CPU, and replacing any one of the instructions constituting the program to be executed, the processing other than the program executing processing in the instruction executing means is performed. Some overhead can be reduced. Further, unlike the first conventional technique, since the interrupt processing of the instruction executing means realized by the CPU is not used, it is possible to prevent the interruption of another interrupt processing.

【0069】また本発明によれば、第2記憶手段は、読
出し/書込み自在であり、第1記憶手段の第1アドレス
とは異なる複数の第2アドレスがそれぞれ設定されたデ
ータ記憶領域を有する。また第2記憶手段は、第2アド
レス内に存在する1以上の第3アドレスに示されるデー
タ記憶領域に、第1記憶手段に記憶されている命令の内
の特定命令に代えて実行させるべき命令が記憶されてい
る。したがって、命令実行手段がプログラム実行中に必
要に応じていわゆるワークエリアとして使用するRAM
などを用いて第2記憶手段を実現することができるの
で、特定命令に代えて実行させるべき命令を記憶させる
ための専用の記憶手段を用意する必要がなく、比較的簡
単な構成で既存の手段を利用して本発明を実現すること
ができる。
Further, according to the present invention, the second storage means is readable / writable and has a data storage area in which a plurality of second addresses different from the first address of the first storage means are respectively set. Further, the second storage means is an instruction to be executed in the data storage area indicated by one or more third addresses existing in the second address, instead of the specific instruction among the instructions stored in the first storage means. Is remembered. Therefore, a RAM used by the instruction executing means as a so-called work area as needed during program execution.
Since it is possible to realize the second storage means by using, for example, it is not necessary to prepare a dedicated storage means for storing an instruction to be executed instead of the specific instruction, and the existing means has a relatively simple configuration. The present invention can be realized by utilizing.

【0070】また本発明によれば、アドレス記憶手段
は、アドレス信号の予め定める数の上位ビットを記憶す
る1の上位ビットレジスタと、アドレス信号における上
位ビットが共通の残余の下位ビットを記憶する複数の下
位ビットレジスタとを1グループとして、複数のグルー
プを備える。第1記憶手段に記憶されている命令の内の
特定命令を指定するアドレスの予め定める数の上位ビッ
トを上位ビットレジスタに記憶し、そのアドレスの上位
ビットが共通の複数の下位ビットをそれぞれ下位ビット
レジスタに記憶する。したがって、従来の記憶手段にお
ける1つのレジスタに対して1つのアドレスを記憶する
場合より、レジスタ数を減少させることができ、また同
一のレジスタ数であれば、従来より多くのアドレスを記
憶することができる。
Further, according to the present invention, the address storing means stores a predetermined number of high-order bits of the address signal, and a plurality of high-order bit registers for storing the remaining low-order bits having a common high-order bit in the address signal. A plurality of groups are provided, with the lower bit register of 1 as one group. A predetermined number of high-order bits of an address designating a specific instruction among the instructions stored in the first storage means are stored in a high-order bit register, and a plurality of low-order bits common to the high-order bits of the address are low-order bits. Store in register. Therefore, the number of registers can be reduced as compared with the case where one address is stored for one register in the conventional storage means, and if the same number of registers is used, more addresses can be stored than the conventional one. it can.

【0071】また本発明によれば、アドレス信号発生手
段における上位アドレスメモリに記憶されたアドレスの
上位ビットを、第2記憶手段の第3アドレスの値の変更
に対応して変更することができる。したがって、第3ア
ドレスに拘束されずに第2記憶手段の記憶領域を自由に
利用できるため、本装置のシステムデザインのときに第
2記憶手段において利用できる記憶領域の選択の自由度
が広がるため、本装置の汎用性が高まる。
Further, according to the present invention, the upper bits of the address stored in the upper address memory in the address signal generating means can be changed corresponding to the change of the value of the third address of the second storing means. Therefore, since the storage area of the second storage means can be used freely without being bound by the third address, the degree of freedom in selecting the storage area that can be used by the second storage means in the system design of the present apparatus is increased. The versatility of this device is enhanced.

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

【図1】本発明の実施の一形態であるプログラム実行装
置の電気的構成を示すブロック図である。
FIG. 1 is a block diagram showing an electrical configuration of a program execution device according to an embodiment of the present invention.

【図2】ディレイユニット22の電気的構成を示すブロ
ック図である。
FIG. 2 is a block diagram showing an electrical configuration of a delay unit 22.

【図3】エンコーダユニット10の具体的構成を示すブ
ロック図である。
3 is a block diagram showing a specific configuration of an encoder unit 10. FIG.

【図4】RAM3内の第3アドレスに指定された記憶領
域を示す図である。
FIG. 4 is a diagram showing a storage area designated by a third address in RAM 3.

【図5】RAM3から命令を読出す際の動作を説明する
ためのタイムチャートである。
FIG. 5 is a time chart for explaining an operation when reading an instruction from RAM 3.

【図6】本発明の実施の他の形態を説明するための図で
あり、図6(1)は、図1に示すレジスタ構成を示す図
であり、図6(2)は、本発明の実施の他の形態におけ
るレジスタ構成を示す図である。
FIG. 6 is a diagram for explaining another embodiment of the present invention, FIG. 6 (1) is a diagram showing the register configuration shown in FIG. 1, and FIG. 6 (2) is a diagram showing the present invention. It is a figure which shows the register structure in other embodiment.

【図7】本発明の実施の他の形態における判断手段40
の具体的構成を示すブロック図である。
FIG. 7 is a determination means 40 according to another embodiment of the present invention.
3 is a block diagram showing a specific configuration of FIG.

【図8】本発明の実施の他の形態における他のレジスタ
構成例を示す図であり、図8(1)は図1に示すレジス
タ構成AAを示し、図8(2)はレジスタ構成AAと総
ビット数が同じであるレジスタ構成Dを示す図である。
FIG. 8 is a diagram showing another register configuration example in another embodiment of the present invention, FIG. 8 (1) shows the register configuration AA shown in FIG. 1, and FIG. 8 (2) shows the register configuration AA. It is a figure which shows the register structure D with the same total number of bits.

【図9】本発明の実施のさらに他の形態におけるエンコ
ーダユニット10の電気的構成を示すブロック図であ
る。
FIG. 9 is a block diagram showing an electrical configuration of an encoder unit 10 according to still another embodiment of the present invention.

【図10】第1従来技術の具体的構成を示すブロック図
である。
FIG. 10 is a block diagram showing a specific configuration of a first conventional technique.

【符号の説明】[Explanation of symbols]

1 CPU 2 ROM 3 RAM 5 アドレス線 6 データ線 7 リード/ライト線 8 判断手段 9 許可信号発生手段 10 エンコーダユニット 11 セレクタ 21,25 OR回路 22 ディレイユニット 23 デコーダ 24 AND回路 D1,D3 アドレス信号 R1〜Rn レジスタ S1〜Sn 比較器 1 CPU 2 ROM 3 RAM 5 address line 6 data line 7 read / write line 8 determination means 9 permission signal generation means 10 encoder unit 11 selector 21, 25 OR circuit 22 delay unit 23 decoder 24 AND circuit D1, D3 address signal R1 Rn register S1 to Sn comparator

Claims (10)

【特許請求の範囲】[Claims] 【請求項1】 実行すべきプログラムを構成する複数の
命令が予め記憶されており、各命令が記憶されている記
憶領域には、それぞれ予め定める複数のアドレスが設定
され、命令の読出しを指示する読出し信号と、読出すべ
き命令が記憶された記憶領域を指定するアドレス信号
と、命令の読出しを許可する許可信号とが与えられたと
きに指定された命令を出力する読出し専用の第1記憶手
段と、 前記実行すべきプログラムを構成する複数の命令の中か
ら選ばれた特定命令に代えて実行させるべき命令が予め
記憶されており、命令が記憶されている記憶領域には、
前記第1記憶手段のアドレスとは異なるアドレスが設定
され、命令の読出しを指示する読出し信号と、読出すべ
き命令が記憶された記憶領域を指定するアドレス信号
と、命令の読出しを許可する許可信号とが与えられたと
きに指定された命令を出力する第2記憶手段と、 命令を読出すために前記読出し信号および第1記憶手段
のアドレスを指定するアドレス信号を出力し、前記第1
または第2記憶手段から読出した命令を実行する命令実
行手段と、 前記命令実行手段からのアドレス信号が指定するアドレ
スが、前記特定命令が記憶された記憶領域のアドレスと
一致するかどうかを判断する判断手段と、 前記判断手段の出力に応答し、アドレスが一致したとき
は第2記憶手段のアドレスを指定するアドレス信号を、
アドレスが一致しないときは命令実行手段からのアドレ
ス信号を、第1および第2記憶手段に与えるアドレス変
換手段と、 前記判断手段の出力に応答し、アドレスが一致したとき
は第2記憶手段に許可信号を出力し、アドレスが一致し
ないときは第1記憶手段に許可信号を出力する許可信号
発生手段とを含むことを特徴とするプログラム実行装
置。
1. A plurality of instructions forming a program to be executed are stored in advance, and a plurality of predetermined addresses are set in a storage area in which each instruction is stored, and instructions for reading the instructions are given. Read-only first storage means for outputting the designated instruction when a read signal, an address signal designating a storage area in which the instruction to be read is stored, and a permission signal permitting the reading of the instruction are given. And a command to be executed instead of the specific command selected from a plurality of commands constituting the program to be executed is stored in advance, and in the storage area in which the command is stored,
An address different from the address of the first storage means is set, a read signal for instructing to read an instruction, an address signal for designating a memory area in which an instruction to be read is stored, and a permission signal for permitting the instruction to be read. Second storage means for outputting a designated instruction when is given, and a read signal for reading the instruction and an address signal for designating an address of the first storage means.
Alternatively, it is determined whether the instruction execution unit that executes the instruction read from the second storage unit and the address designated by the address signal from the instruction execution unit match the address of the storage area in which the specific instruction is stored. An address signal for specifying the address of the second storage means when the addresses coincide with each other, in response to the output of the determination means,
When the addresses do not match, the address signal from the instruction executing means is provided to the first and second storage means, and in response to the output of the judging means, when the addresses match, the second storage means is permitted. A program execution device, comprising: a permission signal generating unit that outputs a signal and outputs a permission signal to the first storage unit when the addresses do not match.
【請求項2】 実行すべきプログラムを構成する複数の
命令が予め記憶されており、各命令が記憶されている記
憶領域には、それぞれ予め定める複数の第1アドレスが
設定され、命令の読出しを指示する読出し信号と、読出
すべき命令が記憶された記憶領域を指定するアドレス信
号と、命令の読出しを許可する許可信号とが与えられた
ときに指定された命令を出力する読出し専用の第1記憶
手段と、前記第1アドレスとは異なる複数の第2アドレ
スがそれぞれ設定されたデータ記憶領域を有し、第2ア
ドレスの中から選ばれた1以上の第3アドレスを持つデ
ータ記憶領域には、前記実行すベきプログラムを構成す
る命令の中から選ばれた特定命令に代えて実行させるべ
き命令が記憶されており、データの読出し/書込みを指
示する読出し/書込み信号と、データの読出し/書込み
をするデータ記憶領域を指定するアドレス信号と、デー
タの読出し/書込みを許可する許可信号とが与えられた
ときに指定されたデータを出力/入力する読出し/書込
み自在な第2記憶手段と、 命令を読出すために前記読出し信号および第1記憶手段
のアドレスを指定するアドレス信号を第1記憶手段に出
力し、読出した命令を実行し、命令を実行するときに必
要に応じて第2記憶手段に対してデータを読出し/書込
みを行うために前記読出し/書込み信号および第2記憶
手段のアドレスを指定するアドレス信号を出力する命令
実行手段と、 前記命令実行手段からのアドレス信号が指定するアドレ
スが、前記特定命令が記憶された記憶領域のアドレスと
一致するかどうかを判断する判断手段と、 前記判断手段の出力に基づいて、判断手段の判断が肯定
であるときは、前記第3アドレスを指定するアドレス信
号を第2記憶手段に出力し、判断手段の判断が否定であ
るときは、命令実行手段からのアドレス信号を第2記憶
手段に出力するアドレス変換手段と、 前記命令実行手段からのアドレス信号および前記判断手
段の出力に基づいて、アドレス信号が指定するアドレス
が前記第1アドレスであり、かつ判断手段の判断が肯定
であるときは、第2記憶手段に許可信号を出力し、アド
レス信号が指定するアドレスが前記第1アドレスであ
り、かつ判断手段の判断が否定であるときは、第1記憶
手段に許可信号を出力し、アドレス信号が指定するアド
レスが前記第2アドレスであるときは、第2記憶手段に
許可信号を出力する許可信号発生手段とを含むことを特
徴とするプログラム実行装置。
2. A plurality of instructions constituting a program to be executed are stored in advance, and a plurality of predetermined first addresses are set in a storage area in which the respective instructions are stored, and the instructions are read out. A read-only first output for outputting a designated instruction when a read signal for instructing, an address signal for designating a storage area in which an instruction to be read is stored, and a permission signal for permitting reading of the instruction are given. The storage means has a data storage area in which a plurality of second addresses different from the first address are respectively set, and the data storage area having one or more third addresses selected from the second addresses Read / write for instructing read / write of data, in which an instruction to be executed is stored in place of a specific instruction selected from the instructions constituting the above-mentioned program to be executed Read / write, which outputs / inputs the specified data when a read signal, an address signal that specifies a data storage area for reading / writing data, and a permission signal that permits reading / writing of data are given A second storage means which is free to output the read signal and an address signal designating an address of the first storage means to the first storage means to read the instruction, execute the read instruction, and execute the instruction And an instruction executing means for outputting the read / write signal and an address signal designating an address of the second storing means for reading / writing data from / into the second storing means as necessary, and the instruction executing means. Determining means for determining whether or not the address designated by the address signal from the same matches the address of the storage area in which the specific instruction is stored; Based on the output of the stage, when the judgment of the judgment means is affirmative, the address signal designating the third address is outputted to the second storage means, and when the judgment of the judgment means is negative, the instruction execution means. An address conversion unit for outputting the address signal from the second storage unit to the second storage unit, and an address designated by the address signal based on the address signal from the instruction execution unit and the output of the determination unit is the first address, and When the judgment of the judgment means is affirmative, the permission signal is outputted to the second storage means, and when the address designated by the address signal is the first address and when the judgment of the judgment means is negative, the first signal is outputted. And a permission signal generating means for outputting a permission signal to the second storage means when the permission signal is output to the storage means and the address designated by the address signal is the second address. Program executing apparatus according to claim and.
【請求項3】 前記判断手段は、 前記特定命令が記憶された記憶領域のアドレスを示すア
ドレス信号を記憶するアドレス記憶手段と、 前記アドレス記憶手段に記憶されているアドレス信号
と、命令実行手段からのアドレス信号とが一致するどう
かを検出する検出手段とを含むことを特徴とする請求項
2記載のプログラム実行装置。
3. The determination means includes an address storage means for storing an address signal indicating an address of a storage area in which the specific instruction is stored, an address signal stored in the address storage means, and an instruction execution means. 3. The program execution device according to claim 2, further comprising: a detection unit that detects whether or not the address signal of FIG.
【請求項4】 前記アドレス記憶手段は、複数のビット
からなるアドレス信号を記憶する1以上のレジスタであ
り、 前記検出手段は、 前記レジスタに対応して設けられ、レジスタからのアド
レス信号と命令実行手段からのアドレス信号とを比較す
る比較回路と、 前記比較回路からの出力が与えられる論理和演算回路と
を含むことを特徴とする請求項3記載のプログラム実行
装置。
4. The address storage means is one or more registers for storing an address signal composed of a plurality of bits, and the detection means is provided corresponding to the register, and the address signal from the register and instruction execution are executed. 4. The program execution device according to claim 3, further comprising a comparison circuit for comparing the address signal from the means, and an OR operation circuit to which an output from the comparison circuit is given.
【請求項5】 前記アドレス記憶手段は、複数のビット
からなるアドレス信号を予め定める数の上位ビットと残
余の下位ビットに分割し、上位ビットが共通するアドレ
ス信号ごとにグループ分けをして、グループ単位でアド
レス信号を記憶し、 各グループごとに、1の上位ビットレジスタと、グルー
プに属するアドレス信号と同じ数の下位ビットレジスタ
とを備え、 前記検出手段は、前記各グループごとに、 上位ビットレジスタの信号と命令実行手段からのアドレ
ス信号の上位ビットとを比較する1つの上位ビット比較
回路と、 下位ビットレジスタと同じ数だけ設けられ、各下位ビッ
トレジスタの信号と命令実行手段からのアドレス信号の
下位ビットとを比較する1以上の下位ビット比較回路
と、 下位ビットレジスタと同じ数だけ設けられ、各下位ビッ
ト比較回路の出力と上位ビット比較回路の出力とが与え
られる1以上の論理積回路と、 各論理積回路の出力が与えられる第1論理和回路とを備
え、 さらに、各グループの前記第1論理和回路の出力が与え
られる第2論理和回路を備えることを特徴とする請求項
3記載のプログラム実行装置。
5. The address storage means divides an address signal composed of a plurality of bits into a predetermined number of high-order bits and remaining low-order bits, and divides each address signal having a high-order bit in common into groups. Address signals are stored in units, and each group is provided with a high-order bit register of 1 and low-order bit registers of the same number as the number of address signals belonging to the group, and the detection means includes a high-order bit register for each of the groups. 1 high-order bit comparison circuit for comparing the signal of 1 to the high-order bit of the address signal from the instruction execution means, and the same number of low-order bit registers as the number of low-order bit registers and the address signal from the instruction execution means. One or more lower bit comparison circuits for comparing lower bits and the same number of lower bit registers are provided. The present invention further comprises one or more AND circuits to which the output of each lower bit comparison circuit and the output of the higher bit comparison circuit are provided, and a first OR circuit to which the output of each AND circuit is provided. 4. The program execution device according to claim 3, further comprising a second logical sum circuit to which the output of the first logical sum circuit is given.
【請求項6】 前記許可信号発生手段は、 命令実行手段からのアドレス信号に基づいて、当該アド
レス信号が指定するアドレスが第1アドレスであるとき
は第1の信号を出力し、第2のアドレスであるときは第
2の信号を出力するデコード手段と、 第1信号と前記判断手段の出力の反転信号の論理積演算
を行い、演算結果を第1記憶手段に与える論理積演算手
段と、 第2信号と前記判断手段の出力の論理和演算を行い、演
算結果を第2記憶手段に与える論理和演算手段とを含む
ことを特徴とする請求項2記載のプログラム実行装置。
6. The permission signal generating means outputs a first signal based on the address signal from the instruction executing means when the address designated by the address signal is the first address, and outputs the second signal. And a decoding means for outputting the second signal, a logical product operation means for performing a logical product operation of the first signal and an inverted signal of the output of the judging means, and giving an operation result to the first storage means, 3. The program execution device according to claim 2, further comprising: a logical sum calculation unit that performs a logical sum calculation of the two signals and the output of the judgment unit and gives the calculation result to the second storage unit.
【請求項7】 前記許可信号発生手段は、 前記判断手段の出力を予め定める期間遅延させて前記論
理和演算手段に与える遅延手段を含むことを特徴とする
請求項6記載のプログラム実行装置。
7. The program execution device according to claim 6, wherein the permission signal generation means includes a delay means for delaying the output of the judgment means for a predetermined period and giving the output to the logical sum operation means.
【請求項8】 前記アドレス変換手段は、 前記第3アドレスを指定するアドレス信号を発生するア
ドレス信号発生手段と、 前記判断手段の出力に応答し、判断手段の判断が肯定で
あるときは、アドレス信号発生手段からのアドレス信号
を出力し、判断手段の判断が否定であるときは、命令実
行手段からのアドレス信号を出力する切換手段とを含む
ことを特徴とする請求項2記載のプログラム実行装置。
8. The address conversion means is responsive to the output of the address signal generating means for generating an address signal designating the third address, and the output of the determining means, and when the determination of the determining means is affirmative, the address converting means 3. The program executing device according to claim 2, further comprising switching means for outputting the address signal from the signal generating means and for outputting the address signal from the instruction executing means when the judgment of the judging means is negative. .
【請求項9】 前記判断手段は、 複数のアドレス信号を記憶するアドレス記憶手段と、 命令実行手段からのアドレス信号と、前記アドレス記憶
手段に記憶されているアドレス信号とをそれぞれ比較し
て一致するかどうかを検出する検出手段とを含み、 前記アドレス信号発生手段は、 予め定める数の上位ビットのアドレス信号を記憶する上
位アドレスメモリと、 前記検出手段における比較結果に基づいて、残余の下位
ビットのアドレス信号を生成する下位アドレス発生手段
とを含むことを特徴とする請求項8記載のプログラム実
行装置。
9. The determination means compares the address storage means for storing a plurality of address signals, the address signal from the instruction execution means, and the address signal stored in the address storage means, and matches them. The address signal generating means includes a detection means for detecting whether or not the upper-order address memory stores an address signal of a predetermined number of higher-order bits, and a residual lower-order bit of the remaining lower bits based on the comparison result in the detection means. 9. The program execution device according to claim 8, further comprising a lower address generation means for generating an address signal.
【請求項10】 前記命令実行手段は、前記上位アドレ
スメモリに対して読出し/書込みを行うことを特徴とす
る請求項9記載のプログラム実行装置。
10. The program execution device according to claim 9, wherein the instruction execution unit reads / writes from / to the upper address memory.
JP7316967A 1995-12-05 1995-12-05 Program execution device Pending JPH09160768A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7316967A JPH09160768A (en) 1995-12-05 1995-12-05 Program execution device

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7316967A JPH09160768A (en) 1995-12-05 1995-12-05 Program execution device

Publications (1)

Publication Number Publication Date
JPH09160768A true JPH09160768A (en) 1997-06-20

Family

ID=18082939

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7316967A Pending JPH09160768A (en) 1995-12-05 1995-12-05 Program execution device

Country Status (1)

Country Link
JP (1) JPH09160768A (en)

Cited By (4)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JP2003529842A (en) * 2000-04-04 2003-10-07 モトローラ・インコーポレイテッド Method and apparatus for overlay storage in a data processing system
JP2004318886A (en) * 2003-04-14 2004-11-11 Arm Ltd Data access request remapping system
US6889306B1 (en) 1999-10-29 2005-05-03 Matsushita Electric Industrial Co., Ltd. Microprocessor and program modification method in the microprocessor
CN105849695A (en) * 2013-12-23 2016-08-10 北欧半导体公司 Integrated-circuit radio

Cited By (7)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
US6889306B1 (en) 1999-10-29 2005-05-03 Matsushita Electric Industrial Co., Ltd. Microprocessor and program modification method in the microprocessor
JP2003529842A (en) * 2000-04-04 2003-10-07 モトローラ・インコーポレイテッド Method and apparatus for overlay storage in a data processing system
JP2004318886A (en) * 2003-04-14 2004-11-11 Arm Ltd Data access request remapping system
CN105849695A (en) * 2013-12-23 2016-08-10 北欧半导体公司 Integrated-circuit radio
KR20160102040A (en) * 2013-12-23 2016-08-26 노르딕 세미컨덕터 에이에스에이 Integrated-circuit radio
JP2017511513A (en) * 2013-12-23 2017-04-20 ノルディック セミコンダクタ アーエスアーNordic Semiconductor ASA IC wireless device
CN105849695B (en) * 2013-12-23 2019-10-08 北欧半导体公司 Integrated circuit radio

Similar Documents

Publication Publication Date Title
US3983539A (en) Polymorphic programmable units employing plural levels of sub-instruction sets
JP2539199B2 (en) Digital processor controller
US4558411A (en) Polymorphic programmable units employing plural levels of sub-instruction sets
JPS5855528B2 (en) address generator
US4446517A (en) Microprogram memory with page addressing and address decode in memory
JPH0527971A (en) Information processor
JPH0744455A (en) Address decoder
JPH09160768A (en) Program execution device
KR100517765B1 (en) Cache memory and control method thereof
US4628450A (en) Data processing system having a local memory which does not use a directory device with distributed resident programs and a method therefor
US6425047B1 (en) Process containing address decoders suited to improvements in clock speed
EP0153025B1 (en) Microprogram control
JPH07191905A (en) Information processor
JPS6410854B2 (en)
JPH05204772A (en) Digital circuit provided with error correction function
JP3611049B2 (en) Internal register circuit
SU1425684A1 (en) Program execution checking device
JPS6393045A (en) Microprogram controller
JPH0269844A (en) System for switching page of memory
JPH05151102A (en) Microcomputer test circuit
JPH0359739A (en) Memory system of information processing equipment
JPH01293439A (en) data processing equipment
JPH1055289A (en) Debugging information generating circuit and information processor using the same
JPH06250937A (en) Method for memory control, memory control circuit with ecc function and information processor
JPH0696112A (en) Vector data processing circuit