logo

Crowdly

Is this a valid, synthesizable, use of a for loop? reg [8:0] A, B; integer i...

✅ The verified answer to this question is available below. Our community-reviewed solutions help you understand the material better.

Is this a valid, synthesizable, use of a for loop?

reg [8:0] A, B;

integer i;

parameter N=8;

always@(B)

begin

  for (i=1; i<=N; i=i+1)

    A[i-1]=B[i];

  A[N] = A[N-1];

end

0%
100%
More questions like this

Want instant access to all verified answers on moodle-courses2527.wolfware.ncsu.edu?

Get Unlimited Answers To Exam Questions - Install Crowdly Extension Now!