Skip to content

Commit

Permalink
Merge pull request #3961 from jix/dft-fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
jix authored Oct 2, 2023
2 parents ecf09b9 + 5daa49b commit 8b42abe
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions passes/cmds/dft_tag.cc
Original file line number Diff line number Diff line change
Expand Up @@ -405,7 +405,7 @@ struct DftTagWorker {
auto &sig_y = cell->getPort(ID::Y);
auto sig_a = cell->getPort(ID::A);
auto sig_b = cell->getPort(ID::B);
if (cell->type.in(ID($and), ID($or))) {
if (cell->type.in(ID($and), ID($or), ID($xor), ID($xnor))) {
sig_a.extend_u0(GetSize(sig_y), cell->getParam(ID::A_SIGNED).as_bool());
sig_b.extend_u0(GetSize(sig_y), cell->getParam(ID::B_SIGNED).as_bool());
}
Expand Down Expand Up @@ -669,12 +669,12 @@ struct DftTagWorker {
auto &sig_y = cell->getPort(ID::Y);
auto sig_a = cell->getPort(ID::A);

if (cell->type.in(ID($reduce_or), ID($reduce_bool), ID($logic_not)))
sig_a = autoNot(NEW_ID, sig_a);

auto group_sig_a = tag_group_signal(tag, sig_a);
auto tag_sig_a = tag_signal(tag, sig_a);

if (cell->type.in(ID($reduce_or), ID($reduce_bool), ID($logic_not)))
sig_a = autoNot(NEW_ID, sig_a);

auto filled = autoOr(NEW_ID, sig_a, group_sig_a);

auto prop = autoReduceAnd(NEW_ID, filled);
Expand Down

0 comments on commit 8b42abe

Please sign in to comment.