Forum Discussion
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"
}
}
}