aboutsummaryrefslogtreecommitdiffstats
path: root/ecp5/arch.h
diff options
context:
space:
mode:
authorMiodrag Milanovic <mmicko@gmail.com>2019-10-06 16:24:43 +0200
committerMiodrag Milanovic <mmicko@gmail.com>2019-10-20 09:41:48 +0200
commiteafc0e4e9e94edfb0626dc3817fa5d119e2a01f7 (patch)
treeba7a587512d835cca30988d406e964baa114b951 /ecp5/arch.h
parentbfbb6dbf6955f0fd5e68928f27d1a2edd17b5646 (diff)
downloadnextpnr-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.h9
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
{