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

📄 wbi2cparams.vhd

📁 模拟I2C EEPROM的VHDL代码。如常见的24c02等。
💻 VHD
字号:
--	Package File Template----	Purpose: This package defines supplemental types, subtypes, --		 constants, and functions ---- $Id: WBi2cParams.vhd 168 2007-04-16 12:48:15Z 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   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 + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -