transaction recording

J

John Smith

Hi,

Is there any way to record and write transactions to a textfile in
modelsim? I found that is possible for verilog and for systemc but
nothing found for vhdl.

Thanks
 
P

Paul Uiterlinden

John said:
Hi,

Is there any way to record and write transactions to a textfile in
modelsim? I found that is possible for verilog and for systemc but
nothing found for vhdl.

What exactly do you mean with transactions?

In ModelSim there is the list window that shows all events on a signal with
the capability to save the results as a textfile in various forms. I'm not
sure if this is what you mean.

And of course there are the standard writeline and report statements to
produce output in a textfile.
 
J

JohnSmith

What exactly do you mean with transactions?

In ModelSim there is the list window that shows all events on a signal with
the capability to save the results as a textfile in various forms. I'm not
sure if this is what you mean.

And of course there are the standard writeline and report statements to
produce output in a textfile.

When I run my design, there is an unexpected value in a signal. I
would like to know who (which statement) is the responsible for that.

Thanks
 
M

Mike Treseler

JohnSmith said:
When I run my design, there is an unexpected value in a signal. I
would like to know who (which statement) is the responsible for that.

I would trace code and set breakpoints.

-- Mike Treseler
 
K

KJ

When I run my design, there is an unexpected value in a signal. I
would like to know who (which statement) is the responsible for that.

Well, that's an easy question to answer. Your design, you're
responsible.

If by 'unexpected' you mean an 'X' or 'U' or something like
that...then use the 'drivers' command. It lists all of the drivers of
a net, helps you find 'unexpected' cases of multiple drivers. Then
try using type 'std_ulogic' rather than 'std_logic' as your basic type
and you won't have to debug to find such errors ever again; the
compiler will flag multiple drivers as an error. Use std_logic only
for the few cases where it really is permissible to have multiple
drivers.

If by 'unexpected' you mean you got 'ABCD' on some data bus rather
than '1234' than you'll have to debug that yourself. Modelsim has all
of the debug utilities (wave, list, source code, dataflow windows,
breakpoints, etc.). Log all of the signals in your design at the
start of sim (command "log -r /*") and you'll have the complete
history of every change that ever occurs on every signal. Can't get
more complete than that.

KJ
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Similar Threads


Members online

No members online now.

Forum statistics

Threads
474,161
Messages
2,570,892
Members
47,431
Latest member
ElyseG3173

Latest Threads

Top