mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-10 17:49:32 +08:00
6658905f18
It is identical to the popular 20081211, with the doob addition (20090301), a linux client, and two additional commands for LF analysis. Let me know if you find issues here!
50 lines
963 B
Verilog
50 lines
963 B
Verilog
`include "fpga.v"
|
|
|
|
module testbed_fpga;
|
|
reg spck, mosi, ncs;
|
|
wire miso;
|
|
reg pck0i, ck_1356meg, ck_1356megb;
|
|
wire pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4;
|
|
reg [7:0] adc_d;
|
|
wire adc_clk, adc_noe;
|
|
reg ssp_dout;
|
|
wire ssp_frame, ssp_din, ssp_clk;
|
|
|
|
fpga dut(
|
|
spck, miso, mosi, ncs,
|
|
pck0i, ck_1356meg, ck_1356megb,
|
|
pwr_lo, pwr_hi, pwr_oe1, pwr_oe2, pwr_oe3, pwr_oe4,
|
|
adc_d, adc_clk, adc_noe,
|
|
ssp_frame, ssp_din, ssp_dout, ssp_clk
|
|
);
|
|
|
|
integer i;
|
|
|
|
initial begin
|
|
|
|
// init inputs
|
|
#5 ncs=1;
|
|
#5 spck = 1;
|
|
#5 mosi = 1;
|
|
|
|
#50 ncs=0;
|
|
for (i = 0 ; i < 8 ; i = i + 1) begin
|
|
#5 mosi = $random;
|
|
#5 spck = 0;
|
|
#5 spck = 1;
|
|
end
|
|
#5 ncs=1;
|
|
|
|
#50 ncs=0;
|
|
for (i = 0 ; i < 8 ; i = i + 1) begin
|
|
#5 mosi = $random;
|
|
#5 spck = 0;
|
|
#5 spck = 1;
|
|
end
|
|
#5 ncs=1;
|
|
|
|
#50 mosi=1;
|
|
$finish;
|
|
end
|
|
|
|
endmodule // main
|