Skip to content

Commit

Permalink
[EDA-1876] Fixed missing ports in pin planner (#1231)
Browse files Browse the repository at this point in the history
* Fixed missing ports in pin planner

* Incremented patch version

---------

Co-authored-by: KochynVolodymyr <[email protected]>
  • Loading branch information
KochynVolodymyr and KochynVolodymyr authored Aug 21, 2023
1 parent 836f2d1 commit 5ed82e6
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 4 deletions.
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@ set(VERSION_MINOR 0)
# Add the spdlog directory to the include path
include_directories(${CMAKE_CURRENT_SOURCE_DIR}/third_party/spdlog/include ${CMAKE_CURRENT_SOURCE_DIR}/third_party/exprtk)

set(VERSION_PATCH 226)
set(VERSION_PATCH 227)
option(
WITH_LIBCXX
"Building with clang++ and libc++(in Linux). To enable with: -DWITH_LIBCXX=On"
Expand Down
3 changes: 2 additions & 1 deletion src/MainWindow/main_window.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1519,7 +1519,8 @@ void MainWindow::pinAssignmentActionTriggered() {
data.context = GlobalSession->Context();
data.pinMapFile =
QString::fromStdString(m_compiler->PinmapCSVFile().string());
data.projectPath = m_projectManager->getProjectPath();
data.portsFilePath = QString::fromStdString(
m_compiler->FilePath(Compiler::Action::Analyze).string());
data.target = QString::fromStdString(m_projectManager->getTargetDevice());
data.pinFile = QString::fromStdString(m_projectManager->getConstrPinFile());
QFile file{data.pinFile};
Expand Down
4 changes: 3 additions & 1 deletion src/PinAssignment/PinAssignmentCreator.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
#include "PinAssignmentCreator.h"

#include <QBoxLayout>
#include <QDebug>
#include <QDir>
#include <filesystem>

Expand Down Expand Up @@ -49,7 +50,8 @@ PinAssignmentCreator::PinAssignmentCreator(const PinAssignmentData &data,
packagePinModel->setBaseModel(m_baseModel);

PortsLoader *portsLoader{FindPortsLoader(data.target)};
portsLoader->load(searchPortsFile(data.projectPath));
auto [ok, message] = portsLoader->load(searchPortsFile(data.portsFilePath));
if (!ok) qWarning() << message;

PackagePinsLoader *loader{FindPackagePinLoader(data.target)};
loader->loadHeader(packagePinHeaderFile(data.context));
Expand Down
2 changes: 1 addition & 1 deletion src/PinAssignment/PinAssignmentCreator.h
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ struct PinAssignmentData {
QString pinMapFile{};
QString target{};
QStringList commands{};
QString projectPath{};
QString portsFilePath{};
QString pinFile{};
bool useBallId{false};
};
Expand Down

0 comments on commit 5ed82e6

Please sign in to comment.