class TestBlk():
def block_connect(self, reset, clk, stimulus):
test=Signal(bool(1))
My testbench needs to monitor the signal changes of the variable test from outside this class and inject some stimulus.
How can i access the variable test from outside this class to monitor the signal changes ? Is it possible?
yes, in fact i think it is a python problem. Iām a bit new to python, hence the query. Is there any solution to this currently ? With system verilog i think there is a possibility to access signals inside a hierarchical module with a ā.ā operator. This makes it monitoring hierarchial signals from testbenches very easy.