Altera_Forum
Honored Contributor
15 years agoTrack signal in Verilog testbench for limited time
Hi everybody,
And TGIF !! (Thank goodness its friday, I see a beer in my future !!). A Verilog question; I want to track a signal at every clock edge in my testbench, but only when I activate a "switch" variable. Such as: v\:* {behavior:url(#default#VML);} o\:* {behavior:url(#default#VML);} w\:* {behavior:url(#default#VML);} .shape {behavior:url(#default#VML);} st1\:*{behavior:url(#default#ieooui) } #100 activate_signal_tracking = 1'b1; test_status = signal_to_track; #100 activate_signal_tracking = 1'b0; So I want test_status to get the value of signal_to_track at every clock edge, but only while the activate_signal_tracking is set. It would be good be able to track different signals also. Not quite to simple I have found after trying various ideas, seems like I need a verilog task which I turn on and off somehow ? The monitor statement will print changes of the variable to the screen, but I want to track the test status. Thanks a bunch for the help, whoever gives the right answer and is close to Freiburg Germany gets a beer from me tonight, lol !! :) Have a good weekend ! Eric