mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-03-12 16:04:47 +08: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
|
||||
//-----------------------------------------------------------------------------
|
||||
|
||||
`define FPGA_CMD_SET_CONFREG 1
|
||||
|
||||
`include "hi_read_tx.v"
|
||||
`include "hi_read_rx_xcorr.v"
|
||||
`include "hi_simulate.v"
|
||||
|
@ -48,7 +50,10 @@ reg [7:0] conf_word;
|
|||
always @(posedge ncs)
|
||||
begin
|
||||
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
|
||||
end
|
||||
|
||||
|
@ -61,8 +66,7 @@ begin
|
|||
end
|
||||
end
|
||||
|
||||
wire [2:0] major_mode;
|
||||
assign major_mode = conf_word[7:5];
|
||||
wire [2:0] major_mode = conf_word[7:5];
|
||||
|
||||
// For the high-frequency transmit configuration: modulation depth, either
|
||||
// 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
|
||||
// correlate.
|
||||
wire hi_read_rx_xcorr_848 = conf_word[0];
|
||||
|
||||
// and whether to drive the coil (reader) or just short it (snooper)
|
||||
wire hi_read_rx_xcorr_snoop = conf_word[1];
|
||||
|
||||
// divide subcarrier frequency by 4
|
||||
wire hi_read_rx_xcorr_quarter = conf_word[2];
|
||||
|
||||
|
|
Loading…
Reference in a new issue