- #1
david90
- 312
- 2
A boolean circuit has 4 inputs, a, b, cin and K. when K=0, the circuit is an adder. When K=1, the ciruit is a subtractor. WHere do I start? [?]
Originally posted by david90
A boolean circuit has 4 inputs, a, b, cin and K. when K=0, the circuit is an adder.
still not helping. ur just restating my question. I already know there are 2 cases and that k=0 then it is an adder.
K is false and the formula gives the output of an adder
or
K is true and the formula gives the output of a subtractor
Originally posted by david90
what is "~"?
Originally posted by chroot
BCD is simply using three binary digits to encode each digit of a decimal number.
Gray code is a kind of code that allows a system to count in binary by making only one bit toggle between numbers. You can think of as just a variation on the normal counting.
I'm assuming that "weighted code" is what you and I would call "normal" (non-Gray) coding, though most people just call that "binary."
For example, a three-bit Gray code is:
000
001
011
010
110
100
101
111
...
...
- Warren
The BCD code 1111 = 2 + 4 + 2 + 1 = 9 decimal.
Not when the non-binary weighting rule "2421" is being used -- which is what david90 was asking about.Originally posted by dlgoff
Wouldn't the BCD code for decimal 9 be 1001?
The main reason for using 2421 over normal 8421 binary is simply that, with 2421, there are no invalid four-bit strings.
You got me. I've never even heard of anyone using this until david90 described it.Originally posted by dlgoff
Thanks. I didn't know about "2421 BCD". Is this what it's called?
A Boolean adder is a digital circuit that performs the addition operation on two binary numbers. It consists of logic gates that generate the sum and carry outputs based on the input values.
A Boolean adder works by using logic gates such as AND, OR, and XOR to perform the addition operation on two binary numbers. The inputs are fed into the logic gates, and the outputs are generated based on the Boolean logic equations.
A half adder can only add two single-bit binary numbers and does not account for any carry from previous additions. A full adder, on the other hand, can add two single-bit binary numbers as well as account for any carry from previous additions.
A Boolean subtractor is a digital circuit that performs the subtraction operation on two binary numbers. It uses logic gates such as AND, OR, and NOT to generate the difference output based on the input values.
A Boolean subtractor works by using logic gates to perform the subtraction operation on two binary numbers. The inputs are fed into the logic gates, and the outputs are generated based on the Boolean logic equations. The borrow output is also generated to account for any borrow from previous subtractions.