mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2024-11-11 01:55:38 +08:00
81 lines
3.8 KiB
Verilog
81 lines
3.8 KiB
Verilog
//////////////////////////////////////////////////////////////////////////////////
|
|
// Company:
|
|
// Engineer:
|
|
//
|
|
// Create Date: 16:09:14 05/13/2020
|
|
// Design Name:
|
|
// Module Name: fpga_all_in_one
|
|
// Project Name:
|
|
// Target Devices:
|
|
// Tool versions:
|
|
// Description:
|
|
//
|
|
// Dependencies:
|
|
//
|
|
// Revision:
|
|
// Revision 0.01 - File Created
|
|
// Additional Comments:
|
|
//
|
|
//////////////////////////////////////////////////////////////////////////////////
|
|
module fpga_hf(
|
|
input spck, output miso, input mosi, input ncs,
|
|
input pck0, input ck_1356meg, input ck_1356megb,
|
|
output pwr_lo, output pwr_hi,
|
|
output pwr_oe1, output pwr_oe2, output pwr_oe3, output pwr_oe4,
|
|
input [7:0] adc_d, output adc_clk, output adc_noe,
|
|
output ssp_frame, output ssp_din, input ssp_dout, output ssp_clk,
|
|
input cross_hi, input cross_lo,
|
|
output dbg,
|
|
output PWR_LO_EN,
|
|
input FPGA_SWITCH
|
|
);
|
|
|
|
|
|
fpga_hfmod hfmod(
|
|
hfspck, hfmiso, hfmosi, hfncs,
|
|
hfpck0, hfck_1356meg, hfck_1356megb,
|
|
hfpwr_lo, hfpwr_hi,
|
|
hfpwr_oe1, hfpwr_oe2, hfpwr_oe3, hfpwr_oe4,
|
|
adc_d, hfadc_clk, hfadc_noe,
|
|
hfssp_frame, hfssp_din, hfssp_dout, hfssp_clk,
|
|
hfcross_hi, hfcross_lo,
|
|
hfdbg
|
|
);
|
|
|
|
fpga_lfmod lfmod(
|
|
lfspck, lfmiso, lfmosi, lfncs,
|
|
lfpck0, lfck_1356meg, lfck_1356megb,
|
|
lfpwr_lo, lfpwr_hi,
|
|
lfpwr_oe1, lfpwr_oe2, lfpwr_oe3, lfpwr_oe4,
|
|
adc_d, lfadc_clk, lfadc_noe,
|
|
lfssp_frame, lfssp_din, lfssp_dout, lfssp_clk,
|
|
lfcross_hi, lfcross_lo,
|
|
lfdbg,
|
|
lfPWR_LO_EN
|
|
);
|
|
|
|
mux2_oneout mux_spck_all (FPGA_SWITCH, spck, hfspck, lfspck);
|
|
mux2_one mux_miso_all (FPGA_SWITCH, miso, hfmiso, lfmiso);
|
|
mux2_oneout mux_mosi_all (FPGA_SWITCH, mosi, hfmosi, lfmosi);
|
|
mux2_oneout mux_ncs_all (FPGA_SWITCH, ncs, hfncs, lfncs);
|
|
mux2_oneout mux_pck0_all (FPGA_SWITCH, pck0, hfpck0, lfpck0);
|
|
mux2_oneout mux_ck_1356meg_all (FPGA_SWITCH, ck_1356meg, hfck_1356meg, lfck_1356meg);
|
|
mux2_oneout mux_ck_1356megb_all (FPGA_SWITCH, ck_1356megb, hfck_1356megb, lfck_1356megb);
|
|
mux2_one mux_pwr_lo_all (FPGA_SWITCH, pwr_lo, hfpwr_lo, lfpwr_lo);
|
|
mux2_one mux_pwr_hi_all (FPGA_SWITCH, pwr_hi, hfpwr_hi, lfpwr_hi);
|
|
mux2_one mux_pwr_oe1_all (FPGA_SWITCH, pwr_oe1, hfpwr_oe1, lfpwr_oe1);
|
|
mux2_one mux_pwr_oe2_all (FPGA_SWITCH, pwr_oe2, hfpwr_oe2, lfpwr_oe2);
|
|
mux2_one mux_pwr_oe3_all (FPGA_SWITCH, pwr_oe3, hfpwr_oe3, lfpwr_oe3);
|
|
mux2_one mux_pwr_oe4_all (FPGA_SWITCH, pwr_oe4, hfpwr_oe4, lfpwr_oe4);
|
|
mux2_one mux_adc_clk_all (FPGA_SWITCH, adc_clk, hfadc_clk, lfadc_clk);
|
|
mux2_one mux_adc_noe_all (FPGA_SWITCH, adc_noe, adc_noe, lfadc_noe);
|
|
mux2_one mux_ssp_frame_all (FPGA_SWITCH, ssp_frame, hfssp_frame, lfssp_frame);
|
|
mux2_one mux_ssp_din_all (FPGA_SWITCH, ssp_din, hfssp_din, lfssp_din);
|
|
mux2_oneout mux_ssp_dout_all (FPGA_SWITCH, ssp_dout, hfssp_dout, lfssp_dout);
|
|
mux2_one mux_ssp_clk_all (FPGA_SWITCH, ssp_clk, hfssp_clk, lfssp_clk);
|
|
mux2_oneout mux_cross_hi_all (FPGA_SWITCH, cross_hi, hfcross_hi, lfcross_hi);
|
|
mux2_oneout mux_cross_lo_all (FPGA_SWITCH, cross_lo, hfcross_lo, lfcross_lo);
|
|
mux2_one mux_dbg_all (FPGA_SWITCH, dbg, hfdbg, lfdbg);
|
|
mux2_one mux_PWR_LO_EN_all (FPGA_SWITCH, PWR_LO_EN, 1'b0, lfPWR_LO_EN);
|
|
|
|
endmodule
|