Advertisement
Guest User

Untitled

a guest
Nov 20th, 2019
102
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.26 KB | None | 0 0
  1. --PRVI SABIRAK
  2. process (iSW) begin
  3. if(iSW(7 downto 4) = "0100") then
  4. sA <= "0000";
  5. elsif(iSW(6) = '1') then
  6. sA(3) <= '1';
  7. sA(2) <= '1';
  8. sA(1 downto 0) <= not(iSW(5 downto 4)) + '1';
  9. else
  10. sA <= '0' & iSW(6 downto 4);
  11. end if;
  12. end process;
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement