io_adr_dec.vhd

来自「十五个免费的IP核大家可以尝试测试与修改」· VHDL 代码 · 共 37 行

VHD
37
字号
--************************************************************************************************-- Internal I/O registers decoder/multiplexer for the AVR core-- Version 1.1-- Designed by Ruslan Lepetenok-- Modified 02.11.2002--************************************************************************************************library IEEE;use IEEE.std_logic_1164.all;use WORK.AVRuCPackage.all;entity io_adr_dec is port (          adr          : in std_logic_vector(5 downto 0);                   iore         : in std_logic;                   dbusin_ext   : in std_logic_vector(7 downto 0);          dbusin_int   : out std_logic_vector(7 downto 0);                              spl_out      : in std_logic_vector(7 downto 0);           sph_out      : in std_logic_vector(7 downto 0);                     sreg_out     : in std_logic_vector(7 downto 0);                     rampz_out    : in std_logic_vector(7 downto 0));end io_adr_dec;architecture rtl of io_adr_dec isbegindbusin_int <= spl_out   when (adr=SPL_Address  and iore='1') else              sph_out  when  (adr=SPH_Address  and iore='1') else              sreg_out when  (adr=SREG_Address  and iore='1') else              rampz_out when (adr=RAMPZ_Address and iore='1') else              dbusin_ext;end rtl;

⌨️ 快捷键说明

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