Hi guys I'm new to this forum hello all.
so I'm doing a 100 level simple ALU circuit(2's complement), and I'm on the final step, just to connect 4 components into 1 ALU component. the desired outcome is like this( attached pic 1)
and I have these 4 components to play with: a 4-bit full adder, CMPL,CP4, and OV.
CMPL CP4 and OV are made by me, the 4 bit adder is in the software
here's what these 3 components that I made do:
CMPL: if cm is 0, show original value of d0d1d2d3, if cm is 1, show d0'd1'd2'd3' (flip all)
CP4:if all input are 0, eq0=1, if most important digit(a3) is 1(2's comp, means nagative) lt0=1
OV:where s(3) is the sign bit of the result and a(3) and b(3) are the sign bits of the operands. show if there's overflow or underflow.( simply, show 1 if a3=1 b3=1 and s3=0 or a3=0 b3=0 and s3=1)
and pic2 is what I got so far, I'm pretty confused about the order, port names, plz help.
so I'm doing a 100 level simple ALU circuit(2's complement), and I'm on the final step, just to connect 4 components into 1 ALU component. the desired outcome is like this( attached pic 1)
and I have these 4 components to play with: a 4-bit full adder, CMPL,CP4, and OV.
CMPL CP4 and OV are made by me, the 4 bit adder is in the software
here's what these 3 components that I made do:
CMPL: if cm is 0, show original value of d0d1d2d3, if cm is 1, show d0'd1'd2'd3' (flip all)
CP4:if all input are 0, eq0=1, if most important digit(a3) is 1(2's comp, means nagative) lt0=1
OV:where s(3) is the sign bit of the result and a(3) and b(3) are the sign bits of the operands. show if there's overflow or underflow.( simply, show 1 if a3=1 b3=1 and s3=0 or a3=0 b3=0 and s3=1)
and pic2 is what I got so far, I'm pretty confused about the order, port names, plz help.
Attachments
-
93.3 KB Views: 26