Skip to content

Commit

Permalink
gowin: Himbaechel. Use a more appropriate function
Browse files Browse the repository at this point in the history
Signed-off-by: YRabbit <rabbit@yrabbit.cyou>
  • Loading branch information
yrabbit committed Sep 7, 2023
1 parent fa1577f commit 814cf2a
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions himbaechel/uarch/gowin/pack.cc
Original file line number Diff line number Diff line change
Expand Up @@ -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<NetInfo>(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));
Expand Down

0 comments on commit 814cf2a

Please sign in to comment.