stankovic96

arps_sel

Jun 23rd, 2020
1,532
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. library IEEE;
  2. use IEEE.STD_LOGIC_1164.ALL;
  3. use ieee.numeric_std.all;
  4. entity sel_m is
  5.     Port ( addr : in STD_LOGIC_VECTOR (15 downto 0);
  6.            sel : out STD_LOGIC_VECTOR (1 downto 0));
  7. end sel_m;
  8.  
  9. architecture Behavioral of sel_m is
  10.  
  11. begin
  12.     sel<=std_logic_vector(to_unsigned(to_integer(unsigned(addr)-to_unsigned(to_integer(shift_left(to_unsigned(to_integer(shift_right(unsigned(addr),2)),16),2)),16)),2)  );
  13. end Behavioral;
RAW Paste Data

Adblocker detected! Please consider disabling it...

We've detected AdBlock Plus or some other adblocking software preventing Pastebin.com from fully loading.

We don't have any obnoxious sound, or popup ads, we actively block these annoying types of ads!

Please add Pastebin.com to your ad blocker whitelist or disable your adblocking software.

×