Question: 1: Write the Verilog code and testbench for a 16-bit Serial adder using Moore FSM design technique.. 2: Following is the code of a 4-bit

1: Write the Verilog code and testbench for a 16-bit Serial adder using Moore FSM design technique..

2: Following is the code of a 4-bit parallel register. What are the errors?

module Reg4(I, Q, Clk, Rst);

input [3:0] I;

output [3:0] Q;

wire [3:0] Q;

input Clk, Rst;

always @(Clk) begin

if (Rst == 1 )

Q <= 4'b0000;

else

Q <= I;

end

endmodule NOTE: KINDLY ANSWER BOTH PARTS PLEASE.

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 Databases Questions!