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

Subversion Repositories pci

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

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

Rev 33 Rev 45
Line 37... Line 37...
//////////////////////////////////////////////////////////////////////
//////////////////////////////////////////////////////////////////////
//
//
// CVS Revision History
// CVS Revision History
//
//
// $Log: not supported by cvs2svn $
// $Log: not supported by cvs2svn $
 
// Revision 1.2  2002/03/05 11:53:47  mihad
 
// Added some testcases, removed un-needed fifo signals
 
//
// Revision 1.1  2002/02/01 14:43:31  mihad
// Revision 1.1  2002/02/01 14:43:31  mihad
// *** empty log message ***
// *** empty log message ***
//
//
//
//
 
 
Line 87... Line 90...
`define ACTIVE_LOW_OE
`define ACTIVE_LOW_OE
//`define ACTIVE_HIGH_OE
//`define ACTIVE_HIGH_OE
 
 
// HOST/GUEST implementation selection - see design document and specification for description of each implementation
// HOST/GUEST implementation selection - see design document and specification for description of each implementation
// only one can be defined at same time
// only one can be defined at same time
//`define GUEST
`define GUEST
`define HOST
//`define HOST
 
 
// if NO_CNF_IMAGE is commented out, then READ-ONLY access to configuration space is ENABLED:
// if NO_CNF_IMAGE is commented out, then READ-ONLY access to configuration space is ENABLED:
// - ENABLED Read-Only access from WISHBONE for GUEST bridges
// - ENABLED Read-Only access from WISHBONE for GUEST bridges
// - ENABLED Read-Only access from PCI for HOST bridges
// - ENABLED Read-Only access from PCI for HOST bridges
// with defining NO_CNF_IMAGE, one decoder and one multiplexer are saved
// with defining NO_CNF_IMAGE, one decoder and one multiplexer are saved
Line 101... Line 104...
// number defined here specifies how many MS bits in PCI address are compared with base address, to decode
// number defined here specifies how many MS bits in PCI address are compared with base address, to decode
// accesses. Maximum number allows for minimum image size ( number = 20, image size = 4KB ), minimum number
// accesses. Maximum number allows for minimum image size ( number = 20, image size = 4KB ), minimum number
// allows for maximum image size ( number = 1, image size = 2GB ). If you intend on using different sizes of PCI images,
// allows for maximum image size ( number = 1, image size = 2GB ). If you intend on using different sizes of PCI images,
// you have to define a number of minimum sized image and enlarge others by specifying different address mask.
// you have to define a number of minimum sized image and enlarge others by specifying different address mask.
// smaller the number here, faster the decoder operation
// smaller the number here, faster the decoder operation
`define PCI_NUM_OF_DEC_ADDR_LINES 3
`define PCI_NUM_OF_DEC_ADDR_LINES 20
 
 
// no. of PCI Target IMAGES
// no. of PCI Target IMAGES
// - PCI provides 6 base address registers for image implementation.
// - PCI provides 6 base address registers for image implementation.
// PCI_IMAGE1 definition is not required and has no effect, since PCI image 1 is always implemented
// PCI_IMAGE1 definition is not required and has no effect, since PCI image 1 is always implemented
// If GUEST is defined, PCI Image 0 is also always implemented and is used for configuration space
// If GUEST is defined, PCI Image 0 is also always implemented and is used for configuration space
Line 119... Line 122...
    `ifdef NO_CNF_IMAGE
    `ifdef NO_CNF_IMAGE
        `define PCI_IMAGE0
        `define PCI_IMAGE0
    `endif
    `endif
`endif
`endif
 
 
//`define PCI_IMAGE2
`define PCI_IMAGE2
`define PCI_IMAGE3
`define PCI_IMAGE3
//`define PCI_IMAGE4
`define PCI_IMAGE4
`define PCI_IMAGE5
`define PCI_IMAGE5
 
 
// initial value for PCI image address masks. Address masks can be defined in enabled state,
// initial value for PCI image address masks. Address masks can be defined in enabled state,
// to allow device independent software to detect size of image and map base addresses to
// to allow device independent software to detect size of image and map base addresses to
// memory space. If initial mask for an image is defined as 0, then device independent software
// memory space. If initial mask for an image is defined as 0, then device independent software
// won't detect base address implemented and device dependent software will have to configure
// won't detect base address implemented and device dependent software will have to configure
// address masks as well as base addresses!
// address masks as well as base addresses!
`define PCI_AM0 20'hffff_f
`define PCI_AM0 20'hffff_e
`define PCI_AM1 20'hffff_f
`define PCI_AM1 20'hffff_c
`define PCI_AM2 20'hffff_f
`define PCI_AM2 20'hffff_8
`define PCI_AM3 20'hffff_f
`define PCI_AM3 20'hffff_0
`define PCI_AM4 20'hffff_f
`define PCI_AM4 20'hfffe_0
`define PCI_AM5 20'hffff_f
`define PCI_AM5 20'h0000_0
 
 
// initial value for PCI image maping to MEMORY or IO spaces.  If initial define is set to 0,
// initial value for PCI image maping to MEMORY or IO spaces.  If initial define is set to 0,
// then IMAGE with that base address points to MEMORY space, othervise it points ti IO space. D
// then IMAGE with that base address points to MEMORY space, othervise it points ti IO space. D
// Device independent software sets the base addresses acording to MEMORY or IO maping!
// Device independent software sets the base addresses acording to MEMORY or IO maping!
`define PCI_BA0_MEM_IO 1'b0 // considered only when PCI_IMAGE0 is used as general PCI-WB image!
`define PCI_BA0_MEM_IO 1'b0 // considered only when PCI_IMAGE0 is used as general PCI-WB image!
`define PCI_BA1_MEM_IO 1'b0
`define PCI_BA1_MEM_IO 1'b1
`define PCI_BA2_MEM_IO 1'b0
`define PCI_BA2_MEM_IO 1'b0
`define PCI_BA3_MEM_IO 1'b0
`define PCI_BA3_MEM_IO 1'b1
`define PCI_BA4_MEM_IO 1'b0
`define PCI_BA4_MEM_IO 1'b0
`define PCI_BA5_MEM_IO 1'b0
`define PCI_BA5_MEM_IO 1'b1
 
 
// number defined here specifies how many MS bits in WB address are compared with base address, to decode
// number defined here specifies how many MS bits in WB address are compared with base address, to decode
// accesses. Maximum number allows for minimum image size ( number = 20, image size = 4KB ), minimum number
// accesses. Maximum number allows for minimum image size ( number = 20, image size = 4KB ), minimum number
// allows for maximum image size ( number = 1, image size = 2GB ). If you intend on using different sizes of WB images,
// allows for maximum image size ( number = 1, image size = 2GB ). If you intend on using different sizes of WB images,
// you have to define a number of minimum sized image and enlarge others by specifying different address mask.
// you have to define a number of minimum sized image and enlarge others by specifying different address mask.
Line 175... Line 178...
//`define WB_DECODE_FAST
//`define WB_DECODE_FAST
`define WB_DECODE_MEDIUM
`define WB_DECODE_MEDIUM
//`define WB_DECODE_SLOW
//`define WB_DECODE_SLOW
 
 
// Base address for Configuration space access from WB bus. This value cannot be changed during runtime
// Base address for Configuration space access from WB bus. This value cannot be changed during runtime
`define WB_CONFIGURATION_BASE 20'h0000_0
`define WB_CONFIGURATION_BASE 20'hF300_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

powered by: WebSVN 2.1.0

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