mirror of
https://github.com/jhshi/openofdm.git
synced 2024-12-20 06:08:11 +00:00
fix the atan_addr overflow issue (phase.v)
This commit is contained in:
parent
8c59d3a8dd
commit
d7f5806790
@ -34,7 +34,7 @@ wire div_out_stb;
|
||||
wire [`ATAN_LUT_LEN_SHIFT-1:0] atan_addr;
|
||||
wire [`ATAN_LUT_SCALE_SHIFT-1:0] atan_data;
|
||||
|
||||
assign atan_addr = quotient[`ATAN_LUT_LEN_SHIFT-1:0];
|
||||
assign atan_addr = (quotient>255?255:quotient[`ATAN_LUT_LEN_SHIFT-1:0]);
|
||||
wire signed [`ATAN_LUT_SCALE_SHIFT:0] _phase = {1'b0, atan_data};
|
||||
|
||||
reg [2:0] quadrant;
|
||||
|
Loading…
Reference in New Issue
Block a user