Forum Discussion
qs071870
New Contributor
2 years agoHow do I restrict the "step" to my TB & source codes in Questasim?
Hi there,
I recently came across this function to show the execution of codes in Questasim. It's useful for small simulations for someone used to programming.
However with UVM testbenches, I see the UVM library codes most of the time. How do I change that function to limit print to my RTL and TB codes only? What is the reference I use to write such scripts?
proc linetrace1000 {} { for { set n 0} { $n < 1000 } {incr n} { step; see 0 }}
1 Reply
- TingJiangT_Intel
Contributor
You may try the following. "rtl" represent the path of your RTL file and "tb" for the path of your testbench:
proc linetrace1000 {} {
for {set n 0} {$n < 1000} {incr n} {
step
if {[file tail [pwd]] eq "rtl" || [file tail [pwd]] eq "tb"} {
puts "[pwd]: step $n"
}
}
}