
















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!

















A methodology that works for documenting the design, simulation and verification of the design, and synthesis for FPGA, or a custom ASIC generated using synthesis.
State Memory (F/Fs)
Output Inputs Logic^ Outputs
Current State Excitation (next state)
Moore Machine
clk
ARCHITECTURE state_machine OF t_bird IS TYPE state_type IS (idle,l1,l2,l3,r1,r2,r3,lr3); SIGNAL state, next_state : state_type; BEGIN --Process to Specify F/F PROCESS BEGIN WAIT UNTIL clk=โ1โ AND clkโevent; state <= next_state; END PROCESS;
-- Next State Logic Process PROCESS (state,lts,rts,haz) BEGIN CASE state IS WHEN idle => IF (haz=โ1โ OR (lts=โ1โ AND rts=โ1โ) THEN next_state <= lr3; ESLIF(haz=โ0โ AND (lts=โ0โ AND rts=โ1โ)) THEN next_state <= r1; ELSIF(haz=โ0โ AND (lts=โ1โ AND rts=โ0โ)) THEN next_state <= l1; ELSE next_state <= idle; END IF;
Continued on next slide
WHEN l1 => IF (haz = โ1โ) THEN next_state <= lr3; END IF;ELSE next_state <= l2; WHEN l2 =>IF (haz = โ1โ) THEN next_state <= lr3; END IF;ELSE next_state <= l3; WHEN l3 => next_state <= idle;WHEN r1 => IF (haz = โ1โ) THEN next_state <= lr3;ELSE next_state <= r2; END IF; WHEN r2 => IF (haz = โ1โ) THEN next_state <= lr3; ELSE next_state <= r3; END IF; WHEN r3 => next_state <= idle; WHEN lr3 => next_state <= idle; END CASE; END PROCESS;
Once you have state machine description