19ECE347_ESLD_MidSem_2024_Solution
19ECE347_ESLD_MidSem_2024_Solution
1) i) c ii) a iii) c iv) 1111 v) one hot encoding vi) b (one mark each: 6 marks)
3) The given code X is a Gray code. Using basic design steps, the following can be inferred about the design.
The most significant bit (MSB) of the Gray code is the same as the MSB of the binary code. (1 mark)
The second bit is obtained by XOR-ing the first and second bits of the binary code. (1 mark)
The third bit is obtained by XOR-ing the second and third bits of the binary code (1 mark)
Page 1 of 3
4) The system to be designed is a D flipflop with active high synchronous reset, using a T flipflop ( 1 mark)
To use only 2x1 multiplexers: the XOR gate is replaced with 2x1 multiplexer with select line as A and I0=
B, I1 = B_bar (1 mark)
To include the active high synchronous reset, we include another multiplexer with the following:
Select line = reset, I0= ground, I1 = output of previous multiplexer (1 marks)
Page 2 of 3
6) Path 1: tpd (FF1) + tpd (xor) + tpd (nand) + tsu(FF2) = 3 + 2 + 2 + 4 = 11 ns (2 marks)
Path 2: tpd (FF2) + tsu(FF1) = 8 + 5 = 13 ns (2 marks)
critical path = path 2
TMIN (clk) = max (Tpath1, Tpath2) (1 mark)
Maximum frequency of operation = 1/13 ns = 76.92 MHz. (2 marks)
To ensure that the input signal can also accounted for, the input needs to be registered ie: the IN signal should
have been given from the previous stage through a flipflop and not given directly. (1 mark)
7) States for the design:
a. Idle
b. Got 1
c. Got 11
d. Got 110
e. Unlock, (1101 is obtained); door unlock signal is asserted high
State diagram:
States transitions from a -> e when inputs occur in the order 1,1,0,1; else it goes back to idle state (2 marks)
Page 3 of 3