diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-06 16:24:43 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2019-10-20 09:41:48 +0200 |
commit | eafc0e4e9e94edfb0626dc3817fa5d119e2a01f7 (patch) | |
tree | ba7a587512d835cca30988d406e964baa114b951 /ecp5/arch.h | |
parent | bfbb6dbf6955f0fd5e68928f27d1a2edd17b5646 (diff) | |
download | nextpnr-eafc0e4e9e94edfb0626dc3817fa5d119e2a01f7.tar.gz nextpnr-eafc0e4e9e94edfb0626dc3817fa5d119e2a01f7.tar.bz2 nextpnr-eafc0e4e9e94edfb0626dc3817fa5d119e2a01f7.zip |
Added type to wire
Diffstat (limited to 'ecp5/arch.h')
-rw-r--r-- | ecp5/arch.h | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/ecp5/arch.h b/ecp5/arch.h index 94bd5f3a..f6ba1a7b 100644 --- a/ecp5/arch.h +++ b/ecp5/arch.h @@ -84,6 +84,7 @@ NPNR_PACKED_STRUCT(struct PipLocatorPOD { NPNR_PACKED_STRUCT(struct WireInfoPOD { RelPtr<char> name; + int32_t type; int32_t num_uphill, num_downhill; RelPtr<PipLocatorPOD> pips_uphill, pips_downhill; @@ -639,7 +640,13 @@ struct Arch : BaseCtx return id(name.str()); } - IdString getWireType(WireId wire) const { return IdString(); } + IdString getWireType(WireId wire) const + { + NPNR_ASSERT(wire != WireId()); + IdString id; + id.index = locInfo(wire)->wire_data[wire.index].type; + return id; + } std::vector<std::pair<IdString, std::string>> getWireAttrs(WireId) const { |