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

📄 my_component.vhd

📁 How to infer a finite state machine for fpga altera xilinx
💻 VHD
字号:
library ieee;
use ieee.std_logic_1164.all;
use ieee.numeric_std.all;


entity my_component is  
generic ( array_size: positive :=2);
port(   clk:   in std_logic;
        rst:   in std_logic;
        in_A :  in signed  (array_size-1 downto 0);
        out_A:  out signed (array_size-1 downto 0));
end my_component;

architecture my_architecture of my_component is

begin

process(clk,rst)
begin

      if (rst = '1') then
      out_A <= (others => '0');
      elsif rising_edge (clk) then
      out_A <= in_A;
      end if;
      
end process;

end my_architecture;        

⌨️ 快捷键说明

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