davyzhu
Advanced Member level 1
Hi all,
Sometimes I have to write long DFF chain like below:
//------code--------------
//------code end-----------
It's too long, is there any good compact style?
Any suggestions will be appreciated!
Best regards,
Davy
Sometimes I have to write long DFF chain like below:
//------code--------------
Code:
...
reg [7:0] DFF0,DFF1,DFF2,...DFF50;
always@(posedge clk)
if(rst)
begin
DFF0 <= 0;
...
DFF50 <= 0;
end
else
begin
DFF0 <= INPUT;
...
DFF50 <= DFF49;
end
//------code end-----------
It's too long, is there any good compact style?
Any suggestions will be appreciated!
Best regards,
Davy