Reading internal signals through a testbench.

Hi all, Through a testbench (Verilog or VHDL), how do I read the values of signals of a sub module through a top module? This is required to match and assert if the program is working correctly. Please help. Thank you.

Best Regards,

Reply to
CODE_IS_BAD
Loading thread data ...

One possibility could be to route the internal signal to an output pin.=20

Rgds Andr=E9

Reply to
ALuPin

Reply to
Andrew FPGA

Signals defined in a VHDL package can be global in scope.

-Jeff

Reply to
Jeff Cunningham

In Verilog it's even easier. You can specify any signal using the module hierarchy and "." as a separator like:

top.instance1.signame

Reply to
Gabor

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.