JPH02234227A - Misalignment processing system - Google Patents

Misalignment processing system

Info

Publication number
JPH02234227A
JPH02234227A JP5566789A JP5566789A JPH02234227A JP H02234227 A JPH02234227 A JP H02234227A JP 5566789 A JP5566789 A JP 5566789A JP 5566789 A JP5566789 A JP 5566789A JP H02234227 A JPH02234227 A JP H02234227A
Authority
JP
Japan
Prior art keywords
instruction
misalignment
operand address
update
external element
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.)
Granted
Application number
JP5566789A
Other languages
Japanese (ja)
Other versions
JPH0827717B2 (en
Inventor
Hisatatsu Hatsutori
服部 尚立
Katsuji Suzuki
勝二 鈴木
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
NEC Engineering Ltd
Original Assignee
NEC Corp
NEC Engineering Ltd
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, NEC Engineering Ltd filed Critical NEC Corp
Priority to JP5566789A priority Critical patent/JPH0827717B2/en
Publication of JPH02234227A publication Critical patent/JPH02234227A/en
Publication of JPH0827717B2 publication Critical patent/JPH0827717B2/en
Anticipated expiration legal-status Critical
Expired - Fee Related legal-status Critical Current

Links

Landscapes

  • Advance Control (AREA)

Abstract

PURPOSE:To process the misalignment at a high speed by using an operand address generated by an adder and an action control signal of a processor undergone the extension of time due to the interruption caused by an instruction update control circuit to give an access to the next boundary of an external element. CONSTITUTION:If the misalignment is generated in the executing stage of an instruction which gives an access to an external element, an instruction update control circuit 6 interrupts the update of the instruction. At the same time, an adder 4 adds the fixed value to an operand address caused by the misalignment and produces an operand address of the next boundary. The next boundary of the external element receives an access by the generated operand address and the action control signal of a processor which undergone the extension of time due to the interruption caused by the circuit 6. Then the update of the instruction is restarted and the prefetched subsequent instructions are processed. Thus the processing time is shortened.

Description

【発明の詳細な説明】 〔産業上の利用分野〕 本発明は、計算機におけるミスアライメント処理方式に
関する。
DETAILED DESCRIPTION OF THE INVENTION [Field of Industrial Application] The present invention relates to a misalignment processing method in a computer.

[従来の技術] 主記憶等の外部素子をアクセスする命令が、その外部素
子のバウンダリをまたぐ領域に対するものであるとき、
ミスアライメントが発生したという。即ち、1回のバス
アクセスにより書き込み読み出し得る単位が4バイト境
界から始まる外部素子と32ピントプロセッサとを想定
した場合、外部素子アクセス命令のオペランドアドレス
の下位2ビットが「1,,”2Jまたは「3」である4
バイトアクセス 前記2ビットが「2」または「3」で
ある3バイトアクセス.前記2ビントが「3」である2
バイトアクセスについては、ミスアライメントが発生し
、その外部素子アクセス命令を処理する為には2回のバ
スアクセスが必要となる. このようなミスアライメントの発生し得る計算機では、
ミスアライメントの発生を検出する検出回路をハードウ
エア的に有し、またその検出回路でミスアライメントの
発生が検出されたときは2回のバスアクセスを行ってか
らミスアライメントを発生させた命令の次に本来実行す
べき命令が実行されるようなミスアライメント処理を行
う仕組みが組み込まれている。そして、従来、この種の
ミスアライメント処理は第3図に示すようにしてソフト
ウエア制御によって実現されていた。
[Prior Art] When an instruction to access an external element such as a main memory is for an area that straddles the boundary of the external element,
A misalignment has occurred. That is, assuming a 32-pinto processor and an external device in which the unit that can be written and read by one bus access starts from a 4-byte boundary, the lower two bits of the operand address of the external device access instruction are "1,""2J" or " 3” is 4
Byte access 3-byte access where the 2 bits are "2" or "3". 2 where the 2 bints are “3”
For byte accesses, misalignment occurs and two bus accesses are required to process the external element access command. In computers where such misalignment can occur,
It has a detection circuit that detects the occurrence of misalignment in hardware, and when the detection circuit detects the occurrence of misalignment, it performs two bus accesses and then executes the next instruction after the instruction that caused the misalignment. It has a built-in mechanism to handle misalignment so that the instructions that should originally be executed are executed. Conventionally, this type of misalignment processing has been realized by software control as shown in FIG.

第3図は、命令のフェッチ,デコード,実行をパイプラ
イン方弐で実行するプロセッサのタイムチャートであり
、f.が外部素子アクセス命令、ratはミスアライメ
ント発生か否かを条件としてブランチする命令、f8は
ミスアライメントが発生しなかった場合に命令『1,の
次に木来実行すべき命令、f,は命令『2の次に実行す
べき命令、命令f1.゜、f+z’.f+’ は命令I
llがミスアライメントを発生させたことによりフェッ
チされることとなった命令である。また、d,eはその
添字と同一の添字を付けた命令rのデコードステージ.
実行ステージを示し、NOPはノーオペレーションであ
る。
FIG. 3 is a time chart of a processor that fetches, decodes, and executes instructions using pipeline methods; f. is an external element access instruction, rat is an instruction that branches depending on whether or not misalignment occurs, f8 is an instruction that should be executed next to instruction ``1,'' if misalignment does not occur, f is an instruction “Instruction to be executed next after 2, instruction f1.゜, f+z'. f+' is instruction I
ll is an instruction that is fetched due to misalignment. Furthermore, d and e are the decoding stages of the instruction r with the same subscript as that subscript.
Indicates an execution stage, and NOP is a no-operation.

今、第3図に示すように、メインルーチン中に記述され
た命令r..(lt.ftがその順でフェソチされ、命
令filが実行ステージe口にあるサイクルTI3でミ
スアライメントが発生したとすると、その検出信号によ
り命令fl2のデコードステージadzにてミスアライ
メント処理ルーチンの命令アドレスが生成され、またこ
のときフェッチされた命令r2に対しNOP化が施され
る。そして、次のサイクルT.において、上記デコード
ステージaCtで生成された命令アドレスに従ってミス
アライメント処理命令rat゜がフエツチされ、続くサ
イクル’I”Isにおいてメインルーチンへのリターン
命令f I!’がフェッチされると共に命令fがデコー
ドされ、次のサイクルT 14においてミスアライメン
ト処理命令fil゜が実行されて2回目のバスアクセス
即ち命令f.のアクセスした外部素子の次のバウンダリ
へのアクセスが行われる。
Now, as shown in FIG. 3, the command r. .. (If misalignment occurs in cycle TI3 where lt.ft is processed in that order and instruction fil is at the start of execution stage e, then the detection signal causes the instruction address of the misalignment processing routine to be set at decode stage adz of instruction fl2. is generated, and NOP is applied to the instruction r2 fetched at this time.Then, in the next cycle T., the misalignment processing instruction rat゜ is fetched according to the instruction address generated in the decode stage aCt. , In the following cycle 'I'Is, the return instruction fI!' to the main routine is fetched and the instruction f is decoded, and in the next cycle T14, the misalignment processing instruction fil゜ is executed and the second bus access is performed. That is, the next boundary of the external element accessed by instruction f. is accessed.

また同サイクルTl&の命令r+z゛にかがるデコード
ステージdCt゛にてメインルーチンへ復帰する命令ア
ドレスが生成され、それに従って次のサイクルL,でメ
インルーチンの命令r!が再フエソ?され、実行がメイ
ンルーチンに戻される。なお、命令『,2゛ のフエツ
チと命令f2の再フエッチの間に1サイクル空きが生じ
るので、NOP命令である命令f1,゛をダミーでフエ
ンチする動作が行われる。
In addition, an instruction address for returning to the main routine is generated at the decode stage dCt' corresponding to the instruction r+z' in the same cycle Tl&, and in accordance with this, the main routine instruction r! Is it Fueso again? and execution returns to the main routine. Note that since there is a one-cycle gap between the fetch of the instruction ",2" and the re-fetch of the instruction f2, an operation is performed to fetch the instruction f1, ", which is a NOP instruction, by a dummy.

(発明が解決しようとする課題〕 ミスアライメントの発生に対して従来は上述した如き処
理により対処していたが、 ■ ソフトウエア制IHによるミスアライメント処理ル
ーチンへの分岐およびメインルーチンへの復帰を行うの
で、処理に長い時間がかがる。
(Problems to be Solved by the Invention) Conventionally, the occurrence of misalignment has been dealt with by the above-mentioned processing, but: ■ branching to the misalignment processing routine and returning to the main routine using software-based IH; Therefore, it takes a long time to process.

■ パイプライン制御によって先取りしていた命令(r
t )をNOP化しなければならず、また再フェッチし
なければならないので、より一層処理時間が長くなる. ■ メインルーチン中に命令r1■を挿入したり、ミス
アライメント処理ルーチンを準備する如く、ミスアライ
メントの発生を考慮してソフトウェアを作成する必要が
ある。
■ The instruction (r
t) must be converted to NOP and re-fetched, which further increases the processing time. (2) It is necessary to create software in consideration of the occurrence of misalignment, such as by inserting the instruction r1 (2) into the main routine or preparing a misalignment processing routine.

等の問題点があった。There were problems such as.

本発明はこのような従来の問題点を解消したものであり
、その目的は、ミスアライメントの発生をソフトウェア
で考慮する必要がないと共に先取りした命令をNOP化
する必要もなく、更に高速に処理を済ますことのできる
ミスアライメント処理方式を提供することにある。
The present invention solves these conventional problems, and its purpose is to speed up processing without having to consider the occurrence of misalignment in software, and without converting prefetched instructions to NOPs. The object of the present invention is to provide a misalignment processing method that can eliminate the problem.

〔課題を解決するための手段〕[Means to solve the problem]

本発明のミスアライメント処理方式は、上記の目的を達
成するために、命令のフェソチ1デコド,実行をパイプ
ライン方式で処理するブロセンサにおいて、ミスアライ
メントの発生時、命令の更新を中断させる命令更新制1
1手段と、ミスアライメントの発生したオペランドアド
レスに一定値を加算したオペランドアドレスを生成する
加算器とを備え、この加算器で生成されたオペランドア
ドレスと前記命令更新制御手段による中断によって時間
延長せしめられたプロセッサの動作制御信号とで外部素
子の次のバウンダリをアクセスし、その後に前記命令の
更新を再開させるようにしている. 〔作用] 外部素子をアクセスする命令の実行ステージにおいてミ
スアライメントが発生すると、命令更新制御手段が命令
の更新を中断せしめると共に加算器がそのミスアライメ
ントの発生したオペランドアドレスに一定値を加算して
次のバウンダリのオペランドアドレスを生成し、この生
成されたオペランドアドレスと前記命令更新制11手段
による中断によって時間延長せしめられたプロセッサの
動作制御信号(これはミスアライメントを発生した命令
の実行ステージにおける動作制御信号と同じになる)と
で外部素子の次のハウンダリがアクセスされ、その後に
命令の更新が再開され、先取りされていた後続の命令が
処理される。
In order to achieve the above object, the misalignment processing method of the present invention provides an instruction update system that interrupts instruction update when a misalignment occurs in a processor that processes instruction decoding and execution in a pipeline method. 1
1 means, and an adder for generating an operand address by adding a fixed value to the operand address where the misalignment has occurred, and the time is extended by the operand address generated by the adder and the interruption by the instruction update control means. The next boundary of the external element is accessed using the processor's operation control signal, and the update of the instruction is then restarted. [Operation] When a misalignment occurs in the execution stage of an instruction that accesses an external element, the instruction update control means interrupts the update of the instruction, and the adder adds a certain value to the operand address where the misalignment occurred and performs the next operation. generates an operand address of the boundary of (becomes the same as the signal), the next houndry of the external element is accessed, after which instruction updating is resumed and the prefetched subsequent instruction is processed.

〔実施例〕〔Example〕

次に、本発明の実施例について図面を参照して詳細に説
明する. 第1図は本発明の一実施例のブロソク図であり、命令の
フエツチ,デコード,実行をパイプライン方式で処理す
るブロセノサ内に設けられたハードウエアのうち、本発
明のミスアライメント処理方式に関連する部分のみを示
している.同図に含まれる各要素は次のような構成ない
し機能を有する。
Next, embodiments of the present invention will be described in detail with reference to the drawings. FIG. 1 is a block diagram of an embodiment of the present invention, in which hardware related to the misalignment processing method of the present invention is installed in a processor that processes fetching, decoding, and execution of instructions in a pipeline manner. Only the parts that do are shown. Each element included in the figure has the following configuration or function.

・2−1セレクタ1 信号線100から加わるアドレスと信号線1o1を介し
て加算器4から加わるアドレスとを入力とし、信号線1
03を通じて加わるフラグ3の保持値が論理値“0゛″
のときは信号線100のアドレスを信号線102に出力
し、論理値′゛】”のときは信号線101のアドレスを
信号線102に出力する2人力1出力のセレクタである
・2-1 selector 1 Inputs the address added from the signal line 100 and the address added from the adder 4 via the signal line 1o1, and selects the signal line 1
The held value of flag 3 added through 03 is the logical value “0゛”
It is a two-man power, one-output selector that outputs the address of the signal line 100 to the signal line 102 when the logical value is ``゛]'', and outputs the address of the signal line 101 to the signal line 102.

ミスアライメント検出回路2 信号線102より加わるアドレスに基づいてミスアライ
メントが発生したか否かを検出し、ミスアライメントの
発生を検出した場合、信号線1o4のレベルを例えば論
理値゛1”にする。
Misalignment detection circuit 2 Detects whether misalignment has occurred based on the address applied from the signal line 102, and when the occurrence of misalignment is detected, sets the level of the signal line 1o4 to a logical value of "1", for example.

・フラグ3 クロックの立下がりで、ゲート10の出力につながる信
号線105上の論理値を保持し、その保持した論理値を
信号線103を介して2−1セレクタ1およびゲート1
0に入力する。
・Flag 3 At the falling edge of the clock, the logic value on the signal line 105 connected to the output of the gate 10 is held, and the held logic value is sent to the 2-1 selector 1 and the gate 1 via the signal line 103.
Enter 0.

ゲート10 ミスアライメント検出回路2の出力のマスク用のゲート
である.このゲートIOの機能はミスアライメント検出
回路2内に組み込むことも当然可能である. ・アドレス格納レジスタ5 信号線102を介して2−1セレクタlがらバス11に
アドレスが出力されると、そのアドレスを信号線106
を通して入力し、保持するレジスタである. ・バス1l 図示しない主記憶などの外部素子につながり、アクセス
にかかるアドレスを伝達するバスである.・加算器4 信号線107を介してアドレス格納レジスタ5から供給
されるアドレスと、信号線108を介して入力される一
定値とを加算し、その加算値を信号線101を通じて2
−1セレクタ1に入力する加算器である。ここで、一定
値とは、ミスアライメントの発生したオペランドアドレ
スと次のバウンダリのオペランドアドレスとの差に見合
った値であり、32ビノトフ”ロセッサのとき+4,1
6ビントフ゜ロセンサのとき+2となる。
Gate 10 This is a gate for masking the output of the misalignment detection circuit 2. It is of course possible to incorporate this gate IO function into the misalignment detection circuit 2.・Address storage register 5 When an address is output from the 2-1 selector l to the bus 11 via the signal line 102, the address is sent to the signal line 106.
This is a register that is input through and held. - Bus 1l This is a bus that connects to external elements such as main memory (not shown) and transmits addresses for access. Adder 4 Adds the address supplied from address storage register 5 via signal line 107 and a constant value input via signal line 108, and adds the added value to 2 via signal line 101.
This is an adder that inputs to the -1 selector 1. Here, the constant value is a value commensurate with the difference between the operand address where the misalignment occurred and the operand address of the next boundary, and in the case of a 32-binotov processor, +4,1
When using a 6-bin fluoro sensor, it is +2.

・命令レジスタ9 外部素子からフェソチされた命令が信号線1o9を通じ
て入力されるレジスタである。
- Instruction register 9 This is a register into which instructions received from an external element are input through the signal line 1o9.

・デコーダ8 信号線110を介して命令レジスタ9の命令を入力して
デコードするデコーダである。
-Decoder 8 This is a decoder that inputs and decodes the command from the command register 9 via the signal line 110.

・制御レジスタ7 デコーダ8の出力を信号線112を通じて入力するレジ
スタであり、その保持内容は、プロセソサの動作制御信
号として信号線113を通じて各部に供給される。
- Control register 7 This is a register into which the output of the decoder 8 is input through the signal line 112, and the contents held therein are supplied to each section through the signal line 113 as an operation control signal for the processor.

・命令更新制御回路6 ゲートlOの出力を信号線105を介して人力し、その
レベルが論理値“ビであると命令の更新を中断せしめる
信号を信号1i1114に出力する回路である.信号線
114にその種の信号が出力されると、命令レジスタ9
への新たな命令の格納は行われず、デコーダ8は現在の
出力を保持し、制御レジスタ7は現在出力しているプロ
セッサの動作制御信号をその後も送出し続ける。
・Instruction update control circuit 6 This is a circuit that manually inputs the output of the gate IO via the signal line 105, and outputs a signal to the signal 1i1114 to interrupt the update of the instruction when the level is the logical value "B".Signal line 114 When such a signal is output to the instruction register 9,
No new instructions are stored in the decoder 8, the decoder 8 holds the current output, and the control register 7 continues to output the processor operation control signal currently being output.

第2図は第1図のタイムチャートであり、以下、このタ
イムチャートに従って第1図の実施例の動作を説明する
.なお、第2回において、f1は外部素子アクセス命令
、f..f,は命令『1に続いてフエソチされた命令で
あり、d,eはその添字と同一の添字を付けた命令fの
デコードステージ実行ステージを示し、e1゜はミスア
ライメント発生時に生成せしめられた実行ステージであ
る。
FIG. 2 is a time chart of FIG. 1, and the operation of the embodiment of FIG. 1 will be explained below according to this time chart. Note that in the second time, f1 is an external element access command, f. .. f, is an instruction that is followed by instruction ``1'', d and e indicate the decode stage execution stage of instruction f with the same subscript as that subscript, and e1゜ is the instruction generated when misalignment occurs. This is the execution stage.

今、第2図に示すように、命令r+.rz.rsがその
順でフエンチされ、命令f1の実行ステージe1が始ま
ったサイクルT,に至ると、制御レジスタ7から命令f
1のデコード結果に応じた動作制御信号が各部に供給さ
れ、またその命令f1のアドレス情報で決定されたオペ
ランドアドレスが信号線100.1−1セレクタl,信
号線102を介してバス1lに出力され、外部素子のそ
のオペランドアドレスで指定された領域がアクセスされ
る。この時点で命令f1がミスアライメントを発生しな
ければ即ちミスアライメント検出回路2がミスアライメ
ントの発生を検出しなければ、ゲ−ト105の出力は論
理値“゛0゛′であり、フラグ3は論理値″“0”を保
持したままとなる.また命令更新制御回路6も命令の更
新を中断せしめることはない.このため、次のサイクル
では命令f2の実行ステージが開始されることになる。
Now, as shown in FIG. 2, the instruction r+. rz. rs is quenched in that order and reaches cycle T, where the execution stage e1 of instruction f1 begins, the instruction f is sent from the control register 7.
An operation control signal according to the decoding result of instruction f1 is supplied to each part, and the operand address determined by the address information of the instruction f1 is output to the bus 1l via the signal line 100.1-1 selector l and the signal line 102. The area specified by the operand address of the external element is accessed. At this point, if the instruction f1 does not cause misalignment, that is, if the misalignment detection circuit 2 does not detect the occurrence of misalignment, the output of the gate 105 is the logical value "0", and the flag 3 is The logical value ``0'' remains. Furthermore, the instruction update control circuit 6 does not interrupt the update of instructions. Therefore, in the next cycle, the execution stage of the instruction f2 will start.

しかし、命令r1の実行ステージe1でミスアライメン
トが発生すると、それを検出したミスアライメント検出
回Is2の出力が論理値” 1 ”となり、フラグ3の
保持値がその時点では論理値″“o゜′なので、第2図
に示すようにゲー}10の出力が論理値“ピとなる。こ
の結果、命令更新制御回路6は命令の更新を中断せしめ
る。またフラグ3には次のクロンクの立下がりで論理値
”ビ゜がセットされる. 次のサイクルT4においては、2−1セレクク1が加算
器4側を選沢することになるため、アドレス格納レジス
タ5が保持していた命令r,にががるオペランドアドレ
スに一定値を加算したオペランドアドレスが2〜1セレ
クタl.信号1102を介してバス1lに出力される。
However, when a misalignment occurs at the execution stage e1 of the instruction r1, the output of the misalignment detection circuit Is2 that detects it becomes a logical value "1", and the value held in the flag 3 becomes a logical value "o゜" at that point. Therefore, as shown in FIG. 2, the output of the gate 10 becomes the logical value "P".As a result, the instruction update control circuit 6 interrupts the instruction update.Furthermore, the flag 3 is set at the next clock fall. The logical value "BI゜" is set. In the next cycle T4, the 2-1 select 1 selects the adder 4 side, so a certain value is added to the operand address of the instruction r and Nigagar held in the address storage register 5. Operand address is 2-1 selector l. It is output to bus 1l via signal 1102.

一方、制御レジスク7は命令の更新が中断されている為
に命令f1にかかる動作制御信号を継続して出力し続け
ている。このため、サイクルT4における実行ステージ
e,″では、命令r1と同しように外部素子に対するア
クセスが実行され、且つそのアクセス対象は命令rlの
アクセスしたハウンダリの次のバウンダリとなる。なお
、このときもミスアライメント検出回路2でミスアライ
メントが検出されるが、フラグ3の出力が論理値゛′ビ
になっているので、ミスアライメント検出回路2の出力
がゲートlOでマスクされ、再度フラグ3がセットされ
たり、命令更新制御回路6がなおも命令の更新を中断せ
しめることはない。この結果、次のサイクルT,では命
令[2の実行ステージe2が開始される。
On the other hand, since the update of the instruction has been interrupted, the control register 7 continues to output the operation control signal related to the instruction f1. Therefore, in execution stage e,'' in cycle T4, an access to an external element is executed in the same way as instruction r1, and the access target becomes the boundary next to the boundary accessed by instruction rl. Misalignment is detected by the misalignment detection circuit 2, but since the output of the flag 3 is a logical value ``bi'', the output of the misalignment detection circuit 2 is masked by the gate IO, and the flag 3 is set again. In addition, the instruction update control circuit 6 does not interrupt the update of the instruction.As a result, in the next cycle T, the execution stage e2 of the instruction [2 is started.

このように本実施例ではミスアライメントにかかる処理
がハートウェアによって実行される。第2図と第3図と
を比較してわかるように、本実施例では従来に比べて4
クロノク程度、処理速度を向上することができる. (発明の効果) 以上説明したように、本発明のミスアライメント処理方
式においては、ミスアライメントの発生時、ミスアライ
メントを発生さ旦たオペランドアドレスに一定値を加算
することにより2回目のハスアクセスにかかるオペラン
ドアドレスを生成すると共にそれにかかるブロセノサの
動作制御信号はミスアライメントを発生した命令に基づ
いて生成されていた動作制御信号を期間延長するごとに
より生成して外部素子の次のハウンダリをアクセスし、
その後に命令の更新を再開させるものであり、 ■ ソフトウェア制御によるミスアライメント処理ルー
チンへの分岐およびメインルーチンへの復帰等が不要に
なるので、その分処理時間が短くなる。
As described above, in this embodiment, processing related to misalignment is executed by hardware. As can be seen by comparing FIG. 2 and FIG. 3, this embodiment has 4
Processing speed can be improved to the extent of Chronoku. (Effects of the Invention) As explained above, in the misalignment processing method of the present invention, when a misalignment occurs, a certain value is added to the operand address where the misalignment occurred, so that the second lot access is performed. In addition to generating such an operand address, the operation control signal of the brothenosa associated therewith is generated by extending the operation control signal that was generated based on the instruction that caused the misalignment every time, and accesses the next houndry of the external element,
Thereafter, the instruction update is restarted, and (1) Branching to the misalignment processing routine and returning to the main routine under software control are not necessary, so the processing time is shortened accordingly.

■ パイプライン制御によって先取りしていた命令をN
OP化する必要がないので、より一層処理時間が短縮さ
れる. ■ ミスアライメントの発生を考慮してソフトウェアを
作成する必要がない. 等の効果を得ることができる.
■ The instructions that were preempted by pipeline control are
Since there is no need to convert it into an OP, processing time is further shortened. ■ There is no need to create software that takes the occurrence of misalignment into account. You can obtain the following effects.

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

第1図は本発明の一実施例のブロック図、第2図は第1
図のタイムチャートおよび、第3図は従来のミスアライ
メント処理方式のタイムチャートである。 図において、 ■・・・2−1セレクタ 2・・・ミスアライメント検出回路 3・・・フラグ 4・・・加算器 5・・・アドレス格納レジスタ 6・・・命令更新制御回路 7・・・制IBレジスタ 8・・・デコーダ 9・・・命令レジスタ 10・・・ゲート 11・・・バス 特許出願人 日本電気株式会社外1名
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a block diagram of an embodiment of the present invention.
The time chart shown in the figure and FIG. 3 are time charts of a conventional misalignment processing method. In the figure, ■...2-1 Selector 2... Misalignment detection circuit 3... Flag 4... Adder 5... Address storage register 6... Instruction update control circuit 7... Control IB register 8...Decoder 9...Instruction register 10...Gate 11...Bus patent applicant: 1 person other than NEC Corporation

Claims (1)

【特許請求の範囲】 命令のフェッチ、デコード、実行をパイプライン方式で
処理するプロセッサにおいて、 ミスアライメントの発生時、命令の更新を中断させる命
令更新制御手段と、 ミスアライメントの発生したオペランドアドレスに一定
値を加算したオペランドアドレスを生成する加算器とを
備え、 該加算器で生成されたオペランドアドレスと前記命令更
新制御手段による中断によって時間延長せしめられたプ
ロセッサの動作制御信号とで外部素子の次のバウンダリ
をアクセスし、その後に前記命令の更新を再開させるよ
うにしたことを特徴とするミスアライメント処理方式。
[Scope of Claims] In a processor that processes fetching, decoding, and executing instructions in a pipeline manner, an instruction update control means for interrupting instruction update when misalignment occurs; an adder that generates an operand address by adding values, and uses the operand address generated by the adder and the processor operation control signal whose time has been extended due to the interruption by the instruction update control means to perform the next operation of the external element. A misalignment processing method characterized in that a boundary is accessed and then updating of the instruction is restarted.
JP5566789A 1989-03-08 1989-03-08 Misalignment processing method Expired - Fee Related JPH0827717B2 (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP5566789A JPH0827717B2 (en) 1989-03-08 1989-03-08 Misalignment processing method

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP5566789A JPH0827717B2 (en) 1989-03-08 1989-03-08 Misalignment processing method

Publications (2)

Publication Number Publication Date
JPH02234227A true JPH02234227A (en) 1990-09-17
JPH0827717B2 JPH0827717B2 (en) 1996-03-21

Family

ID=13005211

Family Applications (1)

Application Number Title Priority Date Filing Date
JP5566789A Expired - Fee Related JPH0827717B2 (en) 1989-03-08 1989-03-08 Misalignment processing method

Country Status (1)

Country Link
JP (1) JPH0827717B2 (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970705076A (en) * 1995-05-26 1997-09-06 존 엠. 클락3세 Apparatus and method for efficiently determining an address for misaligned data stored in a memory (Apparatus and Method for Efficiently Determining Addresses for Misaligned Data Stored in Memory)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
KR970705076A (en) * 1995-05-26 1997-09-06 존 엠. 클락3세 Apparatus and method for efficiently determining an address for misaligned data stored in a memory (Apparatus and Method for Efficiently Determining Addresses for Misaligned Data Stored in Memory)

Also Published As

Publication number Publication date
JPH0827717B2 (en) 1996-03-21

Similar Documents

Publication Publication Date Title
US5404552A (en) Pipeline risc processing unit with improved efficiency when handling data dependency
JP3130446B2 (en) Program conversion device and processor
US5088030A (en) Branch address calculating system for branch instructions
JPS62226231A (en) Processor
US8583897B2 (en) Register file with circuitry for setting register entries to a predetermined value
JPH02234227A (en) Misalignment processing system
US5421026A (en) Data processor for processing instruction after conditional branch instruction at high speed
US5978925A (en) System for improving processing efficiency in a pipeline by delaying a clock signal to a program counter and an instruction memory behind a system clock
US5787276A (en) Microprocessor including circuit for generating signal used for tracing executed instruction stream
JP3954159B2 (en) Synchronous RAM access control circuit, data processor and control method thereof
JP2812610B2 (en) Pipeline control method
JP2503223B2 (en) Prior control method
JP2721610B2 (en) Programmable controller
JP2591325B2 (en) Branch control device
JPH05250156A (en) Risc processor
JPH0248733A (en) Information processor
JPS6255738A (en) Data processor having program counter tracing mechanism
JPH06337785A (en) Information processor and its instruction execution control method
JPS5875256A (en) Monitoring system for execution instruction processing state
JPH0424731B2 (en)
JPH08106383A (en) Arithmetic processor
JPS63247833A (en) Control method for conditional branch instruction
JPH07191845A (en) Immediate data transfer device
JPH02206836A (en) Data processor
JPH05108542A (en) Data processor

Legal Events

Date Code Title Description
S533 Written request for registration of change of name

Free format text: JAPANESE INTERMEDIATE CODE: R313533

R350 Written notification of registration of transfer

Free format text: JAPANESE INTERMEDIATE CODE: R350

LAPS Cancellation because of no payment of annual fees