Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- when s0 =>
- if (ss1 = '0' and ss0 = '0' ) then
- ot <= "0001";
- elsif (ss1 = '0' and ss0 = '1' ) then
- ot <= "1000";
- elsif (ss1 = '1' and ss0 = '0' ) then
- ot <= "0001";
- elsif (ss1 = '1' and ss0 = '1' ) then
- ot <= "0001";
- end if;
- next_s <= s1;
- when s1 =>
- if (ss1 = '0' and ss0 = '0' ) then
- ot <= "0010";
- elsif (ss1 = '0' and ss0 = '1' ) then
- ot <= "0100";
- elsif (ss1 = '1' and ss0 = '0' ) then
- ot <= "0100";
- elsif (ss1 = '1' and ss0 = '1' ) then
- ot <= "1000";
- end if;
- next_s <= s2;
- when s2 =>
- if (ss1 = '0' and ss0 = '0' ) then
- ot <= "0100";
- elsif (ss1 = '0' and ss0 = '1' ) then
- ot <= "0010";
- elsif (ss1 = '1' and ss0 = '0' ) then
- ot <= "0010";
- elsif (ss1 = '1' and ss0 = '1' ) then
- ot <= "0010";
- end if;
- next_s <= s3;
- when s3 =>
- if (ss1 = '0' and ss0 = '0' ) then
- ot <= "1000";
- elsif (ss1 = '0' and ss0 = '1' ) then
- ot <= "0001";
- elsif (ss1 = '1' and ss0 = '0' ) then
- ot <= "1000";
- elsif (ss1 = '1' and ss0 = '1' ) then
- ot <= "0100";
- end if;
- next_s <= s0;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement