diff --git a/remotesyn/toolchains/util_ISE/coregen.py b/remotesyn/toolchains/util_ISE/coregen.py index 404b723..1b8d5c6 100644 --- a/remotesyn/toolchains/util_ISE/coregen.py +++ b/remotesyn/toolchains/util_ISE/coregen.py @@ -10,7 +10,7 @@ def coregen(config, target, log, subprocesses, prefix='.') -> int: package = config.get(f'target.{target}', 'package', fallback='') speedgrade = config.get(f'target.{target}', 'speedgrade', 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') 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') except FileNotFoundError: pass + try: + shutil.copy(f'{build_dir}/{cname}.ucf', f'{out_dir}/{cname}.ucf') + except FileNotFoundError: + pass else: return res