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

Reply

VHDL - [modelsim] displaying signals from inside components

 
Thread Tools Search this Thread
Old 06-23-2006, 02:11 PM   #1
Default [modelsim] displaying signals from inside components


Hi there,

I wanted to add a signal to default graph I get when I run "Simulate
Behavioral Model" from Xilinx Project Navogator. I ran a test bench in
ModelSim (invoked ModelSim from Xilinx Project Manager), saved the
generated wave.do file and added a line which, as I undestand it, should
add an signal to the graph:

onerror {resume}
quietly WaveActivateNextPane {} 0
add wave -noupdate -format Logic /rounds_tb_vhd/clk
# more add wave ...
add wave -noupdate -format Literal /rounds_tb_vhd/round
add wave -noupdate -format Literal /rounds_tb_vhd/uut/rnd_n/subkey
TreeUpdate [SetDefaultTree]
WaveRestoreCursors {{Cursor 1} {0 ps} 0}
configure wave -namecolwidth 212
# more configures...
configure wave -timeline 0
update
WaveRestoreZoom {0 ps} {1050 ns}

The signal I added is:
/rounds_tb_vhd/uut/rnd_n/subkey
The only difference between that signal and the rest of signals is that
this one is not from unit under test but from a component inside unit
under test. When I executed my new wave.do, I get a "-No Data-" for
"subkey" signal. What did I do wrong?

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"


Nikola Skoric
  Reply With Quote
Old 06-23-2006, 02:38 PM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: [modelsim] displaying signals from inside components

On Fri, 23 Jun 2006 15:11:04 +0200, Nikola Skoric <nick->
wrote:


> When I executed my new wave.do, I get a "-No Data-" for
>"subkey" signal. What did I do wrong?


You probably added the waves AFTER the simulation had run.
ModelSim by default logs only those signals that are already
in the wave window. After you've added the new waveform,
restart and re-run the sim:

restart -f; run -all

It's also possible that you have visibility off; take a look
at the documentation for the +acc visibility option
in the compiler.
--
Jonathan Bromley, Consultant

DOULOS - Developing Design Know-how
VHDL * Verilog * SystemC * e * Perl * Tcl/Tk * Project Services

Doulos Ltd., 22 Market Place, Ringwood, BH24 1AW, UK

http://www.MYCOMPANY.com

The contents of this message may contain personal views which
are not the views of Doulos Ltd., unless specifically stated.
  Reply With Quote
Old 06-23-2006, 03:10 PM   #3
Nikola Skoric
 
Posts: n/a
Default Re: [modelsim] displaying signals from inside components

In article <>,
says...
> On Fri, 23 Jun 2006 15:11:04 +0200, Nikola Skoric <nick->
> wrote:
>
>
> > When I executed my new wave.do, I get a "-No Data-" for
> >"subkey" signal. What did I do wrong?

>
> You probably added the waves AFTER the simulation had run.
> ModelSim by default logs only those signals that are already
> in the wave window. After you've added the new waveform,
> restart and re-run the sim:
>
> restart -f; run -all


Hm, when I execute "run -all", I don't get the prompt back and
everything just hangs. But, nevermind, I figured out which file ModelSim
executes to make the graph (fdo file) so now I just add the signal
there. Thanks anyway.

--
"Now the storm has passed over me
I'm left to drift on a dead calm sea
And watch her forever through the cracks in the beams
Nailed across the doorways of the bedrooms of my dreams"
  Reply With Quote
Old 06-23-2006, 06:05 PM   #4
Mike Treseler
 
Posts: n/a
Default Re: [modelsim] displaying signals from inside components

Nikola Skoric wrote:

> Hm, when I execute "run -all", I don't get the prompt back and
> everything just hangs. But, nevermind, I figured out which file ModelSim
> executes to make the graph (fdo file) so now I just add the signal
> there. Thanks anyway.



I would get out of Project Navigator and run Modelsim directly.
Mr. Bromley's answer is the correct solution
to your problem, but you have more than one problem.

Here is an example of how to construct a path to a DUT waveform:
http://home.comcast.net/~mike_treseler/uart.do

If that doesn't do the trick,
please spare me the "thanks anyway"

-- Mike Treseler
  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
Forum Jump