startup funcion adapted to non-vivado machines
This commit is contained in:
@@ -1,8 +1,24 @@
|
|||||||
%% Startup Tasks
|
%% Startup Tasks
|
||||||
%
|
%
|
||||||
% Configure HDL Coder to use Xilinx Vivado for HDL workflows.
|
% Configure HDL Coder to use Xilinx Vivado for HDL workflows
|
||||||
|
% only when Vivado is installed on this machine.
|
||||||
%
|
%
|
||||||
hdlsetuptoolpath('ToolName','Xilinx Vivado', ...
|
|
||||||
'ToolPath','/tools/Xilinx/Vivado/2024.1/bin/vivado');
|
|
||||||
|
|
||||||
%%
|
vivadoPath = '/tools/Xilinx/Vivado/2024.1/bin/vivado';
|
||||||
|
|
||||||
|
if exist(vivadoPath, 'file') == 2
|
||||||
|
|
||||||
|
hdlsetuptoolpath( ...
|
||||||
|
'ToolName', 'Xilinx Vivado', ...
|
||||||
|
'ToolPath', vivadoPath);
|
||||||
|
|
||||||
|
fprintf('[FrFT Project] Vivado detected. HDL workflow enabled.\n');
|
||||||
|
|
||||||
|
else
|
||||||
|
|
||||||
|
warning([ ...
|
||||||
|
'[FrFT Project] Vivado not found.\n' ...
|
||||||
|
'HDL synthesis / bitstream generation disabled.\n' ...
|
||||||
|
'Project running in MATLAB/Simulink modeling-only mode.']);
|
||||||
|
|
||||||
|
end
|
||||||
Reference in New Issue
Block a user