1
0
mirror of https://github.com/YosysHQ/nextpnr.git synced 2026-05-04 07:08:26 +00:00

Various warning fixes

This commit is contained in:
Miodrag Milanovic
2020-01-18 15:23:35 +01:00
parent b67ba18590
commit 38e3b6338c
6 changed files with 11 additions and 19 deletions

View File

@@ -112,17 +112,6 @@ static void pack_nonlut_ffs(Context *ctx)
}
}
static bool net_is_constant(const Context *ctx, NetInfo *net, bool &value)
{
if (net == nullptr)
return false;
if (net->name == ctx->id("$PACKER_GND_NET") || net->name == ctx->id("$PACKER_VCC_NET")) {
value = (net->name == ctx->id("$PACKER_VCC_NET"));
return true;
} else {
return false;
}
}
// Merge a net into a constant net
static void set_net_constant(const Context *ctx, NetInfo *orig, NetInfo *constnet, bool constval)