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 ...
TingJiangT_Intel
Contributor
2 years agoYou 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"
}
}
}