Imported Upstream version 3.2.2
[debian/gnuradio] / gr-gpio / src / fpga / include / common_config_2rxint_2tx_dig.vh
1 // -*- verilog -*-
2 //
3 //  USRP - Universal Software Radio Peripheral
4 //
5 //  Copyright (C) 2006,2007 Matt Ettus
6 //  Copyright (C) 2008 Corgan Enterprises LLC
7 //
8 //  This program is free software; you can redistribute it and/or modify
9 //  it under the terms of the GNU General Public License as published by
10 //  the Free Software Foundation; either version 2 of the License, or
11 //  (at your option) any later version.
12 //
13 //  This program is distributed in the hope that it will be useful,
14 //  but WITHOUT ANY WARRANTY; without even the implied warranty of
15 //  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
16 //  GNU General Public License for more details.
17 //
18 //  You should have received a copy of the GNU General Public License
19 //  along with this program; if not, write to the Free Software
20 //  Foundation, Inc., 51 Franklin Street, Boston, MA  02110-1301  USA
21 //
22
23 // ------------------------------------------------------------
24 // If TX_ON is not defined, there is *no* transmit circuitry built
25   `define TX_ON
26
27 // ------------------------------------------------------------
28 // Define 1 and only one of TX_SINGLE, TX_DUAL and TX_QUAD
29 // to respectively enable 1, 2 or 4 transmit channels.
30 // [Please note that only TX_SINGLE and TX_DUAL are currently valid]
31 //`define TX_SINGLE
32   `define TX_DUAL
33 //`define TX_QUAD
34
35 // ------------------------------------------------------------
36 // If TX_DIG_ON is defined each transmit channel sends its I lsb and Q lsb to gpio pins
37 // The lsb bits of the analog output signal are truncated
38   `define TX_DIG_ON
39 // ------------------------------------------------------------
40 // Define TX_HB_ON to enable the transmit halfband filter
41 // [Not implemented]
42 //`define TX_HB_ON
43
44 // ------------------------------------------------------------
45 // IF RX_ON is not defined, there is *no* receive circuitry built
46   `define RX_ON
47
48 // ------------------------------------------------------------
49 // Define 1 and only one of RX_SINGLE, RX_DUAL and RX_QUAD
50 // to respectively define 1, 2 or 4 receive channels.
51
52 //`define RX_SINGLE
53   `define RX_DUAL
54 //`define RX_QUAD
55
56 // ------------------------------------------------------------
57 // Define RX_HB_ON to enable the receive halfband filter
58 // `define RX_HB_ON
59
60 // ------------------------------------------------------------
61 // Define RX_NCO_ON to enable the receive Numerical Controlled Osc
62   `define RX_NCO_ON
63
64 // ------------------------------------------------------------
65 // Define RX_CIC_ON to enable the receive Cascaded Integrator Comb filter
66 // This is mutually exclusive with RX_INTEG_ON
67 //  `define RX_CIC_ON
68
69 // ------------------------------------------------------------
70 // Define RX_INTEG_ON to enable the receive single stage integrate and dump
71 // This is mutually exclusive with RX_CIC_ON
72   `define RX_INTEG_ON
73
74 // ------------------------------------------------------------
75 // If RX_DIG_ON is defined each receive channel sends has its I lsb and Q lsb replaced by digital input from gpio pins
76 // So the analog signals are truncated to 15  bits 
77   `define RX_DIG_ON