ash72
Newbie level 5
Hello,
I understand that it's not a good idea to use integers in RTL that is to be synthesized. In the following code, it will generate 32 bit incrementor. But my question is on the continuous assignment.
integer I;
always @(posedge Clock)
if ( Reset || (I == 255) )
I <= 0;
else I <= I + 1; //32-bit incrementor
wire [7:0] Count = I;
Will the wire assignment generate an eight bit counter? Or will it simply synthesize into an 8 bit bus.
Thanks.
I understand that it's not a good idea to use integers in RTL that is to be synthesized. In the following code, it will generate 32 bit incrementor. But my question is on the continuous assignment.
integer I;
always @(posedge Clock)
if ( Reset || (I == 255) )
I <= 0;
else I <= I + 1; //32-bit incrementor
wire [7:0] Count = I;
Will the wire assignment generate an eight bit counter? Or will it simply synthesize into an 8 bit bus.
Thanks.