In reply to cgales:
Thanks for answering!
in the last point you raise you meant that in case of driving I need to use ‘<=’ instead of ‘=’?
If so, that’s exactly what I’m doing in my driver.
another question that I have regrading that(I saw different answer for this but I didn’t completely understood), why when we sampling we use blocking assignment and when we are driving we use non blocking assignments (I know it’s related to racing conditions but I can’t understand this completely, if you have some example I’d love to see it).
and last question regarding clocking block, when we sample a signal we sample it a bit before the clock edge, but what if in the signal’s value changes @(posedge)? it seems like we sample an old value of the signal, am I missing something?
Thanks again!