diff options
author | Pepijn de Vos <pepijndevos@gmail.com> | 2022-03-19 19:44:08 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-03-19 18:44:08 +0000 |
commit | bb923c7732dbf8c930c8af85acd6f0583115af8e (patch) | |
tree | 8b84e1934e494f424b62d3835c0cc08422085de9 /gowin/pack.cc | |
parent | 774d3944b307a7b26164f728b5910f26b7d873f6 (diff) | |
download | nextpnr-bb923c7732dbf8c930c8af85acd6f0583115af8e.tar.gz nextpnr-bb923c7732dbf8c930c8af85acd6f0583115af8e.tar.bz2 nextpnr-bb923c7732dbf8c930c8af85acd6f0583115af8e.zip |
Gowin: use global VCC and VSS nets (#956)
* use global VCC and VSS nets
* derp
* remove init parameter
Diffstat (limited to 'gowin/pack.cc')
-rw-r--r-- | gowin/pack.cc | 15 |
1 files changed, 6 insertions, 9 deletions
diff --git a/gowin/pack.cc b/gowin/pack.cc index 9f0a2478..d31b4a84 100644 --- a/gowin/pack.cc +++ b/gowin/pack.cc @@ -611,20 +611,17 @@ static void pack_constants(Context *ctx) { log_info("Packing constants..\n"); - std::unique_ptr<CellInfo> gnd_cell = create_generic_cell(ctx, id_SLICE, "$PACKER_GND"); - gnd_cell->params[id_INIT] = Property(0, 1 << 4); + std::unique_ptr<CellInfo> gnd_cell = create_generic_cell(ctx, id_GND, "$PACKER_GND"); auto gnd_net = std::make_unique<NetInfo>(ctx->id("$PACKER_GND_NET")); gnd_net->driver.cell = gnd_cell.get(); - gnd_net->driver.port = id_F; - gnd_cell->ports.at(id_F).net = gnd_net.get(); + gnd_net->driver.port = id_G; + gnd_cell->ports.at(id_G).net = gnd_net.get(); - std::unique_ptr<CellInfo> vcc_cell = create_generic_cell(ctx, id_SLICE, "$PACKER_VCC"); - // Fill with 1s - vcc_cell->params[id_INIT] = Property(Property::S1).extract(0, (1 << 4), Property::S1); + std::unique_ptr<CellInfo> vcc_cell = create_generic_cell(ctx, id_VCC, "$PACKER_VCC"); auto vcc_net = std::make_unique<NetInfo>(ctx->id("$PACKER_VCC_NET")); vcc_net->driver.cell = vcc_cell.get(); - vcc_net->driver.port = id_F; - vcc_cell->ports.at(id_F).net = vcc_net.get(); + vcc_net->driver.port = id_V; + vcc_cell->ports.at(id_V).net = vcc_net.get(); std::vector<IdString> dead_nets; |