danm v0.1.4 Danm.ChoiceLogic
A choice logic is a design entity with full case one one input, picking output from 2^n of choices
Link to this section Summary
Functions
A choice logic is just a wrapper around a list of expr. output is a string inputs is a map of %{name => width}
width of the condition
whether condition has the enough width
whether condition has the right width
create a choice logic. all width assume to be 0 for now
Link to this section Functions
A choice logic is just a wrapper around a list of expr. output is a string inputs is a map of %{name => width}
Link to this function
cond_width(s)
width of the condition
Link to this function
condition_width_enough?(s)
whether condition has the enough width
Link to this function
condition_width_match?(s)
whether condition has the right width
Link to this function
new(condition, choices, list)
create a choice logic. all width assume to be 0 for now