








Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!









“Moore Outputs” – outputs depend on the Current_State only
Current_State In Next_State Out (Found)
S0 0 S0 0 1 S1 0 S1 0 S2 0 1 S0 0 S2 0 S0 0 1 S3 0 S3 0 S0 0 1 S0 1
Current_State In Next_State Out Q1 Q0 Q1* Q0* Found
0 0 0 0 0 0 1 0 1 0 0 1 0 1 0 0 1 0 0 0 1 0 0 0 0 0 1 1 1 0 1 1 0 0 0 0 1 0 0 1
Found = Q1∙Q0∙In
Q1 Q
0
1
2
3 In
6
7
4
5
STATE_MEMORY : process (CLK) begin if (CLK’event and CLK='1') then Current_State <= Next_State; end if; end process;
STATE_MEMORY : process (CLK) begin if (CLK’event and CLK='1') then
if (Reset = ‘1’) then Current_State <= S0; -- name of “reset” state to go to else Current_State <= Next_State; end if;
end if; end process;
STATE_MEMORY : process (CLK, Reset) begin if (Reset = ‘1’) then
Current_State <= S0; -- name of “reset” state to go to
elsif (CLK’event and CLK='1') then
Current_State <= Next_State;
end if;
end process;