Skip to content

Digital Logic Design final exam review

The topics, worked on a live board with an AI tutor.

Units

  1. Number systems and codes

    What exams ask

    A designer turns decimal specifications (a count of 156, a 0.625 duty cycle) into the bit patterns a circuit holds, and reads hex dumps back as binary fields; every exam in the course starts with these conversions.

    • Binary, octal and hexadecimal
    • Converting between bases
    • Binary addition and subtraction
    • Signed numbers and two's complement
    • Binary codes

    Practice

    What is the value of 11100001₂, and what is the largest value of a 12-bit number?Answer

    225; 4095

    Hint: 2¹² − 1

    Convert 213 to binary and to hexadecimal.Answer

    11010101₂ and D5₁₆

    Hint: 213 ÷ 16 = 13 r 5

  2. Boolean algebra and logic gates

    What exams ask

    Every digital system, from a phone's processor to a traffic-light controller, is built from these seven gates; reading and tracing a gate circuit is the first skill of digital design and the first question on any exam.

    DeMorgan is the tool that turns a design into those gates and turns a NAND circuit back into something readable; exams ask to complement a function and to find what a NAND-NAND circuit computes.

    • Logic gates and truth tables
    • Boolean algebra
    • DeMorgan's theorems
    • Minterms, maxterms and canonical forms
    • NAND and NOR implementations

    Practice

    Give the outputs of NOR and XNOR for A = 0, B = 0.Answer

    NOR 1 and XNOR 1

    Hint: NOR is NOT of OR; XNOR is 1 when the inputs agree

    Prove (x + y)(x + y') = x by the postulates.Answer

    By the second distributive law it is x + yy' = x + 0 = x

    Hint: Factor x out with x + yz = (x + y)(x + z)

  3. Gate-level minimization

    What exams ask

    Fewer and smaller gates mean less area, power and delay; the K-map is how a designer, and every exam, finds the minimal sum of products of a function of up to four variables in a minute instead of pages of algebra.

    Grouping by eye can miss a smaller answer or keep a group that is not needed; prime implicants make minimization a procedure, the one that CAD tools and the Quine-McCluskey method carry out, and exams ask for the list of essential prime implicants by name.

    • Karnaugh maps
    • Prime and essential prime implicants
    • Don't-cares and product-of-sums minimization
    • Exclusive-OR functions

    Practice

    Minimize Σm(0, 1, 4, 5) of A, B, C.Answer

    B', the four cells where B = 0

    Hint: Columns 00 and 01

    Name one prime implicant of F that contains m9.Answer

    AB' or AD

    Hint: m9 is at AB = 10, CD = 01

  4. Combinational logic design

    What exams ask

    Every combinational block on a chip, from a seven-segment driver to a code converter, was once a sentence of words; the same five stages from words to a checked circuit are what a design exam asks for, and the stage that gets marks lost is the check.

    Every processor has an adder at the heart of its arithmetic unit, and the speed of that adder, set by how far a carry must travel, limits how fast the chip can be clocked; adder equations and carry delay are standard exam problems.

    • The combinational design procedure
    • Half adders, full adders and ripple-carry adders
    • Adder-subtractors and overflow
    • Carry lookahead and magnitude comparators
    • Propagation delay and hazards

    Practice

    Three inputs A, B, C: F = 1 when exactly one input is 1. Give the Σm list and the minimal SOP.Answer

    Σm(1, 2, 4), and F = A'B'C + A'BC' + AB'C' because no two cells are adjacent

    Hint: Count the 1s in each row

    Give S and Cout of a full adder for A = 1, B = 1 and Cin = 0, and write the 2-bit answer.Answer

    S = 0, Cout = 1, answer 10

    Hint: 1 + 1 + 0

  5. Combinational building blocks

    What exams ask

    Decoders select one memory word, one chip or one register out of many, and they turn a truth table straight into hardware; exams ask for a 3-to-8 built from two 2-to-4 chips and for a function from a decoder and one gate.

    Keyboards, interrupt controllers and arbiters must turn many request lines into one binary number even when several are active at once; exams ask for the priority encoder's table with X's and its simplified equations.

    • Decoders
    • Encoders and priority encoders
    • Multiplexers
    • ROMs and programmable logic arrays

    Practice

    A 2-to-4 decoder has E = 1 and A₁A₀ = 01. Which output is 1, and what is its equation?Answer

    D₁ = E A₁'A₀

    Hint: Read 01 as the number 1

    In an 8-to-3 encoder, which inputs make A₀, and what does the encoder output if D₃ and D₅ are both 1?Answer

    A₀ = D₁ + D₃ + D₅ + D₇, and the output is 111, since 011 OR 101

    Hint: OR the two codes bit by bit

  6. Latches and flip-flops

    What exams ask

    Every register, flip-flop and memory cell is built from latches, and exams ask for the table and a timing diagram of an SR or D latch; knowing the forbidden state and the level-sensitive behaviour is what separates a latch from a flip-flop.

    Every register, counter and state machine is built from edge-triggered flip-flops; exams ask for a flip-flop's output from a clock and input waveform, its characteristic equation, and how one type is built from another.

    • SR and D latches
    • Edge-triggered flip-flops
    • Flip-flop timing

    Practice

    A NOR latch starts with Q = 0. R = 1 and then R = 0, then S = 1 and then S = 0. What is Q after each of the four changes?Answer

    0, 0, 1, 1

    Hint: Only S = 1 changes Q here

    A rising-edge D flip-flop has Q = 0. At an edge D has been 1 and falls to 0 just after the edge. Then at the next edge D has been 0. What is Q after each edge?Answer

    1, then 0

    Hint: Only the value just before each edge counts

  7. Synchronous sequential circuits

    What exams ask

    Every controller, counter and interface chip is a clocked circuit of flip-flops, and an exam hands you one and asks what it does; reading its state table and diagram is how you find out, and it is the first step before you design one yourself.

    Datasheets, HDL code and exam problems draw state machines both ways; the choice changes the number of states and when the output appears, and you must read an output from either diagram at the right clock.

    • Analysis of clocked sequential circuits
    • Moore and Mealy machines
    • Designing a state machine
    • State reduction and state assignment

    Practice

    What are DA, DB and y for the circuit when AB = 10 and x = 1?Answer

    DA = 1, DB = 0, y = 0, so the next state is 10

    Hint: DA = x(A + B), DB = A'x, y = (A + B)x'

    In the Moore table, what are the next state and z after A with x = 1?Answer

    Next state B, and z = 0 in B

    Hint: One 1 so far

  8. Registers and counters

    What exams ask

    Registers hold every word a computer works on, and shift registers convert between serial and parallel data in every communication link; exams ask for the register circuit and for the contents after a few clocks.

    Every fast counter in a processor, timer or address generator is synchronous, because all its bits change on the same clock edge; exams ask for the T inputs of a counter, its maximum clock rate against a ripple counter, and how to cut a counter to modulus N with its load input.

    • Registers and shift registers
    • Ripple counters
    • Synchronous counters
    • Designing counters

    Practice

    The register holds 0011. With L = 1 and I = 1110, what is Q after the edge?Answer

    1110

    Hint: L = 1 loads I

    At the count 0110, what are the T inputs and the next count?Answer

    T₃T₂T₁T₀ = 0001, so the next count is 0111

    Hint: Q₀ = 0, so only T₀ is 1

  9. Hardware description

    What exams ask

    Every processor, controller and interface on an FPGA or chip is written as clocked Verilog; registers, counters and state machines are the three patterns behind nearly all of it, and exams ask for the code of each and for what a short testbench input produces.

    • Describing combinational logic in an HDL
    • Describing flip-flops and state machines in an HDL

    Practice

    Write an assign for the majority of a, b, c.Answer

    Assign m = (a & b) | (b & c) | (a & c);

    Hint: One product per pair

    What does reg4 hold after an edge with rst = 0 and d = 4'b1010?Answer

    1010

    Hint: It loads d

Questions

What does the Digital Logic Design review cover?

Every unit of the course, 9 in all. Pick one and Helio teaches it on the board, then asks you questions. Number systems and codes; Boolean algebra and logic gates; Gate-level minimization; Combinational logic design; Combinational building blocks; Latches and flip-flops; Synchronous sequential circuits; Registers and counters; Hardware description.

Can it help the week before my final?

Yes. Pick a topic, and Helio explains it, checks you and goes over what you miss.

Is it the same as my class?

It follows the usual topics of Digital Logic Design. For anything else on your syllabus, type the topic and Helio teaches that too.

How much is free?

30 minutes a month for one learner, with no card. Starter is free for 7 days with a card: cancel in time and pay nothing.

A tutor you can talk to

30 minutes every month. No card.