You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
An Array is essentially a mux, and there are several equally valid ways to drive a mux. Currently only straight binary is supported. It would be nice to also have one-hot and priority encodings, since all of these are trivially representable directly in RTLIL and Verilog.
One thing to note is that one-hot and priority are one and the same unless parallel_case is used.
The text was updated successfully, but these errors were encountered:
The most idiomatic way to do this is to make the Array associative, and make sure that initializing it with a list uses consecutive indices. (The indices still all have to be integers; possibly enums?)
whitequark
changed the title
Allow changing encoding for Array
Expand semantics of Array from MutableSequence to MutableDictionary
Sep 18, 2019
whitequark
changed the title
Expand semantics of Array from MutableSequence to MutableDictionary
Expand semantics of Array from MutableSequence to MutableMapping
Sep 21, 2019
An Array is essentially a mux, and there are several equally valid ways to drive a mux. Currently only straight binary is supported. It would be nice to also have one-hot and priority encodings, since all of these are trivially representable directly in RTLIL and Verilog.
One thing to note is that one-hot and priority are one and the same unless
parallel_case
is used.The text was updated successfully, but these errors were encountered: