V
VHDL User
Guest
Hi All,
Suppose I have a description of a FSM in which I use self defined (enum)
data type State which can be amongst {"Red","Black","Blue"}.
Clearly 2 FFs will suffice to describe 3 states.My question is related
to the synthesis of such a machine:
1.How does the tool decide the encoding mechanism? I can have 00,01,11 or
any 3 of 4 options.Is there a way to fix this apriori within VHDL Code
itself ? How do I otherwise specify my preferences? ( I use Synplicity.)
2.When would a encoding of 3 states in a 001,010,100 manner be more
"useful" or "better",if at all? Clearly,more FFs would be needed,but
would this affect the speed ?
Thanks a lot,
Bye
Suppose I have a description of a FSM in which I use self defined (enum)
data type State which can be amongst {"Red","Black","Blue"}.
Clearly 2 FFs will suffice to describe 3 states.My question is related
to the synthesis of such a machine:
1.How does the tool decide the encoding mechanism? I can have 00,01,11 or
any 3 of 4 options.Is there a way to fix this apriori within VHDL Code
itself ? How do I otherwise specify my preferences? ( I use Synplicity.)
2.When would a encoding of 3 states in a 001,010,100 manner be more
"useful" or "better",if at all? Clearly,more FFs would be needed,but
would this affect the speed ?
Thanks a lot,
Bye