JPS6175931A - Central processor - Google Patents

Central processor

Info

Publication number
JPS6175931A
JPS6175931A JP59196847A JP19684784A JPS6175931A JP S6175931 A JPS6175931 A JP S6175931A JP 59196847 A JP59196847 A JP 59196847A JP 19684784 A JP19684784 A JP 19684784A JP S6175931 A JPS6175931 A JP S6175931A
Authority
JP
Japan
Prior art keywords
address
data
instructions
instruction
addresses
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
JP59196847A
Other languages
Japanese (ja)
Inventor
Yukio Ito
幸雄 伊藤
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.)
Toshiba Corp
Original Assignee
Toshiba 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 Toshiba Corp filed Critical Toshiba Corp
Priority to JP59196847A priority Critical patent/JPS6175931A/en
Publication of JPS6175931A publication Critical patent/JPS6175931A/en
Pending legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)
  • Memory System Of A Hierarchy Structure (AREA)

Abstract

PURPOSE:To execute a program at a high speed by providing an internal memory part which stores the instructions or data in the addresses preceding the address which is under execution as well as the instructions or data on the addresses following the address under execution. CONSTITUTION:A controller 9 of a control part 2 pre-reads the instructions or data in the intervals of execution of instructions and stores them in an inter nal memory 3. The memory 3 stores N pieces of instructions or data up to an address PC-N which is ahead of an address PC of the instruction or data under execution by plural addresses together with M pieces of instructions or data up to an address PC+M which is behind the address PC by plural addresses. Therefore even an instruction for execution of the address preceding the address PC can be read out quickly from the memory 3 and executed.

Description

【発明の詳細な説明】 [発明の技術分野] 本発明は中央処理′tAf (central prO
c(!33!n(1unit:Cr’U)に関する。
Detailed Description of the Invention [Technical Field of the Invention] The present invention relates to a central processing 'tAf (central prO
Regarding c(!33!n(1 unit: Cr'U).

[発明の技術向背mとその問題点] 中央処理装置(以下、CPUとも称する)は、外部記憶
賛同に記憶されているプログラムを読み出すと共にこの
プログラムを命令レコーダにより解読して各ユニットを
制御する制御部と、転送されるデータに関して演算を行
う演算部と、現在実行している番地よりN個先までの命
令及びデータを保持する先読みレジスタとを有して構成
されている。
[Technical disadvantages of the invention and its problems] A central processing unit (hereinafter also referred to as CPU) reads out a program stored in an external memory and decodes this program with an instruction recorder to control each unit. The processor is configured to include a processor, an arithmetic unit that performs arithmetic operations on data to be transferred, and a look-ahead register that holds instructions and data up to N points beyond the address currently being executed.

ところで、命令の内容によってはCPU内部だけの命令
あるいは時間のかかる命令があるので、命令実行中の合
間をぬって次の命令あるいはデータを予め先読みしてレ
ジスタに保持しておくことにより、プログラム実行の高
速化を図っている。
By the way, depending on the contents of the instruction, there are instructions that are only internal to the CPU or instructions that take time, so by reading ahead the next instruction or data in advance and holding it in a register during the interval during instruction execution, program execution can be delayed. We are trying to speed up the process.

しかしながら、プログラムの総てが逐次命令により構成
されていれば問題はないのであるが、プログラムにはジ
ャンプ命令や現在実行している番地よりも前の番地を実
行するような場合があり、かかる場合、既述のように命
令実行中の合間をぬって先読みしてレジスタに保持した
命令あるいはデータが無意味となるばかりか実行に供す
る命令等を外部より新たに取り込まなければならないか
ら、プログラムの高速実行が図れないという問題点があ
る。
However, if the entire program is made up of sequential instructions, there will be no problem, but there are cases where programs include jump instructions or execute an address previous to the address currently being executed. As mentioned above, not only do the instructions or data read ahead and held in registers during the interval during instruction execution become meaningless, but also new instructions for execution must be fetched from the outside, which reduces the speed of the program. There is a problem that it cannot be implemented.

[発明の目的コ 本発明は上記事情に鑑みて成されたものであり、現在実
行している番地よりも前の番地を実行する命令があるの
にもかかわらず、プログラムの高速実行を図ることので
きる中央処理装置の提供を目的とする。
[Purpose of the Invention] The present invention has been made in view of the above circumstances, and is to achieve high-speed execution of a program even though there is an instruction to execute an address earlier than the address currently being executed. The purpose is to provide a central processing unit that can perform

[発明の概要1 上記目的を達成するための本発明の概要は、プログラム
の命令により他ユニットの動作制御を行うυ制御部を有
する中央処理装置において、前記制御部によって制御さ
れ、前記プログラムの現在実行されている番地以後の番
地における命令あるいはデータを記憶すると共に現在実
行されている番地以前の番地における命令あるいはデー
タをも記憶する内部メモリ部を具備することを特徴とす
るものである。
[Summary of the Invention 1] A summary of the present invention for achieving the above object is that, in a central processing unit having a υ control unit that controls the operation of other units according to commands of a program, the control unit controls the current state of the program. It is characterized by having an internal memory section that stores instructions or data at addresses after the currently executed address, and also stores instructions or data at addresses before the currently executed address.

[発明の実IMPAJ 以下、本発明の実施例について図面を参照しながら説明
する。
[Act of the Invention IMPAJ Hereinafter, embodiments of the present invention will be described with reference to the drawings.

第1図は本発明の一実施例たる中央処理袋dの構成を示
すブロック図であり、同図1は転送されるデータの演算
処理を行う演算部、2は転送されるプログラムの命令に
より前記演算部及び他ユニットの動作制御を行う制御部
、3は前記制御部2によって制御され、前記プログラム
の現在実行されている番地以後の番地における命令ある
いはデータを記憶すると共に現在実行されている番地以
前の番地における命令あるいはデータをも記憶する内部
メモリ部である。
FIG. 1 is a block diagram showing the configuration of a central processing bag d, which is an embodiment of the present invention. A control unit 3 that controls the operation of the arithmetic unit and other units is controlled by the control unit 2, and stores instructions or data at addresses after the address where the program is currently being executed, and also stores instructions or data at addresses before the address where the program is currently being executed. This is an internal memory section that also stores instructions or data at addresses.

尚、前記制御部2は、実行される命令のアドレスを保持
するアドレスレジスタ4と、このアドレスレジスタ4に
保持されたアドレスをアドレスバスを介して図示しない
外部メモリ装置へ出力するためのアドレスバッファ5と
、このアドレスバッファ5を介して出力されるアドレス
における命令を、データバスを介して取り込むためのデ
ータレジスタ/バッフ76と、このデータレジスタ/バ
ッフ?6を介して取り込まれた命令を保持する命令レジ
スタ7と、この命令レジスタ7に保持された命令を解読
する命令レコーダ8と、この命令し]−ダ8により解読
された命令に応じて制御部2(ハ)外及び本CPU外に
接続される各ユニットの動作制御を行うコントローラ9
とを有して構成される。
The control unit 2 includes an address register 4 that holds the address of an instruction to be executed, and an address buffer 5 that outputs the address held in the address register 4 to an external memory device (not shown) via an address bus. , a data register/buffer 76 for taking in the instruction at the address outputted via this address buffer 5 via the data bus, and this data register/buffer ? 6; an instruction recorder 8 for decoding the instructions held in the instruction register 7; 2 (c) Controller 9 that controls the operation of each unit connected outside and outside this CPU
It is composed of:

次に、以上構成による実施例装置の作用について説明す
る。
Next, the operation of the embodiment device having the above configuration will be explained.

アドレスレジスタ4に保持されたアドレスにより図示し
ない外部メモリ装置から命令及びデータが読み出され、
命令はデータレジスタ/バッファ6を介して命令レジス
タ7に入力され、また、データは演算部1に入力され保
持される。命令レジスタ7に保持された命令は命令レコ
ーダ8によりwl読され、]コントローラによる制御に
供される。
Instructions and data are read from an external memory device (not shown) using the address held in the address register 4,
Instructions are input to the instruction register 7 via the data register/buffer 6, and data is input to the arithmetic unit 1 and held there. The instructions held in the instruction register 7 are read out by the instruction recorder 8 and are subjected to control by the controller.

一方命令実行中の合間をぬってコントローラ9は、命令
あるいはデータの先読みを行い、内部メモリ部3に記憶
する。この内部メモリ部3には、例えば第2図に示すよ
うに、現在実行中の命令あるいはデータの番地を(PC
)とした場合、この番地(PC)よりも複数番地前の番
地、すなわち、番地(PC−2)、(PC−4)、・・
・、(PC−N)までのN個の命令あるいはデータが記
憶されると共に前記番地(PC)よりも複数番地後の番
地、すなわち、番地(PC+2)、(PC+4)。
On the other hand, the controller 9 performs pre-reading of commands or data at intervals during the execution of commands, and stores them in the internal memory section 3. For example, as shown in FIG.
), the addresses are multiple addresses before this address (PC), that is, addresses (PC-2), (PC-4), etc.
. N instructions or data up to (PC-N) are stored, and the addresses are a plurality of addresses after the address (PC), that is, addresses (PC+2) and (PC+4).

・・・、(PC+M)までのM個の命令あるいはデータ
が記憶される。
. . . M instructions or data up to (PC+M) are stored.

このように、命令あるいはデータの先読みにより内部メ
モリ部3には、現在実行中の命令あるいはデータの番地
よりも後の番地の命令あるいはデータのみならず、前の
番地の命令あるいはデータも記憶されるから、現在実行
している番地よりも萌の番地を実行する命令がある場合
であっても、これを内部メモリ部3より速やかに跣み出
して実行することができるので、プログラムの高速実行
を図ることができる。
In this way, by prefetching the instruction or data, the internal memory unit 3 stores not only the instruction or data at the address after the address of the instruction or data currently being executed, but also the instruction or data at the previous address. Therefore, even if there is an instruction that executes an address that is higher than the address that is currently being executed, it can be quickly retrieved from the internal memory section 3 and executed, resulting in high-speed program execution. can be achieved.

以F本発明の一実施例について説明したが、本発明は上
記実施例に限定されるものではなく、本発明の要旨の範
囲内で適宜に変形実施が1liT能であるのはいうまで
もない。
Although one embodiment of the present invention has been described below, the present invention is not limited to the above embodiment, and it goes without saying that modifications can be made as appropriate within the scope of the gist of the present invention. .

[発明の効果] 以上説lI したように本発明によれば、現在実行して
いる番地よりも前の番地を実行する命令があるのにもか
かわらず、プログラムの高速実行を図ることのでさる中
央処理装置を提供することができる。
[Effects of the Invention] As described above, according to the present invention, even if there is an instruction to execute an address earlier than the address currently being executed, the program can be executed at high speed. A processing device can be provided.

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

第1図は本発明の一実施例たる中央処理装置の樹成を示
すブロック図、第2図は第1図に示す装置の内部メモリ
部における記憶の一例を示す説明図である。 1・・・演符部、2・・・ili制御部、3・・・内部
メモリ部。
FIG. 1 is a block diagram showing the structure of a central processing unit according to an embodiment of the present invention, and FIG. 2 is an explanatory diagram showing an example of storage in the internal memory section of the device shown in FIG. 1... Performance section, 2... ili control section, 3... Internal memory section.

Claims (1)

【特許請求の範囲】[Claims] プログラムの命令により他ユニットの動作制御を行う制
御部を有する中央処理装置において、前記制御部によっ
て制御され、前記プログラムの現在実行されている番地
以後の番地における命令あるいはデータを記憶すると共
に現在実行されている番地以前の番地における命令ある
いはデータをも記憶する内部メモリ部を具備することを
特徴とする中央処理装置。
In a central processing unit that has a control unit that controls the operations of other units according to instructions from a program, the control unit stores instructions or data at an address after the address where the program is currently being executed, and the instructions or data that are currently being executed. 1. A central processing unit comprising an internal memory unit that also stores instructions or data at an address before the current address.
JP59196847A 1984-09-21 1984-09-21 Central processor Pending JPS6175931A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP59196847A JPS6175931A (en) 1984-09-21 1984-09-21 Central processor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP59196847A JPS6175931A (en) 1984-09-21 1984-09-21 Central processor

Publications (1)

Publication Number Publication Date
JPS6175931A true JPS6175931A (en) 1986-04-18

Family

ID=16364647

Family Applications (1)

Application Number Title Priority Date Filing Date
JP59196847A Pending JPS6175931A (en) 1984-09-21 1984-09-21 Central processor

Country Status (1)

Country Link
JP (1) JPS6175931A (en)

Similar Documents

Publication Publication Date Title
EP0087785A2 (en) Microprogram controlled data processing apparatus
JP2773471B2 (en) Information processing device
JPH05342084A (en) Device and method for storing data
KR920004279B1 (en) Microprocessor with pointer register
JPH03233630A (en) Information processor
US4910657A (en) Microprocessor providing bus access for unconditional instruction execution
JPS6175931A (en) Central processor
JP2553200B2 (en) Information processing device
JPH0193825A (en) Prefetch queue control system
JPS6217773B2 (en)
JPS6298430A (en) Microprocessor
JPS60195661A (en) Data processing system
JPH0218729B2 (en)
KR950004227B1 (en) Information processing system
JPS61217834A (en) Data processor
JPS5999552A (en) Microcomputer
JP2522564B2 (en) Programmable controller
JPH04135237A (en) Microprogram control information processor
JPS63178335A (en) Microprocessor
JPS6047618B2 (en) information processing equipment
JPH0546389A (en) Parallel processor
JPH0353322A (en) Information processor
JPH01118929A (en) Instruction prefetching system for data processing system
JPH01255037A (en) Electronic computer
JPH02230326A (en) Pipe line information processor