I would like to create a central bus initialization for all harnesses i use in my testmanager.
Normally the bus would be initialized in the test sequence:
If i would like to change the initializiation of the bus, i would need to change every testsequnce in the harnesses.
Is there a general solution like
Bus1 = InitializeBusFunction(Bus1);
function [outputBus] = InitializeBusFunction(inputBus)
outputBus = inputBus;
outputBus.Signal1 = 2;
This creates an error "Read before write". So what are other possible solutions?