JPH07281891A - Microprocessor and method for generating execution address thereof - Google Patents
Microprocessor and method for generating execution address thereofInfo
- Publication number
- JPH07281891A JPH07281891A JP7303794A JP7303794A JPH07281891A JP H07281891 A JPH07281891 A JP H07281891A JP 7303794 A JP7303794 A JP 7303794A JP 7303794 A JP7303794 A JP 7303794A JP H07281891 A JPH07281891 A JP H07281891A
- Authority
- JP
- Japan
- Prior art keywords
- program
- address
- microprocessor
- storage memory
- program code
- Prior art date
- Legal status (The legal status is an assumption and is not a legal conclusion. Google has not performed a legal analysis and makes no representation as to the accuracy of the status listed.)
- Pending
Links
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、次の実行アドレスの生
成を行なうマイクロプロセッサ及びマイクロプロセッサ
の実行アドレス生成方法に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a microprocessor for generating the next execution address and an execution address generation method for the microprocessor.
【0002】[0002]
【従来の技術】図3を用いて従来のマイクロプロセッサ
及びマイクロプロセッサの実行アドレス生成方法を説明
する。図3は、プログラム格納メモリを持ち、随時プロ
グラムコードを読み込みながら処理を行うマイクロプロ
セッサのブロック図である。2. Description of the Related Art A conventional microprocessor and a method of generating an execution address of the microprocessor will be described with reference to FIG. FIG. 3 is a block diagram of a microprocessor having a program storage memory and performing processing while reading a program code as needed.
【0003】マイクロプロセッサ1は、プログラム格納
メモリ2から読み出されるプログラムコード3に従っ
て、プログラム処理部4にて処理しながら動作してい
る。ここで、プログラムコード3を読み込むとき、予め
プログラム処理部4は、プログラムアドレス制御部5に
対して、プログラム格納メモリ2の次に読み出すべきア
ドレス情報をアドレス制御信号6で指示する必要があ
る。The microprocessor 1 is operating according to the program code 3 read from the program storage memory 2 while being processed by the program processing unit 4. Here, when reading the program code 3, the program processing unit 4 needs to instruct the program address control unit 5 in advance by using the address control signal 6 of the address information to be read next from the program storage memory 2.
【0004】[0004]
【発明が解決しようとする課題】ところで、プログラム
アドレス制御は、本来のマイクロプロセッサ1の処理作
業とは直接関係無い、いわば付帯作業であり、処理時間
上、オーバーヘッドとなっていた。また、ハードウエア
上もマイクロプロセッサの実処理部の規模に関係なく、
一定の回路規模を必要とする部分であり、特に小規模の
マイクロプロセッサにおいては、アドレス制御部の全体
回路に占める割合が無視できないという問題が生じてい
た。By the way, the program address control is, so to speak, an auxiliary operation that is not directly related to the original processing operation of the microprocessor 1, and is an overhead in terms of processing time. In terms of hardware, regardless of the scale of the actual processing unit of the microprocessor,
This is a part that requires a certain circuit scale, and particularly in a small-scale microprocessor, there has been a problem that the ratio of the address control unit to the entire circuit cannot be ignored.
【0005】本発明の目的は、プログラムアドレス制御
部を持たずとも、プログラム格納メモリの次アドレスを
生成するマイクロプロセッサ及びマイクロプロセッサの
実行アドレス生成方法を得るにある。An object of the present invention is to obtain a microprocessor for generating a next address of a program storage memory and a method for generating an execution address of the microprocessor without having a program address controller.
【0006】[0006]
【課題を解決するための手段】本発明は、上記の目的を
達成するために、プログラムデータ中に次に処理すべき
プログラムアドレスを埋め込むことで、プログラムアド
レス制御部が無くとも、マイクロプロセッサとしての機
能をはたすことのできるマイクロプロセッサ及びマイク
ロプロセッサの実行アドレス生成方法を提供する。In order to achieve the above-mentioned object, the present invention embeds a program address to be processed next in the program data, so that a microprocessor as a microprocessor can be provided without a program address control section. Provided are a microprocessor capable of providing a function and a method of generating an execution address of the microprocessor.
【0007】[0007]
【作用】本発明は、プログラムデータ中に次に処理すべ
きプログラムアドレスを埋め込むことで、プログラムア
ドレス制御部が無くとも、マイクロプロセッサとしての
機能をはたすことが可能となる。According to the present invention, by embedding the program address to be processed next in the program data, the function as a microprocessor can be achieved without the program address control section.
【0008】[0008]
【実施例】以下、本発明の一実施例を図1から図2を参
照して説明する。図1は、一実施例のブロック図であ
る。マイクロプロセッサ1は図2と同様に、プログラム
格納メモリ2から読み出されるプログラムコード3に従
って、プログラム処理部4にて処理しながら動作してい
る。DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS An embodiment of the present invention will be described below with reference to FIGS. FIG. 1 is a block diagram of one embodiment. Similar to FIG. 2, the microprocessor 1 is operating while being processed by the program processing unit 4 according to the program code 3 read from the program storage memory 2.
【0009】プログラム格納メモリ2より、プログラム
コード3の読みだしを行う場合、予め、プログラム格納
メモリ2に対し、アドレス値を入力する必要がある。こ
のアドレス値を一つ前のプログラムコードと一緒にプロ
グラム格納メモリ2に書き込んでおくことで、プログラ
ムコード3及び次プログラムアドレス7をプログラム格
納メモリより同時に読み込むことができ、このうちの次
プログラムアドレス7をラッチ8に一時記憶しておき、
プログラムコード3をプログラム処理部4が読み込んだ
時点でラッチ8よりアドレス値として出力することで、
容易にプログラム実行アドレスを生成することができ
る。When reading the program code 3 from the program storage memory 2, it is necessary to input an address value to the program storage memory 2 in advance. By writing this address value in the program storage memory 2 together with the previous program code, the program code 3 and the next program address 7 can be read simultaneously from the program storage memory. Is temporarily stored in the latch 8,
By outputting the program code 3 as an address value from the latch 8 when the program processing unit 4 reads it,
The program execution address can be easily generated.
【0010】プログラム格納メモリ2に対する最初のア
ドレス値は、スタートアドレス値をラッチ8にロードで
きるように回路を構成することで実現できる。マイクロ
プロセッサ1のプログラム処理部4はプログラム格納メ
モリ2のアドレス管理について何等の作業も行う必要が
無いため、プログラムの実処理作業に専念でき、処理効
率が向上する。また、プログラム格納メモリのアドレス
制御を行うハードウェアをほとんど必要としないため、
回路的に非常にシンプルになり、回路の小規模化が可能
である。分岐命令が不要となるため、プログラム処理部
の命令デコーダー回路規模/処理時間に関しても小型/
高速化が可能である。The first address value for the program storage memory 2 can be realized by configuring the circuit so that the start address value can be loaded into the latch 8. Since the program processing unit 4 of the microprocessor 1 does not need to perform any work for address management of the program storage memory 2, it can concentrate on the actual work of the program and improve the processing efficiency. In addition, since hardware that controls the address of the program storage memory is rarely needed,
The circuit becomes very simple and the circuit can be miniaturized. Since a branch instruction is not required, the instruction decoder circuit scale of the program processing unit / the processing time is small /
Speeding up is possible.
【0011】この実施例ではプログラム格納メモリ2を
マイクロプロセッサ1の外部にあるメモリとして説明し
ているが、マイクロプロセッサの内部にあるメモリに対
しても本発明は有効である。特にマイクロプロセッサの
内部にあるマイクロコードメモリに対して適用すると高
速な処理が可能になるため、マイクロプロセッサの動作
クロックの高速化が容易である。In this embodiment, the program storage memory 2 is explained as a memory outside the microprocessor 1, but the present invention is also effective for a memory inside the microprocessor. In particular, when applied to a microcode memory inside a microprocessor, high-speed processing becomes possible, so that it is easy to increase the operation clock of the microprocessor.
【0012】この実施例はプログラムの条件分岐に付い
ても実現できる。ラッチ8にインクリメントカウンタ機
能を持たせ、プログラム処理部より条件分岐信号9をも
らうことで、条件分岐信号9が来ない場合は次プログラ
ムアドレス7の値をそのまま用い、条件分岐信号9が来
た場合は次プログラムアドレス7の値を+1して与える
といった処理を行うことで条件分岐を実現できる。This embodiment can be realized even when the conditional branch of the program is performed. When the conditional branch signal 9 is received from the program processing unit by giving the latch 8 an increment counter function and the conditional branch signal 9 does not come, the value of the next program address 7 is used as it is, and when the conditional branch signal 9 comes. The conditional branch can be realized by performing processing such as giving the value of the next program address 7 by +1.
【0013】図2は、プログラムコードの概念図であ
る。プログラムコードは、実行文aと次のアドレスを示
すアドレスbとからなる。アドレス400 は条件文であっ
て、yes の場合は、アドレス500 が実行される。noの場
合は、条件分岐信号9によりアドレス7の値がカウント
アップされ501 が実行される。FIG. 2 is a conceptual diagram of the program code. The program code consists of an executable statement a and an address b indicating the next address. Address 400 is a conditional statement, and if yes, address 500 is executed. If no, the value of address 7 is incremented by the conditional branch signal 9 and 501 is executed.
【0014】[0014]
【発明の効果】本発明によれば、マイクロプロセッサの
プログラムデータ中にマイクロプロセッサが次に処理す
べきプログラムアドレスを埋め込むことで、プログラム
アドレス制御部が無くとも、マイクロプロセッサとして
の機能を果たすことができ、マイクロプロセッサの処理
を高速化でき、さらに回路規模を縮小化できる。According to the present invention, by embedding the program address to be processed next by the microprocessor in the program data of the microprocessor, the function as the microprocessor can be achieved without the program address control section. Therefore, the processing speed of the microprocessor can be increased, and the circuit scale can be reduced.
【図1】本発明のマイクロプロセッサの実行アドレス生
成方法を用いたマイクロプロセッサのブロック図。FIG. 1 is a block diagram of a microprocessor using an execution address generation method for a microprocessor according to the present invention.
【図2】一実施例のプログラムコードの概念図。FIG. 2 is a conceptual diagram of a program code according to an embodiment.
【図3】従来のマイクロプロセッサの実行アドレス生成
方法を用いたマイクロプロセッサのブロック図。FIG. 3 is a block diagram of a microprocessor using a conventional execution address generation method of the microprocessor.
1…マイクロプロセッサ、2…プログラム格納メモリ、
3…プログラムコード、4…プログラム処理部、5…プ
ログラムアドレス制御部、6…アドレス制御信号、7…
次プログラムアドレス、8…ラッチ、9…条件分岐信
号。1 ... Microprocessor, 2 ... Program storage memory,
3 ... Program code, 4 ... Program processing unit, 5 ... Program address control unit, 6 ... Address control signal, 7 ...
Next program address, 8 ... Latch, 9 ... Conditional branch signal.
Claims (6)
スを埋め込むことを特徴とするマイクロプロセッサの実
行アドレス生成方法。1. A method of generating an execution address of a microprocessor, wherein the next execution address is embedded in a program code.
ロコードの中に次の実行アドレスを埋め込むことを特徴
とするマイクロプロセッサの実行アドレス生成方法。2. A method of generating an execution address of a microprocessor, wherein the next execution address is embedded in a microcode inside the microprocessor.
プログラムコードに従って処理を行なうプログラム処理
部と、前記プログラムコード中のアドレスを記憶し、前
記プログラム格納メモリに出力するラッチとから成るマ
イクロプロセッサ。3. A microprocessor comprising a program processing unit for performing processing according to a program code read from a program storage memory, and a latch for storing an address in the program code and outputting the address to the program storage memory.
コードメモリであることを特徴とする請求項3記載のマ
イクロプロセッサ。4. The microprocessor according to claim 3, wherein the program storage memory is a microcode memory.
られる条件分岐信号によりアドレスの変更を行なうこと
を特徴とする請求項3または4記載のマイクロプロセッ
サ。5. The microprocessor according to claim 3, wherein the latch changes an address according to a conditional branch signal sent from a program processing unit.
機能を備え、プログラム処理部から送られる条件分岐信
号によりアドレスのカウントアップを行うことを特徴と
する請求項3または4記載のマイクロプロセッサ。6. The microprocessor according to claim 3, wherein the latch has an increment counter function, and counts up an address according to a conditional branch signal sent from a program processing unit.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7303794A JPH07281891A (en) | 1994-04-12 | 1994-04-12 | Microprocessor and method for generating execution address thereof |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP7303794A JPH07281891A (en) | 1994-04-12 | 1994-04-12 | Microprocessor and method for generating execution address thereof |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH07281891A true JPH07281891A (en) | 1995-10-27 |
Family
ID=13506767
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP7303794A Pending JPH07281891A (en) | 1994-04-12 | 1994-04-12 | Microprocessor and method for generating execution address thereof |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH07281891A (en) |
-
1994
- 1994-04-12 JP JP7303794A patent/JPH07281891A/en active Pending
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH07281891A (en) | Microprocessor and method for generating execution address thereof | |
JPH1091430A (en) | Instruction decoding device | |
JPH11306016A (en) | Register indirect branching instruction and branching instruction execution method with condition | |
JPH0218729B2 (en) | ||
KR100488536B1 (en) | Microprocessor control circuit | |
JPS6325373B2 (en) | ||
JPH05274341A (en) | Vector instruction processor | |
JPS6346855B2 (en) | ||
JP2679603B2 (en) | Microcomputer | |
CA1317384C (en) | Buffer control circuit for data processor | |
JPS6126693B2 (en) | ||
JPH05313865A (en) | Program loading system for microprocessor | |
JP2503634B2 (en) | Micro program controller | |
JPH0713758A (en) | Instruction decoding method | |
JPH0412851B2 (en) | ||
KR960029969A (en) | A data processor having a pipeline processing function | |
JP2897049B2 (en) | Branch instruction method | |
JP3164690B2 (en) | Address control device | |
JPH09185489A (en) | Device and method for numerical operation | |
KR19990069515A (en) | Real time data processing device and method of PLC system | |
JPS638938A (en) | Microprogram control device | |
JPH04305736A (en) | Microprocessor | |
JPS59189407A (en) | Sequence control device | |
JPH02110631A (en) | Microprogram controlling method | |
KR19980067078A (en) | Pielsi |