📄 datapath_pack.vhd
字号:
----------------------------------------------------------------- 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 + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -