










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!











Name : _________________ , _________________ (Last Name) (First Name)
Student ID : _______________
Signature : ________________
Q1 Q2 Q3 Q4 Total
Credit 40 30 10 30 110
Score
For function F(x, y, z) = x’y’z + x’yz + x’yz’ + xyz’ + xy’z
We want to design a circuit to implement function F(x,y,z) using three different methods.
First design is called design MUX. Function F(x,y,z) is implemented using Multiplexer. Second design is design DEC. F(x,y,z) is designed using Decoder. Then we want to optimize the function F(x, y, z), called design OPT, by two-level logic optimization using K-map and Implicants.
Finally, we want to compare three designs (design MUX, design DEC, and design OPT) in terms of area (number of 2-input gates) and critical path delay (number of 2-input gate levels). For computation of area and delay, refer to the following table:
Component Area (number of 2-input gates)
Delay (number of 2-input gate levels) 2-to-1 Mux 5 2 4-to-1 Mux 11 4 3-to-8 Decoder 16 3 N-input gate (N≥2) (N-1) (N-1) [Note 1: Assume that the area and delay of inverter is negligible and is not considered. Also any link overhead is ignored.]
[Note 2: You are NOT supposed to minimize the function F for design MUX and design DEC]
(b) [design MUX] Implement F by means of only 4-to-1 Mux and 2-to-1 Mux. [Hint: You may use multiple Muxes in a hierarchical method] (5 points)
Area (two 4-to-1 Mux and one 2-to-1 Mux) = 2*11 + 5 = 27 2-input gates
Delay (two 4-to-1 Mux and one 2-to-1 Mux) = 2*4 + 2 = 10 2-input gate level
4-to-1 Mux
y z
4-to-1 Mux
y z
I0 2-to-1 Mux I S
x
(c) [design DEC] Implement F by means of a 3-to-8 Decoder (5 points)
Area (one 3-to-8 Decoder and one 5-input OR gate) = 16 + 4 = 20 2-input gates
Delay (one 3-to-8 Decoder and one 5-input OR gate) = 3 + 4 = 7 2-input gate level
3-to- Decoder
z y x
En
(g) Calculate the area (number of 2-input gates) and critical path delay (number of 2-input gate levels) for each design (design MUX, design DEC, and design OPT), and place each design with correct values of area and delay at the following graph (10 points) Which design gives the best delay? design OPT Which design gives the best area?
design MUX (27, 10)
design DEC (7, 20)
design OPT (5, 5)
Delay (number of 2-input gate levels)
Area (number of 2-input gates)
We want to design a non-resetting sequence detector using a finite state machine with one input X and one output Y. The FSM asserts its output Y when it recognizes the following input bit sequence: " 1101 ". The machine will keep checking for the proper bit sequence and does not reset to the initial state after it has recognized the string. [Note: As an example the input string X= "..1101101.." will cause the output to go high twice: Y = "..0001001.."]
(a) Capture the Moore FSM. (5 points)
(b) Create the architecture (3 points)
(e) Implement the combinational logic (NO NEED to draw the gates, just write the equations) (5 points)
(f) Convert the Moore FSM into the Mealy FSM (10 points)
Using RTL design method, we want to design a 4-bit up/down counter as shown in the following block diagram, which can count either up or down. It requires an input signal dir to indicate the count direction, an input signal ld to load the input data from I [i3..i0], and an input signal clr to reset the counter. We’ll let “dir=0” mean to count up and “dir=1” mean to count down. If “ld = 1”, it loads from input data I [i3..i0] regardless of the value of dir. When “clr = 1”, it clears the output Q [q3..q0] regardless of the value of dir or ld.
(a) Capture a high-level state machine (10 points)
4-bit up/down counter
I [i3..i0]
dir
Q [q3..q0]
ld
clr
(c) Connect the datapath to the controller (5 points)
(d) Derive the controller’s FSM (Moore machine) (5 points)