mirror of
https://github.com/RfidResearchGroup/proxmark3.git
synced 2025-08-19 21:03:48 -07:00
Shorten threshold registers to number of used bits
This commit is contained in:
parent
404d0a8c7b
commit
225bb420c6
6 changed files with 4 additions and 4 deletions
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
|
@ -111,8 +111,8 @@ always @(posedge spck) if (~ncs) shift_reg <= {shift_reg[14:0], mosi};
|
||||||
reg trace_enable;
|
reg trace_enable;
|
||||||
|
|
||||||
reg [7:0] lf_ed_threshold;
|
reg [7:0] lf_ed_threshold;
|
||||||
reg [10:0] hf_edge_detect_threshold;
|
reg [5:0] hf_edge_detect_threshold;
|
||||||
reg [10:0] hf_edge_detect_threshold_high;
|
reg [5:0] hf_edge_detect_threshold_high;
|
||||||
|
|
||||||
// adjustable frequency clock
|
// adjustable frequency clock
|
||||||
wire [7:0] pck_cnt;
|
wire [7:0] pck_cnt;
|
||||||
|
@ -157,8 +157,8 @@ begin
|
||||||
`FPGA_CMD_TRACE_ENABLE: trace_enable <= shift_reg[0];
|
`FPGA_CMD_TRACE_ENABLE: trace_enable <= shift_reg[0];
|
||||||
`FPGA_CMD_SET_EDGE_DETECT_THRESHOLD:
|
`FPGA_CMD_SET_EDGE_DETECT_THRESHOLD:
|
||||||
begin
|
begin
|
||||||
hf_edge_detect_threshold <= {6'b0, shift_reg[5:0]};
|
hf_edge_detect_threshold <= shift_reg[5:0];
|
||||||
hf_edge_detect_threshold_high <= {6'b0, shift_reg[11:6]};
|
hf_edge_detect_threshold_high <= shift_reg[11:6];
|
||||||
end
|
end
|
||||||
`endif
|
`endif
|
||||||
endcase
|
endcase
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue