generic: Allow bel pins without wires
Signed-off-by: gatecat <gatecat@ds0.me>
This commit is contained in:
parent
fcf2bf6a95
commit
c4e47ba1a8
@ -119,6 +119,7 @@ void Arch::addBelInput(BelId bel, IdString name, WireId wire)
|
|||||||
pi.wire = wire;
|
pi.wire = wire;
|
||||||
pi.type = PORT_IN;
|
pi.type = PORT_IN;
|
||||||
|
|
||||||
|
if (wire != WireId())
|
||||||
wire_info(wire).bel_pins.push_back(BelPin{bel, name});
|
wire_info(wire).bel_pins.push_back(BelPin{bel, name});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -131,6 +132,7 @@ void Arch::addBelOutput(BelId bel, IdString name, WireId wire)
|
|||||||
pi.wire = wire;
|
pi.wire = wire;
|
||||||
pi.type = PORT_OUT;
|
pi.type = PORT_OUT;
|
||||||
|
|
||||||
|
if (wire != WireId())
|
||||||
wire_info(wire).bel_pins.push_back(BelPin{bel, name});
|
wire_info(wire).bel_pins.push_back(BelPin{bel, name});
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -143,6 +145,7 @@ void Arch::addBelInout(BelId bel, IdString name, WireId wire)
|
|||||||
pi.wire = wire;
|
pi.wire = wire;
|
||||||
pi.type = PORT_INOUT;
|
pi.type = PORT_INOUT;
|
||||||
|
|
||||||
|
if (wire != WireId())
|
||||||
wire_info(wire).bel_pins.push_back(BelPin{bel, name});
|
wire_info(wire).bel_pins.push_back(BelPin{bel, name});
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user