diff options
author | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-21 20:21:48 +0200 |
---|---|---|
committer | Miodrag Milanovic <mmicko@gmail.com> | 2018-07-21 20:21:48 +0200 |
commit | f438fc615b829170679971110b5d1bb57fba6a86 (patch) | |
tree | a7c74ddc6c085830880ceffdb9f15d8c84afc3fe /ice40 | |
parent | 39b843ecacaeb25f7d223d6e3c69c64dccb15d75 (diff) | |
download | nextpnr-f438fc615b829170679971110b5d1bb57fba6a86.tar.gz nextpnr-f438fc615b829170679971110b5d1bb57fba6a86.tar.bz2 nextpnr-f438fc615b829170679971110b5d1bb57fba6a86.zip |
Added driver and users for nets
Diffstat (limited to 'ice40')
-rw-r--r-- | ice40/bitstream.cc | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/ice40/bitstream.cc b/ice40/bitstream.cc index 8819a643..7fd3f8ac 100644 --- a/ice40/bitstream.cc +++ b/ice40/bitstream.cc @@ -767,6 +767,14 @@ bool read_asc(Context *ctx, std::istream &in) IdString name = ctx->getBoundWireNet(wire);
if (name != IdString()) {
port.second.net = ctx->nets[name].get();
+ PortRef ref;
+ ref.cell = cell.second.get();
+ ref.port = port.second.name;
+
+ if (port.second.type == PORT_OUT)
+ ctx->nets[name]->driver = ref;
+ else
+ ctx->nets[name]->users.push_back(ref);
}
}
}
|