Skip to content

Commit

Permalink
fix error in state fastFroward with pipelines
Browse files Browse the repository at this point in the history
  • Loading branch information
sylefeb committed Dec 10, 2023
1 parent 9384354 commit e5fcde3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion src/Algorithm.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -4420,7 +4420,7 @@ int Algorithm::fastForwardToFSMState(const t_fsm_nfo* fsm, const t_combinationa
{
// fast forward
block = fastForward(block);
if (blockIsEmpty(block) && block == fsm->lastBlock) {
if (blockIsEmpty(block) && block == fsm->lastBlock && fsm == &m_RootFSM) {
// special case of empty block at the end of the algorithm
return toFSMState(fsm,terminationState(fsm));
} else {
Expand Down Expand Up @@ -8431,6 +8431,9 @@ void Algorithm::writeStatelessBlockGraph(
// follow the chain
const t_combinational_block *current = block;
while (true) {
if (current->block_name == "__stage___block_26") {
LIBSL_TRACE;
}
// write current block
writeBlock(prefix, w, ictx, current, _dependencies, _ff_usage, _lines);
// goto next in chain
Expand Down

0 comments on commit e5fcde3

Please sign in to comment.