Recall & Review
beginner
What is the main difference between an adder and a subtractor in digital circuits?
An adder adds two binary numbers, while a subtractor subtracts one binary number from another, often implemented by adding the two's complement of the subtrahend.
Click to reveal answer
beginner
In VHDL, how can you implement a 1-bit full adder?
A 1-bit full adder can be implemented using the sum = A XOR B XOR Cin and carry = (A AND B) OR (B AND Cin) OR (A AND Cin).
Click to reveal answer
intermediate
How does a subtractor use the concept of two's complement in VHDL?
A subtractor adds the two's complement of the number to be subtracted, which is done by inverting the bits and adding 1, allowing subtraction to be performed as addition.
Click to reveal answer
beginner
What is the role of the carry-in (Cin) in an adder circuit?
The carry-in allows chaining multiple adders together to add multi-bit numbers by passing the carry from the previous less significant bit to the next more significant bit.
Click to reveal answer
intermediate
Why is it efficient to design an adder and subtractor using a single circuit in VHDL?
Because subtraction can be done by adding the two's complement, a single adder circuit with control logic can perform both addition and subtraction, saving hardware resources.
Click to reveal answer
What operation does a subtractor perform in digital logic?
✗ Incorrect
A subtractor subtracts one binary number from another.
Which logic operation is used to calculate the sum bit in a 1-bit full adder?
✗ Incorrect
The sum bit is calculated using XOR of inputs and carry-in.
How is subtraction commonly implemented in VHDL adder-subtractor circuits?
✗ Incorrect
Subtraction is done by adding the two's complement of the number to subtract.
What does the carry-in (Cin) input do in a multi-bit adder?
✗ Incorrect
Carry-in carries the overflow from the previous bit to the current bit.
Why combine adder and subtractor in one VHDL design?
✗ Incorrect
Combining them saves hardware by reusing the adder for subtraction.
Explain how a 4-bit adder-subtractor circuit works in VHDL.
Think about how subtraction can be done by addition and how a control input can switch modes.
You got /4 concepts.
Describe the logic behind a 1-bit full adder and how it can be extended to multiple bits.
Start with the basic sum and carry formulas and then explain chaining.
You got /4 concepts.