Skip to content

Commit

Permalink
Added $logic_not handling to fsm_detect
Browse files Browse the repository at this point in the history
  • Loading branch information
cliffordwolf committed Sep 18, 2015
1 parent c89ceee commit b7535a6
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions passes/fsm/fsm_detect.cc
Expand Up @@ -89,6 +89,8 @@ static bool check_state_users(RTLIL::SigSpec sig)
RTLIL::Cell *cell = cellport.first;
if (muxtree_cells.count(cell) > 0)
continue;
if (cell->type == "$logic_not" && assign_map(cell->getPort("\\A")) == sig)
continue;
if (cellport.second != "\\A" && cellport.second != "\\B")
return false;
if (!cell->hasPort("\\A") || !cell->hasPort("\\B") || !cell->hasPort("\\Y"))
Expand Down

0 comments on commit b7535a6

Please sign in to comment.