@internal<EOL>def reconnectUnitSignalsToModel(synthesisedUnitOrIntf, modelCls):
obj = synthesisedUnitOrIntf<EOL>subInterfaces = obj._interfaces<EOL>if subInterfaces:<EOL><INDENT>for intf in subInterfaces:<EOL><INDENT>reconnectUnitSignalsToModel(intf, modelCls)<EOL><DEDENT><DEDENT>else:<EOL><INDENT>s = synthesisedUnitOrIntf<EOL>s._sigInside = getattr(modelCls, s._sigInside.name)<EOL><DEDENT>
Reconnect model signals to unit to run simulation with simulation model
but use original unit interfaces for communication

:param synthesisedUnitOrIntf: interface where should be signals
    replaced from signals from modelCls
:param modelCls: simulation model form where signals
    for synthesisedUnitOrIntf should be taken