📄 usb1_transceiver.v
字号:
/////////////////////////////////////////////////////////////////////
//// ////
//// USB 1.1 function IP transceiver ////
//// ////
//// ////
//// Author: Steve Chou ////
//// stevechou@21cn.com ////
//// ////
//// ////
//// Downloaded from: http://www.opencores.org/cores/usb1_funct/////
//// ////
/////////////////////////////////////////////////////////////////////
//// ////
//// Copyright (C) 2004-2004 Steve Chou ////
//// www.edaking.com ////
//// stevechou@21cn.com ////
//// ////
//// This source file may be used and distributed without ////
//// restriction provided that this copyright statement is not ////
//// removed from the file and that any derivative work contains ////
//// the original copyright notice and the associated disclaimer.////
//// ////
//// THIS SOFTWARE IS PROVIDED ``AS IS'' AND WITHOUT ANY ////
//// EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED ////
//// TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS ////
//// FOR A PARTICULAR PURPOSE. IN NO EVENT SHALL THE AUTHOR ////
//// OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, ////
//// INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES ////
//// (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE ////
//// GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR ////
//// BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF ////
//// LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT ////
//// (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT ////
//// OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE ////
//// POSSIBILITY OF SUCH DAMAGE. ////
//// ////
/////////////////////////////////////////////////////////////////////
// CVS Log
//
// $Id: usb1_transceiver.v,v 1.0 2004/02/22 23:01:55 Steve Chou Exp $
//
// $Date: 2004/02/22 23:01:55 $
// $Revision: 1.0 $
// $Author: Steve Chou $
// $Locker: $
// $State: Exp $
//
// Change History:
// $Log: usb1_transceiver.v,v $
// Revision 1.0 2004/02/22 23:01:55 Steve Chou
//
//
//
//
//
//
//
//
`include "usb1_defines.v"
module usb1_transceiver (
dp, dn,
tx_dp, tx_dn, tx_oe,
rx_d, rx_dp, rx_dn);
inout dp;
inout dn;
input tx_dp;
input tx_dn;
input tx_oe;
output rx_d;
output rx_dp;
output rx_dn;
wire dp;
wire dn;
wire tx_dp;
wire tx_dn;
wire tx_oe;
wire rx_d;
wire rx_dp;
wire rx_dn;
assign dp = tx_oe ? 1'bz : tx_dp;
assign dn = tx_oe ? 1'bz : tx_dn;
assign rx_d = dp;
assign rx_dp = dp;
assign rx_dn = dn;
endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -