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

Subversion Repositories minsoc

[/] [minsoc/] [branches/] [rc-1.0/] [backend/] [spartan3a_dsp_kit/] [minsoc_defines.v] - Blame information for rev 141

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 64 rfajardo
//
2
// Define FPGA manufacturer
3
//
4
//`define GENERIC_FPGA
5
//`define ALTERA_FPGA
6
`define XILINX_FPGA
7
 
8
// 
9
// Define Xilinx FPGA family
10
//
11
`ifdef XILINX_FPGA
12
//`define SPARTAN2
13
//`define SPARTAN3
14
//`define SPARTAN3E
15
`define SPARTAN3A
16
//`define VIRTEX
17
//`define VIRTEX2
18
//`define VIRTEX4
19
//`define VIRTEX5
20
 
21
//
22
// Define Altera FPGA family
23
//
24
`elsif ALTERA_FPGA
25
//`define ARRIA_GX
26
//`define ARRIA_II_GX
27
//`define CYCLONE_I
28
//`define CYCLONE_II
29
`define CYCLONE_III
30
//`define CYCLONE_III_LS
31
//`define CYCLONE_IV_E
32
//`define CYCLONE_IV_GS
33
//`define MAX_II
34
//`define MAX_V
35
//`define MAX3000A
36
//`define MAX7000AE
37
//`define MAX7000B
38
//`define MAX7000S
39
//`define STRATIX
40
//`define STRATIX_II
41
//`define STRATIX_II_GX
42
//`define STRATIX_III
43
`endif
44
 
45
//
46
// Memory
47
//
48 68 rfajardo
`define MEMORY_ADR_WIDTH   15   //MEMORY_ADR_WIDTH IS NOT ALLOWED TO BE LESS THAN 12, 
49 64 rfajardo
                                //memory is composed by blocks of address width 11
50
                                                                //Address width of memory -> select memory depth, 
51
                                //2 powers MEMORY_ADR_WIDTH defines the memory depth 
52
                                                                //the memory data width is 32 bit, 
53
                                //memory amount in Bytes = 4*memory depth
54
 
55
//
56
// Memory type  (uncomment something if ASIC or generic memory)
57
//
58
//`define GENERIC_MEMORY
59
//`define AVANT_ATP
60
//`define VIRAGE_SSP
61
//`define VIRTUALSILICON_SSP
62
 
63
 
64
//
65
// TAP selection
66
//
67
//`define GENERIC_TAP
68
`define FPGA_TAP
69
 
70
//
71
// Clock Division selection
72
//
73
//`define NO_CLOCK_DIVISION
74
//`define GENERIC_CLOCK_DIVISION
75
`define FPGA_CLOCK_DIVISION             // For Altera ALTPLL, only CYCLONE_III family has been tested.
76
 
77
//
78
// Define division
79
//
80
`define CLOCK_DIVISOR 5         //in case of GENERIC_CLOCK_DIVISION the real value will be rounded 
81
                            //down to an even value in FPGA case, check minsoc_clock_manager 
82
                            //for allowed divisors.
83
                                            //DO NOT USE CLOCK_DIVISOR = 1 COMMENT THE CLOCK DIVISION SELECTION 
84
                            //INSTEAD.
85
 
86
//
87
// Reset polarity
88
//
89
//`define NEGATIVE_RESET      //rstn
90
`define POSITIVE_RESET      //rst
91
 
92
//
93
// Start-up circuit (only necessary later to load firmware automatically from SPI memory)
94
//
95
//`define START_UP
96
 
97
//
98
// Connected modules
99
//
100
`define UART
101
`define ETHERNET
102
 
103
//
104
// Ethernet reset
105
//
106
//`define ETH_RESET     1'b0
107
`define ETH_RESET       1'b1
108
 
109
//
110
// Interrupts
111
//
112
`define APP_INT_RES1    1:0
113
`define APP_INT_UART    2
114
`define APP_INT_RES2    3
115
`define APP_INT_ETH     4
116
`define APP_INT_PS2     5
117
`define APP_INT_RES3    19:6
118
 
119
//
120
// Address map
121
//
122
`define APP_ADDR_DEC_W  8
123
`define APP_ADDR_SRAM   `APP_ADDR_DEC_W'h00
124
`define APP_ADDR_FLASH  `APP_ADDR_DEC_W'h04
125
`define APP_ADDR_DECP_W  4
126
`define APP_ADDR_PERIP  `APP_ADDR_DECP_W'h9
127
`define APP_ADDR_SPI    `APP_ADDR_DEC_W'h97
128
`define APP_ADDR_ETH    `APP_ADDR_DEC_W'h92
129
`define APP_ADDR_AUDIO  `APP_ADDR_DEC_W'h9d
130
`define APP_ADDR_UART   `APP_ADDR_DEC_W'h90
131
`define APP_ADDR_PS2    `APP_ADDR_DEC_W'h94
132
`define APP_ADDR_RES1   `APP_ADDR_DEC_W'h9e
133
`define APP_ADDR_RES2   `APP_ADDR_DEC_W'h9f
134
 
135
//
136
// Set-up GENERIC_TAP, GENERIC_MEMORY if GENERIC_FPGA was chosen
137
// and GENERIC_CLOCK_DIVISION if NO_CLOCK_DIVISION was not set
138
//
139
`ifdef GENERIC_FPGA
140
    `undef FPGA_TAP
141
    `undef FPGA_CLOCK_DIVISION
142 88 rfajardo
    `undef XILINX_FPGA
143
    `undef SPARTAN3A
144 64 rfajardo
 
145
        `define GENERIC_TAP
146
        `define GENERIC_MEMORY
147
        `ifndef NO_CLOCK_DIVISION
148
                `define GENERIC_CLOCK_DIVISION
149
        `endif
150
`endif

powered by: WebSVN 2.1.0

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