diff options
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);
}
}
}
|