Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
mmicko committed May 9, 2024
1 parent a9c78dd commit 182715a
Showing 1 changed file with 0 additions and 25 deletions.
25 changes: 0 additions & 25 deletions techlibs/nanoxplore/nx_carry.cc
Original file line number Diff line number Diff line change
Expand Up @@ -83,15 +83,6 @@ static void nx_carry_chain(Module *module)
if (c.second.at(0)->getPort(ID(CI)).is_wire()) {
cell = module->addCell(NEW_ID, ID(NX_CY));
cell->setPort(ID(CI), State::S0);
// Set all inputs on 0
cell->setPort(ID(A1), State::S0);
cell->setPort(ID(B1), State::S0);
cell->setPort(ID(A2), State::S0);
cell->setPort(ID(B2), State::S0);
cell->setPort(ID(A3), State::S0);
cell->setPort(ID(B3), State::S0);
cell->setPort(ID(A4), State::S0);
cell->setPort(ID(B4), State::S0);

cell->setPort(names_A[0], c.second.at(0)->getPort(ID(CI)).as_bit());
cell->setPort(names_B[0], State::S0);
Expand All @@ -103,15 +94,6 @@ static void nx_carry_chain(Module *module)
cell = module->addCell(NEW_ID, ID(NX_CY));
SigBit ci = c.second.at(i)->getPort(ID(CI)).as_bit();
cell->setPort(ID(CI), ci);
// Set all inputs on 0
cell->setPort(ID(A1), State::S0);
cell->setPort(ID(B1), State::S0);
cell->setPort(ID(A2), State::S0);
cell->setPort(ID(B2), State::S0);
cell->setPort(ID(A3), State::S0);
cell->setPort(ID(B3), State::S0);
cell->setPort(ID(A4), State::S0);
cell->setPort(ID(B4), State::S0);
if (ci.is_wire()) {
cell->setParam(ID(add_carry), Const(2,2));
} else {
Expand All @@ -132,13 +114,6 @@ static void nx_carry_chain(Module *module)
cell->setPort(ID(CI), State::S0);
cell->setPort(ID(A1), new_co);
cell->setPort(ID(B1), State::S0);
// Set all inputs on 0
cell->setPort(ID(A2), State::S0);
cell->setPort(ID(B2), State::S0);
cell->setPort(ID(A3), State::S0);
cell->setPort(ID(B3), State::S0);
cell->setPort(ID(A4), State::S0);
cell->setPort(ID(B4), State::S0);
j = 1;
} else {
if (c.second.at(i)->hasPort(ID(CO)))
Expand Down

0 comments on commit 182715a

Please sign in to comment.