- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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 }}
Link Copied
1 Reply
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
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"
}
}
}
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page