mirror of
https://github.com/YosysHQ/yosys
synced 2025-06-22 13:53:40 +00:00
Added onehot attribute
This commit is contained in:
parent
8805c24640
commit
a038787c9b
3 changed files with 19 additions and 0 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue