function paritytimescale(mode)

modelName = gcs;

assignin('base','Ts', 10);
set_param([modelName '/Value of Ts'],'MaskDisplay','disp([''Ts = '',num2str(evalin(''base'',''Ts''))])');

switch mode
    case 'absolute'
        set_param([modelName '/HDL Cosimulation'],'TimingMode','ns');
        set_param([modelName '/HDL Cosimulation'],'TimingScaleFactor','1');
    case 'relative'
        set_param([modelName '/HDL Cosimulation'],'TimingMode','Tick');
        set_param([modelName '/HDL Cosimulation'],'TimingScaleFactor','1');
end