1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
|
// -*- verilog -*-
//
// USRP - Universal Software Radio Peripheral
//
// Copyright (C) 2006 Matt Ettus
// Copyright (C) 2006 Martin Dudok van Heel
//
// This program is free software; you can redistribute it and/or modify
// it under the terms of the GNU General Public License as published by
// the Free Software Foundation; either version 2 of the License, or
// (at your option) any later version.
//
// This program is distributed in the hope that it will be useful,
// but WITHOUT ANY WARRANTY; without even the implied warranty of
// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
// GNU General Public License for more details.
//
// You should have received a copy of the GNU General Public License
// along with this program; if not, write to the Free Software
// Foundation, Inc., 51 Franklin Street, Boston, MA 02110-1301 USA
//
// ====================================================================
// User control over what parts get included
//
// >>>> EDIT ONLY THIS SECTION <<<<
// Uncomment only ONE configuration
// ====================================================================
// ==== Multi usrp configurations ====
// Uncomment this for multi with 2 rx channels (w/ halfband) & 2 transmit channels
`include "usrp_multi_config_2rxhb_2tx.vh"
// Uncomment this for multi with 4 rx channels (w/o halfband) & 0 transmit channels
//`include "usrp_multi_config_4rx_0tx.vh"
// Uncomment this for multi with 2 rx channels (w/ halfband) & 0 transmit channels
//`include "usrp_multi_config_2rxhb_0tx.vh"
// Uncomment this for multi with 2 rx channels (w/o halfband) & 0 transmit channels
//`include "usrp_multi_config_2rx_0tx.vh"
// ==== Standard configurations (no multi support) ====
// Uncomment this for standard with 2 rx channels (w/ halfband) & 2 transmit channels
// `include "../usrp_std/usrp_std_config_2rxhb_2tx.vh"
// Uncomment this for standard with 4 rx channels (w/o halfband) & 0 transmit channels
//`include "../usrp_std/usrp_std_config_4rx_0tx.vh"
// Add other "known to fit" configurations here...
// ====================================================================
//
// >>>> DO NOT EDIT BELOW HERE <<<<
//
// [The stuff from here down is derived from the stuff included above]
//
// N.B., *all* the remainder of the code should be conditionalized
// only in terms of:
//
// TX_ON, TX_EN_0, TX_EN_1, TX_EN_2, TX_EN_3, TX_CAP_NCHAN, TX_CAP_HB,
// RX_ON, RX_EN_0, RX_EN_1, RX_EN_2, RX_EN_3, RX_CAP_NCHAN, RX_CAP_HB,
// RX_NCO_ON, RX_CIC_ON
// ====================================================================
`ifdef MULTI_ON
`define COUNTER_32BIT_ON
`endif
`ifdef TX_ON
`ifdef TX_SINGLE
`define TX_EN_0
`define TX_CAP_NCHAN 3'd1
`endif
`ifdef TX_DUAL
`define TX_EN_0
`define TX_EN_1
`define TX_CAP_NCHAN 3'd2
`endif
`ifdef TX_QUAD
`define TX_EN_0
`define TX_EN_1
`define TX_EN_2
`define TX_EN_3
`define TX_CAP_NCHAN 3'd4
`endif
`ifdef TX_HB_ON
`define TX_CAP_HB 1
`else
`define TX_CAP_HB 0
`endif
`else // !ifdef TX_ON
`define TX_CAP_NCHAN 3'd0
`define TX_CAP_HB 0
`endif // !ifdef TX_ON
// --------------------------------------------------------------------
`ifdef RX_ON
`ifdef RX_SINGLE
`define RX_EN_0
`define RX_CAP_NCHAN 3'd1
`endif
`ifdef RX_DUAL
`define RX_EN_0
`define RX_EN_1
`ifdef MULTI_ON
`define RX_CAP_NCHAN 3'd4
`else
`define RX_CAP_NCHAN 3'd2
`endif
`endif
`ifdef RX_QUAD
`define RX_EN_0
`define RX_EN_1
`define RX_EN_2
`define RX_EN_3
`define RX_CAP_NCHAN 3'd4
`endif
`ifdef RX_HB_ON
`define RX_CAP_HB 1
`else
`define RX_CAP_HB 0
`endif
`else // !ifdef RX_ON
`define RX_CAP_NCHAN 3'd0
`define RX_CAP_HB 0
`endif // !ifdef RX_ON
|