updated postload funcion to not break when top is unloaded

This commit is contained in:
canisio
2026-04-27 12:21:03 -03:00
parent 4216288e2a
commit b8d2d6a5dd
2 changed files with 7 additions and 2 deletions

Binary file not shown.

View File

@@ -1,5 +1,10 @@
%% Check if top model is loaded
if ~bdIsLoaded('soc_rfsoc_top')
load_system('soc_rfsoc_top');
end
%% Get parameters configured on the block
IntDecFactor = str2double(get_param([bdroot '/RF Data Converter'], ...
IntDecFactor = str2double(get_param(['soc_rfsoc_top' '/RF Data Converter'], ...
'interpolationMode')); % Interpolation and decimation factor
SamplesPerCycle = str2double(get_param([bdroot '/RF Data Converter'], ...
SamplesPerCycle = str2double(get_param(['soc_rfsoc_top' '/RF Data Converter'], ...
'dacSamplesPerCycle')); % samples per FPGA cycle