Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

how to see signals details in modelsim main using script?

Status
Not open for further replies.

LatDrIvE

Member level 4
Joined
Nov 28, 2002
Messages
68
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Location
athens
Activity points
415
Hello all,

I am running a 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.

thank you
 

Re: how to see signals details in modelsim main using scrip

Hi,
what are you using? vhdl or verilog? you can do what you have asked but you will have to writa a corresponding code. example:
Code:
//Display the value of 'data_out' everytime 'success' is received
always @ (posedge load_op_reg)
begin
  $display("Time = %0d : op_reg[8:1] = %d", $time,mem[xbytecounter]);
end
To see the full verilog file from where it is taken see:
http://www.vlsiip.com/verilog/rx_tb.v
If you are using vhdl let me know and I wil tell you how to do it. In vhdl its simpler to dump these things directly into a txt file(than to disply it on modelsim), which wont be visible on modelsim window.
Kr,
Avi
http://www.vlsiip.com
 

Re: how to see signals details in modelsim main using scrip

thanx Avi:)
I am using VHDL except a little part in verilog. But the signal want to trace are in VHDL part.
 

Re: how to see signals details in modelsim main using scrip

Hi,
If you are using vhdl its easier to dump your variables into a file directly. You will have to write a code. Here is an example of a vhdl file which writes txt files while simulation is running.
http://www.vlsiip.com/vhdl/fileio.vhd
Look for the process called write_file_p in the above vhdl file. And DO NOT forget to include std.textio.all and use ieee.std_logic_textio.ALL as is present in the above vhdl file
Hope it helps,
Kr,
Avi
http://www.vlsiip.com
 

    LatDrIvE

    Points: 2
    Helpful Answer Positive Rating
Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top