Accessing DUT internal signals in a SystemVerilog testbench...

O

okhajut

Guest
VHDL-2008 adds external names to allow hierarchical access to objects that were hidden by scoping rules of previous version of VHDL. This can only be used in testbench code and not synthesis code.

Does SystemVerilog offer a method whereby the user can access signals deep inside the DUT hierarchy to aid in testbench simulation?
 
On Sun, 20 Feb 2022 17:47:34 -0500, okhajut
<matrixofdynamism@googlemail.com> wrote:

VHDL-2008 adds external names to allow hierarchical access to objects
that were hidden by scoping rules of previous version of VHDL. This can
only be used in testbench code and not synthesis code.

Does SystemVerilog offer a method whereby the user can access signals
deep inside the DUT hierarchy to aid in testbench simulation?

Icarus Verilog allows testbench code to refer to internal variables of a
module, with a syntax like instancename.variablename

....if that\'s what you mean
 
On Monday, February 28, 2022 at 8:36:55 AM UTC, TJ Edmister wrote:
On Sun, 20 Feb 2022 17:47:34 -0500, okhajut
matrixof...@googlemail.com> wrote:

VHDL-2008 adds external names to allow hierarchical access to objects
that were hidden by scoping rules of previous version of VHDL. This can
only be used in testbench code and not synthesis code.

Does SystemVerilog offer a method whereby the user can access signals
deep inside the DUT hierarchy to aid in testbench simulation?
Icarus Verilog allows testbench code to refer to internal variables of a
module, with a syntax like instancename.variablename

...if that\'s what you mean

So this applies only to a specific simulator then?
 
On Sunday, 3/20/2022 8:40 AM, Lyba ashraf wrote:
On Monday, February 28, 2022 at 8:36:55 AM UTC, TJ Edmister wrote:
On Sun, 20 Feb 2022 17:47:34 -0500, okhajut
matrixof...@googlemail.com> wrote:

VHDL-2008 adds external names to allow hierarchical access to objects
that were hidden by scoping rules of previous version of VHDL. This can
only be used in testbench code and not synthesis code.

Does SystemVerilog offer a method whereby the user can access signals
deep inside the DUT hierarchy to aid in testbench simulation?
Icarus Verilog allows testbench code to refer to internal variables of a
module, with a syntax like instancename.variablename

...if that\'s what you mean

So this applies only to a specific simulator then?

No. It\'s been part of Verilog for a long time. In fact it\'s one reason
many people have used Verilog as a test bench language even when their
hardware is coded in VHDL.

--
Gabor
 
Gabor <nospam@nospam.com> writes:

No. It\'s been part of Verilog for a long time. In fact it\'s one
reason many people have used Verilog as a test bench language even
when their hardware is coded in VHDL.

Yes, I remember using hierarchical access back in the 90s in Verilog.

Even with VHDL, it was added in VHDL 2008, 14 years ago. Implementation
in simulators is probably less recent since implementing VHDL 2008 has
been rather slow.
 

Welcome to EDABoard.com

Sponsor

Back
Top