JPH03276229A - Microprocessor - Google Patents

Microprocessor

Info

Publication number
JPH03276229A
JPH03276229A JP7620790A JP7620790A JPH03276229A JP H03276229 A JPH03276229 A JP H03276229A JP 7620790 A JP7620790 A JP 7620790A JP 7620790 A JP7620790 A JP 7620790A JP H03276229 A JPH03276229 A JP H03276229A
Authority
JP
Japan
Prior art keywords
data
increment
register
instruction
decrement
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
JP7620790A
Other languages
Japanese (ja)
Inventor
Tsuneo Watanabe
恒夫 渡辺
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.)
Fuji Electric Co Ltd
Original Assignee
Fuji Electric Co 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 Fuji Electric Co Ltd filed Critical Fuji Electric Co Ltd
Priority to JP7620790A priority Critical patent/JPH03276229A/en
Publication of JPH03276229A publication Critical patent/JPH03276229A/en
Pending legal-status Critical Current

Links

Landscapes

  • Executing Machine-Instructions (AREA)

Abstract

PURPOSE:To carry out both increment and decrement instructions at one time and in a single step by providing a register which increases and decreases the data at one time among those registers. CONSTITUTION:An increment/decrement instruction signal 15a is applied to one of both sides of each of AND circuits 16 - 21, and the other sides of these circuits 16 - 21 are connected to the lower 6 bits of an instruction register 14 respectively. Therefore the 11th and 13th bits corresponding to the increment signals INCA and INCB are set H levels with an instruction code in regard of the outputs of the circuits 16 - 21. Thus the circuits 16 and 18 output the signals INCA and INCB of H levels. The outputs of both circuits 16 and 18 are connected to the up-count terminals of an accumulator R1A and a B register R1B, and the data are increased in both registers R1A and R1B. As a result, both increment and decrement instructions are carried out in a single step.

Description

【発明の詳細な説明】[Detailed description of the invention] 【産業上の利用分野】[Industrial application field]

この発明は、高速データ処理の機能を備えたマイクロプ
ロセッサに関する。 なお以下各図において同一の符号は同一もしくは相当部
分を示す。
The present invention relates to a microprocessor with high-speed data processing functionality. Note that in the following figures, the same reference numerals indicate the same or corresponding parts.

【従来の技術】[Conventional technology]

第3図は従来のマイクロプロセッサの要部の構成を示す
ブロック図である。同図においてR(RA)はレジスタ
Rとしてのアキュムレータ、R(RB)は同じくBレジ
スタ、R(RX)は同じくインデックスレジスタ、R(
RTI、RT2)は同じ(テンポラリレジスタである。 またDBはデータバス、ALUは算術論理ユニットであ
る。 従来のマイクロプロセッサにおいては、各レジスタRの
インクリメント命令やデクリメント命令は、第3図に示
すハードウェアにより実行される。 例として、アキュムレータRAに対してのインクリメン
ト命令実行のデータの動きを説明すると、第1ステツプ
としてアキエムレータRAのデータ(例として“13″
が入っているとする)をデータバス上B上に出力する。 第2ステツプとしてテンポラリレジスタRTIがデータ
バス上のデータ113″を記憶する。同時にテンポラリ
レジスタRT2には、インクリメント命令である信号I
NCが入力され、データとして′″1”が入る。 第3ステツプとしてアキュムレータRAからのデータバ
スDBへのデータ“13”の出力を停止し、算術論理ユ
ニットALUよりテンポラリレジスタRTI内のデータ
″13”とテンポラリレジスタRT2内のデータ“1″
との加算されたデータ“14”がデータバスDB上に出
力される。 第4ステツプとして、データバスDB上のデータ”14
”をアキュムレータRAが記憶し、算術論理ユニットA
LUのデータ出力を停止する。このインクリメント命令
実行時の動作はBレジスタRB。 インデックスレジスタRXについても同様である。 またデクリメント命令実行時のデータの動きについても
前記のインクリメント命令の実行動作中、第2ステツプ
でテンポラリレジスタRT2にデクリメント信号DEC
が入力されデータとして”1″が入り、第3ステツプで
算術論理ユニッ)ALUによってテンポラリレジスタR
TI内のデータからテンポラリレジスタRT2内のデー
タ“1mが減算されて、この減算されたデータがデータ
バスDB上に出力されること以外は前記のインクリメン
ト命令実行動作と同様である。
FIG. 3 is a block diagram showing the configuration of the main parts of a conventional microprocessor. In the figure, R(RA) is an accumulator as register R, R(RB) is also a B register, R(RX) is an index register, and R(
RTI, RT2) are the same (temporary registers. DB is a data bus, and ALU is an arithmetic logic unit. In conventional microprocessors, increment and decrement instructions for each register R are executed by the hardware shown in Figure 3. As an example, to explain the movement of data when executing an increment instruction for accumulator RA, the first step is to change the data of accumulator RA (for example, "13").
) is output onto data bus B. As a second step, temporary register RTI stores data 113'' on the data bus. At the same time, temporary register RT2 stores a signal I which is an increment command.
NC is input and ``1'' is input as data. As a third step, the output of data "13" from accumulator RA to data bus DB is stopped, and data "13" in temporary register RTI and data "1" in temporary register RT2 are output from arithmetic logic unit ALU.
The added data "14" is output onto the data bus DB. As the fourth step, the data “14” on the data bus DB is
” is stored in accumulator RA, and arithmetic logic unit A
Stops LU data output. The operation when this increment instruction is executed is B register RB. The same applies to index register RX. Regarding the movement of data when the decrement instruction is executed, during the execution of the increment instruction, the decrement signal DEC is sent to the temporary register RT2 in the second step.
is input, "1" is entered as data, and in the third step, the arithmetic logic unit (ALU) stores the temporary register R.
The operation is the same as the increment instruction execution operation described above, except that the data "1m" in the temporary register RT2 is subtracted from the data in TI, and the subtracted data is output onto the data bus DB.

【発明が解決しようとする課題】[Problem to be solved by the invention]

従来のマイクロプロセッサにおけるインクリメント命令
およびデクリメント命令は、上記のようにそれぞれ4ス
テツプのサイクル数(時間)を必要とし、ルジスタの上
記命令を実行するごとにデータバスDBと算術論理ユニ
ッ)ALUを使用するため、(現実のアセンブラプログ
ラムから見て、各レジスタに対する上記命令は、使用頻
度が高く、しかも異なるレジスタの上記命令が連続して
よく使われるにもかかわらず)、同時に複数のレジスタ
に対して上記命令を実行できないという問題がある。 そこで本発明はこの問題を解消できるマイクロプロセッ
サを提供することを課題とする。
The increment and decrement instructions in a conventional microprocessor each require four steps of cycles (time) as described above, and the data bus DB and the arithmetic logic unit (ALU) are used each time the above instructions of the Lugistor are executed. Therefore, (from an actual assembler program, the above instructions for each register are used frequently, and the above instructions for different registers are often used consecutively), the above instructions for multiple registers at the same time The problem is that the command cannot be executed. Therefore, it is an object of the present invention to provide a microprocessor that can solve this problem.

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

前記の課題を解決するために本発明のマイクロプロセッ
サは、「それぞれデータ入力信号(DIなど)を入力し
てデータバス(DBなど)上のデータを入力し、かつデ
ータ出力信号(Doなと)を入力して自身内のデータを
前記データバスに出力する複数のレジスタであって、 命令を解読してなるインクリメント信号(INOなど)
およびデクリメント信号(DECなど)を入力し、当該
の前記レジスタ間で同時に自身内のデータをそれぞれイ
ンクリメントおよびデクリメントするレジスタ(R1な
ど)を備えたjものとする。
In order to solve the above problems, the microprocessor of the present invention "inputs a data input signal (DI, etc.) to input data on a data bus (DB, etc.), and inputs a data output signal (Do, etc.)." A plurality of registers that input data and output internal data to the data bus, and an increment signal (INO, etc.) generated by decoding an instruction.
and a decrement signal (such as DEC), and is provided with a register (such as R1) that simultaneously increments and decrements internal data between the corresponding registers.

【作 用】[For use]

マイクロプロセッサ内のレジスタにアップ/ダウンカウ
ンタの機能を付加し、このアップ/ダウンを行わせる旨
の命令の解読信号を入力する全ての前記レジスタについ
て、同時にデータ″1”分のアンプ/ダウンを行わせる
ようにしたものである。
The function of an up/down counter is added to the registers in the microprocessor, and all the registers that input the decoding signal of the instruction to perform this up/down are simultaneously amplified/downed by data "1". It was designed to allow

【実施例1 以下、第1図および第2に基づいて本発明の詳細な説明
する。 第1図は本発明のマイクロコンピュータの一実施例とし
ての要部構成を示す。同図においてR1(RIA、  
RIB、 RIX)はそれぞれ新たなレジスタとしての
アキュムレータ、Bレジスタ、インデックスレジスタで
ある。 この各レジスタRIA、  RIB、  RIXは従来
と同様にそれぞれデータ入力信号DI (DIA、l1
rBDIX)を入力してデータバスDB上のデータを入
力して記憶したり、同じくデータ出力信号D○(DOA
、DOB、DOX)を入力して、自身内のデータをデー
タバスDB上に出力するほかに、次のようにアップ/ダ
ウンカウンタの機能を持っている。 即ち各レジスタRIA、  RIB、  RIXはそれ
ぞれインクリメント信号TNC(INCA、INCB。 INCX)を入力して自身のデータに1#を加え、同様
にそれぞれデクリメント信号DEC(DECA、DBC
B、DECX)を入力して自身のデータから“l”を減
する。 また第1図にて14は工6ビット長のプログラムデータ
 (インストラクションコード)が入力される16ビツ
ト長のインストラクションレジスタ、15はこのレジス
タ14内の命令コード部分(上位1oビット分)を解読
するデコーダ、16〜21は、デコーダ15の出力信号
としてのインクリメント/デクリメント命令信号15a
を入力すると共に、前記インストラクションレジスタ1
4の下位6ビツト部分の各ビットのデータをそれぞれ入
力するAND回路である。 そしてAND回路16.18.20はそれぞれ各レジス
タRIA、  RIB、  RIXに対するインクリメ
ント信号rNcA、INCB、INCXを出力し、同様
にANDゲート17.19.21はそれぞれ各レジスタ
RIA。 RIB、  RIXに対するデクリメント信号DECA
。 DECB、DECXを出力する。 第2図はインクリメント/デクリメント命令のインスト
ラクションコード(16ビツト長)のデータ構成の実施
例を示す。同図において上位10ビツトのデータ″11
01101011”はインクリメント/デクリメント命
令であることを示す命令コード、また上位からの第11
ビツト〜第16ビツトのデータはそれぞれ第1図のAN
D回路16〜21に入力されるデータで、順次、インク
リメント/デクリメント信号INCA、DECA、IN
CB、DECB、INCX、DECXに対応している。 そしてこの例は第11ビツトと第13ビツトのみが“1
”であることからインクリメント信号INCA、INC
Bを出力するための、換言すればアキュムレータR1^
とBレジスタRIBとにインクリメントを行わせるため
の命令であることを示している。 次に第1図が第2図の命令を実行する際の動作を説明す
る。マイクロプロセッサはプログラムにより動く。図外
のROMより第2図のプログラムデータがインストラク
ションレジスタ14に記憶される。この例では上位10
ビツト“1101101011″がインクリメント/デ
クリメント命令コードであることからこの命令コードを
インストラクションデコーダ15が解読してインクリメ
ント/デクリメント命令であることを認識し、インクリ
メント/デクリメント命令信号15aをHレベルとして
出力する。 上記信号15aはAND回路16〜21の一方に接続さ
れ、上記AND回路16〜21の他方はインストラクシ
ョンレジスタ14の下位6bitにそれぞれ接続されて
いる。よって上記AND回路の出力としては第2図のイ
ンストラクションコードでインクリメント信号INCA
、INCBに対応する第11ビツトと第13ビツトとが
Hレベルであることより、AND回路16.18がHレ
ベルのインクリメント信号INCA、rNcBの出力を
する。このAND回路16.18の出力は、アキエムレ
ータRIA、 BレジスタRIB、それぞれのアップカ
ウント端子に接続され、この各レジスタ内のデータのイ
ンクリメントが行われる。このようにして本発明ではイ
ンクリメント/デクリメント命令の実行を1ステツプで
行うことができる。 【発明の効果】 本発明によれば、マイクロプロセッサがそれぞれデータ
入力信号DIを入力してデータバスDB上のデータを入
力し、かつデータ出力信号DOを入力して自身内のデー
タを前記データバスに出力する複数のレジスタであって
、 命令を解読してなるインクリメント信号INCおよびデ
クリメント信号DECを入力し、当該の前記レジスタ間
で同時に自身内のデータをそれぞれインクリメントおよ
びデクリメントするレジスタR1を備えるようにしたの
で、 各レジスタのインクリメントデクリメント命令が同時に
1ステツプで実行でき、高速処理が可能となった。
[Example 1] The present invention will be described in detail below based on FIGS. 1 and 2. FIG. 1 shows the main structure of an embodiment of a microcomputer according to the present invention. In the same figure, R1 (RIA,
RIB, RIX) are new registers such as an accumulator, a B register, and an index register, respectively. These registers RIA, RIB, and RIX each receive data input signals DI (DIA, l1
The data on the data bus DB can be input and stored by inputting the data output signal D○ (DOA
, DOB, DOX) and outputs its own data onto the data bus DB, it also has the function of an up/down counter as described below. That is, each register RIA, RIB, RIX receives an increment signal TNC (INCA, INCB, INCX), adds 1# to its own data, and similarly receives a decrement signal DEC (DECA, DBC).
B, DECX) and subtracts “l” from its own data. In FIG. 1, 14 is a 16-bit instruction register into which 6-bit program data (instruction code) is input, and 15 is a decoder that decodes the instruction code portion (upper 10 bits) in this register 14. , 16-21 are increment/decrement command signals 15a as output signals of the decoder 15.
and input the instruction register 1.
This is an AND circuit that inputs data of each bit of the lower 6 bits of 4. AND circuits 16, 18, and 20 output increment signals rNcA, INCB, and INCX for each register RIA, RIB, and RIX, and similarly, AND gates 17, 19, and 21 output increment signals rNcA, INCB, and INCX for each register RIA, respectively. Decrement signal DECA for RIB, RIX
. Outputs DECB and DECX. FIG. 2 shows an example of the data structure of an instruction code (16 bits long) for an increment/decrement instruction. In the figure, the upper 10 bits of data "11"
01101011" is an instruction code indicating that it is an increment/decrement instruction, and the 11th instruction from the upper
The data of bits to 16th bits are AN in Figure 1.
The data input to D circuits 16 to 21 are sequentially increment/decrement signals INCA, DECA, IN.
Compatible with CB, DECB, INCX, and DECX. In this example, only the 11th and 13th bits are “1”.
”, the increment signals INCA, INC
In other words, accumulator R1^ for outputting B
This indicates that this is an instruction for incrementing the B register RIB and the B register RIB. Next, the operation when FIG. 1 executes the instruction shown in FIG. 2 will be explained. A microprocessor is run by a program. The program data shown in FIG. 2 is stored in the instruction register 14 from a ROM (not shown). In this example, the top 10
Since the bit "1101101011" is an increment/decrement instruction code, the instruction decoder 15 decodes this instruction code, recognizes it as an increment/decrement instruction, and outputs an increment/decrement instruction signal 15a as an H level. The signal 15a is connected to one of the AND circuits 16-21, and the other of the AND circuits 16-21 is connected to the lower 6 bits of the instruction register 14, respectively. Therefore, the output of the above AND circuit is the increment signal INCA using the instruction code shown in Figure 2.
, INCB are at H level, AND circuits 16 and 18 output increment signals INCA and rNcB at H level. The outputs of the AND circuits 16 and 18 are connected to the up-count terminals of the achievator RIA, the B register RIB, and the data in each register is incremented. In this way, according to the present invention, increment/decrement instructions can be executed in one step. According to the present invention, each microprocessor inputs the data input signal DI to input data on the data bus DB, and inputs the data output signal DO to transfer internal data to the data bus DB. A plurality of registers are provided, each of which receives an increment signal INC and a decrement signal DEC obtained by decoding an instruction, and includes a register R1 which simultaneously increments and decrements internal data between the corresponding registers. As a result, increment and decrement instructions for each register can be executed simultaneously in one step, enabling high-speed processing.

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

第1図は本発明の一実施例としての要部構成を示すブロ
ック図、 第2図は同じくインクリメント/デクリメント命令のイ
ンストラクションコードの構成を示す図、第3図は従来
のマイクロプロセッサの要部構成を示すブロック図であ
る。 R1(RIA、  RIB、  RIX)  : L/
レジスタ (RIA:アキュムレータ、RIB:Bレジ
スタ、RIX:インデックスレジスタ)、DB:データ
バス、14:インストラクションレジスタ、15:デコ
ーダ、16〜21:AND回路、INC(INCA、I
NCB。 INCX):インクリメント信号、DEC(DECA、
DECB、DECX):デクリメント信号、DI  (
DIA、DIB、DIX):データ入力号、Do (D
OA、DOB、DOX)ニーF’−タカ信号。
Fig. 1 is a block diagram showing the main part configuration as an embodiment of the present invention, Fig. 2 is a diagram showing the structure of the instruction code of the increment/decrement instruction, and Fig. 3 is the main part structure of a conventional microprocessor. FIG. R1 (RIA, RIB, RIX): L/
Register (RIA: accumulator, RIB: B register, RIX: index register), DB: data bus, 14: instruction register, 15: decoder, 16 to 21: AND circuit, INC (INCA, I
N.C.B. INCX): Increment signal, DEC (DECA,
DECB, DECX): Decrement signal, DI (
DIA, DIB, DIX): Data input number, Do (D
OA, DOB, DOX) Knee F'-Taka signal.

Claims (1)

【特許請求の範囲】 1)それぞれデータ入力信号を入力してデータバス上の
データを入力し、かつデータ出力信号を入力して自身内
のデータを前記データバスに出力する複数のレジスタで
あって、 命令を解読してなるインクリメント信号およびデクリメ
ント信号を入力し、当該の前記レジスタ間で同時に自身
内のデータをそれぞれインクリメントおよびデクリメン
トするレジスタを備えたことを特徴とするマイクロプロ
セッサ、
[Scope of Claims] 1) A plurality of registers each inputting a data input signal to input data on a data bus, and inputting a data output signal to output internal data to the data bus. , a microprocessor comprising registers that input increment signals and decrement signals obtained by decoding instructions, and simultaneously increment and decrement internal data between the registers, respectively;
JP7620790A 1990-03-26 1990-03-26 Microprocessor Pending JPH03276229A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP7620790A JPH03276229A (en) 1990-03-26 1990-03-26 Microprocessor

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP7620790A JPH03276229A (en) 1990-03-26 1990-03-26 Microprocessor

Publications (1)

Publication Number Publication Date
JPH03276229A true JPH03276229A (en) 1991-12-06

Family

ID=13598723

Family Applications (1)

Application Number Title Priority Date Filing Date
JP7620790A Pending JPH03276229A (en) 1990-03-26 1990-03-26 Microprocessor

Country Status (1)

Country Link
JP (1) JPH03276229A (en)

Similar Documents

Publication Publication Date Title
JP2848606B2 (en) Method and apparatus for modifying microinstructions using a macroinstruction pipeline
JP3378444B2 (en) Shift circuit
US7376777B2 (en) Performing an N-bit write access to an M×N-bit-only peripheral
US5077659A (en) Data processor employing the same microprograms for data having different bit lengths
JPH03276229A (en) Microprocessor
JP2003058381A (en) Processor realizing exception processing setting by program
JPS61255433A (en) Arithmetic unit
JPS63245525A (en) Microprogram processor
US5931941A (en) Interface for a modularized computational unit to a CPU
JPH04359323A (en) Microcomputer
JPS63245522A (en) Microprocessor
JPH0619700B2 (en) Arithmetic unit
JP2558815B2 (en) Normalization circuit
JPH054038Y2 (en)
JPH0683618A (en) Flag control circuit
JPS5933524A (en) Overload control system
JPS6111850A (en) Microcomputer system
EP0924602B1 (en) Instruction masking in providing instruction streams to a processor
JPH0821026B2 (en) Microcomputer
JPH1049371A (en) Pipeline computer
JPH02284225A (en) Arithmetic processor
JPS6019238A (en) Decimal arithmetic device
JPH03113635A (en) Micro processor
JPS61221844A (en) Microcomputer
JPS6379172A (en) Arithmetic unit