diff options
Diffstat (limited to 'sdr_lib/dsp_core_tx.v')
-rw-r--r-- | sdr_lib/dsp_core_tx.v | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/sdr_lib/dsp_core_tx.v b/sdr_lib/dsp_core_tx.v index 535f2003e..54889fa2a 100644 --- a/sdr_lib/dsp_core_tx.v +++ b/sdr_lib/dsp_core_tx.v @@ -58,11 +58,13 @@ module dsp_core_tx always @(posedge clk) strobe_hb2 <= strobe_hb2_pre; always @(posedge clk) strobe_cic <= strobe_cic_pre; - // DDC + // NCO always @(posedge clk) if(rst) phase <= 0; - else if(run) + else if(~run) + phase <= 0; + else phase <= phase + phase_inc; wire signed [17:0] da, db; |