diff options
author | David Shah <dave@ds0.me> | 2019-08-05 17:28:54 +0100 |
---|---|---|
committer | David Shah <dave@ds0.me> | 2019-08-05 17:28:54 +0100 |
commit | ebcdfc1ae83eaef8e4a4d7586385eafdf8443386 (patch) | |
tree | b4ae25c38d44280091b9a5c41f6064608ddbb6d5 /generic/pack.cc | |
parent | ec48f8f464a63dece47e9af903098387088c68c5 (diff) | |
download | nextpnr-ebcdfc1ae83eaef8e4a4d7586385eafdf8443386.tar.gz nextpnr-ebcdfc1ae83eaef8e4a4d7586385eafdf8443386.tar.bz2 nextpnr-ebcdfc1ae83eaef8e4a4d7586385eafdf8443386.zip |
generic: New Property interface
Signed-off-by: David Shah <dave@ds0.me>
Diffstat (limited to 'generic/pack.cc')
-rw-r--r-- | generic/pack.cc | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/generic/pack.cc b/generic/pack.cc index 558eca7c..3dc12bc1 100644 --- a/generic/pack.cc +++ b/generic/pack.cc @@ -150,7 +150,7 @@ static void pack_constants(Context *ctx) log_info("Packing constants..\n"); std::unique_ptr<CellInfo> gnd_cell = create_generic_cell(ctx, ctx->id("GENERIC_SLICE"), "$PACKER_GND"); - gnd_cell->params[ctx->id("INIT")] = "0"; + gnd_cell->params[ctx->id("INIT")] = 0; std::unique_ptr<NetInfo> gnd_net = std::unique_ptr<NetInfo>(new NetInfo); gnd_net->name = ctx->id("$PACKER_GND_NET"); gnd_net->driver.cell = gnd_cell.get(); @@ -158,7 +158,7 @@ static void pack_constants(Context *ctx) gnd_cell->ports.at(ctx->id("Q")).net = gnd_net.get(); std::unique_ptr<CellInfo> vcc_cell = create_generic_cell(ctx, ctx->id("GENERIC_SLICE"), "$PACKER_VCC"); - vcc_cell->params[ctx->id("INIT")] = "1"; + vcc_cell->params[ctx->id("INIT")] = 1; std::unique_ptr<NetInfo> vcc_net = std::unique_ptr<NetInfo>(new NetInfo); vcc_net->name = ctx->id("$PACKER_VCC_NET"); vcc_net->driver.cell = vcc_cell.get(); @@ -282,7 +282,7 @@ bool Arch::pack() pack_io(ctx); pack_lut_lutffs(ctx); pack_nonlut_ffs(ctx); - ctx->settings[ctx->id("pack")] = "1"; + ctx->settings[ctx->id("pack")] = 1; ctx->assignArchInfo(); log_info("Checksum: 0x%08x\n", ctx->checksum()); return true; |