forked from casper-astro/mlib_devel
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathstartup.m
More file actions
35 lines (33 loc) · 1.33 KB
/
Copy pathstartup.m
File metadata and controls
35 lines (33 loc) · 1.33 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
warning off Simulink:SL_SaveWithParameterizedLinks_Warning
warning off Simulink:SL_LoadMdlParameterizedLink
warning off Simulink:Engine:SaveWithParameterizedLinks_Warning
warning off Simulink:Engine:SaveWithDisabledLinks_Warning
warning off Simulink:Commands:LoadMdlParameterizedLink
if length(getenv('XILINX_PATH')) == 0
setenv('XILINX_PATH', regexprep(getenv('XILINX'),'/ISE$',''));
end
addpath([getenv('XILINX_PATH'), '/ISE/sysgen/util/']);
addpath([getenv('XILINX_PATH'), '/ISE/sysgen/bin/lin64']);
addpath([getenv('MLIB_DEVEL_PATH'), '/casper_library']);
addpath([getenv('MLIB_DEVEL_PATH'), '/xps_library']);
xlAddSysgen([getenv('XILINX_PATH'), '/ISE'])
sysgen_startup
% If CASPER_BACKPORT is in the environment with non-zero length, then force
% block reuse and do NOT preload CASPER libraries. This prevents problems when
% saving libraries in older Simulink formats (aka "backporting"), but should
% NOT be used for normal development.
if length(getenv('CASPER_BACKPORT')) > 0
casper_force_reuse_block = 1;
else
load_system('casper_library');
load_system('xps_library');
end
casper_startup_dir = getenv('CASPER_STARTUP_DIR');
if ~isempty(casper_startup_dir)
cd(casper_startup_dir);
% If a 'casper_startup.m' file exists, run it!
if exist('casper_startup.m', 'file')
run('./casper_startup.m');
end
end
clear casper_startup_dir;