updated postload funcion to not break when top is unloaded
This commit is contained in:
Binary file not shown.
@@ -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
|
%% 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
|
'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
|
'dacSamplesPerCycle')); % samples per FPGA cycle
|
||||||
Reference in New Issue
Block a user