@@ -208,25 +208,21 @@ public static Design placeDesign(EDIFNetlist netlist, Path workDir, boolean make
208208 }
209209
210210 // Create JSON file for DREAMPlaceFPGA
211- // Path jsonFile = workDir.resolve("design.json");
212- // Map<String, Object> settings = getSettingsMap();
213- // settings.put(INTERCHANGE_DEVICE, deviceFile.toString());
214- // settings.put(INTERCHANGE_NETLIST, workDir.relativize(Paths.get(inputRoot + Interchange.LOG_NETLIST_EXT)).toString() );
215- // settings.put(RESULT_DIR, workDir.toString() );
216- // writeJSONForDREAMPlaceFPGA(jsonFile, settings);
211+ Path jsonFile = workDir .resolve ("design.json" );
212+ Map <String , Object > settings = getSettingsMap ();
213+ settings .put (INTERCHANGE_DEVICE , deviceFile .toString ());
214+ settings .put (INTERCHANGE_NETLIST , inputLogNetlistName );
215+ settings .put (RESULT_DIR , "." );
216+ writeJSONForDREAMPlaceFPGA (jsonFile , settings );
217217
218218 // Run DREAMPlaceFPGA
219219 // String exec = dreamPlaceFPGAExec + " " + workDir.relativize(jsonFile);
220220
221221 // Run DREAMPlaceFPGA
222222 List <String > exec = new ArrayList <>();
223223 exec .add (dreamPlaceFPGAExec );
224- exec .add ("-interchange_netlist" );
225- exec .add (inputLogNetlistName );
226- exec .add ("-interchange_device" );
227- exec .add (deviceFile .toString ());
228- exec .add ("-result_dir" );
229- exec .add ("." );
224+ exec .add ("-json" );
225+ exec .add (jsonFile .toString ());
230226
231227 boolean verbose = true ;
232228 String [] environ = null ;
@@ -236,7 +232,7 @@ public static Design placeDesign(EDIFNetlist netlist, Path workDir, boolean make
236232 }
237233
238234 // Load placed result
239- Design placedDesign = null ;
235+ Design placedDesign ;
240236 String outputPhysNetlistPath = workDir .resolve ("design/design.phys" ).toString ();
241237 try {
242238 placedDesign = PhysNetlistReader .readPhysNetlist (outputPhysNetlistPath ,
0 commit comments