We got a comparator which compares 4 bit
binary numbers (A_3, A_2, A_1, A_0
and B_3, B_2, B_1, B_0
). The result is the output signal C_i
which has the value 1
if A > B
.
The arithmetic-circuit is supposed to be made up by connecting 4
identical 1 bit
arithmetic-modules. Each of these 1 bit
modules have the inputs A_i, B_i, C_i-1
and the output C_i
with i=0,1,2,3
. So, the carry outputs will be taken of the less significant digit i-1
.
Given is A=0100
and B=0010
. Fill the following table whereby C_i-1
bit is supposed to be chosen by you in a reasonable way. The carry C_i
is 1
exactly when we have A > B
.
I filled the table as good as I could but I have no idea how to do it with C_i-1
...
I have read in our readings and what it's saying about C_i-1
:
For the compare-operations <, ≤, ≥, >
a subtraction is executed and the result is read from Carry-out C_i-1
So please tell me did I fill the table correctly? Because this is a task from old exam and it has many other sub tasks. If I do the beginning (this table) wrong, then everything else will be wrong too! :(
I choose C_i-1 like that because I look first row A=0 and B=0, so 0-0 = 0 that's why C_i-1 =0. Second row we have A=1 and B=0, 1-0 = 1 so C_i-1=1. Then we have A=0 and B=1, 0-1 = -1 but here is problem with this, if it's correct at all : / Don't know please help me..