aboutsummaryrefslogtreecommitdiffstats
path: root/machxo2/arch.cc
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2023-03-09 11:34:15 +0100
committermyrtle <gatecat@ds0.me>2023-03-16 13:37:23 +0100
commit1f115ddd320dc5e2f9c69e32ee2e40b758285f6e (patch)
tree975962b8786ad8c499c930d31e900c3f7aa57d96 /machxo2/arch.cc
parent26798038fe5dc3f9063cd1cc11e67f64df582c3a (diff)
downloadnextpnr-1f115ddd320dc5e2f9c69e32ee2e40b758285f6e.tar.gz
nextpnr-1f115ddd320dc5e2f9c69e32ee2e40b758285f6e.tar.bz2
nextpnr-1f115ddd320dc5e2f9c69e32ee2e40b758285f6e.zip
Basic GUI part selection
Diffstat (limited to 'machxo2/arch.cc')
-rw-r--r--machxo2/arch.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/machxo2/arch.cc b/machxo2/arch.cc
index 481d15ee..385b776f 100644
--- a/machxo2/arch.cc
+++ b/machxo2/arch.cc
@@ -58,8 +58,8 @@ static void get_chip_info(std::string device, const ChipInfoPOD **chip_info, con
for (auto &pkg : chip.packages) {
for (auto &speedgrade : chip.speed_grades) {
for (auto &rating : chip.suffixes) {
- std::string name = stringf("%s-%d%s%s", chip.name.get(), speedgrade.speed, pkg.short_name.get(), rating.suffix.get());
- if (device == name) {
+ std::string devname = stringf("%s-%d%s%s", chip.name.get(), speedgrade.speed, pkg.short_name.get(), rating.suffix.get());
+ if (device == devname) {
*chip_info = db_ptr->get();
*package_info = nullptr;
*package_name = pkg.name.get();