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

Reply

VHDL - post-map simulation error

 
Thread Tools Search this Thread
Old 09-26-2003, 12:29 PM   #1
Default post-map simulation error


Hi all.

I have a vhdl module which works fine under behavioural simulation,
and even under post-translate simulation. But when I try a post-map
simulation, I get the following error:

# ** Warning: */X_FF SETUP Low VIOLATION ON I WITH RESPECT TO CLK;
# Expected := 0.34 ns; Observed := 0.019 ns; At : 1.2 ns
# Time: 1200 ps Iteration: 2 Instance:
/testbench/uut/go_int_2_1392

The results from the simulation are also wrong (I get a lot of 'X'
values). I am using Xilinx ISE 5.2, and Modelsim XE/II starter 5.6e.

Thanks.
Ciarán Hughes


=?ISO-8859-1?Q?Ciar=E1n_Hughes?=
  Reply With Quote
Old 09-26-2003, 05:24 PM   #2
Jim Lewis
 
Posts: n/a
Default Re: post-map simulation error
Ciarán,
> # ** Warning: */X_FF SETUP Low VIOLATION ON I WITH RESPECT TO CLK;
> # Expected := 0.34 ns; Observed := 0.019 ns; At : 1.2 ns
> # Time: 1200 ps Iteration: 2 Instance:
> /testbench/uut/go_int_2_1392


Your error occurs at 1.2 ns. When does reset happen?
In general you will get a number of messages before reset
and for the most part, they can be ignored.
In my testbenches, I print to the transcript window
when reset starts and when it is done. This way
I know which error messages can be safely ignored.

> The results from the simulation are also wrong (I get a lot of 'X'
> values). I am using Xilinx ISE 5.2, and Modelsim XE/II starter 5.6e.

This is actually a good thing. Registers in general
come up 'X' anyway. If this effects your simulation,
you are probably lacking reset on some registers that
really require it. This is one thing often masked
by behavioral simulations.

If at time 1.2 ns you are actually out of reset already,
then you may have a real problem. You need to look at your
worst case timing analysis on your place and routed design.
Will the design run at speed?

If your static timing analysis shows your design should
work, you could have a simulator rounding issue.
In this case, increase the simulator resolution
(by picking fs,10 fs, 100fs, ps, ...).

Also measure your clock waveform in the simulator window
to make sure it matches exactly what you would expect
(in modelsim use two cursors and the align with edge
functionality to get an accurate measure).

If you still have problems, try adding 1 ns to the
period of your clock. If this causes the design
to work, and your worst case static timing analysis
says the design works, you need to talk to your
AE.


Cheers,
Jim
--
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~
Jim Lewis
Director of Training private.php?do=newpm&u=
SynthWorks Design Inc. http://www.SynthWorks.com
1-503-590-4787

Expert VHDL Training for Hardware Design and Verification
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ ~~~~~~~~~~~

Ciarán Hughes wrote:

> Hi all.
>
> I have a vhdl module which works fine under behavioural simulation,
> and even under post-translate simulation. But when I try a post-map
> simulation, I get the following error:
>
> # ** Warning: */X_FF SETUP Low VIOLATION ON I WITH RESPECT TO CLK;
> # Expected := 0.34 ns; Observed := 0.019 ns; At : 1.2 ns
> # Time: 1200 ps Iteration: 2 Instance:
> /testbench/uut/go_int_2_1392
>
> The results from the simulation are also wrong (I get a lot of 'X'
> values). I am using Xilinx ISE 5.2, and Modelsim XE/II starter 5.6e.
>
> Thanks.
> Ciarán Hughes




Jim Lewis
  Reply With Quote
Old 09-29-2003, 12:41 PM   #3
Ciar?n Hughes
 
Posts: n/a
Default Re: post-map simulation error
Thanks Jim.

Your comments really helped me find out that the problem was with the
test-benches I have written, and not the VHDL modules. I have taken to
using the test-bench waveforms in Xilinx ISE, and things are running
smoothly. I am only new to VHDL, and so probably don't understand the
"ins-and-outs" of test-benches.

Thanks again
Ciarán


Ciar?n Hughes
  Reply With Quote
Old 09-30-2003, 12:35 AM   #4
Wong
 
Posts: n/a
Default Re: post-map simulation error
(Ciar?n Hughes) wrote in message news:<. com>...
> Thanks Jim.
>
> Your comments really helped me find out that the problem was with the
> test-benches I have written, and not the VHDL modules. I have taken to
> using the test-bench waveforms in Xilinx ISE, and things are running
> smoothly. I am only new to VHDL, and so probably don't understand the
> "ins-and-outs" of test-benches.
>
> Thanks again
> Ciarán


Hi,
But the warning already told us that you have a 'setup time
violation' on the FF (go_int_2_1392). Though you got your right
testbench, I don't know whether you will see this again. By shifting
the signal's timing in your testbench, it would help you a lot. Please
correct me if I am wrong.
Have a nice day !


Wong
  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
Need help on Modelsim VHDL syntax? ASAP:) kaji General Help Related Topics 0 03-14-2007 10:43 PM
Need help on a Modelsim VHDL Syntax? ASAP:) kaji Software 0 03-14-2007 10:43 PM
Need Help on a Modelsim VHDL Syntax....ASAP:) kaji Hardware 0 03-14-2007 10:41 PM
Parser Error Message: Could not load type 'Microsoft.SharePoint.ApplicationPages.Glob rasmita General Help Related Topics 0 09-05-2006 05:49 AM
Parser Error Message: Could not load type 'Microsoft.SharePoint.ApplicationPages.Glob rasmita General Help Related Topics 0 09-05-2006 05:46 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