PPT Slide
-- q is present state, d is next state.
clogic: process (q, ra, rb, d7_i, d11_i, d2312_i)
d <= q; -- default is to stay in same state.
when S0 => if (rb = '1') then d <= S1; end if;
when S1 => if (ra = '1') then
if (d7_i = '1' or d11_i = '1') then
elsif (d2312_i = '1') then
when S4 => if (rb = '1') then d <= S5; end if;
when S5 => if (ra = '1') then