Forum Discussion
Altera_Forum
Honored Contributor
9 years agoWhat's the difference between these two pieces of simple code?
Do you think there is a difference in functionality between these codes? always @(posedge clk)
begin
A<=0;
if (sel==0)
A<=in_u;
...
Altera_Forum
Honored Contributor
9 years agoBut how come the first one will not get an error since I am also assigning 0 to A initially. For the second case, I am just doing the same thing, but moving the resetting part to another sequential clock process.