K
krby_xtrm
Guest
-- Consider: --
signal a : std_logic(1 downt 0);
type states is (s0, s1, s2);
attribute enum_encoding: STRING;
attribute enum_encoding of states: type is "000 010 011";
signal state : states;
later i will assign state based on signal a:
state <= '1' & a(1) & a(0);
how do i do that since the line above doesn't work?
signal a : std_logic(1 downt 0);
type states is (s0, s1, s2);
attribute enum_encoding: STRING;
attribute enum_encoding of states: type is "000 010 011";
signal state : states;
later i will assign state based on signal a:
state <= '1' & a(1) & a(0);
how do i do that since the line above doesn't work?