Skip to main content
gamedev.net
🔒 Locked

Binary Logic Question

Started by jim bob 1 reply 300+ views
Original Post
jim bob
jim bob
I can''t seem to figure out the binary circuit for a 1-bit binary subtractor. I figured the adder out, and then confirmed it on google. I can''t figure out the subtractor, and I can''t find it on google. Adder truth table:
A   B   R   F

1   1   0    C
1   0   1   NC
0   1   1   NC
0   0   0   NC
 
Subtractor truth table:
A   B   R   F

1   1   0   NC
1   0   1   NC
0   1   1    C
0   0   0   NC
 
In the adder I could set the correct carry with a simple AND gate (1 and 1 = C). However, the subtractor confuses me. I can''t figure out the logic for: 0 ? 1 = C. I''ve tried lots of circuits, none of which work. Any help would be appreciated. Thanks.
I am not worthy of a sig! ;)
rmsgrey
rmsgrey
(NOT A) AND B
Extrarius
Extrarius
(NOT A) AND B

should only be 1 when A is 0 and B is 1
"Walk not the trodden path, for it has borne it's burden." -John, Flying Monk

Topic Locked

This topic has been locked by a moderator. New replies are not allowed.

Sign in to reply to this topic.