Question: 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
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
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
