What are the sum and carry of a half adder when A = 1 and B = 1?
- Sum = 1 XOR 1 = 0.
- Carry = 1 AND 1 = 1.
Answer Sum 0, carry 1
A-level Computer Science revision · Boolean algebra and logic
A half adder adds two bits, giving a sum (A XOR B) and a carry (A AND B). A full adder also adds a carry-in, so full adders can be chained to add multi-bit numbers. A D-type flip-flop stores one bit: on the rising edge of the clock it copies D to its output Q, which holds until the next clock edge.
Watch out A half adder cannot take a carry-in, so it cannot be chained alone.
What are the sum and carry of a half adder when A = 1 and B = 1?
Answer Sum 0, carry 1
A full adder has inputs A = 1, B = 0, Carry-in = 1. What is the output?
When does a D-type flip-flop update its output?
Explain why D-type flip-flops are used in registers.
Answer Each flip-flop stores one bit until the next clock edge, so a group of them can hold a binary value such as a register's contents.
A-level Computer Science Pro, OCR H446
£119 once
Price rises to £199 on 1 January. Save £80 by joining before then.
At least 12 months of access
No VAT is charged.