Skip to content

Commit

Permalink
check for pcf file in the tcl script directory regression
Browse files Browse the repository at this point in the history
  • Loading branch information
coolbreeze413 committed Sep 17, 2024
1 parent d054a76 commit cd656b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Compiler/CompilerOpenFPGA_ql.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -5321,6 +5321,9 @@ bool CompilerOpenFPGA_ql::GeneratePinConstraints(std::string& filepath_fpga_fix_
else {
if (!QLSettingsManager::getInstance()->getTCLScriptDirPath().empty()) {
filepath_pcf = QLSettingsManager::getInstance()->getTCLScriptDirPath().string() + "/" + ProjManager()->projectName() + "/" + ProjManager()->projectName() + std::string(".pcf");
if (!FileUtils::FileExists(filepath_pcf)) {
filepath_pcf = QLSettingsManager::getInstance()->getTCLScriptDirPath().string() + "/" + ProjManager()->projectName() + std::string(".pcf");
}
} else {
filepath_pcf = ProjManager()->projectPath() + "/" + ProjManager()->projectName() + std::string(".pcf");
}
Expand Down

0 comments on commit cd656b8

Please sign in to comment.