@@ -261,8 +261,8 @@ def build(*config_files, name=None, config=None):
261261 1. Load and enrich config
262262 2. Invokes :func:`convert` to get generated solver in verilog.
263263 3. Create build directory for synthesis with OPAE tools.
264- 4. Start synthesis and fitting.
265- 5. Preserving solver.v
264+ 4. Preserving solver.v
265+ 5. Start synthesis and fitting.
266266 6. Prepend afu with authentication blocks (with an empty signature chain)
267267 7. Create solver file by combining gbs file and solver config.
268268 :return:
@@ -288,7 +288,11 @@ def build(*config_files, name=None, config=None):
288288 filelist_path = os .path .join (generator_path , 'static' , 'filelist.txt' )
289289 subprocess .run (['afu_synth_setup' , '--sources' , filelist_path , build_path ]).check_returncode ()
290290
291- # 4. Start synthesis and fitting.
291+ # 4. Preserving solver.v
292+ generated_solver_path = os .path .join (generator_path , 'out' , 'solver.v' )
293+ shutil .copy (generated_solver_path , build_path )
294+
295+ # 5. Start synthesis and fitting.
292296 log_file_path = os .path .join (build_path , 'quartus-run.log' )
293297 with open (log_file_path , "w" ) as log_file :
294298 subprocess .run (
@@ -299,10 +303,6 @@ def build(*config_files, name=None, config=None):
299303 stderr = subprocess .STDOUT
300304 ).check_returncode ()
301305
302- # 5. Preserving solver.v
303- generated_solver_path = os .path .join (generator_path , 'out' , 'solver.v' )
304- shutil .copy (generated_solver_path , build_path )
305-
306306 # 6. Prepend afu with authentication blocks (with an empty signature chain)
307307 subprocess .run (
308308 ['PACSign PR -t UPDATE -H openssl_manager -y -i solver.gbs -o solver_signed.gbs' ],
0 commit comments