📄 pci_bridge32.v
字号:
////////////////////////////////////////////////////////////////////////// //////// File name "pci_bridge32.v" //////// //////// This file is part of the "PCI bridge" project //////// http://www.opencores.org/cores/pci/ //////// //////// Author(s): //////// - Miha Dolenc (mihad@opencores.org) //////// - Tadej Markovic (tadej@opencores.org) //////// //////// All additional information is avaliable in the README //////// file. //////// //////// ////////////////////////////////////////////////////////////////////////////// //////// Copyright (C) 2001 Miha Dolenc, mihad@opencores.org //////// //////// 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 source file is free software; you can redistribute it //////// and/or modify it under the terms of the GNU Lesser General //////// Public License as published by the Free Software Foundation; //////// either version 2.1 of the License, or (at your option) any //////// later version. //////// //////// This source 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 Lesser General Public License for more //////// details. //////// //////// You should have received a copy of the GNU Lesser General //////// Public License along with this source; if not, download it //////// from http://www.opencores.org/lgpl.shtml //////// ////////////////////////////////////////////////////////////////////////////// CVS Revision History//// $Log: pci_bridge32.v,v $// Revision 1.17 2004/01/24 11:54:18 mihad// Update! SPOCI Implemented!//// Revision 1.16 2003/12/19 11:11:30 mihad// Compact PCI Hot Swap support added.// New testcases added.// Specification updated.// Test application changed to support WB B3 cycles.//// Revision 1.15 2003/12/10 12:02:54 mihad// The wbs B3 to B2 translation logic had wrong reset wire connected!//// Revision 1.14 2003/12/09 09:33:57 simons// Some warning cleanup.//// Revision 1.13 2003/10/17 09:11:52 markom// mbist signals updated according to newest convention//// Revision 1.12 2003/08/21 20:49:03 tadejm// Added signals for WB Master B3.//// Revision 1.11 2003/08/08 16:36:33 tadejm// Added 'three_left_out' to pci_pciw_fifo signaling three locations before full. Added comparison between current registered cbe and next unregistered cbe to signal wb_master whether it is allowed to performe burst or not. Due to this, I needed 'three_left_out' so that writing to pci_pciw_fifo can be registered, otherwise timing problems would occure.//// Revision 1.10 2003/08/03 18:05:06 mihad// Added limited WISHBONE B3 support for WISHBONE Slave Unit.// Doesn't support full speed bursts yet.//// Revision 1.9 2003/01/27 16:49:31 mihad// Changed module and file names. Updated scripts accordingly. FIFO synchronizations changed.//// Revision 1.8 2002/10/21 13:04:33 mihad// Changed BIST signal names etc..//// Revision 1.7 2002/10/18 03:36:37 tadejm// Changed wrong signal name mbist_sen into mbist_ctrl_i.//// Revision 1.6 2002/10/17 22:51:50 tadejm// Changed BIST signals for RAMs.//// Revision 1.5 2002/10/11 10:09:01 mihad// Added additional testcase and changed rst name in BIST to trst//// Revision 1.4 2002/10/08 17:17:05 mihad// Added BIST signals for RAMs.//// Revision 1.3 2002/02/01 15:25:12 mihad// Repaired a few bugs, updated specification, added test bench files and design document//// Revision 1.2 2001/10/05 08:14:28 mihad// Updated all files with inclusion of timescale file for simulation purposes.//// Revision 1.1.1.1 2001/10/02 15:33:46 mihad// New project directory structure////`include "pci_constants.v"// synopsys translate_off`include "timescale.v"// synopsys translate_on// this is top level module of pci bridge core// it instantiates and connects other lower level modules// check polarity of PCI output enables in file out_reg.v and change it according to IO interface specificationmodule pci_bridge32( // WISHBONE system signals wb_clk_i, wb_rst_i, wb_rst_o, wb_int_i, wb_int_o, // WISHBONE slave interface wbs_adr_i, wbs_dat_i, wbs_dat_o, wbs_sel_i, wbs_cyc_i, wbs_stb_i, wbs_we_i,`ifdef PCI_WB_REV_B3 wbs_cti_i, wbs_bte_i,`else wbs_cab_i,`endif wbs_ack_o, wbs_rty_o, wbs_err_o, // WISHBONE master interface wbm_adr_o, wbm_dat_i, wbm_dat_o, wbm_sel_o, wbm_cyc_o, wbm_stb_o, wbm_we_o, wbm_cti_o, wbm_bte_o, wbm_ack_i, wbm_rty_i, wbm_err_i, // pci interface - system pins pci_clk_i, pci_rst_i, pci_rst_o, pci_inta_i, pci_inta_o, pci_rst_oe_o, pci_inta_oe_o, // arbitration pins pci_req_o, pci_req_oe_o, pci_gnt_i, // protocol pins pci_frame_i, pci_frame_o, pci_frame_oe_o, pci_irdy_oe_o, pci_devsel_oe_o, pci_trdy_oe_o, pci_stop_oe_o, pci_ad_oe_o, pci_cbe_oe_o, pci_irdy_i, pci_irdy_o, pci_idsel_i, pci_devsel_i, pci_devsel_o, pci_trdy_i, pci_trdy_o, pci_stop_i, pci_stop_o , // data transfer pins pci_ad_i, pci_ad_o, pci_cbe_i, pci_cbe_o, // parity generation and checking pins pci_par_i, pci_par_o, pci_par_oe_o, pci_perr_i, pci_perr_o, pci_perr_oe_o, // system error pin pci_serr_o, pci_serr_oe_o`ifdef PCI_BIST , // debug chain signals mbist_si_i, // bist scan serial in mbist_so_o, // bist scan serial out mbist_ctrl_i // bist chain shift control`endif`ifdef PCI_CPCI_HS_IMPLEMENT , // Compact PCI Hot Swap signals pci_cpci_hs_enum_o , // ENUM# output with output enable (open drain) pci_cpci_hs_enum_oe_o , // ENUM# enum output enable pci_cpci_hs_led_o , // LED output with output enable (open drain) pci_cpci_hs_led_oe_o , // LED output enable pci_cpci_hs_es_i // ejector switch state indicator input`endif`ifdef PCI_SPOCI , // Serial power on configuration interface spoci_scl_o , spoci_scl_oe_o , spoci_sda_i , spoci_sda_o , spoci_sda_oe_o`endif);// WISHBONE system signalsinput wb_clk_i ;input wb_rst_i ;output wb_rst_o ;input wb_int_i ;output wb_int_o ;// WISHBONE slave interfaceinput [31:0] wbs_adr_i ;input [31:0] wbs_dat_i ;output [31:0] wbs_dat_o ;input [3:0] wbs_sel_i ;input wbs_cyc_i ;input wbs_stb_i ;input wbs_we_i ;`ifdef PCI_WB_REV_B3input [2:0] wbs_cti_i ;input [1:0] wbs_bte_i ;`elseinput wbs_cab_i ;`endifoutput wbs_ack_o ;output wbs_rty_o ;output wbs_err_o ;// WISHBONE master interfaceoutput [31:0] wbm_adr_o ;input [31:0] wbm_dat_i ;output [31:0] wbm_dat_o ;output [3:0] wbm_sel_o ;output wbm_cyc_o ;
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -