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

📄 usbpkg.vhd

📁 USBHostSlave is a USB 1.1 host and Device IP core. – Supports full speed (12Mbps) and low speed (1.
💻 VHD
字号:
LIBRARY std;USE std.textio.ALL;LIBRARY utilities;  USE utilities.standard_utils.ALL;PACKAGE usbpkg IS  constant PTIME: time :=  1 us;  -- packet time  constant RTIME: time :=  70 ns; -- turn around time  constant MAXENDPT: natural := 32;  -- maximum # of endpoints  type ptype is (NONE, POUT, PIN, PACK,ERR);  type upkt is     RECORD       id:  ptype;      dest : integer ;      data: string(1 to 80);    END RECORD;  type upkt_vector is array (natural range <>) of upkt;  function resolve_upkt (s : upkt_vector) return upkt;  subtype pkt is resolve_upkt upkt;   END usbpkg;PACKAGE BODY usbpkg IS  -- dummy function, you need to fix this  function resolve_upkt (s : upkt_vector) return upkt is   begin    return(s(0));   end resolve_upkt;end  usbpkg;

⌨️ 快捷键说明

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