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

📄 example.vhd

📁 包括所有常用算法:加权计算
💻 VHD
字号:
--------------------------------------------------------------------------------- Title       : Example instantiation of an arithmetic unit-- Project     : VHDL Library of Arithmetic Units--------------------------------------------------------------------------------- File        : Example.vhd-- Author      : Reto Zimmermann  <zimmi@iis.ee.ethz.ch>-- Company     : Integrated Systems Laboratory, ETH Zurich-- Date        : 1997/11/04--------------------------------------------------------------------------------- Copyright (c) 1998 Integrated Systems Laboratory, ETH Zurich--------------------------------------------------------------------------------- Description :-- Example instantiation of an arithmetic unit. The component declaration can-- be omitted because it is included in the `arith_lib' package.-------------------------------------------------------------------------------library ieee;use ieee.std_logic_1164.all;library arith_lib;use arith_lib.arith_lib.all;-------------------------------------------------------------------------------entity Example is  generic (width : integer := 8);  	-- word width    port (A, B : in std_logic_vector(width-1 downto 0);  -- operands	S : out std_logic_vector(width-1 downto 0));  -- resultend Example;-------------------------------------------------------------------------------architecture Structural of Example isbegin  -- instantiation of adder with fast architecture  adder : Add    generic map (width, 1)    port map (A, B, S);end Structural;-------------------------------------------------------------------------------

⌨️ 快捷键说明

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