From 890d7f7617999e6ad154768169c252bcca29258f Mon Sep 17 00:00:00 2001 From: YRabbit Date: Thu, 7 Sep 2023 19:04:42 +1000 Subject: [PATCH] gowin: Himbaechel. Use a more appropriate function Signed-off-by: YRabbit --- himbaechel/uarch/gowin/pack.cc | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/himbaechel/uarch/gowin/pack.cc b/himbaechel/uarch/gowin/pack.cc index e8cfecc7..55cc2442 100644 --- a/himbaechel/uarch/gowin/pack.cc +++ b/himbaechel/uarch/gowin/pack.cc @@ -1347,9 +1347,7 @@ struct GowinPacker ctx->createCell(buf_name, id_BUFG); CellInfo *buf_ci = ctx->cells.at(buf_name).get(); buf_ci->addInput(id_I); - auto s_net = std::make_unique(ctx->idf("$PACKER_BUF_%s", net.first.c_str(ctx))); - NetInfo *buf_ni = s_net.get(); - ctx->nets[s_net->name] = std::move(s_net); + NetInfo *buf_ni = ctx->createNet(ctx->idf("$PACKER_BUF_%s", net.first.c_str(ctx))); if (ctx->verbose) { log_info("Create buf '%s' with IN net '%s'\n", buf_name.c_str(ctx), buf_ni->name.c_str(ctx));