Forum Discussion
TuckerZ
Occasional Contributor
3 years agoClocking Block not working correctly?
Hello,
I am having a problem and want to make sure its not user error before chalking it up to a bug.
I am designing a testbench and checking the status of a set of signals that are contained i...
SyafieqS
Super Contributor
3 years agoNo, I'm not suggesting that you remove the clocking block entirely from your code. Clocking blocks are a powerful construct that can help ensure that signals are synchronized to the clock edge and can help prevent race condition
However, in some cases, you may want to use signals outside of the clocking block to avoid issues with signal updates. You can still use the clocking block to define the timing of the signals, but you can read the values of the signals outside of the block to ensure that you are getting the updated values.