Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

System Verilog rtl question . . . ! ! !

Status
Not open for further replies.

vizpal

Member level 2
Joined
Apr 26, 2007
Messages
44
Helped
1
Reputation
2
Reaction score
0
Trophy points
1,286
Activity points
1,519
Hi, I am working on a SV verification project. I want to access some internal rtl signals in my Testbench. How is this done ???

I came across "$root" in SV, but am not sure how to use it !!!

Can anybody explain me how this can be done...

If possible give examples...

Thanks in advance !!!! :D
 

if you wanted to access some variables inside the RTL from testbencs.
you have to do hireracial reference like
tb.dut.internalblock.signal
 

Can we define this as part of interface file ???? :idea:
 

mybe by adding testpoints...
 

Use hireracial names of signals

Top_Level.mid_Level.lower_level.Signal_name
 

but this is a very bad simulation style, because if the design has been synthesised, some signals will vanish, and you have to modify your testbench. The best way is to regard your design as a blackbox, and insert some properties and assertions in your rtl code to help you debug
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top