startup funcion adapted to non-vivado machines

This commit is contained in:
canisio
2026-05-22 15:42:32 -03:00
parent 48bbb7102a
commit 99ffaa1bfc

View File

@@ -1,8 +1,24 @@
%% 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