JPS61125647A - Microprogram controller - Google Patents

Microprogram controller

Info

Publication number
JPS61125647A
JPS61125647A JP24607984A JP24607984A JPS61125647A JP S61125647 A JPS61125647 A JP S61125647A JP 24607984 A JP24607984 A JP 24607984A JP 24607984 A JP24607984 A JP 24607984A JP S61125647 A JPS61125647 A JP S61125647A
Authority
JP
Japan
Prior art keywords
control
code
processing
microprogram
sequence
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
JP24607984A
Other languages
Japanese (ja)
Inventor
Yorihisa Nozato
野里 順久
Tadashi Okamoto
正 岡本
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.)
Hitachi Ltd
Original Assignee
Hitachi 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 Hitachi Ltd filed Critical Hitachi Ltd
Priority to JP24607984A priority Critical patent/JPS61125647A/en
Publication of JPS61125647A publication Critical patent/JPS61125647A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F9/00Arrangements for program control, e.g. control units
    • G06F9/06Arrangements for program control, e.g. control units using stored programs, i.e. using an internal store of processing equipment to receive or retain programs
    • G06F9/22Microcontrol or microprogram arrangements
    • G06F9/223Execution means for microinstructions irrespective of the microinstruction function, e.g. decoding of microinstructions and nanoinstructions; timing of microinstructions; programmable logic arrays; delays and fan-out problems

Abstract

PURPOSE:To improve greatly the efficiency of program capacity by controlling optional by and sequentially the arithmetic control code processing and other control code processing on the same step with the sequence control signal and at a program level. CONSTITUTION:A storage STG2 storing a microprogram is program-accessed by a muPC1 and outputs an arithmetic control code 201, other control code 202, a branch code 203 and step processing sequence control signals alpha204 and beta205. A control register CR4 storing the code 202 latches an output part for code 202 of the STG2 synchronously with a CK701 according to signals CLR603 and LD604. A sequence control circuit SC6 gives the sequence to the step processing to control based on the feed of signals alpha204 and beta205 of the STG2.

Description

【発明の詳細な説明】 〔発明の利用分野〕 本発明は、マイクロプログラム制御装置に係シ、特九同
−ステップで頻繁に演算制御及びその他制御コードの順
序付が必要となるマイクログログラムをコーディングす
るに好適なマイクロプログラム制御装置に関する。
[Detailed Description of the Invention] [Field of Application of the Invention] The present invention relates to a microprogram control device, and is particularly applicable to microprograms that frequently require ordering of arithmetic control and other control codes in steps. The present invention relates to a microprogram control device suitable for coding.

〔発明の背景〕[Background of the invention]

マイクロプログラムは、一般の7センプラプログラム等
のような主プロセツサのみの命令コード並びとは異なり
、特開昭58−186846号公報でも公知でめるよう
に周辺回路への制御モードも記述する為、ハードに直結
した細かい処理が可能であるという利点があった。しか
し、従来この2つの処理順序命令、制御は一義的に固定
しており、その制約によって一連の命令、制御に対応す
る演算制御・その他制御コード1処理に2ステツプ要す
る無駄なコーディングを強いられていた。又、マイクロ
プログラムステップ削減においては、スタックポインタ
制御回路を設けることくよりなされる特開昭59−53
942の公知例がちるが、演算制御・その他制御コード
1処理に2ステツプ要するという問題に関しては何等示
唆されていなかった。
Unlike the general 7Senpra program, which has instruction codes for only the main processor, the microprogram also describes the control mode for the peripheral circuits, as disclosed in Japanese Patent Laid-Open No. 186846/1983. It had the advantage of being able to perform detailed processing that was directly connected to the hardware. However, conventionally, these two processing order instructions and controls have been uniquely fixed, and this constraint has forced wasteful coding that requires two steps for one process of arithmetic control and other control codes corresponding to a series of instructions and controls. Ta. In addition, in reducing microprogram steps, Japanese Patent Laid-Open No. 59-53 discloses that a stack pointer control circuit is provided.
There are some known examples of 942, but nothing has been suggested regarding the problem of requiring two steps to process one arithmetic control/other control code.

〔発明の目的〕[Purpose of the invention]

本発明の目的はかかる従来問題点を解決し、マイクロプ
ログラムの容量削減するマイクロプログラム制御装置を
提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to solve such conventional problems and provide a microprogram control device that reduces the capacity of microprograms.

〔発明の概要〕[Summary of the invention]

本発明は、ストレージ内にマイクロプログラムに演算制
御コードとその他制御コードの処理順序を定義するフィ
ールドを設けることによって、これら2つに順序付を行
ない、処理順序固定の制約で強いられていた1処理2ス
テツプ使用箇所を1ステツプに削減しようとするもので
ある。
The present invention provides a microprogram in storage with a field that defines the processing order of the arithmetic control code and other control codes, thereby ordering these two, and making it possible to perform one processing, which was previously forced by the constraint of a fixed processing order. This is an attempt to reduce the number of steps that use two steps to one.

〔発明の実施例〕[Embodiments of the invention]

以下、本発明の実施例を図に従って説明する。 Embodiments of the present invention will be described below with reference to the drawings.

第1図は、本発明一実施例のブロック図であシ、第2図
は、第1図に示した順序制御回路6の詳細回路図である
FIG. 1 is a block diagram of one embodiment of the present invention, and FIG. 2 is a detailed circuit diagram of the sequence control circuit 6 shown in FIG.

第1,2図において、マイクロプログラムのプログラム
カウンタ(μPC)1は、クロックCK701に同期し
て制御コード501、アドレス502によってアドレス
設定を行なう。マイクロプログラムを記憶しておくスト
レージ(8TG)2は、μPCIによってプログラムア
クセスされ、演算制御コード201、その他制御コード
202、ブラッチコード203、及びステップ処理順序
制御信号α(204)、β(205)を出力する。
In FIGS. 1 and 2, a microprogram program counter (μPC) 1 performs address setting using a control code 501 and an address 502 in synchronization with a clock CK701. A storage (8TG) 2 for storing microprograms is program accessed by μPCI, and receives arithmetic control code 201, other control code 202, blatch code 203, and step processing order control signals α (204) and β (205). Output.

演算制御コードを格納するインストラクションレジスタ
(IR)3は、5TG2の演算制御コード出力部をCK
701”に同期し、クリア(CLR)601、ロード(
LD)602信号に従ってラッチする。その他制御コー
ドを格納するコントロールレジスタ(CR)4は、5T
G2のその他制御コード出力部をCK701に同期し、
CL R,603、LD 604信号に従ってラッチす
る。ブラッチコードレジスタ(BR)5は、5TG2の
ブラッチコード出力部をCK701に、同期してラッチ
し、μPCIへ制御コード501とアドレス502t−
出力する。順序制御回路(SC)6は、以上一連の動作
の流れにおいて5TG2のフィールドα(204)、β
(205)を元にステップ処理に順序付を行ない制御す
る。この中で7リツプフロツプ(FF)63は、′0″
でステップの最初を、1″でステップの途中であること
を示している。
The instruction register (IR) 3 that stores the arithmetic control code outputs the arithmetic control code output part of the 5TG2 by CK.
701”, clear (CLR) 601, load (
LD) Latch according to the 602 signal. Control register (CR) 4 that stores other control codes is 5T
Synchronize the other control code output section of G2 with CK701,
Latch according to the CL R, 603 and LD 604 signals. The bratch code register (BR) 5 latches the blatch code output part of 5TG2 in synchronization with CK701, and sends the control code 501 and address 502t- to μPCI.
Output. The sequence control circuit (SC) 6 controls the fields α (204) and β of the 5TG2 in the above sequence of operations.
Step processing is ordered and controlled based on (205). Among these, 7 lip-flop (FF) 63 is '0''
1'' indicates the beginning of the step, and 1'' indicates the middle of the step.

第3図において、(1)はα(204)、β(205)
共″1″で、第1図におけるIR3,CR4の処理が互
いに独立しており、ステップ内で同時処理してもよい場
合であり、共に1クロツク1ステツプでセット(CLR
601,Ln2O3,CLR603、Ln2O3)する
ことを示している。
In Figure 3, (1) is α (204), β (205)
This is a case in which the processing of IR3 and CR4 in FIG. 1 are independent of each other and may be processed simultaneously within a step, and both are set in one clock and one step (CLR
601, Ln2O3, CLR603, Ln2O3).

(2)は、α(204)が11”、β(205)が”0
”で第1図においてIR3の処理を先に行ない、その後
にCR4の処理を行ないたい場合(例えばIR3で演算
した結果をCR4にてメモリく書く場合等)であり、C
LR603でCR,4をクリアしてLn2O3にてIR
3の処理完了し、その後KCLR601、LD604に
よってCR4の処理を成すものである。
In (2), α (204) is 11” and β (205) is “0”.
” in Figure 1, if you want to process IR3 first and then process CR4 (for example, if you want to write the result of calculation in IR3 to memory in CR4),
Clear CR and 4 with LR603 and IR with Ln2O3
After the processing of 3 is completed, the KCLR 601 and LD 604 perform the processing of CR4.

(8)は、(2)の逆を行ないたい場合(例えば、CR
4では前ステップで演算した値をテストし、IR3で演
算処理したい場合等)で、α(204)が0”、β(2
05)が1”で第1図においてC几4処理の後、1几3
処理を行なう為、CLR601、Ln2O3から、Ln
2O3,CLR603にて、同様に実現している。
(8) is used when you want to do the opposite of (2) (for example, CR
4, if you want to test the value calculated in the previous step and perform calculation processing with IR3), α (204) is 0'', β (2
05) is 1", and in Figure 1, after C 4 processing, 1 3
For processing, from CLR601, Ln2O3, Ln
This is similarly realized in 2O3 and CLR603.

次に第1図での動作を第3図の各動作において第4図の
状態遷移図を元に、第5図のタイミングチャートで説明
する。
Next, the operation in FIG. 1 will be explained with reference to the timing chart in FIG. 5 based on the state transition diagram in FIG. 4 for each operation in FIG. 3.

第5図のタイミング1において第3図(1)は、α(2
04,β(205)が共に1”であるから、NANDゲ
ート62の出力621は“0″となり、フリップフロッ
プ63をクリアし、出力Q631は6″となる。これに
よりANDゲート64は出力641″0″、そL−C1
1204”l”、β205”1′でEORゲートによシ
出力LD602″1”、Ln2O3”l“ (但し、L
D601=CLR602,LD603=CLR6Q4)
として(1)の処理がなされる。タイミング1;1まで
にはANDゲート611へはμPC1へのCK701が
伝わり、アドレス変更がなされる。これにより5TG2
から次のステップ(201〜205)が出力される。
At timing 1 in FIG. 5, (1) in FIG.
04 and β (205) are both 1'', the output 621 of the NAND gate 62 becomes 0, clearing the flip-flop 63, and the output Q631 becomes 6''. As a result, the AND gate 64 outputs 641"0", so L-C1
1204"l", β205"1', the EOR gate outputs LD602"1", Ln2O3"l" (However, L
D601=CLR602, LD603=CLR6Q4)
The process (1) is performed as follows. By timing 1:1, CK 701 to μPC1 is transmitted to AND gate 611, and the address is changed. This allows 5TG2
The next steps (201 to 205) are output.

第5図タイミング2において、第3図(2)は、α(2
04)′1″、β(205)”O”であるから、NAN
Dゲート62の出力621は11″となる。タイミング
1.2でなされたFF63の出力641は0″、そして
α(204)1″。
At timing 2 in FIG. 5, (2) in FIG.
04)'1'', β(205)'O', so NAN
The output 621 of the D gate 62 is 11''. The output 641 of the FF 63 at timing 1.2 is 0'' and α(204)1''.

β(205)”1 ” 、CLR603″1″として(
2)の1クロツク目の処理がなされる。この後タイミン
グ2.1ではFF63が71″(ステップ途中)である
為、FF63の出力631が0″でμPctへCK70
1を与えず、S’rG2の出力(201〜205)は変
わらない。タイミング2゜2ではFF63”l”を、C
K702によって反転しOnとなる。
β(205)"1", CLR603"1" (
The first clock processing of 2) is performed. After this, at timing 2.1, since FF63 is 71'' (in the middle of the step), the output 631 of FF63 is 0'' and CK70 is sent to μPct.
1 is not given, and the outputs (201 to 205) of S'rG2 remain unchanged. At timing 2゜2, FF63"l", C
It is inverted and turned on by K702.

第5図タイミング3において(2)の2クロツク目は、
α(204)1″、β(205)0′、出力621″1
″、l;’l;’63”0”により出力631″1 ”
 、ANDゲート64の出力641”1nとなり、EO
Rゲートを介し、出力CLR601”l”、LD604
”l”とL”t”、処312>fなされる。ここでタイ
ミング3.2により、CK702に同期して、新たにF
F63へ1″がセットされる。
At timing 3 in Figure 5, the second clock of (2) is:
α (204) 1″, β (205) 0′, output 621″ 1
",l;'l;'63"0" causes output 631"1"
, the output 641"1n of the AND gate 64 becomes EO
Through R gate, output CLR601"l", LD604
"l" and L"t", processing 312>f is performed. Now, at timing 3.2, in synchronization with CK702, a new F
1'' is set to F63.

第3図(8)はちょうど(2)の逆の動作でこれがなさ
れる為、説明を省略する。
Since the operation shown in FIG. 3 (8) is just the reverse of (2), the explanation will be omitted.

以上は、第4図の状態遷移図で尽くしている。The above has been explained using the state transition diagram shown in FIG.

この実施例によれば、6図において、従来処理順序が固
定(例えばA4B )していた為、(a)の場合は1ス
テツプですむがB−+Aの順で処理したい場合は(b)
のようにせねばならず、2ステップt−要していたのが
(C)のように1ステツプで可能になるのでプログラム
容量の削減に効果がおる。
According to this embodiment, in Figure 6, since the conventional processing order was fixed (for example, A4B), one step is required in case (a), but if you want to process in the order of B-+A, (b)
What used to take two steps (t) can now be done in one step as shown in (C), which is effective in reducing the program capacity.

〔発明の効果〕〔Effect of the invention〕

以上述べたように本発明によれば同一ステップ上の演算
制御コード処理とその低制御コード処理とを順序制御信
号によりプログラムレベルで任意に順序制御して、プロ
グラム容量効率を大幅に上げることができる。
As described above, according to the present invention, the arithmetic control code processing and its low control code processing on the same step can be controlled in any order at the program level using the order control signal, thereby greatly increasing the program capacity efficiency. .

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

第1図は本発明の一実施例を示すブロック図、第2図は
第1図に示した順序制御回路の詳細回路図、第3図は第
1図で行なう順序処理の種類を示した図、第4図は第3
図で示す各処理の状態遷移図、第5図は第1図の動作状
態を示すタイミングチャート、第6図は本発明の効果を
示す図である。 1・・・プログラムカウンタ、2・・・ストレージ、3
・・・インストラクションレジスタ、4・・・コントロ
ールレジスタ、5・・・プラ/チコードレジスタ、6・
・・順第20 名3 回 0 0 、Dorcf−cctre 消4旧 第60 工尺内w     cg匁騒監
FIG. 1 is a block diagram showing an embodiment of the present invention, FIG. 2 is a detailed circuit diagram of the sequential control circuit shown in FIG. 1, and FIG. 3 is a diagram showing the types of sequential processing performed in FIG. 1. , Figure 4 is the third
FIG. 5 is a timing chart showing the operating state of FIG. 1, and FIG. 6 is a diagram showing the effects of the present invention. 1...Program counter, 2...Storage, 3
...Instruction register, 4...Control register, 5...Plastic cord register, 6.
...Order 20th person 3 times 0 0, Dorcf-cctre erasure 4 former 60th kōshaku nai w cg momme kan

Claims (1)

【特許請求の範囲】[Claims] 1、マイクロプログラムのアドレス設定を行なうプログ
ラムカウンタと、演算制御コード及びその他制御コード
からなるマイクロプログラムを記憶するストレージと、
該ストレージからの出力をラッチする複数のレジスタと
を有するマイクロプログラム制御装置において、演算制
御処理若しくはその他制御処理の順序付を制御する順序
制御回路と、前記ストレージ内にその順序付を指定する
フィールドを設け、このフィールドの内容に従い演算制
御処理若しくはその他制御処理の順序付を行ない、前記
レジスタに出力するようにしたことを特徴とするマイク
ロプログラム制御装置。
1. A program counter for setting the address of the microprogram, and a storage for storing the microprogram consisting of arithmetic control codes and other control codes;
A microprogram control device having a plurality of registers for latching outputs from the storage, a sequence control circuit for controlling the ordering of arithmetic control processing or other control processing, and a field for specifying the ordering in the storage. A microprogram control device characterized in that arithmetic control processing or other control processing is ordered in accordance with the contents of the field and output to the register.
JP24607984A 1984-11-22 1984-11-22 Microprogram controller Pending JPS61125647A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP24607984A JPS61125647A (en) 1984-11-22 1984-11-22 Microprogram controller

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP24607984A JPS61125647A (en) 1984-11-22 1984-11-22 Microprogram controller

Publications (1)

Publication Number Publication Date
JPS61125647A true JPS61125647A (en) 1986-06-13

Family

ID=17143163

Family Applications (1)

Application Number Title Priority Date Filing Date
JP24607984A Pending JPS61125647A (en) 1984-11-22 1984-11-22 Microprogram controller

Country Status (1)

Country Link
JP (1) JPS61125647A (en)

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63111265A (en) * 1986-10-30 1988-05-16 Mazda Motor Corp Cylinder block structure of engine with balancer

Cited By (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS63111265A (en) * 1986-10-30 1988-05-16 Mazda Motor Corp Cylinder block structure of engine with balancer

Similar Documents

Publication Publication Date Title
EP0286354B1 (en) A method and apparatus for modifying micro-instructions using a macro-instruction pipeline
JPH077385B2 (en) Data processing device
JPH02140831A (en) Data processor
US4812970A (en) Microprogram control system
JPH0394303A (en) Timing generator
JPS61125647A (en) Microprogram controller
US4175284A (en) Multi-mode process control computer with bit processing
US4694419A (en) Programmable controller with direct to plant addressing
JP3055139B2 (en) Micro program control method
JPH01273132A (en) Microprocessor
JPH0512009A (en) Digital signal processing device
JPS6134168B2 (en)
JPS6010642B2 (en) Sequence control device
JPS62189535A (en) Microprocessor controller
JPS6111850A (en) Microcomputer system
JPS6145359A (en) Information processor
JPH052481A (en) Arithmetic control circuit
JPH04245537A (en) Information processor
JPS63145534A (en) Data processor
JPS605961B2 (en) Sequence control device
JPS60146328A (en) Microprogram control computer
JPH02257240A (en) Input/output device control command executing system
JPS59191612A (en) Input and output designating system of sequence controller
JPS5866155A (en) Integrated circuit device
JPS58221444A (en) Controlling device of microprogram