datapath_pack.vhd
来自「design compile synthesis user guide」· VHDL 代码 · 共 38 行
VHD
38 行
----------------------------------------------------------------- Package for DATAPATH functions and types for-- RTL Analyzer tutorial design----------------------------------------------------------------- Revision 1.4 1998/06/08 dannyb-- format---- Revision 1.3 1997/03/06 baldrik-- package header---- Revision 1.2 1997/02/08 baldrik-- use UNSIGNED for arithmetic---- Revision 1.1 1997/02/07 baldrik-- Initial revision---------------------------------------------------------------Library IEEE;use IEEE.Std_Logic_1164.all;package DATAPATH is constant ADDR_width : natural := 16; subtype ADDR_TYPE is std_logic_vector(ADDR_width -1 downto 0); constant CNT_width : natural := 11; subtype CNT_TYPE is std_logic_vector(CNT_width -1 downto 0); constant POINT_width : natural := 8; subtype POINT_TYPE is std_logic_vector(POINT_width -1 downto 0); function datapath ( POINTER : in POINT_TYPE; ADDR : in ADDR_TYPE) return CNT_TYPE ;end DATAPATH;
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?