i have to study TCL SCRIPTING and i have to verify the VHDL codes, i
have learnt this lannguage but have to verify the vhdl code using TCL
SCRIPT. can any one out here please tell me how to go about. Any link
or pdf doc. that explains how to do the same.
suppose i have to verify a counter. i have to force values to teh
signal, get it on the waveform. the entire process that a testbench
does, has to be performed in TCL SCRIPT...
i hope query is well explained.
thanks
HAPPY NEW YEAR TO ALL
Rob
"AAA" <abrar_a...@yahoo.co.in> wrote in message news:1135946281.8...@g44g2000cwa.googlegroups.com...
it would be great n really appreciated if you help me out..
Thanks..
thanks Rob
take care Rob...
1. One can do a "force clk 1, 10, 0, 20" (Or some thing similar) to
drive a clk.
2. Do a force/deposit to D input as required.
3. All of these commands can be put in a TCL file/do file and be given
to vsim -do ..
Good Luck
Ajeetha
www.noveldv.com
Good Luck
Ajeetha
Andy
set d "1"
run 200
set d "0"
run 300
this is a basic TCL script in which we carry on the stimulation. this
can be done in testbench itself. so y need script. but few other
commands like "STEP" carry on line by lione simulation that makes it
easy to verify the code. "TEST" comapres values with expected values,
and many other such commands that actually help in better verification
of the design.
so any one.. pleaseeeeeeeee help me. suppose i have a d flip-flop code
in vhd (dff.vhd). i have to verify this code using a script language.
how should i start coding in TCL. i seem to have a starting problem
here...... well.. if i get the basics right, i can proceed from here...
so please any one be helpfull and sincere tell me how to go about. what
commands are suposed to invoke the design and what actually is needed
from me being a verification engineer...
THANKS
Good Luck
Ajeetha
www.noveldv.com
P.S. My consultancy company, CVC can offer an introduction to
verification course, contact me @ gmail.com <AT> ajeetha for details -
this will be a paid one though (not FREE).
The main tool for this is vhdl's assert statement that can output
status or warnings, and even break or stop the simulation based on any
condition in the simulation. These assertions can be embedded in
particular models of the testbench, or even in the RTL code being
tested, so that they have visibility of conditions that would be very
difficult to duplicate in a script. Rather than having the limitations
of the scripting language, you have the full breadth and power of the
vhdl programming language to implement the stimulus and the
verification.
Sorry, I don't use enough commands in any simulator other than run, and
setting a few breakpoints, or selecting signals to be watched or
displayed in waveforms while I'm debugging the testbench/UUT to be able
to help you. All I'm saying is that, unless this is for an assignment
that stipulates using the simulator commands to verify the design,
you're much better off learning to do it in native vhdl. The only
reason for such an assignment is so you'll later be able to see how
much better writing self-checking testbenches is.
Try inserting some "assert false;" statements in your vhdl code (these
will always stop), then play with the condition so that it only stops
(and prints a message) if something is wrong (unexpected value, etc.).
Andy
thanks
Testbenches are the preferred way of verfiying a design.
With a test bench, you don't need a script. Just run the simulation,
and it tells you if you had any errors, and stops when it is done. If
you had errors, the assertions can stop the simulator then as well, so
you can investigate (step, check values, etc.)
In fact, for regression testing (testbench is already debugged, your
just trying to verify that minor design changes have not introduced
other errors), you can speed up the simulation by disabling all the
hooks for debugging, etc.
Andy
thanks for your post andy, its certainly appreciated.
http://cslu.cse.ogi.edu/toolkit/old/old/documentation/cslurp/wincslurp/node26.html
Now, with this and Modelsim's documentation you should be able to do
what you have asked.
Good Luck
Ajeetha
www.noveldv.com
i have used a F-F as an example. in general i have to capture the
output of any DUT.
thanks a lot
bye
----
examine /top/bus1
Returns the value of /top/bus1.
---
Also see:
http://www.altera.com/support/examples/tcl/counter_tcl.html
HTH
Ajeetha
www.noveldv.com
thanks.
and yes one more thing, does VCD commands help for what i'am doing.
tc
hope to get ur response soon. and i'am stuck badly and running short of
time. please get me out of this.
Try:
set tcl_count_output [examine /dut/count_var]
This should get the value of count_var in DUT to a TCL var of name
tcl_count_output.
You may have to wrap this inside a "when" TCL command (Modelsim
specific) to get updates regularly.
[Shameless plug-in:]
>> u earlier spoke about a course, is it in INDIA-BANGALORE. do let me
know.
Yes, it is. Indeed I'm having several verification related courses in
mind/pipeline and am looking for potential customer(s). I plan to work
on need basis - if a customer says a need for a specific course, I can
work with them and tune it for them.
If interested, feel free to contact me @ gmail.com<>ajeetha
[/End of plug-in]
Good Luck
Ajeetha
www.noveldv.com
god bless