Skip to content

Commit

Permalink
Check if PinTable exist before calling gen_bitstream_setting_xml
Browse files Browse the repository at this point in the history
  • Loading branch information
chungshien-chai committed Nov 7, 2024
1 parent 494be28 commit d872e98
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/Compiler/CompilerOpenFPGA.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3605,7 +3605,8 @@ bool CompilerOpenFPGA::GenerateBitstream() {
if (io_status.first) {
std::filesystem::path design_edit_sdc =
FilePath(Action::Synthesis, "design_edit.sdc");
if (std::filesystem::exists(design_edit_sdc)) {
if (std::filesystem::exists(design_edit_sdc) && !m_PinMapCSV.empty() &&
std::filesystem::exists(m_PinMapCSV)) {
std::string command = CFG_print(
"model_config gen_bitstream_setting_xml -device_size %s -design %s "
"-pin %s "
Expand Down

0 comments on commit d872e98

Please sign in to comment.