diff options
author | D. Shah <dave@ds0.me> | 2021-02-05 10:43:35 +0000 |
---|---|---|
committer | D. Shah <dave@ds0.me> | 2021-02-05 10:43:35 +0000 |
commit | 450bfae86cc807e4aec8d3b725169fd044212079 (patch) | |
tree | d8b70c19580030a1ee28431b5d2287a0ae1690da | |
parent | c99fbde0eb0b1b9b725ba2fead13d3210ce961a7 (diff) | |
download | nextpnr-450bfae86cc807e4aec8d3b725169fd044212079.tar.gz nextpnr-450bfae86cc807e4aec8d3b725169fd044212079.tar.bz2 nextpnr-450bfae86cc807e4aec8d3b725169fd044212079.zip |
generic: Fix pin names accidentally being IdStringList not IdString
Signed-off-by: D. Shah <dave@ds0.me>
-rw-r--r-- | generic/arch.cc | 6 | ||||
-rw-r--r-- | generic/arch.h | 2 |
2 files changed, 4 insertions, 4 deletions
diff --git a/generic/arch.cc b/generic/arch.cc index ffbf00ba..912f8a53 100644 --- a/generic/arch.cc +++ b/generic/arch.cc @@ -129,7 +129,7 @@ void Arch::addBelInput(IdStringList bel, IdString name, IdStringList wire) { NPNR_ASSERT(bel_info(bel).pins.count(name) == 0); PinInfo &pi = bel_info(bel).pins[name]; - pi.name = IdStringList(name); + pi.name = name; pi.wire = wire; pi.type = PORT_IN; @@ -141,7 +141,7 @@ void Arch::addBelOutput(IdStringList bel, IdString name, IdStringList wire) { NPNR_ASSERT(bel_info(bel).pins.count(name) == 0); PinInfo &pi = bel_info(bel).pins[name]; - pi.name = IdStringList(name); + pi.name = name; pi.wire = wire; pi.type = PORT_OUT; @@ -153,7 +153,7 @@ void Arch::addBelInout(IdStringList bel, IdString name, IdStringList wire) { NPNR_ASSERT(bel_info(bel).pins.count(name) == 0); PinInfo &pi = bel_info(bel).pins[name]; - pi.name = IdStringList(name); + pi.name = name; pi.wire = wire; pi.type = PORT_INOUT; diff --git a/generic/arch.h b/generic/arch.h index 0d071078..d7392e41 100644 --- a/generic/arch.h +++ b/generic/arch.h @@ -62,7 +62,7 @@ struct WireInfo struct PinInfo { - IdStringList name; + IdString name; WireId wire; PortType type; }; |