Forum Discussion
Altera_Forum
Honored Contributor
15 years agoVHDL state to entity
Hi, I have a VHDL design with 8 states. I want to take the state "cur_state" specifically to entity output port. This is not for debug, but a specific customer requirement. Please let me...
Altera_Forum
Honored Contributor
15 years agoThe code below looks to be working,
CurrentStateOut : out natural ;
CurrentStateOut <= state'pos( curr_state) ; The below code is giving out error,
CurrentStateOut <= std_logic_vector(to_unsigned(state'pos(curr_state) ,3)); Is data dype 'natural' can be synthesized.