Forum Discussion
Altera_Forum
Honored Contributor
11 years ago --- Quote Start --- Hi, Tricky Thanks for reply. For my understanding, if I didn't assign fifo_wreq to 0 in s2, suppose fifo_wreq value is followed by the default value as stated 0. Am I right? --- Quote End --- No, once you assign a value to a variable, it stays at that value until it is assigned again --- Quote Start --- May I know how to prevent the latch happen? --- Quote End --- Ensure all variables are assigned in all cases in non-clocked always blocks. They should preferably be assigned with non-blocking assignments..