3
0
Fork 0
mirror of https://github.com/YosysHQ/yosys synced 2025-06-22 13:53:40 +00:00

Added onehot attribute

This commit is contained in:
Clifford Wolf 2015-02-04 18:52:54 +01:00
parent 8805c24640
commit a038787c9b
3 changed files with 19 additions and 0 deletions

View file

@ -224,6 +224,9 @@ static void map_fsm(RTLIL::Cell *fsm_cell, RTLIL::Module *module)
}
}
if (encoding_is_onehot)
state_wire->set_bool_attribute("\\onehot");
// generate next_state signal
if (GetSize(fsm_data.state_table) == 1)