JPH05224919A - Program execution system for microprocessor - Google Patents
Program execution system for microprocessorInfo
- Publication number
- JPH05224919A JPH05224919A JP2937792A JP2937792A JPH05224919A JP H05224919 A JPH05224919 A JP H05224919A JP 2937792 A JP2937792 A JP 2937792A JP 2937792 A JP2937792 A JP 2937792A JP H05224919 A JPH05224919 A JP H05224919A
- Authority
- JP
- Japan
- Prior art keywords
- program
- shift register
- stored
- memory
- read
- 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
Landscapes
- Executing Machine-Instructions (AREA)
Abstract
Description
【0001】[0001]
【産業上の利用分野】本発明は、プログラム制御のマイ
クロプロセッサのプログラム実行方式に関し、特に同一
プログラムを頻繁に連続繰返し実行するプログラム実行
方式に関する。BACKGROUND OF THE INVENTION 1. Field of the Invention The present invention relates to a program execution system for a program-controlled microprocessor, and more particularly to a program execution system for frequently and repeatedly executing the same program.
【0002】[0002]
【従来の技術】従来、この種のマイクロプロセッサのプ
ログラム実行方式は、プログラムを記憶するプログラム
メモリから読出したプログラムを、小容量のキャッシュ
メモリに格納し、プログラムメモリおよびキャッシュメ
モリの何れか一方を選択して格納されたプログラムを読
出し、実行していた。2. Description of the Related Art Conventionally, this type of microprocessor program execution system stores a program read from a program memory storing the program in a small-capacity cache memory and selects either the program memory or the cache memory. Then, the stored program was read and executed.
【0003】すなわち、頻繁に使用するプログラムを読
出すときの検索時間を短縮するため大容量のプログラム
メモリから読出すプログラムは一時、キャッシュメモリ
に格納されていた。That is, a program read from a large-capacity program memory is temporarily stored in a cache memory in order to shorten a search time when reading a frequently used program.
【0004】[0004]
【発明が解決しようとする課題】この従来のマイクロプ
ロセッサのプログラム実行方式は、使用頻度の高いプロ
グラムをプログラムメモリおよびキャッシュメモリの何
れかを選択して読出す構成を有するが、読出しにはプロ
グラム読出しのためのメモリアクセス処理の処理時間が
かかり、特に積・和の演算時のような繰返し処理が続く
場合、繰返し回数分のメモリアクセス処理時間を必要と
するという問題点があった。This conventional microprocessor program execution method has a configuration in which a frequently used program is read by selecting either a program memory or a cache memory. There is a problem in that it takes a long time to perform the memory access processing for, and particularly when the iterative processing such as the product / sum operation continues, the memory access processing time for the number of times of the iterating is required.
【0005】本発明の目的は、キャッシュメモリに代る
シフトレジスタ(群)と、更にこのシフトレジスタ
(群)を制御するシフトレジスタ制御部とを備え、実行
プログラムからシフトレジスタ(群)に格納したプログ
ラムの大きさおよび繰返し回数の設定をうけ、この設定
回数によりシフトレジスタ(群)からプログラムの読出
し回数を制御することにより、上記問題点を解決するマ
イクロプロセッサのプログラム実行方式を提供すること
にある。An object of the present invention is to provide a shift register (group) instead of a cache memory and a shift register control section for controlling this shift register (group), and store the shift register (group) from an execution program. It is an object of the present invention to provide a program execution method of a microprocessor which solves the above-mentioned problems by setting the size of a program and the number of repetitions and controlling the number of times the program is read out from the shift register (group) by the number of settings. ..
【0006】[0006]
【課題を解決するための手段】本発明によるマイクロプ
ロセッサのプログラム実行方式の基本構成は、プログラ
ム制御のマイクロプロセッサが、プログラムのアドレス
を生成するプログラムカウンタと、前記プログラムメモ
リから読出した内容を多ビット符号で格納する複数のシ
フトレジスタをもつシフトレジスタ群と、このシフトレ
ジスタ群に格納されたプログラムを繰返し読出す繰返し
回数を指示するシフトレジスタ制御部とを有し、前記プ
ログラムカウンタおよびシフトレジスタ制御部の何れか
一方を選択して前記プログラムメモリおよびシフトレジ
スタ群の一方からプログラムを読出し実行する。The basic configuration of the program execution system of the microprocessor according to the present invention is such that the program-controlled microprocessor generates a program address and a multi-bit content read from the program memory. A shift register group having a plurality of shift registers for storing the codes, and a shift register control unit for instructing the number of times of repeating the program stored in the shift register group are repeatedly provided. Of the program memory and the shift register group to read and execute the program.
【0007】この基本構成に記載のシフトレジスタ制御
の一つの具体化構成は、前記シフトレジスタ群に格納さ
れたプログラムを読出す繰返し回数とシフトレジスタ数
を、前記シフトレジスタ制御部に設定し、このシフトレ
ジスタ制御部がこれら繰返し回数およびシフトレジスタ
数から定まる回数を読出し回数として前記シフトレジス
タ群に指示して格納されたプログラムを読出す。In one specific configuration of the shift register control described in this basic configuration, the number of times of repeating the program stored in the shift register group and the number of shift registers are set in the shift register control unit, The shift register control unit instructs the shift register group to read the stored program by designating the number of times of repetition and the number of times determined from the number of shift registers as the number of times of reading.
【0008】[0008]
【作用】上述の手段によるマイクロプロセッサのプログ
ラム実行方式は、マイクロプロセッサの実行部が実行す
るプログラムから、繰返し実行するプログラムの大きさ
および繰返し回数を取出し、このプログラムのためのシ
フトレジスタの数および繰返し回数をシフトレジスタ制
御部に通知して設定することにより、読出しプログラム
をメモリ領域上から検索して取出すメモリアクセス処理
時間なしで、所定数の繰返し読出しをシフトレジスタ群
から直接読出すことができる。According to the program execution method of the microprocessor by the above means, the size and the number of repetitions of the program to be repeatedly executed are extracted from the program executed by the execution unit of the microprocessor, and the number and the number of shift registers for this program are repeated. By notifying the shift register control unit of the number of times and setting the number of times, it is possible to read a predetermined number of repeated reads directly from the shift register group without the memory access processing time of retrieving and fetching the read program from the memory area.
【0009】[0009]
【実施例】次に、本発明について図面を参照して説明す
る。図1は本発明の一実施例を示すブロック構成図であ
る。DESCRIPTION OF THE PREFERRED EMBODIMENTS Next, the present invention will be described with reference to the drawings. FIG. 1 is a block diagram showing an embodiment of the present invention.
【0010】図1に示すマイクロプロセッサは、プログ
ラムメモリ10、プログラムカウンタ20、シフトレジ
スタ群30、シフトレジスタ制御部40、プログラムデ
コーダ50およびプログラム実行部60を有する。The microprocessor shown in FIG. 1 has a program memory 10, a program counter 20, a shift register group 30, a shift register control section 40, a program decoder 50 and a program execution section 60.
【0011】プログラムメモリ10は実行するプログラ
ムを格納する。The program memory 10 stores a program to be executed.
【0012】プログラムカウンタ20はプログラム実行
部60の指示によりプログラムメモリ10から読出すプ
ログラムの実行アドレスを生成する。The program counter 20 generates an execution address of a program read from the program memory 10 according to an instruction from the program execution unit 60.
【0013】シフトレジスタ群30はプログラムメモリ
10からプログラムデコーダ50へ読出されるプログラ
ムをワードごとに順次格納するレジスタ31,32,…
を有する。The shift register group 30 includes registers 31, 32, ... Which sequentially store the program read from the program memory 10 to the program decoder 50 word by word.
Have.
【0014】シフトレジスタ制御部40はプログラム実
行部60から指定されるレジスタ数41および繰返し回
数42を設定し、シフトレジスタ群30へ、格納するプ
ログラムの読出しを指示する。The shift register control unit 40 sets the number of registers 41 and the number of repetitions 42 designated by the program execution unit 60, and instructs the shift register group 30 to read out the program to be stored.
【0015】プログラムデコーダ50はプログラムメモ
リ10およびシフトレジスタ群30から読出されるプロ
グラムをプログラム実行部60が実行できるコードに変
換して出力する。The program decoder 50 converts the program read from the program memory 10 and the shift register group 30 into a code that can be executed by the program execution unit 60, and outputs the code.
【0016】プログラム実行部60は外部からの入力指
示をうけ、該当するプログラムを読出して実行する。読
出すプログラムはプログラムメモリ10にあらかじめ格
納されている。The program execution unit 60 receives an input instruction from the outside and reads and executes the corresponding program. The program to be read is stored in the program memory 10 in advance.
【0017】次に、プログラム実行部60を中心に主要
手順の一例について、図1を参照して説明する。Next, an example of a main procedure centering on the program execution unit 60 will be described with reference to FIG.
【0018】プログラム実行部60はプログラムメモリ
10に格納されるプログラムの実行指示を受けたとき、
プログラムカウンタ20に指示し、所定プログラムに対
し読出しサイクルごとに、実行アドレスを生成させる。When the program execution unit 60 receives an instruction to execute the program stored in the program memory 10,
The program counter 20 is instructed to cause the predetermined program to generate an execution address for each read cycle.
【0019】プログラムメモリ10はプログラムカウン
タ20が生成する実行アドレスに位置するプログラムを
読出し、このプログラムをプログラムデコーダ50へ送
る。このプログラムはプログラムデコーダ50で符号変
換されプログラム実行部60で読出される。The program memory 10 reads the program located at the execution address generated by the program counter 20, and sends this program to the program decoder 50. This program is code-converted by the program decoder 50 and read by the program execution unit 60.
【0020】キャッシュモードなど繰返し使用のあるプ
ログラム実行の場合、プログラムメモリ10から読出す
プログラムは、プログラムデコーダ50に入力されると
同時に、シフトレジスタ群30に格納される。In the case of program execution with repeated use such as the cache mode, the program read from the program memory 10 is input to the program decoder 50 and simultaneously stored in the shift register group 30.
【0021】シフトレジスタ群30に格納するプログラ
ムはワードごとにシフトレジスタ31,32,…に格納
される。シフトレジスタ制御部40はプログラム実行部
60からあらかじめ設定されたワード数とこの繰返し回
数から定まる定数により読出制御信号をシフトレジスタ
群30に送出してシフトレジスタ31,32,…への格
納プログラムをプログラムデコーダ50へ繰返し送出す
る。Programs stored in the shift register group 30 are stored in the shift registers 31, 32, ... For each word. The shift register control unit 40 sends a read control signal to the shift register group 30 according to a preset number of words and a constant determined from the number of repetitions from the program execution unit 60 to program a program to be stored in the shift registers 31, 32, .... It is repeatedly sent to the decoder 50.
【0022】例えばプログラムがワード数4、実行回数
3の場合、プログラムメモリ10から送出した1ワード
目のプログラムはプログラムデコーダ50に入力される
と同時にシフトレジスタ群30のレジスタ31に格納さ
れる。次に、2ワード目のプログラムがプログラムデコ
ーダ50に入力するとき、同時にレジスタ31に格納さ
れたプログラムがレジスタ32に移送され、次いで2ワ
ード目のプログラムがレジスタ31に格納される。同様
に3ワード目および4ワード目がプログラムデコーダ5
0へ入力されると同時に、シフトレジスタ群30に格納
される。こうして、第1回目のプログラム群がプログラ
ムデコーダ50を介して入力されたプログラム実行部6
0により実行される。For example, when the program has four words and the number of executions is three, the first word program sent from the program memory 10 is input to the program decoder 50 and simultaneously stored in the register 31 of the shift register group 30. Next, when the program of the second word is input to the program decoder 50, the program stored in the register 31 is simultaneously transferred to the register 32, and then the program of the second word is stored in the register 31. Similarly, the third and fourth words are the program decoder 5.
At the same time as being input to 0, it is stored in the shift register group 30. In this way, the program execution unit 6 in which the first-time program group is input via the program decoder 50
Executed by 0.
【0023】次の、第2回目以後の実行の繰返しは、プ
ログラム実行部60がシフトレジスタ制御部40を駆動
することにより、シフトレジスタ群30から、レジスタ
34,33,32,31の順にプログラムを読出し、プ
ログラムデコーダ50を介して受信することにより実行
される。For the next and subsequent repetition of execution, the program execution unit 60 drives the shift register control unit 40 to execute the program from the shift register group 30 to the registers 34, 33, 32, 31 in this order. It is executed by reading and receiving it through the program decoder 50.
【0024】従って、シフトレジスタ群30から2回繰
返し読出すことにより、合計3回の実行となる。この場
合、シフトレジスタ制御部40へのレジスタ数41は数
値4、繰返し回数42は数値2がそれぞれ設定される。Therefore, by repeatedly reading from the shift register group 30 twice, a total of three times of execution are performed. In this case, the number of registers 41 to the shift register control unit 40 is set to the numerical value 4, and the number of repetitions 42 is set to the numerical value 2.
【0025】本実施例で機能ブロックを図示して説明し
たが、機能はマイクロプロセッサ外での配備でもよく、
また分離、併合が自由なので、上記説明が本発明を限定
するものではない。Although the functional blocks are shown and described in this embodiment, the functions may be provided outside the microprocessor,
The above description does not limit the present invention because it can be separated and merged freely.
【0026】[0026]
【発明の効果】以上説明したように、本発明はプログラ
ムメモリから読出したプログラムをシフトレジスタ
(群)に格納し、シフトレジスタ(群)を直接駆動する
だけで繰返し処理のプログラムを読出すことにより、繰
返し処理によるメモリアクセス時間の繰返し回数分の重
複を省くことができる効果がある。As described above, according to the present invention, the program read from the program memory is stored in the shift register (group), and the program of the repetitive processing is read by only directly driving the shift register (group). Thus, there is an effect that the duplication of the memory access time due to the iterative process can be omitted.
【図1】本発明の一実施例を示すブロック構成図であ
る。FIG. 1 is a block diagram showing an embodiment of the present invention.
10 プログラムメモリ 20 プログラムカウンタ 30 シフトレジスタ群 31,32 シフトレジスタ 40 シフトレジスタ制御部 50 プログラムデコーダ 60 プログラム実行部 10 program memory 20 program counter 30 shift register group 31, 32 shift register 40 shift register control unit 50 program decoder 60 program execution unit
Claims (2)
が、プログラムを記憶するプログラムメモリから読出す
べきプログラムのアドレスを生成するプログラムカウン
タと、前記プログラムメモリから読出した内容を多ビッ
ト符号で格納する複数のシフトレジスタをもつシフトレ
ジスタ群と、このシフトレジスタ群に格納されたプログ
ラムを繰返し読出す繰返し回数を指示するシフトレジス
タ制御部とを有し、前記プログラムカウンタおよびシフ
トレジスタ制御部の何れか一方を選択し前記プログラム
メモリおよびシフトレジスタ群の一方からプログラムを
読出して実行することを特徴とするマイクロプロセッサ
のプログラム実行方式。1. A program control microprocessor for generating an address of a program to be read from a program memory for storing a program, and a plurality of shift registers for storing the contents read from the program memory in a multi-bit code. And a shift register control section for instructing the number of repetitions for repeatedly reading the program stored in the shift register group, and selecting one of the program counter and the shift register control section A program execution method for a microprocessor, which reads and executes a program from one of a program memory and a shift register group.
グラムを読出す繰返し回数とシフトレジスタ数とを、前
記シフトレジスタ制御部に設定し、このシフトレジスタ
制御部がこれら繰返し回数およびシフトレジスタ数から
定まる回数を読出し回数として前記シフトレジスタ群に
指示して格納されたプログラムを読出すことを特徴とす
る請求項1記載のマイクロプロセッサのプログラム実行
方式。2. The number of repetitions and the number of shift registers for reading the program stored in the shift register group are set in the shift register control unit, and the shift register control unit determines the number of repetitions and the number of shift registers. 2. The program execution method of the microprocessor according to claim 1, wherein the stored program is read by instructing the shift register group with the number of times as the number of times of reading.
Priority Applications (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2937792A JPH05224919A (en) | 1992-02-17 | 1992-02-17 | Program execution system for microprocessor |
Applications Claiming Priority (1)
Application Number | Priority Date | Filing Date | Title |
---|---|---|---|
JP2937792A JPH05224919A (en) | 1992-02-17 | 1992-02-17 | Program execution system for microprocessor |
Publications (1)
Publication Number | Publication Date |
---|---|
JPH05224919A true JPH05224919A (en) | 1993-09-03 |
Family
ID=12274461
Family Applications (1)
Application Number | Title | Priority Date | Filing Date |
---|---|---|---|
JP2937792A Pending JPH05224919A (en) | 1992-02-17 | 1992-02-17 | Program execution system for microprocessor |
Country Status (1)
Country | Link |
---|---|
JP (1) | JPH05224919A (en) |
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5643471A (en) * | 1994-11-09 | 1997-07-01 | Sharp Kabushiki Kaisha | Liquid crystal device and method for producing the same |
-
1992
- 1992-02-17 JP JP2937792A patent/JPH05224919A/en active Pending
Cited By (1)
Publication number | Priority date | Publication date | Assignee | Title |
---|---|---|---|---|
US5643471A (en) * | 1994-11-09 | 1997-07-01 | Sharp Kabushiki Kaisha | Liquid crystal device and method for producing the same |
Similar Documents
Publication | Publication Date | Title |
---|---|---|
JPH05224919A (en) | Program execution system for microprocessor | |
JP3190945B2 (en) | Micro program control circuit | |
JPH0713758A (en) | Instruction decoding method | |
JPS6128122B2 (en) | ||
JPH05298088A (en) | Microcomputer | |
JPH06230977A (en) | Language processor | |
JP3331357B2 (en) | Programmable controller | |
JPH08297583A (en) | Processor and method for interruption processing | |
JP2504151B2 (en) | Data processing device | |
JP3057732B2 (en) | Information processing device | |
KR900002602B1 (en) | Microprogram control method | |
JPS6042968B2 (en) | information processing equipment | |
JPH02199535A (en) | Microprogram control | |
JP2604203B2 (en) | Debug device for one-chip digital signal processor | |
JPH04256039A (en) | Information processor capable of counting instruction | |
JPH0319570B2 (en) | ||
JPS58149506A (en) | Sequence controller | |
JPH04232536A (en) | Diagnostic control system | |
JPH0128965B2 (en) | ||
JPH06348549A (en) | Software processor | |
JPH0830453A (en) | Programmable controller | |
JPS6361331A (en) | Control device for computer | |
JPS63163533A (en) | Microcomputer | |
JPH05197543A (en) | Instruction decoding system of information processor | |
JPH0512003A (en) | Program control system |
Legal Events
Date | Code | Title | Description |
---|---|---|---|
A02 | Decision of refusal |
Free format text: JAPANESE INTERMEDIATE CODE: A02 Effective date: 19981201 |