Digital Logic: final assessment

This covers the whole course. Take it after the last module.

Final quiz

1. What is the output of a NOR gate when both inputs are 0?
2. In Boolean algebra, what is A + 1?
3. What is A(A + B)?
4. A function of A and B is 1 only on the rows 0 and 2. What is it?
5. How many neighbours does each cell of a 4-variable K-map have, counting the wrap-around?
6. How many NAND gates make an XOR gate?
7. Which of these gate sets is functionally complete?
8. What is 0101 + 0011 in 4-bit binary?
9. A 16-to-1 multiplexer is built only from 4-to-1 multiplexers. How many are needed?
10. A 4-to-1 multiplexer with the selects A and B builds the majority function of A, B and C. What are its data inputs D0 to D3?
11. An SR latch made of NOR gates has S = 1 and R = 0, and then both inputs go to 0. What is Q?
12. A T flip-flop has T = 1, and the clock is 1 MHz. What is the frequency of its output Q?
13. How many flip-flops does a modulo-6 counter need?
14. A Mealy machine detects 11 with overlap. What is its output string for the input 0111?
15. How many bits can a memory with 16 address lines and 8 data lines store?
16. How many different functions can a 4-input lookup table of an FPGA implement?

Practical assessment: Build and verify a small ALU

Use only gate functions to build a 4-bit adder and subtractor, extend it to a small ALU that has a multiplexer to choose between four operations, and prove it correct by a complete test.

Final project

A 4-bit arithmetic logic unit: Build a software model of a small arithmetic logic unit (ALU), made only from gate functions, that adds, subtracts, ANDs, ORs and compares two 4-bit numbers, and reports the flags.

How it is evaluated

To complete this course