Add to Chrome
✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.
Choose the correct verilog code to describe the following diagram
always @(*) begin
if (clear) a <= 0;
else begin for (i=0; i<=2; i=i+1) begin
a[i+1] <= a[i];
a[3] <= ~a[0]; end
end
always @ (posedge clock or posedge clear) begin
else begin
a <= a << 1;
a[0] <= ~a[3];
none of the above
always @(posedge clock or posedge clear) begin
else a = ~a << 1; end
Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!