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

Clarified SNR of the WG sine output.

parent d748647b
No related branches found
No related tags found
2 merge requests!100Removed text for XSub that is now written in Confluence Subband correlator...,!68Resolve L2SDP-162
...@@ -19,7 +19,26 @@ ...@@ -19,7 +19,26 @@
-- --
------------------------------------------------------------------------------- -------------------------------------------------------------------------------
-- Based on diag_waveproc from LOFAR -- Purpose: Sine waveform generator
-- Description:
-- . Based on diag_waveproc from LOFAR.
-- Remarks:
-- . For WG sine periods that integer fit in the WG buffer size the carrier
-- wWave (CW) frequency is exact. For fractional WG frequencies, for which
-- the CW period does not fit the WG buffer size, the WG frequency is exact
-- only on average.
-- . The signal to noise ratio (SNR) of the carrier wave (CW) sine is:
-- SNR = g_calc_dat_w * 6.02 dB + 1.76 dB,
-- provided that the CW period fits the buffer size.
---. For fractional WG frequencies the effective number of bits of the WG is
-- g_buf_addr_w - 1, because the WG buffer contains a full sine period. The
-- -1 bit or factor 1/2 comes from that the rising slope and falling slope
-- of the WG buffer sine map the period resolution to the amplitude
-- resolution. Hence for fraction WG frequencies the effective SNR of the
-- CW becomes:
-- SNR = (g_buf_addr_w-1) * 6.02 dB + 1.76 dB.
-- Hence for g_buf_addr_w = 10, the effective SNR of the generated
-- CW with fractional frequency is SNR ~= 56 dB, even if g_calc_dat_w > 9.
LIBRARY IEEE, common_lib, common_mult_lib, technology_lib; LIBRARY IEEE, common_lib, common_mult_lib, technology_lib;
USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_1164.ALL;
......
...@@ -21,10 +21,11 @@ ...@@ -21,10 +21,11 @@
-- Purpose: Provides a wideband WG by using multiple diag_wg -- Purpose: Provides a wideband WG by using multiple diag_wg
-- Description: -- Description:
-- Remarks: -- . See diag.wg.vhd.
-- Remarks: -- Remarks:
-- . For g_wideband_factor=1 this diag_wg_wideband defaults to diag_wg. Hence -- . For g_wideband_factor=1 this diag_wg_wideband defaults to diag_wg. Hence
-- no need to make a mms_diag_wg.vhd. -- no need to make a mms_diag_wg.vhd.
--
LIBRARY IEEE, common_lib, technology_lib; LIBRARY IEEE, common_lib, technology_lib;
USE IEEE.STD_LOGIC_1164.ALL; USE IEEE.STD_LOGIC_1164.ALL;
......
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