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

📄 regs_pkg.vhd

📁 4位MCU AM2901的完整VHDL程序
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;

package regs_pkg is
      component rdff1 port(
         clk,reset:in std_logic;
         d:        in std_logic;
         q:        buffer std_logic);
      end component;

      component rdff 
         generic (size:integer :=2);
         port(clk,reset:in std_logic;
         d:             in std_logic_vector(size-1 downto 0);
         q:             buffer std_logic_vector(size-1 downto 0));
      end component;

      component rreg1 port(
         clk,reset,load:in std_logic;
         d:             in std_logic;
         q:             buffer std_logic);
      end component;

      component reg
         generic(size:integer:=2);
         port(clk,load:in std_logic;
              rst,pst: in std_logic;
              d:       in std_logic_vector(size-1 downto 0);
              q:       buffer std_logic_vector(size-1 downto 0));
      end component;

      component ureg
         generic(size:integer:=2);
         port(clk,reset,load:in std_logic;
         d:                  in unsigned(size-1 downto 0);
         q:                  buffer unsigned(size-1 downto 0));
      end component;
end regs_pkg;
         

⌨️ 快捷键说明

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