Skip to content

Commit

Permalink
eliminate magic value
Browse files Browse the repository at this point in the history
  • Loading branch information
catkira committed Aug 15, 2023
1 parent 896a37d commit 367965f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hdl/frame_sync.sv
Original file line number Diff line number Diff line change
Expand Up @@ -384,7 +384,7 @@ always @(posedge clk_i) begin
out_last <= sample_cnt == (FFT_LEN + current_CP_len - 2);

if (end_of_symbol) begin
if (((sym_cnt_next + sym_cnt_offset) % 14 == 0) || ((sym_cnt_next + sym_cnt_offset) % 14 == 7))
if (((sym_cnt_next + sym_cnt_offset) % SYM_PER_SF == 0) || ((sym_cnt_next + sym_cnt_offset) % SYM_PER_SF == 7))
current_CP_len <= CP1_LEN;
else
current_CP_len <= CP2_LEN;
Expand Down

0 comments on commit 367965f

Please sign in to comment.