def: Fix export of pins
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
a8dd84838b
commit
4250c5bec7
|
@ -601,10 +601,18 @@ namespace {
|
||||||
if ( status != 0 ) return driver->checkStatus(status);
|
if ( status != 0 ) return driver->checkStatus(status);
|
||||||
|
|
||||||
for ( RoutingPad* rp : net->getRoutingPads() ) {
|
for ( RoutingPad* rp : net->getRoutingPads() ) {
|
||||||
|
Plug *plug = dynamic_cast<Plug*>(rp->getPlugOccurrence().getEntity());
|
||||||
|
if (plug) {
|
||||||
status = defwNetConnection ( extractInstanceName(rp).c_str()
|
status = defwNetConnection ( extractInstanceName(rp).c_str()
|
||||||
, getString(static_cast<Plug*>(rp->getPlugOccurrence().getEntity())->getMasterNet()->getName()).c_str()
|
, getString(plug->getMasterNet()->getName()).c_str()
|
||||||
, 0
|
, 0
|
||||||
);
|
);
|
||||||
|
} else {
|
||||||
|
Pin *pin = dynamic_cast<Pin*>(rp->getPlugOccurrence().getEntity());
|
||||||
|
if (!pin)
|
||||||
|
throw Error("RP PlugOccurrence neither a plug nor a pin!");
|
||||||
|
// TODO: do we need to write something ?
|
||||||
|
}
|
||||||
if ( status != 0 ) return driver->checkStatus(status);
|
if ( status != 0 ) return driver->checkStatus(status);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue