[engine] do not error out when ql-style is used in pin table

This commit is contained in:
tangxifan 2022-10-17 15:42:22 -07:00
parent 70b0d2e505
commit c3f180372d
1 changed files with 17 additions and 16 deletions

View File

@ -80,7 +80,6 @@ IoPinTable read_csv_io_pin_table(
"Invalid direction defintion! Expect [A2F|F2A] in the pin name\n"); "Invalid direction defintion! Expect [A2F|F2A] in the pin name\n");
exit(1); exit(1);
} }
}
/* Parse pin direction from a specific column, this has a higher priority /* Parse pin direction from a specific column, this has a higher priority
* than inferring from pin names */ * than inferring from pin names */
@ -89,7 +88,9 @@ IoPinTable read_csv_io_pin_table(
io_pin_table.set_pin_direction(pin_id, IoPinTable::INPUT); io_pin_table.set_pin_direction(pin_id, IoPinTable::INPUT);
} else if (port_dir_str == std::string(DIRECTION_OUTPUT)) { } else if (port_dir_str == std::string(DIRECTION_OUTPUT)) {
io_pin_table.set_pin_direction(pin_id, IoPinTable::OUTPUT); io_pin_table.set_pin_direction(pin_id, IoPinTable::OUTPUT);
} else { } else if (pin_dir_convention ==
e_pin_table_direction_convention::EXPLICIT) {
/* Error out only when we need explicit port direction */
VTR_LOG( VTR_LOG(
"Invalid direction defintion! Expect [%s|%s] in the GPIO direction\n", "Invalid direction defintion! Expect [%s|%s] in the GPIO direction\n",
DIRECTION_INPUT, DIRECTION_OUTPUT); DIRECTION_INPUT, DIRECTION_OUTPUT);
@ -98,6 +99,6 @@ IoPinTable read_csv_io_pin_table(
} }
return io_pin_table; return io_pin_table;
} }
} /* End namespace openfpga*/ } /* End namespace openfpga*/