Skip to content

Commit

Permalink
Himbaechel xilinx : Add safety check in DSP packing for 7-series
Browse files Browse the repository at this point in the history
  • Loading branch information
marzoul committed Sep 12, 2024
1 parent e6d33b2 commit 511e2fa
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion himbaechel/uarch/xilinx/pack_dsp_xc7.cc
Original file line number Diff line number Diff line change
Expand Up @@ -109,7 +109,7 @@ void XC7Packer::pack_dsps()
std::string n = port.first.str(ctx);

if (boost::starts_with(n, "ACIN") || boost::starts_with(n, "BCIN") || boost::starts_with(n, "PCIN")) {
if (port.second.net == nullptr)
if (port.second.net == nullptr || port.second.net->users.empty())
continue;
if (port.second.net->name == ctx->id("$PACKER_GND_NET"))
ci->disconnectPort(port.first);
Expand Down

0 comments on commit 511e2fa

Please sign in to comment.