Question: Q 4 A basic adder in a 4 - bit CPU is shown in Fig . 4 - 1 , where the ' 1 -

Q4 A basic adder in a 4-bit CPU is shown in Fig.4-1, where the '1-bit FA' is a 1-bit full adder and the '4-bit data storage' is a 4-bit shift register.
[25]
(a) Briefly describe the function of the 5 submodules in Fig.4-1 as much as possible. [5]
(b) The timing specification of the submodule is listed in Table 4-1.
\table[[D Latch,Propagation delay tpd :,Max=12ns, Min=8ns],[D Flip-Flop,Propagation delay tpri:,Max=22ns,, Min=18ns],[Setup time tselup :,Max=7ns, Min=5ns],[1-bit FA,Propagation delay tPFA :,Max=40ns, Min=25ns]]
Table 4-1
i) Analyze the highest frequency of the clock (fCLK).
[2]
ii) If we want to get a higher performance (i.e. faster) adder, how should we change the design in Fig.4-1? Briefly describe your ideas.
(c) Compose an HDL code for this adder, with all necessary notes. Assume the 4bit shift register is already implemented as:
[8]
module ShiftReg ( input data,
input clk,
output datai );
Page 6 of 7
Continued overleaf
(d) Compose a simple testbench in HDL for this adder, with all necessary notes. [8]
Q 4 A basic adder in a 4 - bit CPU is shown in

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Electrical Engineering Questions!