summaryrefslogtreecommitdiff
path: root/passes/fsm/fsmdata.h
diff options
context:
space:
mode:
Diffstat (limited to 'passes/fsm/fsmdata.h')
-rw-r--r--passes/fsm/fsmdata.h14
1 files changed, 6 insertions, 8 deletions
diff --git a/passes/fsm/fsmdata.h b/passes/fsm/fsmdata.h
index 718b9704..d0be71c5 100644
--- a/passes/fsm/fsmdata.h
+++ b/passes/fsm/fsmdata.h
@@ -142,26 +142,24 @@ struct FsmData
log("\n");
log(" Input signals:\n");
RTLIL::SigSpec sig_in = cell->connections["\\CTRL_IN"];
- sig_in.expand();
- for (size_t i = 0; i < sig_in.chunks().size(); i++)
- log(" %3zd: %s\n", i, log_signal(sig_in.chunks()[i]));
+ for (int i = 0; i < SIZE(sig_in); i++)
+ log(" %3zd: %s\n", i, log_signal(sig_in[i]));
log("\n");
log(" Output signals:\n");
RTLIL::SigSpec sig_out = cell->connections["\\CTRL_OUT"];
- sig_out.expand();
- for (size_t i = 0; i < sig_out.chunks().size(); i++)
- log(" %3zd: %s\n", i, log_signal(sig_out.chunks()[i]));
+ for (int i = 0; i < SIZE(sig_out); i++)
+ log(" %3zd: %s\n", i, log_signal(sig_out[i]));
log("\n");
log(" State encoding:\n");
- for (size_t i = 0; i < state_table.size(); i++)
+ for (int i = 0; i < SIZE(state_table); i++)
log(" %3zd: %10s%s\n", i, log_signal(state_table[i], false),
int(i) == reset_state ? " <RESET STATE>" : "");
log("\n");
log(" Transition Table (state_in, ctrl_in, state_out, ctrl_out):\n");
- for (size_t i = 0; i < transition_table.size(); i++) {
+ for (int i = 0; i < SIZE(transition_table); i++) {
transition_t &tr = transition_table[i];
log(" %5zd: %5d %s -> %5d %s\n", i, tr.state_in, log_signal(tr.ctrl_in), tr.state_out, log_signal(tr.ctrl_out));
}