fix warning
This commit is contained in:
parent
e012f7b4f8
commit
10595726c1
@ -35,20 +35,6 @@ static bool is_nextpnr_iob(Context *ctx, CellInfo *cell)
|
|||||||
cell->type == ctx->id("$nextpnr_iobuf");
|
cell->type == ctx->id("$nextpnr_iobuf");
|
||||||
}
|
}
|
||||||
|
|
||||||
static bool net_is_constant(const Context *ctx, NetInfo *net, bool &value)
|
|
||||||
{
|
|
||||||
auto gnd = ctx->id("$PACKER_GND_NET");
|
|
||||||
auto vcc = ctx->id("$PACKER_VCC_NET");
|
|
||||||
if (net == nullptr)
|
|
||||||
return false;
|
|
||||||
if (net->name.in(gnd, vcc)) {
|
|
||||||
value = (net->name == vcc);
|
|
||||||
return true;
|
|
||||||
} else {
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
class MachXO2Packer
|
class MachXO2Packer
|
||||||
{
|
{
|
||||||
public:
|
public:
|
||||||
|
Loading…
Reference in New Issue
Block a user