wbi2cparams.vhd

来自「Routine for I2C in VHDL」· VHDL 代码 · 共 39 行

VHD
39
字号
--	Package File Template----	Purpose: This package defines supplemental types, subtypes, --		 constants, and functions ---- $Id: WBi2cParams.vhd 356 2007-11-02 15:22:13Z mafgani $library IEEE;use IEEE.STD_LOGIC_1164.all;package WBi2cParams is-- Declare constants   -- Addresses of core registers   constant PRER_LO  : std_logic_vector(2 downto 0) := b"000";   constant PRER_HI  : std_logic_vector(2 downto 0) := b"001";   constant CTR      : std_logic_vector(2 downto 0) := b"010";   constant TXR      : std_logic_vector(2 downto 0) := b"011";   constant RXR      : std_logic_vector(2 downto 0) := b"011";   constant CR       : std_logic_vector(2 downto 0) := b"100";   constant SR       : std_logic_vector(2 downto 0) := b"100";      constant RD       : std_logic := '1';   constant WR       : std_logic := '0';      -- Address of the SLAVE I2C device -> EEPROM model   constant SADR     : std_logic_vector(6 downto 0) := b"1010000";      -- Clock period (100MHz)   constant PERIOD   : time := 10ns;end WBi2cParams;package body WBi2cParams isend WBi2cParams;

⌨️ 快捷键说明

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