Forum Discussion
Altera_Forum
Honored Contributor
15 years agosimulation result of "case" is one clk delayed?
totally, in the module "vnp" there are 256(parameter N=256) "cnt"s to deal with. every "cnt" should go through a "Cycle". One Cycle contains 3 steps. So the value of "Cycle" goes from 2'...
Altera_Forum
Honored Contributor
15 years ago --- Quote Start --- as you see Mess_Buff_a[0]<=Mess_Din should be run when Cycle==2'b00 but it happens at Cycle==2'b01 --- Quote End --- It doesn't happen at Cycle == 1. Mess_Buff_a[0] is updated in the same clock cycle when Cycle is incremented from 0 to 1, as your code commands. This is how synchronous logic works.