JPS62133532A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPS62133532A
JPS62133532A JP60274524A JP27452485A JPS62133532A JP S62133532 A JPS62133532 A JP S62133532A JP 60274524 A JP60274524 A JP 60274524A JP 27452485 A JP27452485 A JP 27452485A JP S62133532 A JPS62133532 A JP S62133532A
Authority
JP
Japan
Prior art keywords
instruction
fifo
instruction code
terminal
inputted
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
JP60274524A
Other languages
Japanese (ja)
Inventor
Kaoru Tono
東野 薫
Current Assignee (The listed assignees may be inaccurate. Google has not performed a legal analysis and makes no representation or warranty as to the accuracy of the list.)
NEC Corp
Original Assignee
NEC 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 NEC Corp filed Critical NEC Corp
Priority to JP60274524A priority Critical patent/JPS62133532A/en
Publication of JPS62133532A publication Critical patent/JPS62133532A/en
Pending legal-status Critical Current

Links

Abstract

PURPOSE:To make it unnecessary to provide a special timing adjusting circuit on the outside by extending a bit width of a first-in first-out buffer (FIFO) for an instruction code, and providing input/output terminals on the FIFO of an extended part. CONSTITUTION:In an extended part of a FIFO 3 for an instruction code, a break use FIFO 5 of one bit constitution having an input terminal 6 and an output terminal 7 is provided. The FIFO 3 inputs an instruction code from a data bus 1 through a bus interface 2, in accordance with the number of instruction codes which have been inputted to the inside. In this case, the FIFO 5 also inputs simultaneously a state which has been inputted to the terminal 6, and when an instruction executing part ends an execution of an instruction, and inputs the next instruction code to an instruction decoder 5, a state which has been inputted to the terminal 6 of the FIFO 5 at the time when its instruction code has been inputted to the FIFO 3 is outputted simultaneously to the terminal 7.

Description

【発明の詳細な説明】[Detailed description of the invention]

1産災りの初出分野] 本蚤明はマイクロブロセ・ソサに関し、1−1fに先人
れ先出しバッファを有するマイクロプロセッサに関する
7 [従来の技術〕 Ue来、先入れ先出しバッファ(薗1−s t、 −i
n−r i r !’+ 1n n 1. h u [
r p r r以下、FTFOと記す)を有するマイク
ロプロセッサでは、命令実行中に命令コードを先行して
読込み、その命令コードを記憶し、書込み順に命令コー
1〜を命令デコーダに供給している。 第4図は従来のマイクロ10セ・・Iすの一例の70・
ツク図である6 第11図において、1′はデータバス、2′はハス・イ
ンタフェース、3′は命令コー1へ用のFlF′0.4
は命令デコーダ 8はF + r−’ Oの動作状況信
号の出力端子てJ)る、 次に、第・1図に示すマイクロブロセ・・lすの動作を
説明する、F T P OR′の内部に取込まれている
命令コード数に応じハス インタフェース2゛を而して
、データバスl゛から1イα令コードをFIFO3’内
に取込む。そして、命令実行部か命令実行を終了する度
に、順次P I F’ 03′から市i令デコーダに命
令コードが送j)れる。 また、分岐命令実行時は、PIF03′内の命令コード
は全部クリアされ、分岐先のプログラムアI・レスから
新に命令コードを読出し始める。 Uli来のマイクロプロセッサでは、このFTFO3゛
の状態を外部に知らせるために、命令デコーダ・1にQ
令コードを送ったという情報と、171ド03゛内の命
令コード分全部クリアしたという情報を出力端子8から
外部に出力していた。 また、近年マイクロコンピュータのプログラム開発時に
エミュし・−ジョン装置を使用する事が増えて宋てCす
る このエミュレーシElン装置は、基本的機能として
fE意の番地からのプログラムの実行開始や停
1 First field of industrial disaster] Akira Honnoki relates to microprocessors with a first-in, first-out buffer in 1-1f. , -i
n-r i r! '+ 1n n 1. h u [
A microprocessor having an FTFO (hereinafter referred to as FTFO) reads an instruction code in advance during instruction execution, stores the instruction code, and supplies instruction codes 1 to 1 to an instruction decoder in the order of writing. Figure 4 shows an example of a conventional micro 10-seater 70-
In Figure 11, 1' is the data bus, 2' is the bus interface, and 3' is the FlF'0.4 for instruction code 1.
is an instruction decoder 8 is an output terminal for the operation status signal of F+r-'O. Next, the operation of the microprocessor shown in FIG. 1 will be explained. Depending on the number of instruction codes loaded into the FIFO 3', one instruction code is loaded into the FIFO 3' from the data bus l' through the interface 2'. Then, each time the instruction execution section finishes executing an instruction, the instruction code is sequentially sent from the PIF'03' to the instruction decoder. Furthermore, when a branch instruction is executed, all instruction codes in PIF03' are cleared, and a new instruction code starts to be read from the branch destination program address. In microprocessors since Uli, in order to inform the outside of the state of this FTFO 3, a Q signal is input to the instruction decoder 1.
The information that the command code was sent and the information that all the command codes in 171.03' were cleared were output from the output terminal 8 to the outside. In addition, in recent years, the use of emulation devices has increased when developing programs for microcomputers.

【1−1
ブロクラムメモリの誠出し、及び書込み、マイクロプロ
セ・ンサ内のレジスタの読出し及び書込み等の機能を有
する。 これらの機能の中で、任意の番地でのプログラム実行の
停止をさせる機能を実現する方法としては、第5図に示
すように、マイクロプロセッサ53のアドレスバス54
に接続されたコ〉バし一タ52がレジスタ51に設定さ
れた停止させたいフ゛ログラムアドレスとアドレスバス
5.!1からのアトしス値と3比較し、一致したとき一
致信号55でマイクロ10セ・ソサに割込みをかけると
いう方法が一般的に広く用いられている。 [発明が解決しようとする間層点J 上述した従来のマイクロプロセッサは、第5図に示す割
込み方式を用いると、命令の先行読込みを行っているた
め、停止させたいプログラムアトしスよりら前のアトし
スて停止してしまうにのため、第6図に示すように、マ
イクロプロセッサ63内部の命令コードを蓄積するFI
FOの動作状況出力信号65とデータバスから命令を読
込んだ信号66とにより、コンパレータ52からの一致
信号55をタイミング調整回路62により調1yシ、マ
イクロプロセ・ソサ63に割込み信号()7を供給して
、割込みを行っている。 bt来のマイクロプロセッサは、タイミング:J!、1
整回路02が複雑になるといつ問題点かりる、本発明の
目的は、複雑なタイミング調13を要しないマイクロブ
ロセ・ノサを提供することにある。 1問題点を解決するための手段゛1 本発明めマイクロブロセ・ソサは、命令実行中に命令コ
ードを先行して読込み、該命令コードを蓄積し入力順に
順次出力する先入れ先出しバッファと、該先入れ先出し
バッファからの前記命令フードをテコ−)・する命令デ
コーダと、前記先入れ先出しへラフ7・の拡張バッファ
として設けられ前記ん入れ先出しへラフrのピッ1〜幅
を任意のビット数分な4′?拡張したビット1幅を有す
るブレーク用先入れ先出しハ・lファと、該ブレーク用
先入れ先出しバッフγの入力及び出力端子とを凄んで構
成される。 1実施例1 次に、本発明の実施例について図面を参照して説明する
。 第1図は本発明の一実施例のブロック図゛ζある。 第1図において、1はテークハス、2はハスインタフェ
ース、3は命令コード用のI” f F=’ O14は
命令デコーダ、5は命令コード用のF’ I F Oの
拡張された部分で1ピッl−構成のブレーク用のFIF
O16はブレーク用の1・” I )’ 0の入力端子
、7はブレーク用のFll”0の出力端子である。 第114において、命令コーI〜用のP I F O3
は内部に収込まれ”ζいる命令コード数に応じて、バス
・、インタフェース2を通して、子−タハス1から命令
コードを収込む。その時、ブレーク用のドJFO5#J
入力端f +’)に人力された状態(低トベル又は高レ
ベル)を同時に収込む。そして、命令実1」部か命φ7
実行を終I′シ、次の命令コードを命令デコーダ4に収
込む)1!1、その命令コードを1fii令コード用の
F f F 03に収込んた時のブレーク用のl’ T
 P O5の入力端子0に人力された状態(低レベル又
は高レベル)か同時に出力端子7に出力される、7 次に、実施例のエミュレーシー1ン装;aに4〕けるプ
ロクラJ、停止動作について、第2図及び第3図を参1
14j Lで説明・j−る。 第2図は第1図に承り一マイクロアL’7セツザの工ミ
ュレーション装置における任意アドレスのプ℃7クラム
実行後プログラム実行を停止する回路のブロック図、第
31図は第1図に示すマイクロ10セツナのエミュレー
ション装置における任意アドレスのプログラムを複数回
実行後プログラム実行を停止する回路のブロック図であ
る。 第2図に示すように、コンパレータ21からの一致信号
24をマイクロプロセッサ22のブレーク用のF I 
F Oの入力端子25に人力すれば、停止させたい7゛
トレスの1命令=1−ドを命令コード用のI” T I
” 0に収込んだのと同じタイミングでブレーク用のF
 T F Oにコンパレータ21からの一致信号24l
か取込まれる。一致信号24は、停止さぜたいア1〜レ
スの命令コードを命令コード用の[−′TFO;/1J
)l\命令デコーダへ送られた時にブレーク用のFr 
T F Oの出力端子から信号26として出力されるの
て、この信号を割込み入力端子29へ人力ずれば、停止
させたいアI・レスの句会を実行した時点て割込みがか
かることになる。。 また、第3図に示すように、ブレーク用の12″ll7
0ノ)出力端r−からの信号26をカウンタ23のカウ
ンタダウン・クロック入力端子27に(!l: #8 
L、カウンタ23のホロー出力28をマイクロプロセッ
サ22の割込み入力端子29へ人力することにより、カ
ウンタ23にセラ1−シた値に1を加えた回数な0停止
さぜたいアトしスのl命令を実行後、プログラムの実行
を停止させることかできる。 1、発明の効用1 以−1二説明し/こように本発明のマイクロ10セ・・
lすは、(j′「令コード用のr?r +; Oのビ・
・/)・幅分拡張し、その拡張した部分のFIFOの入
力及び出力円の端子を設けることにより、エミュレーシ
ョン装置において外部に特別なタイミンク、iJ!、1
 !u回路を持つ・ピ・要かなくtf:SのアI−レス
のプログラムを実行後プロフラノ1、の実行を停車でき
るという効果かある。 図面の節iい、な説明 第1図は本発明の一実施例のブロック図、第2図は第1
図に示すマイクロ10セ・ソサのエミュレーショ〉装置
における任意プログラム実行後の10グラム実行を停止
する回路のブロック図、第3図は第1図に示すマイクロ
プロセッサのエミュレーション装置における任意プログ
ラムを複数回実行1糸のプログラム実行を停止する回路
のブロック図、第・1図は従宋のマイクロプロセッサの
一例のプロlり図、第5図は一般的なマイクロ10セ・
ソサのエミュレーション装置における任意プログラム実
行後のプログラム実行を停止する回路のプロ・・lり図
、第0図は第4図に示すマイクIコブロセッザのエミュ
レーシ・ヨシ7j置における1壬怠プログラム実行後の
10グラム実行を停止する回路のフロック図である6 1.1′・・・テータバス、2,2′ ・・バス・イン
クフェース、3,3′・・・命令=7−1〜川のI?I
ドO51・・命令テコーグ、5・・・ブレーク用のl”
 I 170、【】・・入力端子、7.8・・・出力端
−i4−.21 、、、コンパし一タ、22・マイクロ
ッ”1コセツサ、23 ・力「′ノンタ、()2・・・
タイミンク調!芝回路。
[1-1
It has functions such as reading and writing to block memory, reading and writing to registers in the microprocessor, etc. Among these functions, a method for realizing the function of stopping program execution at an arbitrary address is as shown in FIG.
The converter 52 connected to the register 51 inputs the address of the program to be stopped set in the register 51 and the address bus 5. ! A commonly used method is to compare 3 with the atto value from 1, and when they match, interrupt the micro 10 set source with a match signal 55. [Interlayer Point J to be Solved by the Invention When the conventional microprocessor described above uses the interrupt method shown in FIG. As shown in FIG. 6, an FI for storing instruction codes inside the microprocessor 63
The coincidence signal 55 from the comparator 52 is adjusted by the timing adjustment circuit 62 based on the FO operating status output signal 65 and the signal 66 that reads the command from the data bus, and the interrupt signal ( ) 7 is sent to the microprocessor processor 63. supplying and interrupting. BT's next microprocessor has timing: J! ,1
Problems arise when the adjustment circuit 02 becomes complicated.An object of the present invention is to provide a microprocessor that does not require a complicated timing adjustment 13. Means for Solving Problem 1 1 The microprocessor processor of the present invention includes a first-in, first-out buffer that reads an instruction code in advance during instruction execution, stores the instruction code, and sequentially outputs the instruction code in the order in which it is input; An instruction decoder that leverages the instruction food from the buffer is provided as an expansion buffer for the first-in-first-out rough 7, and the width of the first-in, first-out rough r is set to an arbitrary number of bits. It is composed of a first-in, first-out buffer for breaks having an expanded one-bit width, and input and output terminals of the first-in, first-out buffer for breaks γ. 1 Example 1 Next, an example of the present invention will be described with reference to the drawings. FIG. 1 is a block diagram of one embodiment of the present invention. In Figure 1, 1 is the take hash, 2 is the hash interface, 3 is the instruction code I" f F=' O14 is the instruction decoder, and 5 is the extended part of the instruction code F' I F O. FIF for break in l-configuration
O16 is an input terminal of 1.''I)'0 for break, and 7 is an output terminal of Fll''0 for break. In the 114th step, P I F O3 for instruction code I~
stores the instruction code from the child bus 1 through the bus and interface 2 according to the number of instruction codes stored inside.At that time, the break code JFO5#J
At the same time, the manually applied state (low level or high level) is accommodated at the input terminal f+'. And, the command actual 1” part or life φ7
Terminate execution and store the next instruction code in the instruction decoder 4) 1!1, L'T for break when the instruction code is stored in 1fii instruction code F f F 03
The state (low level or high level) that is manually input to the input terminal 0 of the P O5 or is output to the output terminal 7 at the same time.Next, the emulator J of the embodiment is installed; Regarding the operation, please refer to Figures 2 and 3.
14j L explains/j-ru. Figure 2 is a block diagram of a circuit that stops program execution after executing a program at an arbitrary address in the microA L'7 emulation device based on Figure 1, and Figure 31 is shown in Figure 1. FIG. 2 is a block diagram of a circuit for stopping program execution after executing a program at an arbitrary address a plurality of times in a Micro 10 Setsuna emulation device. As shown in FIG. 2, the match signal 24 from the comparator 21 is sent to the break FI
If you input it manually to the input terminal 25 of FO, you can input 1 instruction = 1-de of the 7゛ trace you want to stop as the instruction code I'' T I
” At the same time as it reached 0, press F for break.
Match signal 24l from comparator 21 to TFO
or be taken in. The match signal 24 converts the instruction code of the area 1 to the address that you want to stop into the instruction code [-'TFO;/1J
)l\Fr for break when sent to instruction decoder
If this signal is output as a signal 26 from the output terminal of the TFO and is manually transferred to the interrupt input terminal 29, an interrupt will be generated when the AI/response haiku session that is desired to be stopped is executed. . In addition, as shown in Figure 3, there is a 12"ll7 for break.
0)) The signal 26 from the output terminal r- is input to the counter down clock input terminal 27 of the counter 23 (!l: #8
L, by manually inputting the hollow output 28 of the counter 23 to the interrupt input terminal 29 of the microprocessor 22, a zero stop instruction is executed for the number of times the counter 23 is set to zero plus 1. After executing, you can stop the program execution. 1. Utility of the invention 1 Hereinafter, explain the micro 10 cells of the present invention...
l is (j''r?r + for command code;
・/)・By expanding the width and providing FIFO input and output circle terminals in the expanded portion, special timing, iJ! ,1
! It has the effect of being able to stop the execution of Profurano 1 after executing the tf:S airless program without needing to have a u circuit. Brief Description of the Drawings Fig. 1 is a block diagram of an embodiment of the present invention, and Fig. 2 is a block diagram of an embodiment of the present invention.
Figure 3 is a block diagram of a circuit that stops 10-gram execution after executing an arbitrary program in the microprocessor emulation device shown in Figure 1. A block diagram of a circuit that stops program execution for one thread of execution. Figure 1 is a schematic diagram of an example of a Congo Song microprocessor. Figure 5 is a typical microprocessor of 10 cells.
A schematic diagram of the circuit for stopping program execution after execution of an arbitrary program in Sosa's emulation device. This is a block diagram of a circuit that stops 10-gram execution.6 1.1'... data bus, 2,2'... bus ink face, 3,3'... instruction = 7-1 ~ river I? I
O51...Instruction code, 5...L for break
I 170, []...Input terminal, 7.8...Output terminal -i4-. 21 、、、Compassi Ichita、22・Micro"1Kosetsusa、23、Power "'Nonta、()2...
Timing style! grass circuit.

Claims (1)

【特許請求の範囲】[Claims] 命令実行中に命令コードを先行して読込み該命令コード
を蓄積し入力順に順次出力する先入れ先出しバッファと
、該先入れ先出しバッファからの前記命令コードをデコ
ードする命令デコーダと、前記先入れ先出しバッファの
拡張バッファとして設けられ前記先入れ先出しバッファ
のビット幅を任意のビット数分だけ拡張したビット幅を
有するブレーク用先入れ先出しバッファと、該ブレーク
用先入れ先出しバッファの入力及び出力端子とを含むこ
とを特徴とするマイクロプロセッサ。
A first-in, first-out buffer that reads an instruction code in advance during instruction execution, stores the instruction code, and sequentially outputs the instruction code in the order of input; an instruction decoder that decodes the instruction code from the first-in, first-out buffer; and an extension buffer of the first-in, first-out buffer. A microprocessor comprising: a break first-in first-out buffer having a bit width obtained by extending the bit width of the first-in first-out buffer by an arbitrary number of bits; and input and output terminals of the break first-in first-out buffer.
JP60274524A 1985-12-05 1985-12-05 Microprocessor Pending JPS62133532A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP60274524A JPS62133532A (en) 1985-12-05 1985-12-05 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP60274524A JPS62133532A (en) 1985-12-05 1985-12-05 Microprocessor

Publications (1)

Publication Number Publication Date
JPS62133532A true JPS62133532A (en) 1987-06-16

Family

ID=17542902

Family Applications (1)

Application Number Title Priority Date Filing Date
JP60274524A Pending JPS62133532A (en) 1985-12-05 1985-12-05 Microprocessor

Country Status (1)

Country Link
JP (1) JPS62133532A (en)

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04130930A (en) * 1990-09-21 1992-05-01 Nec Ic Microcomput Syst Ltd Emulation cpu
JPH04350735A (en) * 1991-05-29 1992-12-04 Nec Corp Microprocessor
JPH096648A (en) * 1995-06-24 1997-01-10 Nec Corp Microcomputer

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS573143A (en) * 1980-06-05 1982-01-08 Matsushita Electric Ind Co Ltd Instruction prefetching system

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS573143A (en) * 1980-06-05 1982-01-08 Matsushita Electric Ind Co Ltd Instruction prefetching system

Cited By (3)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPH04130930A (en) * 1990-09-21 1992-05-01 Nec Ic Microcomput Syst Ltd Emulation cpu
JPH04350735A (en) * 1991-05-29 1992-12-04 Nec Corp Microprocessor
JPH096648A (en) * 1995-06-24 1997-01-10 Nec Corp Microcomputer

Similar Documents

Publication Publication Date Title
JPS6053899B2 (en) data processing system
JP2009514084A (en) Data processing device with reset device
US6378022B1 (en) Method and apparatus for processing interruptible, multi-cycle instructions
US4947478A (en) Switching control system for multipersonality computer system
JPS62133532A (en) Microprocessor
JP4481295B2 (en) Hardware initialization with or without processor intervention
JPH0394303A (en) Timing generator
JPS5937639U (en) industrial processing equipment
JPS58182758A (en) Arithmetic controller
US5828859A (en) Method and apparatus for setting the status mode of a central processing unit
KR20080040535A (en) Method for transmitting data using direct memory access control and apparatus therefor
JPS58101360A (en) Data processor
JPS63245522A (en) Microprocessor
JPH10124474A (en) Microcomputer
JPS5847B2 (en) ONE CHIPPUNYUSHUISUTSURIYOKUSEIGIYOKUYOMOSUJIYOHOUSHIYORIOSYSTEM
JPH0876876A (en) Clock supply control circuit of microprocessor
JPS6055850B2 (en) microprogram controller
JPH08202582A (en) Data transferring device for microprocessor
JPS62117041A (en) Microcomputer
JPS5977557A (en) Bit access circuit
JPS59105148A (en) Microprogram controlling type central processing unit
JPS63293797A (en) Writing controller for eeprom
JPH04101263A (en) Clock equipment
JPS63204333A (en) Asynchronous signal generating circuit
JPH0581443A (en) One-chip microcomputer