B
bir
Guest
I have a for-loop in side my rtl to reset a RAM as below
always @(negedge reset_n or posedge tclk)
begin
if (!reset_n)
begin
for (i=0; i<8; i=i+1)
ram <= {32{1'b0}};
.......
.....
I have declared i as integer in my internal signal declaration . But I
was wondering what will be the best way of declaring i (integer or
register) from synthesis point of view.
Thanks
always @(negedge reset_n or posedge tclk)
begin
if (!reset_n)
begin
for (i=0; i<8; i=i+1)
ram <= {32{1'b0}};
.......
.....
I have declared i as integer in my internal signal declaration . But I
was wondering what will be the best way of declaring i (integer or
register) from synthesis point of view.
Thanks