Forum Discussion
Altera_Forum
Honored Contributor
13 years ago --- Quote Start --- In no vhdl expert, but maybe use single bit values for each of the 'curstate' values so that each line becomes:
(curstate & XXX ? 7'hx : 0) |which is simple logic. Dunno if that ?: gets optimised away (easy to do). --- Quote End --- QII normally optimizes the state machine encoding to use 1-hot (or rather one signal per state) but i'm not too fond of this state encoding because it is harder to interpret in my signaltap trace (easier to see a number when looking for a particular state). I may have to go that route to optimize things though.