mirror of
https://github.com/supleed2/EIE4-FYP.git
synced 2024-11-13 21:45:48 +00:00
Fix genWave
output glitches
This commit is contained in:
parent
80f82cdc10
commit
795a9d2916
|
@ -127,8 +127,8 @@ always_comb shift = wv_cnt_1[6] ? 3'd7
|
||||||
: wv_cnt_1[0] ? 3'd1
|
: wv_cnt_1[0] ? 3'd1
|
||||||
: 3'd0;
|
: 3'd0;
|
||||||
|
|
||||||
logic [23:0] samples_sum;
|
logic [23:0] samples_sum; // Shift output sample right to get normalised output
|
||||||
always_comb samples_sum = samples_long[63] >> shift; // Shift output sample right to get normalised output
|
always_ff @(posedge i_clk48) samples_sum <= samples_long[63] >> shift;
|
||||||
|
|
||||||
always_comb o_sample = samples_sum[15:0]; // Output sample is 16 bits
|
always_comb o_sample = samples_sum[15:0]; // Output sample is 16 bits
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue