From cd656b883c152e5d3ec4e047387081b97a059fad Mon Sep 17 00:00:00 2001 From: coolbreeze413 Date: Tue, 17 Sep 2024 10:04:57 -0700 Subject: [PATCH] check for pcf file in the tcl script directory regression --- src/Compiler/CompilerOpenFPGA_ql.cpp | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/Compiler/CompilerOpenFPGA_ql.cpp b/src/Compiler/CompilerOpenFPGA_ql.cpp index 2057312ca..13f56554d 100644 --- a/src/Compiler/CompilerOpenFPGA_ql.cpp +++ b/src/Compiler/CompilerOpenFPGA_ql.cpp @@ -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"); }