Question B3 Write down a general expression for the delay between 'Din' and the nth flip-flop 'Q' output, 'Qn', in terms
-
- Site Admin
- Posts: 899603
- Joined: Mon Aug 02, 2021 8:13 am
Question B3 Write down a general expression for the delay between 'Din' and the nth flip-flop 'Q' output, 'Qn', in terms
Question B3 Write down a general expression for the delay between 'Din' and the nth flip-flop 'Q' output, 'Qn', in terms of 'n' and the period of the clock, 'Telk', rounded to the nearest whole number of clock periods. (3 marks) Figure B3a shows the logic diagram for 4-bit shift register with D flip-flop while figure B3b shows a timing diagram of the 'Clock' and input data 'Din' waveforms. Din Qout FFO Qo D Q Clk CLR FF1 Q D Q Clk CLR FF2 Q, D Q Clk CLR (d) If the clock frequency used to drive the circuit shown in figure B3b is 2.5MHz, calculate the maximum delay that can be introduced by the circuit and state which output the delayed signal would appear on (2 marks) FF3 D Q Clk CLR Clock Reset Figure B3a (e) Using circuit in Figure B3a, and a 2x1 multiplexer with SEL input shown in figure B3c, draw a circuit diagram that can be used as a 4-bit shift register when (SEL = 1) or a 4-bit memory when (SEL = 0). When the circuit is in a shift register mode, it operates the same as circuit in Figure B3a. However, when the circuit is in memory mode, each flip-flop preserves its state regardless of incoming clock. Using the following module header for D flip-flop instantiation: 1/module header for D-type Flip-flop with asynchronous clear module DFFC(input D, CLK, CLR, output (); 10 0 (a) Write an HDL Verilog code to describe the circuit in Figure B3a. Note that the circuit has three inputs: Din, Clock and Reset, and one output Qout. 1 Y = 10 if SEL=0 Y = 11 if SEL = 1 (6 marks) SEL Figure B3C (b) Given that the serial input data-bits applied to 'Din' change state 'just after the positive-edges of the 'Clock' signal, sketch the waveform for the output of flip-flop FF3', 'Qout' (Figure B3b). Telk. (8 marks) [B3 total: 25 marks] Clock 1 un [Section B: 50 marks] Reset Din Dout Figure B3b (6 marks) (c)