L.W: for the following arithmetic operations: Cin =0 D= A+ B D=A-1 Cin =1 D = A +1 D= A +B' +1 1 Construct a function table, then draw an arithmetic circuit for two stages.

C++ for Engineers and Scientists
4th Edition
ISBN:9781133187844
Author:Bronson, Gary J.
Publisher:Bronson, Gary J.
Chapter2: Problem Solving Using C++using
Section2.1: Introduction To C++
Problem 1E: (Practice) State whether the following are valid function names and if so, whether they’re mnemonic...
icon
Related questions
Question
Computer organization (Arithmetic Circuit) Solve at the end of the page
" Fig.1: 4-bit arithmetic circuit"
Here, Cin : is an input carry in the least position.
function table for arithmetic circuit
select
atput loustnut uf
af
NUX. Jadder:
Iname of
aperation
Si S. Cin Y
DA-Y+ Cln operation
D-A-B
name in
asembly
MUX:
ADD
001 BD=A-B+l a ADC
SHA
addition
ald with carry
sub with bormw
D-A R
SRR
D= A-B+1
IO O 0 D-A
D-A-1
D-A-I
-I DA
011 E D=A
subtraction
SUB
Iransfer A
inc A
dec A
transfer A
MOV
INC
DEC
I a
MOV
МOV
A-B=A+D+I ( sub )
A-B-1-AE+1-1-A (sub with borrow)
D= A - 0(Y) +0 (C) = D= A
DA O(Y) I (G)= D A1
D=A - 1111( Y ) +0 (Ca) = D= A-1
D=A- IIII(Y) I (Ca)
= A-1+1=A
Note: ADD AX, BX ;AX- AX + BX
ADC AX, BX ;AX + AX + BX + CF
SUB AX, BX
; AX- AX - BX
SBB AX, BX
;AX+ AX- BX-CF
Ex.: Given the following arithmetic operations:
Cin 0
D-A-I
D-A
Sa
Cin=1
D-A
D-A+1
D-A+B
D-A+B-1
D-A+B
D-A+B
Construct a function table, then draw a 2-bit arithmetic circuit
(for twa stages).
Sol. :
S1 S
so Cin
DA C
A-I
1
A
A
1
A+1
B.
B
A+B
A-B+
A.B
AB+1
Cin
A
FA
FA
D,
MEX
Cout
H.W: for the following arithmetic operations:
Cin = 0
D=A+B
D= A -1
Cin =1
D= A +1
D= A +B' +1
Construct a function table, then draw an arithmetic circuit for
two stages.
Transcribed Image Text:" Fig.1: 4-bit arithmetic circuit" Here, Cin : is an input carry in the least position. function table for arithmetic circuit select atput loustnut uf af NUX. Jadder: Iname of aperation Si S. Cin Y DA-Y+ Cln operation D-A-B name in asembly MUX: ADD 001 BD=A-B+l a ADC SHA addition ald with carry sub with bormw D-A R SRR D= A-B+1 IO O 0 D-A D-A-1 D-A-I -I DA 011 E D=A subtraction SUB Iransfer A inc A dec A transfer A MOV INC DEC I a MOV МOV A-B=A+D+I ( sub ) A-B-1-AE+1-1-A (sub with borrow) D= A - 0(Y) +0 (C) = D= A DA O(Y) I (G)= D A1 D=A - 1111( Y ) +0 (Ca) = D= A-1 D=A- IIII(Y) I (Ca) = A-1+1=A Note: ADD AX, BX ;AX- AX + BX ADC AX, BX ;AX + AX + BX + CF SUB AX, BX ; AX- AX - BX SBB AX, BX ;AX+ AX- BX-CF Ex.: Given the following arithmetic operations: Cin 0 D-A-I D-A Sa Cin=1 D-A D-A+1 D-A+B D-A+B-1 D-A+B D-A+B Construct a function table, then draw a 2-bit arithmetic circuit (for twa stages). Sol. : S1 S so Cin DA C A-I 1 A A 1 A+1 B. B A+B A-B+ A.B AB+1 Cin A FA FA D, MEX Cout H.W: for the following arithmetic operations: Cin = 0 D=A+B D= A -1 Cin =1 D= A +1 D= A +B' +1 Construct a function table, then draw an arithmetic circuit for two stages.
Expert Solution
steps

Step by step

Solved in 3 steps with 4 images

Blurred answer
Knowledge Booster
Keywords
Learn more about
Need a deep-dive on the concept behind this application? Look no further. Learn more about this topic, computer-science and related others by exploring similar questions and additional content below.
Similar questions
Recommended textbooks for you
C++ for Engineers and Scientists
C++ for Engineers and Scientists
Computer Science
ISBN:
9781133187844
Author:
Bronson, Gary J.
Publisher:
Course Technology Ptr
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
COMPREHENSIVE MICROSOFT OFFICE 365 EXCE
Computer Science
ISBN:
9780357392676
Author:
FREUND, Steven
Publisher:
CENGAGE L
C++ Programming: From Problem Analysis to Program…
C++ Programming: From Problem Analysis to Program…
Computer Science
ISBN:
9781337102087
Author:
D. S. Malik
Publisher:
Cengage Learning