Hi can anyone explain how this circuit will work. Suppose that b is high and any other element in b is low, what is the value of ptr. What will happy if in the next clk cycle b become high and b become low.
ptk = '0;
for (int i = 0; i < 8; i++)begin
ptr = 3'(i);
key = b[i];