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 13, 2024
1 parent e6d33b2 commit 2b98cd1
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 @@ -45,7 +45,7 @@ void XC7Packer::walk_dsp(CellInfo *root, CellInfo *current_cell, int constr_z)
if (!boost::contains(port.first.str(ctx), "COUT")) continue;
NetInfo *cout_net = port.second.net;

if (cout_net == nullptr) continue;
if (cout_net == nullptr || cout_net->users.empty()) continue;

check_illegal_fanout(cout_net, port.first.c_str(ctx));
PortRef& user = *cout_net->users.begin();
Expand Down

0 comments on commit 2b98cd1

Please sign in to comment.