⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 addr_dec.vhd

📁 This is is a bridge IP core to interface the Tensilica PIF bus protocol with the OpenCores WishBone.
💻 VHD
字号:
library ieee;use ieee.std_logic_1164.all;use ieee.std_logic_unsigned.all;use ieee.std_logic_arith.all;entity AdrDec is  generic (    constant ADRS_SIZE    :     integer := 32;    constant ADRS_BITS	  :     integer := 4;    constant ADRS_RANGE   :     integer := 8 );    port (    AdrIn                 : in  std_logic_vector(ADRS_SIZE-1 downto ADRS_SIZE-ADRS_BITS);    AdrValid 		  : out std_logic);end AdrDec;architecture Behavioral of AdrDec issignal Address : std_logic_vector (ADRS_BITS - 1 downto 0);begin	Address <= conv_std_logic_vector(ADRS_RANGE, ADRS_BITS);	process (AdrIn)	begin		if (AdrIn (ADRS_SIZE - 1 downto ADRS_SIZE - ADRS_BITS) >= Address) then			AdrValid <= '1';		else			AdrValid <= '0';		end if;	end process;end Behavioral;

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -