Fixedcoregen ISE

This commit is contained in:
2025-10-19 15:36:10 +02:00
parent ce90d68554
commit 58a759e00c

View File

@ -10,7 +10,7 @@ def coregen(config, target, log, subprocesses, prefix='.') -> int:
package = config.get(f'target.{target}', 'package', fallback='') package = config.get(f'target.{target}', 'package', fallback='')
speedgrade = config.get(f'target.{target}', 'speedgrade', fallback='') speedgrade = config.get(f'target.{target}', 'speedgrade', fallback='')
coregen_opts = config.get(f'target.{target}', 'coregen_opts', fallback='') coregen_opts = config.get(f'target.{target}', 'coregen_opts', fallback='')
files_def = config.get(f'target.{target}', 'files_def', fallback='').split() files_def = config.get(f'target.{target}', 'files_xco', fallback='').split()
build_dir = config.get(f'project', 'build_dir', fallback='build') build_dir = config.get(f'project', 'build_dir', fallback='build')
out_dir = config.get(f'project', 'out_dir', fallback='out') out_dir = config.get(f'project', 'out_dir', fallback='out')
@ -72,6 +72,10 @@ def coregen(config, target, log, subprocesses, prefix='.') -> int:
shutil.copy(f'{build_dir}/{cname}.xco', f'{out_dir}/{cname}.xco') shutil.copy(f'{build_dir}/{cname}.xco', f'{out_dir}/{cname}.xco')
except FileNotFoundError: except FileNotFoundError:
pass pass
try:
shutil.copy(f'{build_dir}/{cname}.ucf', f'{out_dir}/{cname}.ucf')
except FileNotFoundError:
pass
else: else:
return res return res