Question: Consider the Verilog code module example(a,b); input[1:0] a; output[1:0] b; reg[1:0] b; always @(a) begin case(a) 0: b 5 2d3; 1: b 5 2d2; 2:

Consider the Verilog code
module example(a,b);
input[1:0] a;
output[1:0] b;
reg[1:0] b;
always @(a)
begin
case(a)
0: b 5 2’d3;
1: b 5 2’d2;
2: b 5 2’d1;
3: b 5 2’d1;
endcase
end
endmodule

(a) Show the hardware you would obtain if you synthesize the foregoing Verilog code without any optimizations. Explain your reasoning.
(b) Show optimized hardware emphasizing minimum area. Show the steps and the reasoning by which you obtained the optimized hardware.

Step by Step Solution

3.34 Rating (169 Votes )

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock

a A 4to1 mux for each bi... View full answer

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 Digital Systems Design Questions!