Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Modelsim Delta Races

 
Thread Tools Search this Thread
Old 03-15-2006, 03:35 PM   #1
Default Modelsim Delta Races


Hi All,

I'm hit a bit of a brick wall with a simulation problem I'm encountering.

When simulating my (VHDL) design, Modelsim's Wave window is showing a
'zero-width' (you can't zoom in on it) glitch on one of the signals.

If I study the List window I can see that the signal (pcwen) does indeed
toggle but during a delta cycle.

ps boardclk regfede_opa portaadd
delta regexwb_opa portawen
cu_regfilewen pcwen
cu_regfiledinselect

6250000 +1 1 0000010 0000010 1 0 0000010 1 0
6250000 +3 1 0000010 0100000 1 0 0000010 1 0
6250000 +4 1 0000010 0100000 0 1 0000010 0 0
6250000 +5 1 0000010 0100000 0 1 0100000 0 0
6500000 +1 0 0000010 0100000 0 1 0100000 0 0
6750000 +1 1 0000010 0100000 0 1 0100000 0 0
6750000 +4 1 0000010 0100000 1 0 0100000 1 0
6750000 +5 1 0000010 0100000 1 0 0000010 1 1 <---
6750000 +6 1 0000010 0100000 1 0 0000010 1 0
7000000 +1 0 0000010 0100000 1 0 0000010 1 0
7250000 +1 1 0000010 0100000 1 0 0000010 1 0
7250000 +3 1 0000010 0000000 1 0 0000010 1 0
7250000 +4 1 0000010 0000000 0 1 0000010 0 0

I'm guessing that this is due a race condition whilst the simulator
resolves the final signal values after the clock pulse. My design is
synchronous.

My question is, does this suggest badly written VHDL, or is this
something that happens with this type of simulator?

Many Thanks
Andy


Andrew Greensted
  Reply With Quote
Old 03-15-2006, 05:25 PM   #2
Ben Jones
 
Posts: n/a
Default Re: Modelsim Delta Races

"Andrew Greensted" <> wrote in message
news:dv9c9s$m2$...
> I'm hit a bit of a brick wall with a simulation problem I'm encountering.
> When simulating my (VHDL) design, Modelsim's Wave window is showing a
> 'zero-width' (you can't zoom in on it) glitch on one of the signals.


Is that actually a problem? I mean, how much did it hurt when you hit this
wall?

> If I study the List window I can see that the signal (pcwen) does indeed
> toggle but during a delta cycle.


> I'm guessing that this is due a race condition whilst the simulator
> resolves the final signal values after the clock pulse. My design is
> synchronous.
> My question is, does this suggest badly written VHDL, or is this
> something that happens with this type of simulator?


No, this happens all the time. It just suggests that your "pcwen" signal is
combinatorial (i.e. it's not the output of a register or other synchronous
element).

Modelsim puts it there to tell you that in real life, you might get a glitch
under these circumstances (depending on exactly how your logic is
implemented and what the relative timings are). Only you, the designer, can
tell whether this would cause problems or not. (Hint: if you're using pcwen
as the clock input to a RAM or a register, you probably have a problem.
Otherwise, chances are you don't.)

Cheers,

-Ben-




Ben Jones
  Reply With Quote
Old 03-15-2006, 06:49 PM   #3
Andy
 
Posts: n/a
Default Re: Modelsim Delta Races
>>I'm hit a bit of a brick wall with a simulation problem I'm encountering.

> Is that actually a problem? I mean, how much did it hurt when you hit this
> wall?


Not physically, just mentally!!

>>My question is, does this suggest badly written VHDL, or is this
>>something that happens with this type of simulator?


> No, this happens all the time. It just suggests that your "pcwen" signal is
> combinatorial (i.e. it's not the output of a register or other synchronous
> element).


Yep, it is a combinatorial signal.

I guess I'll just have to live with it. The glitch just stands out, and
looks like a problem. It would be nice if the wave window, like the list
window, had an option to only show signal values after the delta cycles
have complete.

Ben, your response encourages me, but I might still have a bit of a look
to see if there's someway to avoid the glitch. But, perhaps I'm just
being over cautious....

Cheers
Andy


Andy
  Reply With Quote
Old 03-15-2006, 10:15 PM   #4
Nicolas Matringe
 
Posts: n/a
Default Re: Modelsim Delta Races
Andy a écrit :

> I guess I'll just have to live with it. The glitch just stands out, and
> looks like a problem. It would be nice if the wave window, like the list
> window, had an option to only show signal values after the delta cycles
> have complete.
>
> Ben, your response encourages me, but I might still have a bit of a look
> to see if there's someway to avoid the glitch. But, perhaps I'm just
> being over cautious....



I am afraid you can't do much about this glitch. If you combine two FF
outputs you will have a glitch because your (real world) outputs can not
toggle exactly at the same time. However, in synchronous design this is
not a problem because the glitch will have disapppeared before the next
clock edge.

Nicolas
(completely absurd e-mail address, do not reply directly)


Nicolas Matringe
  Reply With Quote
Old 03-16-2006, 07:51 AM   #5
Thomas Stanka
 
Posts: n/a
Default Re: Modelsim Delta Races

Andy schrieb:
> Yep, it is a combinatorial signal.
>
> I guess I'll just have to live with it. The glitch just stands out, and
> looks like a problem. It would be nice if the wave window, like the list
> window, had an option to only show signal values after the delta cycles
> have complete.


Maybe you could save such glitches by using the after clause.
Such glitches are often harmless but may sometimes result in a mismatch
between simulation and synthesis, so you its ever worth to have a
detailed look on such problems.

bye Thomas



Thomas Stanka
  Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
Error in Modelsim 6.0a boitsas Software 1 10-26-2009 05:36 AM
New releases: Reaping, Delta Farce & Threepenny Opera; Updated complete downloadable R1 DVD DB & info lists Doug MacLean DVD Video 0 07-10-2007 05:43 AM
simprim problems on modelsim saiyijinprince Hardware 2 04-05-2007 02:24 PM
Searching horse races on DVD Wolfgang Zaunschirm DVD Video 0 04-24-2006 10:29 PM
Walmart Bin ~ 'Mclintock' by Delta Willie Buck Merle DVD Video 2 10-05-2003 05:44 AM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46