JPS59128633A - One-chip microcomputer - Google Patents

One-chip microcomputer

Info

Publication number
JPS59128633A
JPS59128633A JP58003845A JP384583A JPS59128633A JP S59128633 A JPS59128633 A JP S59128633A JP 58003845 A JP58003845 A JP 58003845A JP 384583 A JP384583 A JP 384583A JP S59128633 A JPS59128633 A JP S59128633A
Authority
JP
Japan
Prior art keywords
adder
decimal
outputs
constant
binary
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
JP58003845A
Other languages
Japanese (ja)
Inventor
Kimihisa Sasazaki
笹崎 公寿
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.)
Seiko Epson Corp
Suwa Seikosha KK
Original Assignee
Seiko Epson Corp
Suwa Seikosha KK
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 Seiko Epson Corp, Suwa Seikosha KK filed Critical Seiko Epson Corp
Priority to JP58003845A priority Critical patent/JPS59128633A/en
Publication of JPS59128633A publication Critical patent/JPS59128633A/en
Pending legal-status Critical Current

Links

Classifications

    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F7/00Methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F7/38Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation
    • G06F7/48Methods or arrangements for performing computations using exclusively denominational number representation, e.g. using binary, ternary, decimal representation using non-contact-making devices, e.g. tube, solid state device; using unspecified devices
    • G06F7/491Computations with decimal numbers radix 12 or 20.
    • G06F7/492Computations with decimal numbers radix 12 or 20. using a binary weighted representation within each denomination
    • G06F7/493Computations with decimal numbers radix 12 or 20. using a binary weighted representation within each denomination the representation being the natural binary coded representation, i.e. 8421-code
    • G06F7/494Adding; Subtracting
    • GPHYSICS
    • G06COMPUTING; CALCULATING OR COUNTING
    • G06FELECTRIC DIGITAL DATA PROCESSING
    • G06F2207/00Indexing scheme relating to methods or arrangements for processing data by operating upon the order or content of the data handled
    • G06F2207/492Indexing scheme relating to groups G06F7/492 - G06F7/496
    • G06F2207/4921Single digit adding or subtracting

Landscapes

  • Engineering & Computer Science (AREA)
  • Computing Systems (AREA)
  • Physics & Mathematics (AREA)
  • General Physics & Mathematics (AREA)
  • Theoretical Computer Science (AREA)
  • Computational Mathematics (AREA)
  • Mathematical Analysis (AREA)
  • Mathematical Optimization (AREA)
  • Pure & Applied Mathematics (AREA)
  • General Engineering & Computer Science (AREA)
  • Microcomputers (AREA)

Abstract

PURPOSE:To obtain an one-chip microcomputer saving the number of instruction steps and execution time by providing the 1st and 2nd adders and a constant generating circuit. CONSTITUTION:Two 4-bit inputs to a 4-bit binary adder 1 are 10-A3, B0-B3 respectively and a carrying input 1a selects a binary carrying signal 5a and a decimal carrying signal 6a by a carry selecting gate 4. The added results of an adder 8 are outputted as 4-bit added result outputs C0-C3 and a carrying output signal 1b. A constant circuit 3 inputs a carrying signal 1b, added results C1- C3 and control signals 3a, 3b and outputs constant outputs D1-D3 and a decimal carrying signal 3c. An adder 2 inputs added results C0-C3 outputted from the adder 1 and constant outputs D1-D3 of the constant generating circuit 3 and outputs binary-coded decimal outputs E0-E3 of the added results.

Description

【発明の詳細な説明】 本発明は1チツプマイクロコンピユータに関する。[Detailed description of the invention] The present invention relates to a one-chip microcomputer.

従来の1チツプマイクロコンピユータでは、2巡数の加
減算を行なった後、唱0進化補正を行なっており、命令
ステップ数と実行時間がかかつていた。
In a conventional one-chip microcomputer, after performing addition and subtraction of two rounds, the zero evolution correction is performed, which increases the number of instruction steps and the execution time.

本発明の目的は、簡単な回路構成により、命令ステップ
数と実行時間を節約した1チツプマイクロコンピユータ
を提供することにある。
SUMMARY OF THE INVENTION An object of the present invention is to provide a one-chip microcomputer with a simple circuit configuration that saves the number of instruction steps and execution time.

第1図は本発明の1桁の2進加算10進加減算器の実施
例であり、1は第1の加算器、2は第2の加算器、3は
定数発生回路である。
FIG. 1 shows an embodiment of a one-digit binary addition/decimal adder/subtractor according to the present invention, where 1 is a first adder, 2 is a second adder, and 3 is a constant generation circuit.

第1の4ビツト2進加算器1の2つの4ビツト入力をそ
れぞれA。−A、、Bo−B、とし、桁上げ人力1αは
2進キヤリ一信号5α又は10進キヤリ一信号6αをキ
ャリー選択ゲート4によって選択できる様にしている。
The two 4-bit inputs of the first 4-bit binary adder 1 are respectively A. -A, , Bo-B, and the carry input 1α can select either the binary carry signal 5α or the decimal carry signal 6α by the carry selection gate 4.

4αは2進キャリー選択信号、4bは10進キャリー選
択信号である。8はそれぞれ全加算器であり、これらの
入力の加算結果は4ビツトの加算結果出力00〜03お
よび桁上げ出力信号1hとして出力される。定数発生回
路3は、桁上げ出力信号1hと加算結果出力01〜O3
および加算制御信号3αと減算制御信号3bとを入力と
し、表1人出力値対応図の様に定数出力D1〜D3およ
び10進桁上げ出力信号3Cを出力する。本実施例にお
いては2°ビツトを省略しているが、第2の加算器2に
おいて20ビツトを′0#とじて取り扱がっているので
、定数出力D1〜D、は16進数値“0#、“6”、“
A#に相当する。
4α is a binary carry selection signal, and 4b is a decimal carry selection signal. 8 are full adders, and the addition results of these inputs are output as 4-bit addition result outputs 00-03 and a carry output signal 1h. The constant generation circuit 3 outputs a carry output signal 1h and addition result outputs 01 to O3.
It inputs the addition control signal 3α and the subtraction control signal 3b, and outputs constant outputs D1 to D3 and a decimal carry output signal 3C as shown in Table 1. In this embodiment, the 2° bit is omitted, but since the second adder 2 handles the 20 bits as '0#', the constant outputs D1 to D are the hexadecimal value '0'. #, “6”, “
Corresponds to A#.

第2の加算器2は、第1の加算器1の4ビツトの加算結
果出力Oo〜03および定数発生回路3の定数出力D1
〜D3を入力とし、加算結果の2進化10進出力KO−
H,を出力する。
The second adder 2 receives the 4-bit addition result output Oo~03 of the first adder 1 and the constant output D1 of the constant generation circuit 3.
~D3 is input, and the addition result is the binary coded decimal power KO-
Outputs H.

10進桁上げ出力信号3Cはラッチ6に入力され、桁上
げ出力信号1bはラッチ5に入力されており、適当なタ
イミングで発生するクロック信号7によりラッチされる
。ラッチ5の出力は2進キヤリ一信号5aであり、ラッ
チ6の出力は10進キヤリ一信号6αであり、それぞれ
キャリー選択ゲート4のゲート入力に接続される。これ
により、多桁の10進数を繰返し演算により加減算する
事もできる。
The decimal carry output signal 3C is input to the latch 6, and the carry output signal 1b is input to the latch 5, and is latched by the clock signal 7 generated at an appropriate timing. The output of the latch 5 is a binary carry signal 5a, and the output of the latch 6 is a decimal carry signal 6α, which are connected to the gate inputs of the carry selection gate 4, respectively. This makes it possible to add and subtract multi-digit decimal numbers through repeated operations.

第2図は本発明の第2の実施例であり、2進加算10進
加減算器を2個連ねて2桁に構成した例である。
FIG. 2 shows a second embodiment of the present invention, and is an example in which two binary addition/decimal adder/subtractors are connected to form two digits.

以上の様に本発明によれば10進加減算と10進化補正
を分離して処理するという不都合が解消され、−回の命
令実行により、一括して処理が行なわれ命令ステップと
実行時間を節約できる。また、AO””” m  e 
”0− Blの2つの4ビツト入力のうち1つの値を1
6進数値″0”とすれば、加算処理と同じ手順で2進数
を10進数に変換する事ができ、命令の種類を削減でき
る。
As described above, according to the present invention, the inconvenience of processing decimal addition/subtraction and decimal evolution correction separately is solved, and the processing is performed all at once by executing the instructions twice, thereby saving instruction steps and execution time. . Also, AO””” m e
”0- Sets one value of two 4-bit inputs of Bl to 1.
If the hexadecimal value is "0", a binary number can be converted to a decimal number using the same procedure as the addition process, and the number of types of instructions can be reduced.

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

第1図は本発明の1桁の2進加算10進加減算器の実施
例であり、第2図は本発明の2桁の2進加算10進加減
算器の実施例である。 1と1′は第1の加算器、2と2′は第2の加算器、3
と3′は定数発生回路、4と4′はキャリー選択ゲート
、5と6はラッチ、Oo〜0.は加算結果出力、1bは
桁上げ出力信号、3αは加算制御信号、5bは減算制御
信号、5cは10進桁上げ出力信号である。
FIG. 1 shows an embodiment of a one-digit binary addition decimal adder/subtractor of the present invention, and FIG. 2 shows an embodiment of a two-digit binary addition decimal adder/subtractor of the present invention. 1 and 1' are the first adders, 2 and 2' are the second adders, 3
and 3' are constant generation circuits, 4 and 4' are carry selection gates, 5 and 6 are latches, Oo to 0. 1b is a carry output signal, 3α is an addition control signal, 5b is a subtraction control signal, and 5c is a decimal carry output signal.

Claims (1)

【特許請求の範囲】[Claims] 4ビツト2進加算器を第1の加算器とし、該4ビツト2
進加算器の加算結果出力と桁上げ出力信号と加算制御信
号および減算制御信号とにより、3通りの16血数値″
′0” tl  # 、 II A#および10進桁上
げ出力信号を適宜発生するようにした定数発生回路と、
該4ビツト2進加算器の加算結果出力と該定数発生回路
の定数出力とを加算する第2の加算器とからなる1桁の
2進加算10進加減算器をル個連ねてル桁に構成した2
進加算10進加減算器を有することを特徴とした1チツ
プマイクロコンピユータ。
A 4-bit binary adder is used as the first adder, and the 4-bit 2
Three types of 16 blood values are generated by the addition result output of the decimal adder, the carry output signal, the addition control signal, and the subtraction control signal.
'0''tl#,IIA#, and a constant generation circuit that appropriately generates a decimal carry output signal;
A 1-digit binary addition decimal adder/subtractor consisting of a second adder that adds the addition result output of the 4-bit binary adder and a constant output of the constant generating circuit is connected to form a digit number. I did 2
A one-chip microcomputer characterized by having a decimal adder/subtractor.
JP58003845A 1983-01-13 1983-01-13 One-chip microcomputer Pending JPS59128633A (en)

Priority Applications (1)

Application Number Priority Date Filing Date Title
JP58003845A JPS59128633A (en) 1983-01-13 1983-01-13 One-chip microcomputer

Applications Claiming Priority (1)

Application Number Priority Date Filing Date Title
JP58003845A JPS59128633A (en) 1983-01-13 1983-01-13 One-chip microcomputer

Publications (1)

Publication Number Publication Date
JPS59128633A true JPS59128633A (en) 1984-07-24

Family

ID=11568517

Family Applications (1)

Application Number Title Priority Date Filing Date
JP58003845A Pending JPS59128633A (en) 1983-01-13 1983-01-13 One-chip microcomputer

Country Status (1)

Country Link
JP (1) JPS59128633A (en)

Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5068749A (en) * 1973-10-20 1975-06-09

Patent Citations (1)

* Cited by examiner, † Cited by third party
Publication number Priority date Publication date Assignee Title
JPS5068749A (en) * 1973-10-20 1975-06-09

Similar Documents

Publication Publication Date Title
JPS588009B2 (en) digital multiplier
JPS62160532A (en) Floating point representation transformer
JP2608165B2 (en) Method and apparatus for multiplying a real-time two's complement code in a digital signal processing system
KR930001024B1 (en) Ic for squar root arithematic using neural network
JPS6125245A (en) Rounding process circuit
JPS59128633A (en) One-chip microcomputer
US4441159A (en) Digital adder circuit for binary-coded numbers of radix other than a power of two
JPH01183733A (en) Code converting circuit
JPS6027024A (en) Arithmetic device
JPS6017534A (en) Floating-point numeral normalized circuit
JPS61118835A (en) Hardware divider
JPS6352488B2 (en)
JPS62145419A (en) Decimal addition and subtraction device
JPS58124831U (en) decimal calculator
JPH01162926A (en) Data length variable arithmetic unit
JPH0778748B2 (en) Galois field arithmetic unit
JP2558912B2 (en) Multiplier circuit
JPS60140427A (en) Decimal notation adding and subtracting system
JPS6118783B2 (en)
JP2890412B2 (en) Code conversion circuit
JPH0285922A (en) Arithmetic circuit
JP2624738B2 (en) Rounding method
JPS62214435A (en) Digital dividing circuit
JPH0340864B2 (en)
JPH0448328A (en) Arithmetic unit