- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Link Copied
4 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Maybe defining sensitivity list may help you out:
always@(*)- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Which block I defined sensitivity list, it does not run. :confused:
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you are using the "always" block in a wrong way.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page