mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-20 05:13:46 -07:00
style
This commit is contained in:
parent
621eb12976
commit
e4bd3544d5
1 changed files with 20 additions and 14 deletions
|
@ -13,6 +13,8 @@
|
||||||
// iZsh <izsh at fail0verflow.com>, June 2014
|
// iZsh <izsh at fail0verflow.com>, June 2014
|
||||||
//-----------------------------------------------------------------------------
|
//-----------------------------------------------------------------------------
|
||||||
|
|
||||||
|
`define FPGA_CMD_SET_CONFREG 1
|
||||||
|
|
||||||
`include "hi_read_tx.v"
|
`include "hi_read_tx.v"
|
||||||
`include "hi_read_rx_xcorr.v"
|
`include "hi_read_rx_xcorr.v"
|
||||||
`include "hi_simulate.v"
|
`include "hi_simulate.v"
|
||||||
|
@ -48,7 +50,10 @@ reg [7:0] conf_word;
|
||||||
always @(posedge ncs)
|
always @(posedge ncs)
|
||||||
begin
|
begin
|
||||||
case(shift_reg[15:12])
|
case(shift_reg[15:12])
|
||||||
4'b0001: conf_word <= shift_reg[7:0]; // FPGA_CMD_SET_CONFREG
|
`FPGA_CMD_SET_CONFREG:
|
||||||
|
begin
|
||||||
|
conf_word <= shift_reg[7:0];
|
||||||
|
end
|
||||||
endcase
|
endcase
|
||||||
end
|
end
|
||||||
|
|
||||||
|
@ -61,8 +66,7 @@ begin
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
wire [2:0] major_mode;
|
wire [2:0] major_mode = conf_word[7:5];
|
||||||
assign major_mode = conf_word[7:5];
|
|
||||||
|
|
||||||
// For the high-frequency transmit configuration: modulation depth, either
|
// For the high-frequency transmit configuration: modulation depth, either
|
||||||
// 100% (just quite driving antenna, steady LOW), or shallower (tri-state
|
// 100% (just quite driving antenna, steady LOW), or shallower (tri-state
|
||||||
|
@ -72,8 +76,10 @@ wire hi_read_tx_shallow_modulation = conf_word[0];
|
||||||
// For the high-frequency receive correlator: frequency against which to
|
// For the high-frequency receive correlator: frequency against which to
|
||||||
// correlate.
|
// correlate.
|
||||||
wire hi_read_rx_xcorr_848 = conf_word[0];
|
wire hi_read_rx_xcorr_848 = conf_word[0];
|
||||||
|
|
||||||
// and whether to drive the coil (reader) or just short it (snooper)
|
// and whether to drive the coil (reader) or just short it (snooper)
|
||||||
wire hi_read_rx_xcorr_snoop = conf_word[1];
|
wire hi_read_rx_xcorr_snoop = conf_word[1];
|
||||||
|
|
||||||
// divide subcarrier frequency by 4
|
// divide subcarrier frequency by 4
|
||||||
wire hi_read_rx_xcorr_quarter = conf_word[2];
|
wire hi_read_rx_xcorr_quarter = conf_word[2];
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue