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

Reply

VHDL - how to see signals details in modelsim main using script?

 
Thread Tools Search this Thread
Old 11-20-2007, 01:04 PM   #1
Default how to see signals details in modelsim main using script?


Hello all,

I am running a vhdl design in modelsim and i would like some of these
signals somehow to be displayed as the following :

<At T=159 ns dat a_in <= "0000">

in the modelsim main window and if i can grab these results and write
them simultaniously in a .TXT file. how i can do that? as far as i
remember in the past it was a .do file .

thank you


xenix
  Reply With Quote
Old 11-20-2007, 02:57 PM   #2
Jonathan Bromley
 
Posts: n/a
Default Re: how to see signals details in modelsim main using script?
On Tue, 20 Nov 2007 05:04:23 -0800 (PST), xenix <>
wrote:

>Hello all,
>
>I am running a vhdl design in modelsim and i would like some of these
>signals somehow to be displayed as the following :
>
><At T=159 ns dat a_in <= "0000">
>
>in the modelsim main window and if i can grab these results and write
>them simultaniously in a .TXT file. how i can do that? as far as i
>remember in the past it was a .do file .


Write a piece of Tcl. Use "echo" to send stuff to the transcript
window rather than Tcl's regular "puts", because "puts" sends
things to the OS console, and you want it to go to ModelSim's
transcript window.

set text_file_handle [open "RESULT.TXT" w]
...
set T [scaleTime $now 1ns]
set a_in [examine /top/dut/a_in]
set message [format {<At T=%s a_in="%s">} $T $a_in]
echo $message
puts $text_file_handle $message
...
close $text_file_handle

Save your Tcl script in a file (conventionally, use either
the .do or .tcl extension) and then use ModelSim's [do]
command, or the traditional Tcl [source] commmand, to
execute it.
--
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.


Jonathan Bromley
  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
ASP.Net 2.0 - Want details view but need control & placement of textboxes etc. daveydave999 Software 0 10-05-2007 04:12 PM
simprim problems on modelsim saiyijinprince Hardware 2 04-05-2007 02:24 PM
WWW:ROTK Full Details Tom Woodward DVD Video 9 03-07-2004 09:09 PM
SCSI Long Cables, High Voltage Differential Signals and Data Skew? Will Hay A+ Certification 0 03-04-2004 06:29 PM




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