Forum Discussion
Altera_Forum
Honored Contributor
13 years agoAlways block in Modelsim
Hi everyone,
I have 2 Always blocks, but one of them does not run. Can you help me make it run?
always
begin
// Code runs
end
always
begin
// Code does not run
end
4 Replies
- Altera_Forum
Honored Contributor
Maybe defining sensitivity list may help you out:
always@(*) - Altera_Forum
Honored Contributor
Which block I defined sensitivity list, it does not run. :confused:
- Altera_Forum
Honored Contributor
you are using the "always" block in a wrong way.
- Altera_Forum
Honored Contributor
Always blocks will be evaluated by Modelsim according to Verilog rules. Because you didn't post any actual code, we could only guess about the specific problem. But this isn't a riddle forum.
For the time being, I want to suggest the classical Cummings paper that addresses many problems around always blocks. http://csg.csail.mit.edu/6.375/6_375_2007_www/papers/cummings-nonblocking-snug99.pdf