Recall & Review
beginner Click to reveal answer
What is a half adder in digital logic?
A half adder is a simple digital circuit that adds two single binary digits and outputs a sum and a carry bit.
beginner Click to reveal answer
What are the outputs of a half adder?
The outputs are Sum (S) and Carry (C). Sum is the XOR of inputs, and Carry is the AND of inputs.
intermediate Click to reveal answer
How does a full adder differ from a half adder?
A full adder adds three bits: two input bits and a carry-in bit. It outputs a sum and a carry-out bit.
intermediate Click to reveal answer
Write the Verilog expression for the sum output of a full adder.
sum = a ^ b ^ cin; // XOR of input bits a, b and carry-in cin
intermediate Click to reveal answer
What is the carry-out expression in a full adder?
carry_out = (a & b) | (b & cin) | (a & cin); // Carry generated if any two inputs are 1
Which logic gate is used to generate the sum output in a half adder?
✗ Incorrect
The sum output of a half adder is generated using an XOR gate.
How many inputs does a full adder take?
✗ Incorrect
A full adder takes three inputs: two bits to add and a carry-in bit.
What is the carry output of a half adder?
✗ Incorrect
The carry output of a half adder is the AND of the two input bits.
Which expression correctly represents the carry-out of a full adder?
✗ Incorrect
The carry-out is generated when any two or more inputs are 1, expressed as (a & b) | (b & cin) | (a & cin).
In Verilog, which operator is used for bitwise XOR?
✗ Incorrect
The '^' operator in Verilog is used for bitwise XOR.
Explain the difference between a half adder and a full adder.
Think about how many inputs each adder handles and what outputs they produce.
You got /4 concepts.
Describe how you would implement a full adder in Verilog using basic gates.
Recall the expressions for sum and carry-out in a full adder.
You got /4 concepts.
