Skip to content
Snippets Groups Projects
Commit 980827c5 authored by Eric Kooistra's avatar Eric Kooistra
Browse files

Added c_diag_wg_latency to determine inital WG phase.

parent 69c6b237
No related branches found
No related tags found
1 merge request!198Clarified reading one WPFB unit into sp_subband_powers_arr2. Updated comments....
......@@ -88,6 +88,7 @@ PACKAGE diag_pkg IS
CONSTANT c_diag_wg_freq_unit : REAL := 2**REAL(c_diag_wg_freq_w); -- ^= c_clk_freq = Fs (sample frequency), assuming one sinus waveform in the buffer
CONSTANT c_diag_wg_phase_unit : REAL := 2**REAL(c_diag_wg_phase_w)/ 360.0; -- ^= 1 degree
CONSTANT c_diag_wg_latency : NATURAL := 10; -- WG starts 10 cycles after trigger
CONSTANT c_diag_wg_rst : t_diag_wg := (TO_UVEC(c_diag_wg_mode_off, c_diag_wg_mode_w),
TO_UVEC( 1024, c_diag_wg_nofsamples_w),
TO_UVEC( 0, c_diag_wg_phase_w),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment