In reply to ben@SystemVerilog.us:
I updated the eda link :: edacode
The updated value of framelength via function trigger_cg isn’t reflected at the additional $display report at the end of the sequence as it’s preponed value is 0
Seems like tool issue since the $display() aren’t reported from left to right which impacts the value sampled .