
1. Using only INV, 2-input NAND, and 3-input NAND gates, construct a circuit that will implement the
overflow (OV) function for a 16-bit ALU. Assume the inputs are A (A
15
… A
0
) and B (B
15
… B
0
) and
output (sum) is S (S15 … S0). Assume that only non-inverted inputs (i.e., X but not X’) are available.
HINT: You should be able to do this with 2 inverters and 3 NAND gates.
2. Briefly explain the difference between a microprocessor, a microcontroller, and an embedded system.
3. You have designed a microcontroller that must interface to 256k (262,144 bytes) of memory, with 8-bits
stored in each address.
a. How many data line are needed for the data bus?
b. How many address lines are needed for the address bus?