Sample Final 2017 Solutions
Sample Final 2017 Solutions
Sample Final 2017 Solutions
Sample Final
A
x D Q y1
Q’
B
D Q y2
Q’
clk
a. Obtain the next state and output equations, and the state table.
2) A finite state machine (FSM) has one input and one output. If {101} pattern is
detected on the input, its output is 1 for one clock cycle, otherwise it is 0. Note that
{…10101…} pattern contains two {101} patterns. Draw a state diagram for this FSM.
CS303 – Logic & Digital System Design
1 T y0 count T z0
clock
k
y1
T T z1
clock
k
The propagation delay of T flip-flop is tP,FF = 10 ps. The propagation delay of AND gate
is tP,AND = 10 ps. Two circuits are using the same clock. Fill the following timing diagram.
CS303 – Logic & Digital System Design
000 -> 001 -> 010 -> 011 -> 100 -> 101 -> 000 -> 001 -> 010 -> …
CS303 – Logic & Digital System Design
5) Design a counter with T flip-flops that goes through the following repeated
sequence: 0, 1, 3, 7, 6, 4, 0, 1, 3, ... Treat unused states 010 and 101 as don’t care
conditions, i.e. we don’t care what their next states are.
B(t+1) = TB B = (C ’B + CB’) B
6) Draw logic diagram of the circuit that would result from synthesizing the following
Verilog module.
7) Implement the following three Boolean functions using a PLA with 3 inputs, 4 product
terms, 3 outputs. Fill in the PLA programming table. Show your work.
Outputs
Inputs
Product Term C T C
x2 x1 x0 F1 F2 F3
1 x2’x0 0 - 1 1 1 -
2 x2x0’ 1 - 0 1 1 1
3 x1x0 - 1 1 - 1 1
4 x1’x0’ - 0 0 - - 1