Driving output clockvars on clocking block event

In reply to Have_A_Doubt:

A related topic: SV: The best way to drive interface wires is to use clocking blocks.
Quote:
1800-2012 14.3 Clocking block declaration

  • A clockvar whose clocking_direction is inout shall behave as if it were two clockvars, one input and one output, having the same name and the same clocking_signal.
  • Reading the value of such an inout clockvar shall be equivalent to reading the corresponding input clockvar.
  • Writing to such an inout clockvar shall be equivalent to writing to the corresponding output clockvar.
    // Complete code example
    LinkedIn

// Original question: