xspphy.vhd
来自「USB接口控制器参考设计」· VHDL 代码 · 共 65 行
VHD
65 行
--------------------------------------------------------------------------------
-- Copyright (c) 2000 by Trenz Electronic.
-- Duenner Kirchweg 77, 32257 Buende, Germany, www.trenz-electronic.de
--
-- This program is free software; you can redistribute it and/or modify
-- it under the terms of the GNU General Public License as published by
-- the Free Software Foundation; either version 2 of the License, or
-- (at your option) any later version.
--
-- This program is distributed in the hope that it will be useful,
-- but WITHOUT ANY WARRANTY; without even the implied warranty of
-- MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-- GNU General Public License for more details.
--
-- You should have received a copy of the GNU General Public License
-- along with this program; if not, write to the Free Software
-- Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
--------------------------------------------------------------------------------
-- Project: Full-Speed USB 1.1 Function Controller
-- File: xspPHY.vhd
-- Description: XSP-010 board, Philips PDIUSBP11A USB Transceiver interface.
-- Version: FB, 2000jul29
--------------------------------------------------------------------------------
library IEEE;
use IEEE.STD_LOGIC_1164.all;
entity xspPHY is
port(
-- Function Controller interface
urxd: out STD_LOGIC;
urx0: out STD_LOGIC;
utxd: in STD_LOGIC;
utx0: in STD_LOGIC;
utxoe: in STD_LOGIC;
-- PDIUSBP11A interface
vp: in STD_LOGIC;
vm: in STD_LOGIC;
vpo: out STD_LOGIC;
fse0: out STD_LOGIC;
oe: out STD_LOGIC
);
end xspPHY;
--------------------------------------------------------------------------------
architecture BHV of xspPHY is
signal v, u: STD_LOGIC_VECTOR(1 downto 0);
begin
v<= vp & vm;
with v select u<=
"10" when "10",
"00" when "01",
"01" when "00",
"-0" when others;
urxd<= u(u'left);
urx0<= u(u'right);
vpo <= utxd;
fse0<= utx0;
oe <= not(utxoe);
end BHV;
--------------------------------------------------------------------------------
-- end of file
⌨️ 快捷键说明
复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?