@@ -240,35 +240,14 @@ bool PinPlacer::read_and_write() {
240240 !(csv_name.empty () || no_b_json || output_name.empty ()) &&
241241 user_pcf_.empty ();
242242
243- if (tr >= 4 ) {
243+ if (tr >= 5 ) {
244244 ls << " \t usage_requirement_1 : " << boolalpha << usage_requirement_1 << endl;
245245 ls << " \t usage_requirement_2 : " << boolalpha << usage_requirement_2 << endl;
246246 }
247247
248248 if (usage_requirement_0) {
249- /*
250- // generate new csv file with information from xml
251- // and csv for os flow
252- if (tr >= 2) {
253- ls << "(usage_requirement_0)\n"
254- << "generate new csv file with info from xml and csv for os flow"
255- << endl;
256- }
257- if (!generate_csv_file_for_os_flow()) {
258- CERROR << err_lookup("GENERATE_CSV_FILE_FOR_OS_FLOW") << endl;
259- return false;
260- }
261- // in os mode, the pcf does not contains any "-mode"
262- // we need to generate a temp pcf file with "-mode" option, which selects
263- // mode "Mode_GPIO"
264- if (user_pcf_.size()) {
265- if (!convert_pcf_for_os_flow(user_pcf_)) {
266- CERROR << err_lookup("GENERATE_PCF_FILE_FOR_OS_FLOW") << endl;
267- return false;
268- }
269- }
270- */
271- } else if (!usage_requirement_1 && !usage_requirement_2) {
249+ }
250+ else if (!usage_requirement_1 && !usage_requirement_2) {
272251 flush_out (true );
273252 if (tr >= 2 )
274253 lputs (" [Error] pin_c: !usage_requirement_1 && !usage_requirement_2\n " );
@@ -454,13 +433,13 @@ bool PinPlacer::read_and_write() {
454433 finalize_edits ();
455434
456435 // --7. create .place file
457- if (!write_dot_place (csv_rd)) {
436+ if (!write_placement (csv_rd)) {
458437 // error messages will be issued in callee
459438 if (tr) {
460439 flush_out (true );
461- ls << " [Error] pin_c: !write_dot_place(csv_rd )" << endl;
440+ ls << " [Error] pin_c: !write_placement( )" << endl;
462441 err_puts ();
463- CERROR << " write_dot_place () failed" << endl;
442+ CERROR << " write_placement () failed" << endl;
464443 flush_out (true );
465444 }
466445 return false ;
0 commit comments