Line 42... |
Line 42... |
//////////////////////////////////////////////////////////////////////
|
//////////////////////////////////////////////////////////////////////
|
//
|
//
|
// CVS Revision History
|
// CVS Revision History
|
//
|
//
|
// $Log: not supported by cvs2svn $
|
// $Log: not supported by cvs2svn $
|
|
// Revision 1.1 2001/09/18 18:49:07 lampret
|
|
// Changed top level ptc into gpio_top. Changed defines.v into gpio_defines.v.
|
|
//
|
// Revision 1.1 2001/08/21 21:39:28 lampret
|
// Revision 1.1 2001/08/21 21:39:28 lampret
|
// Changed directory structure, port names and drfines.
|
// Changed directory structure, port names and drfines.
|
//
|
//
|
// Revision 1.3 2001/07/15 00:21:10 lampret
|
// Revision 1.3 2001/07/15 00:21:10 lampret
|
// Registers can be omitted and will have certain default values
|
// Registers can be omitted and will have certain default values
|
Line 78... |
Line 81... |
// Defined by default (duhh !).
|
// Defined by default (duhh !).
|
//
|
//
|
`define GPIO_IMPLEMENTED
|
`define GPIO_IMPLEMENTED
|
|
|
//
|
//
|
|
// Define to register all WISHBONE outputs.
|
|
//
|
|
// Register outputs if you are using GPIO core as a block and synthesizing
|
|
// and place&routing it separately from the rest of the system.
|
|
//
|
|
// If you do not need registered outputs, you can save some area by not defining
|
|
// this macro. By default it is defined.
|
|
//
|
|
`define GPIO_REGISTERED_WB_OUTPUTS
|
|
|
|
//
|
|
// Define to register all GPIO pad outputs.
|
|
//
|
|
// Register outputs if you are using GPIO core as a block and synthesizing
|
|
// and place&routing it separately from the rest of the system.
|
|
//
|
|
// If you do not need registered outputs, you can save some area by not defining
|
|
// this macro. By default it is defined.
|
|
//
|
|
`define GPIO_REGISTERED_IO_OUTPUTS
|
|
|
|
//
|
|
// Define to avoid using negative edge clock flip-flops for external clock
|
|
// (caused by RGPIO_CTRL[NEC] bit. Instead an inverted external clock with
|
|
// positive edge clock flip-flops will be used.
|
|
//
|
|
// By default it is defined.
|
|
//
|
|
`define GPIO_NO_NEGEDGE_FLOPS
|
|
|
|
//
|
// Undefine if you don't need to read GPIO registers except for RGPIO_IN register.
|
// Undefine if you don't need to read GPIO registers except for RGPIO_IN register.
|
// When it is undefined all reads of GPIO registers return RGPIO_IN register. This
|
// When it is undefined all reads of GPIO registers return RGPIO_IN register. This
|
// is usually useful if you want really small area (for example when implemented in
|
// is usually useful if you want really small area (for example when implemented in
|
// FPGA).
|
// FPGA).
|
//
|
//
|
Line 112... |
Line 146... |
`define GPIO_STRICT_32BIT_ACCESS
|
`define GPIO_STRICT_32BIT_ACCESS
|
|
|
//
|
//
|
// WISHBONE address bits used for full decoding of GPIO registers.
|
// WISHBONE address bits used for full decoding of GPIO registers.
|
//
|
//
|
`define GPIO_ADDRHH 15
|
`define GPIO_ADDRHH 6
|
`define GPIO_ADDRHL 5
|
`define GPIO_ADDRHL 5
|
`define GPIO_ADDRLH 1
|
`define GPIO_ADDRLH 1
|
`define GPIO_ADDRLL 0
|
`define GPIO_ADDRLL 0
|
|
|
//
|
//
|