Imported Upstream version 3.2.2
[debian/gnuradio] / usrp / fpga / toplevel / include / common_config_bottom.vh
1 // -*- verilog -*-
2 //
3 //  USRP - Universal Software Radio Peripheral
4 //
5 //  Copyright (C) 2006,2007 Matt Ettus
6 //
7 //  This program is free software; you can redistribute it and/or modify
8 //  it under the terms of the GNU General Public License as published by
9 //  the Free Software Foundation; either version 2 of the License, or
10 //  (at your option) any later version.
11 //
12 //  This program is distributed in the hope that it will be useful,
13 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
14 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
15 //  GNU General Public License for more details.
16 //
17 //  You should have received a copy of the GNU General Public License
18 //  along with this program; if not, write to the Free Software
19 //  Foundation, Inc., 51 Franklin Street, Boston, MA  02110-1301  USA
20 //
21
22 // ====================================================================
23 //         This is the common tail for standard configuation
24 // ====================================================================
25 // 
26 //                  >>>> DO NOT EDIT BELOW HERE <<<<
27 //
28 // N.B., *all* the remainder of the code should be conditionalized
29 // only in terms of:
30 //
31 //  TX_ON, TX_EN_0, TX_EN_1, TX_EN_2, TX_EN_3, TX_CAP_NCHAN, TX_CAP_HB,
32 //  RX_ON, RX_EN_0, RX_EN_1, RX_EN_2, RX_EN_3, RX_CAP_NCHAN, RX_CAP_HB,
33 //  RX_NCO_ON, RX_CIC_ON
34 // ====================================================================
35
36 `ifdef TX_ON
37
38  `ifdef TX_SINGLE
39   `define TX_EN_0
40   `define TX_CAP_NCHAN 3'd1
41  `endif
42
43  `ifdef TX_DUAL
44   `define TX_EN_0
45   `define TX_EN_1
46   `define TX_CAP_NCHAN 3'd2
47  `endif
48
49  `ifdef TX_QUAD
50   `define TX_EN_0
51   `define TX_EN_1
52   `define TX_EN_2
53   `define TX_EN_3
54   `define TX_CAP_NCHAN 3'd4
55  `endif
56
57  `ifdef TX_HB_ON
58   `define TX_CAP_HB   1
59  `else
60   `define TX_CAP_HB   0
61  `endif
62
63 `else   // !ifdef TX_ON
64
65  `define TX_CAP_NCHAN 3'd0
66  `define TX_CAP_HB 0
67
68 `endif // !ifdef TX_ON
69
70 // --------------------------------------------------------------------
71
72 `ifdef RX_ON
73
74  `ifdef RX_SINGLE
75   `define RX_EN_0
76   `define RX_CAP_NCHAN 3'd1
77  `endif
78
79  `ifdef RX_DUAL
80   `define RX_EN_0
81   `define RX_EN_1
82   `define RX_CAP_NCHAN 3'd2
83  `endif
84
85  `ifdef RX_QUAD
86   `define RX_EN_0
87   `define RX_EN_1
88   `define RX_EN_2
89   `define RX_EN_3
90   `define RX_CAP_NCHAN 3'd4
91  `endif
92
93  `ifdef RX_HB_ON
94   `define RX_CAP_HB   1
95  `else
96   `define RX_CAP_HB   0
97  `endif
98
99 `else   // !ifdef RX_ON
100
101  `define RX_CAP_NCHAN 3'd0
102  `define RX_CAP_HB 0
103
104 `endif // !ifdef RX_ON