Added driver and users for nets
This commit is contained in:
parent
39b843ecac
commit
f438fc615b
@ -767,6 +767,14 @@ bool read_asc(Context *ctx, std::istream &in)
|
|||||||
IdString name = ctx->getBoundWireNet(wire);
|
IdString name = ctx->getBoundWireNet(wire);
|
||||||
if (name != IdString()) {
|
if (name != IdString()) {
|
||||||
port.second.net = ctx->nets[name].get();
|
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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user