Sample CSE370 Final Exam Questions: Logic Minimization
Sample CSE370 Final Exam Questions: Logic Minimization
Logic Minimization
(a – 10 pts) Minimize the function F = Σ m(0, 6, 7, 8, 9, 11, 15) + d(1,13) using the K-map below.
List all prime implicants, essential prime implicants, and the minimal solution in SOP form in the
spaces provided.
Prime implicants:
Minimal cover:
F=
c. Assuming that ’02 2-input NOR gates have a delay of 7ns and ’10 3-input NAND gates have
a delay of 9ns, what is the delay to Z of a change in an input (or its complement) for the circuit
in part (a) and the circuit you wired up in part (b).
b) Given the truth table of part (a), implement Z using a single 16:1 multiplexer shown below.
Make sure to clearly label all inputs and outputs.
c) Given the truth table of part (a), implement Z using a single 8:1 multiplexer shown below.
Try to use as few other gates as possible. Make sure to clearly label all inputs and outputs.
Decoder Logic
Given the function W = (A xor C) + B, fill in the truth-table below.
Given the truth table of part (a), implement W using a single 3:8 decoder shown below and no
more than a single 2-input NOR gate. Make sure to clearly label all inputs and outputs.
Programmable Logic
Given the following K-maps for two logic functions, X and Y, respectively, show how you
would program the PAL on the next page (6 inputs, 3 outputs, 9 product terms overall) to
implement them. Clearly label all you inputs, outputs, and product terms on the PAL.
Generate a circuit that implements the Verilog description below.
reg A, B, C;
Write a Verilog module that implements the following circuit. Exact syntax is not important.
pi = ai + bi
pi = ai ⊕ bi
Explain why both functions work in the carry-lookahead adder, and why one might be
preferred over the other. I’m looking for a succinct, precise answer, not a lot of words.
Here is a Verilog description of a circuit. Design a circuit using just logic gates and registers
that implements this specification. Show all your work.
b) Your design should have a state machine controller: Draw the state diagram that describes
precisely how it operates.
c) Design the entire circuit in detail using the components listed above. You may write
equations for logic functions instead of drawing logic gates.
On the next page is the top-level schematic for an implementation of the x370 processor along
with the Verilog for the control module. Describe clearly how to implement a new instruction:
CALL (also known as Branch and Link), which allows the program to branch to a procedure
by remembering the address of the instruction following the CALL instruction in a register.
The procedure can then return back to the main program by branching to the address saved in
the register. (This would be another instruction, which you don’t have to worry about.)