Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- --PRVI SABIRAK
- process (iSW) begin
- if(iSW(7 downto 4) = "0100") then
- sA <= "0000";
- elsif(iSW(6) = '1') then
- sA(3) <= '1';
- sA(2) <= '1';
- sA(1 downto 0) <= not(iSW(5 downto 4)) + '1';
- else
- sA <= '0' & iSW(6 downto 4);
- end if;
- end process;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement