Line 1... |
Line 1... |
//
|
//
|
// Define FPGA manufacturer
|
// Define FPGA manufacturer
|
//
|
//
|
//`define GENERIC_FPGA
|
`define GENERIC_FPGA
|
//`define ALTERA_FPGA
|
//`define ALTERA_FPGA
|
`define XILINX_FPGA
|
//`define XILINX_FPGA
|
|
|
//
|
//
|
// Define Xilinx FPGA family
|
// Define Xilinx FPGA family
|
//
|
//
|
`ifdef XILINX_FPGA
|
`ifdef XILINX_FPGA
|
Line 43... |
Line 43... |
`endif
|
`endif
|
|
|
//
|
//
|
// Memory
|
// Memory
|
//
|
//
|
`define MEMORY_ADR_WIDTH 13 //MEMORY_ADR_WIDTH IS NOT ALLOWED TO BE LESS THAN 12, memory is composed by blocks of address width 11
|
`define MEMORY_ADR_WIDTH 13 //MEMORY_ADR_WIDTH IS NOT ALLOWED TO BE LESS THAN 12,
|
//Address width of memory -> select memory depth, 2 powers MEMORY_ADR_WIDTH defines the memory depth
|
//memory is composed by blocks of address width 11
|
//the memory data width is 32 bit, memory amount in Bytes = 4*memory depth
|
//Address width of memory -> select memory depth,
|
|
//2 powers MEMORY_ADR_WIDTH defines the memory depth
|
|
//the memory data width is 32 bit,
|
|
//memory amount in Bytes = 4*memory depth
|
|
|
//
|
//
|
// Memory type (uncomment something if ASIC or generic memory)
|
// Memory type (uncomment something if ASIC or generic memory)
|
//
|
//
|
//`define GENERIC_MEMORY
|
//`define GENERIC_MEMORY
|
Line 72... |
Line 75... |
`define FPGA_CLOCK_DIVISION // For Altera ALTPLL, only CYCLONE_III family has been tested.
|
`define FPGA_CLOCK_DIVISION // For Altera ALTPLL, only CYCLONE_III family has been tested.
|
|
|
//
|
//
|
// Define division
|
// Define division
|
//
|
//
|
`define CLOCK_DIVISOR 5 //in case of GENERIC_CLOCK_DIVISION the real value will be rounded down to an even value
|
`define CLOCK_DIVISOR 5 //in case of GENERIC_CLOCK_DIVISION the real value will be rounded
|
//in FPGA case, check minsoc_clock_manager for allowed divisors
|
//down to an even value in FPGA case, check minsoc_clock_manager
|
//DO NOT USE CLOCK_DIVISOR = 1 COMMENT THE CLOCK DIVISION SELECTION INSTEAD
|
//for allowed divisors.
|
|
//DO NOT USE CLOCK_DIVISOR = 1 COMMENT THE CLOCK DIVISION SELECTION
|
|
//INSTEAD.
|
|
|
//
|
//
|
// Reset polarity
|
// Reset polarity
|
//
|
//
|
//`define NEGATIVE_RESET //rstn
|
`define NEGATIVE_RESET //rstn
|
`define POSITIVE_RESET //rst
|
//`define POSITIVE_RESET //rst
|
|
|
//
|
//
|
// Start-up circuit (only necessary later to load firmware automatically from SPI memory)
|
// Start-up circuit (only necessary later to load firmware automatically from SPI memory)
|
//
|
//
|
//`define START_UP
|
//`define START_UP
|
|
|
//
|
//
|
// Connected modules
|
// Connected modules
|
//
|
//
|
`define UART
|
`define UART
|
//`define ETHERNET
|
`define ETHERNET
|
|
|
//
|
//
|
// Ethernet reset
|
// Ethernet reset
|
//
|
//
|
//`define ETH_RESET 1'b0
|
`define ETH_RESET 1'b0
|
`define ETH_RESET 1'b1
|
//`define ETH_RESET 1'b1
|
|
|
//
|
//
|
// Interrupts
|
// Interrupts
|
//
|
//
|
`define APP_INT_RES1 1:0
|
`define APP_INT_RES1 1:0
|