diff options
author | Clifford Wolf <clifford@clifford.at> | 2014-07-22 23:07:42 +0200 |
---|---|---|
committer | Clifford Wolf <clifford@clifford.at> | 2014-07-22 23:11:36 +0200 |
commit | 4a6d234ec7acff085e3c923d3872d0863c766ad1 (patch) | |
tree | ac578976c9bc8c1f09f4eefd3d3864fd1b2b600c /passes/fsm/fsmdata.h | |
parent | 65a939cb2767623b95adcd2ec5e783b828c1f9eb (diff) | |
download | yosys-4a6d234ec7acff085e3c923d3872d0863c766ad1.tar.gz yosys-4a6d234ec7acff085e3c923d3872d0863c766ad1.tar.bz2 yosys-4a6d234ec7acff085e3c923d3872d0863c766ad1.zip |
SigSpec refactoring: cleanup of old SigSpec usage in fsm_* commands
Diffstat (limited to 'passes/fsm/fsmdata.h')
-rw-r--r-- | passes/fsm/fsmdata.h | 14 |
1 files changed, 6 insertions, 8 deletions
diff --git a/passes/fsm/fsmdata.h b/passes/fsm/fsmdata.h index 718b97043..d0be71c5b 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)); } |