1 //-----------------------------------------------------------------------------
2 // Copyright (C) Proxmark3 contributors. See AUTHORS.md for details.
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.
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 `include "hi_simulate.v"
20 pck0 - input main 24MHz clock (PLL / 4)
21 [7:0] adc_d - input data from A/D converter
22 mod_type - modulation type
24 pwr_lo - output to coil drivers (ssp_clk / 8)
25 adc_clk - output A/D clock signal
26 ssp_frame - output SSS frame indicator (goes high while the 8 bits are shifted)
27 ssp_din - output SSP data to ARM (shifts 8 bit A/D value serially to ARM MSB first)
28 ssp_clk - output SSP clock signal
30 ck_1356meg - input unused
31 ck_1356megb - input unused
32 ssp_dout - input unused
33 cross_hi - input unused
34 cross_lo - input unused
36 pwr_hi - output unused, tied low
37 pwr_oe1 - output unused, undefined
38 pwr_oe2 - output unused, undefined
39 pwr_oe3 - output unused, undefined
40 pwr_oe4 - output unused, undefined
41 dbg - output alias for adc_clk
44 module testbed_hi_simulate
;
66 hi_simulate #
(5,200) dut(
68 .
ck_1356meg(ck_1356meg
),
69 .
ck_1356megb(ck_1356megb
),
78 .
ssp_frame(ssp_frame
),
92 ck_1356megb
= !ck_1356megb
;
93 ck_1356meg
= ck_1356megb
;
117 // shallow modulation off
119 for (i
= 0 ; i
< 16 ; i
= i
+ 1) begin
123 // shallow modulation on
125 for (i
= 0 ; i
< 16 ; i
= i
+ 1) begin