OpenCores
URL https://opencores.org/ocsvn/pci/pci/trunk

Subversion Repositories pci

[/] [pci/] [tags/] [rel_6/] [rtl/] [verilog/] [pci_user_constants.v] - Diff between revs 18 and 33

Go to most recent revision | Show entire file | Details | Blame | View Log

Rev 18 Rev 33
Line 37... Line 37...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.1  2002/02/01 14:43:31  mihad
 
// *** empty log message ***
 
//
//
//
 
 
// Fifo implementation defines:
// Fifo implementation defines:
// If FPGA and XILINX are defined, Xilinx's BlockSelectRAM+ is instantiated for Fifo storage.
// If FPGA and XILINX are defined, Xilinx's BlockSelectRAM+ is instantiated for Fifo storage.
// 16 bit width is used, so 8 bits of address ( 256 ) locations are available. If RAM_DONT_SHARE is not defined (commented out),
// 16 bit width is used, so 8 bits of address ( 256 ) locations are available. If RAM_DONT_SHARE is not defined (commented out),
Line 52... Line 55...
// If RAM_DONT_SHARE is defined, then all RAM address lengths must be specified accordingly, otherwise there are two relevant lengths - PCI_FIFO_RAM_ADDR_LENGTH and
// If RAM_DONT_SHARE is defined, then all RAM address lengths must be specified accordingly, otherwise there are two relevant lengths - PCI_FIFO_RAM_ADDR_LENGTH and
// WB_FIFO_RAM_ADDR_LENGTH.
// WB_FIFO_RAM_ADDR_LENGTH.
 
 
`define WBW_ADDR_LENGTH 6
`define WBW_ADDR_LENGTH 6
`define WBR_ADDR_LENGTH 4
`define WBR_ADDR_LENGTH 4
`define PCIW_ADDR_LENGTH 6
`define PCIW_ADDR_LENGTH 3
`define PCIR_ADDR_LENGTH 3
`define PCIR_ADDR_LENGTH 3
 
 
`define FPGA
//`define FPGA
`define XILINX
//`define XILINX
 
 
//`define WB_RAM_DONT_SHARE
//`define WB_RAM_DONT_SHARE
//`define PCI_RAM_DONT_SHARE
//`define PCI_RAM_DONT_SHARE
 
 
`ifdef FPGA
`ifdef FPGA
Line 71... Line 74...
        `define WB_XILINX_RAMB4
        `define WB_XILINX_RAMB4
        //`define PCI_XILINX_DIST_RAM
        //`define PCI_XILINX_DIST_RAM
        //`define WB_XILINX_DIST_RAM
        //`define WB_XILINX_DIST_RAM
    `endif
    `endif
`else
`else
    `define PCI_FIFO_RAM_ADDR_LENGTH 8      // PCI target unit fifo storage definition when RAM sharing is used ( both pcir and pciw fifo use same instance of RAM )
    `define PCI_FIFO_RAM_ADDR_LENGTH 4      // PCI target unit fifo storage definition when RAM sharing is used ( both pcir and pciw fifo use same instance of RAM )
    `define WB_FIFO_RAM_ADDR_LENGTH 8       // WB slave unit fifo storage definition when RAM sharing is used ( both wbr and wbw fifo use same instance of RAM )
    `define WB_FIFO_RAM_ADDR_LENGTH 7       // WB slave unit fifo storage definition when RAM sharing is used ( both wbr and wbw fifo use same instance of RAM )
    `define WB_ARTISAN_SDP
//    `define WB_ARTISAN_SDP
    `define PCI_ARTISAN_SDP
//    `define PCI_ARTISAN_SDP
`endif
`endif
 
 
// these two defines allow user to select active high or low output enables on PCI bus signals, depending on
// these two defines allow user to select active high or low output enables on PCI bus signals, depending on
// output buffers instantiated. Xilinx FPGAs use active low output enables.
// output buffers instantiated. Xilinx FPGAs use active low output enables.
`define ACTIVE_LOW_OE
`define ACTIVE_LOW_OE
Line 177... Line 180...
`define WB_CONFIGURATION_BASE 20'h0000_0
`define WB_CONFIGURATION_BASE 20'h0000_0
 
 
// Turn registered WISHBONE slave outputs on or off
// Turn registered WISHBONE slave outputs on or off
// all outputs from WB Slave state machine are registered, if this is defined - WB bus outputs as well as
// all outputs from WB Slave state machine are registered, if this is defined - WB bus outputs as well as
// outputs to internals of the core.
// outputs to internals of the core.
`define REGISTER_WBS_OUTPUTS
//`define REGISTER_WBS_OUTPUTS
 
 
/*-----------------------------------------------------------------------------------------------------------
/*-----------------------------------------------------------------------------------------------------------
Core speed definition - used for simulation and 66MHz Capable bit value in status register indicating 66MHz
Core speed definition - used for simulation and 66MHz Capable bit value in status register indicating 66MHz
capable device
capable device
-----------------------------------------------------------------------------------------------------------*/
-----------------------------------------------------------------------------------------------------------*/
Line 199... Line 202...
`define HEADER_REVISION_ID  8'h01
`define HEADER_REVISION_ID  8'h01
 
 
// Turn registered WISHBONE master outputs on or off
// Turn registered WISHBONE master outputs on or off
// all outputs from WB Master state machine are registered, if this is defined - WB bus outputs as well as
// all outputs from WB Master state machine are registered, if this is defined - WB bus outputs as well as
// outputs to internals of the core.
// outputs to internals of the core.
//`define REGISTER_WBM_OUTPUTS
`define REGISTER_WBM_OUTPUTS
 
 
// MAX Retry counter value for WISHBONE Master state-machine
// MAX Retry counter value for WISHBONE Master state-machine
//      This value is 8-bit because of 8-bit retry counter !!!
//      This value is 8-bit because of 8-bit retry counter !!!
`define WB_RTY_CNT_MAX                  8'hff
`define WB_RTY_CNT_MAX                  8'hff
 
 
 No newline at end of file
 No newline at end of file

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.