Commit 6dd1f4d3 authored by Dallin Wood's avatar Dallin Wood
Browse files

made changes so it actually saves the module name as part of the save state.

parent 04f28ada
......@@ -50,7 +50,8 @@ function [] = rfdc_mask(gcb,force)
set_param(gcb, 'LinkStatus', 'inactive');
msk = Simulink.Mask.get(gcb);
model_name = bdroot;
[gen, tile_arch, fs_max, fs_min] = get_rfsoc_properties(gcb);
......@@ -127,7 +128,7 @@ function [] = rfdc_mask(gcb,force)
end
% check if the state has changed
if ~same_state(gcb,'Tiles',tiles,'Slices',slices,'TileArch',tile_arch) || (strcmp(model_name, bdroot))
if ~same_state(gcb,'Tiles',tiles,'Slices',slices,'TileArch',tile_arch, 'ModelName', model_name)
for tile = 224:231
QTConf = msk.getDialogControl(sprintf('t%d_QuadTileConfig',tile));
DTConf = msk.getDialogControl(sprintf('t%d_DualTileConfig',tile));
......@@ -155,7 +156,7 @@ function [] = rfdc_mask(gcb,force)
end
end
end
% validate use of MTS for each tile
% adc tiles
mts_adc = zeros(4,1);
......@@ -293,14 +294,13 @@ function [] = rfdc_mask(gcb,force)
end
end % t = tiles
model_name = base_gw_name;
% save 'tiles' and 'slices' as a state to compare against later
save_state(gcb,'Tiles',tiles,'Slices',slices,'TileArch',tile_arch);
save_state(gcb,'Tiles',tiles,'Slices',slices,'TileArch',tile_arch, 'ModelName', model_name);
% delete interfaces for disabled tiles
clean_blocks(gcb);
model_name = bdroot;
end % ~same_state
% axis_clk_valid = validate_tile_clocking(gcb);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment