aboutsummaryrefslogtreecommitdiffstats
path: root/gowin
diff options
context:
space:
mode:
authorKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-23 13:49:01 -0800
committerKeith Rothman <537074+litghost@users.noreply.github.com>2021-02-23 14:08:54 -0800
commit423a10bc31a20bbdd03e85754971878f5a57f89b (patch)
tree71b527933c729a2c0486b29d7d272d0cbfe2c0d8 /gowin
parent85af066d4f5a189ccdc6c7d6bafabb319a946901 (diff)
downloadnextpnr-423a10bc31a20bbdd03e85754971878f5a57f89b.tar.gz
nextpnr-423a10bc31a20bbdd03e85754971878f5a57f89b.tar.bz2
nextpnr-423a10bc31a20bbdd03e85754971878f5a57f89b.zip
Change CellInfo in getBelPinsForCellPin to be const.
Signed-off-by: Keith Rothman <537074+litghost@users.noreply.github.com>
Diffstat (limited to 'gowin')
-rw-r--r--gowin/arch.cc2
-rw-r--r--gowin/arch.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/gowin/arch.cc b/gowin/arch.cc
index d1fbd0ed..7e947341 100644
--- a/gowin/arch.cc
+++ b/gowin/arch.cc
@@ -824,7 +824,7 @@ std::vector<IdString> Arch::getBelPins(BelId bel) const
return ret;
}
-std::array<IdString, 1> Arch::getBelPinsForCellPin(CellInfo *cell_info, IdString pin) const { return {pin}; }
+std::array<IdString, 1> Arch::getBelPinsForCellPin(const CellInfo *cell_info, IdString pin) const { return {pin}; }
// ---------------------------------------------------------------
diff --git a/gowin/arch.h b/gowin/arch.h
index 0b0d7b9c..052c1545 100644
--- a/gowin/arch.h
+++ b/gowin/arch.h
@@ -372,7 +372,7 @@ struct Arch : BaseArch<ArchRanges>
WireId getBelPinWire(BelId bel, IdString pin) const override;
PortType getBelPinType(BelId bel, IdString pin) const override;
std::vector<IdString> getBelPins(BelId bel) const override;
- std::array<IdString, 1> getBelPinsForCellPin(CellInfo *cell_info, IdString pin) const override;
+ std::array<IdString, 1> getBelPinsForCellPin(const CellInfo *cell_info, IdString pin) const override;
WireId getWireByName(IdStringList name) const override;
IdStringList getWireName(WireId wire) const override;