MightyFunkster
Newbie level 1
So I implemented a Mealy machine for a pattern recognizer of '1010'. I defined my states as
I then went on to do the normal combinational logic to decide where to go from each state based on the input e.g.
as well as the necessary sequential logic with the clock and reset signals and it all works fine.
I assume that this is a combinational encoding scheme to enumerate the states as they are encoded as bit patterns but as part of this project I'm asked to assume that a sequential encoding scheme to enumerate the states has been used, I don't really understand what that means. I understand that sequential logic is dependent on both present and past inputs whereas combinational logic is only dependent on present inputs but I don't see how that relates to a sequential encoding scheme to enumerate states?
Code:
TYPE state_type IS (STATE_INIT, STATE_1, STATE_10, STATE_101);
I then went on to do the normal combinational logic to decide where to go from each state based on the input e.g.
Code:
WHEN STATE_1 =>
IF x='0' THEN
nextState <= STATE_10;
ELSE
nextState <= STATE_1;
END IF;
as well as the necessary sequential logic with the clock and reset signals and it all works fine.
I assume that this is a combinational encoding scheme to enumerate the states as they are encoded as bit patterns but as part of this project I'm asked to assume that a sequential encoding scheme to enumerate the states has been used, I don't really understand what that means. I understand that sequential logic is dependent on both present and past inputs whereas combinational logic is only dependent on present inputs but I don't see how that relates to a sequential encoding scheme to enumerate states?