digital-newbie
Newbie level 4
Code:
input [3:0] d;
input clk,rst;
logic [3:0] hold;
always @(posedge clk)
begin
if(rst) hold <= 0;
else
hold <= d >>1;
end
assign q = hold [0];
Can someone tell me why this only shifts once and not every clock edge?