Merge pull request #2616 from jmichelp/fix14b
[RRG-proxmark3.git] / fpga / lo_passthru.v
bloba5ae1d4e27a5c3498d6fda880587213627b29533
1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
3 //
4 // This program is free software: you can redistribute it and/or modify
5 // it under the terms of the GNU General Public License as published by
6 // the Free Software Foundation, either version 3 of the License, or
7 // (at your option) any later version.
8 //
9 // This program is distributed in the hope that it will be useful,
10 // but WITHOUT ANY WARRANTY; without even the implied warranty of
11 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12 // GNU General Public License for more details.
14 // See LICENSE.txt for the text of the license.
15 //-----------------------------------------------------------------------------
17 // For reading TI tags, we need to place the FPGA in pass through mode
18 // and pass everything through to the ARM
20 module lo_passthru(
21 input pck_divclk,
22 input cross_lo,
23 input ssp_dout,
25 output ssp_din,
26 output adc_clk,
27 output pwr_lo,
28 output pwr_hi,
29 output pwr_oe1,
30 output pwr_oe2,
31 output pwr_oe3,
32 output pwr_oe4,
33 output debug
36 // the antenna is modulated when ssp_dout = 1, when 0 the
37 // antenna drivers stop modulating and go into listen mode
38 assign ssp_din = cross_lo;
39 assign adc_clk = 1'b0;
40 assign pwr_lo = pck_divclk && ssp_dout;
41 assign pwr_hi = 1'b0;
42 assign pwr_oe1 = ssp_dout;
43 assign pwr_oe2 = ssp_dout;
44 assign pwr_oe3 = 1'b0;
45 assign pwr_oe4 = ssp_dout;
46 assign debug = cross_lo;
48 endmodule