diff --git a/libraries/dsp/st/src/vhdl/st_sst.vhd b/libraries/dsp/st/src/vhdl/st_sst.vhd index 26b661ddbb2e1a6b69b2068333ee9a5586852c67..a0092862dae0d6ab6f159514e81f27f8f3f7459a 100644 --- a/libraries/dsp/st/src/vhdl/st_sst.vhd +++ b/libraries/dsp/st/src/vhdl/st_sst.vhd @@ -21,7 +21,7 @@ LIBRARY IEEE, common_lib, mm_lib, technology_lib, dp_lib; USE IEEE.std_logic_1164.ALL; -USE IEEE.math_real.ALL; +USE IEEE.math_real.ALL; -- for sim only USE common_lib.common_pkg.ALL; USE common_lib.common_mem_pkg.ALL; USE common_lib.common_field_pkg.ALL; @@ -125,8 +125,9 @@ ARCHITECTURE str OF st_sst IS SIGNAL wrdata_re : STD_LOGIC_VECTOR(c_mem_data_w-1 DOWNTO 0); SIGNAL wrdata_im : STD_LOGIC_VECTOR(c_mem_data_w-1 DOWNTO 0); - SIGNAL wrdata_power : REAL; + -- Sim only signals for observing wrdata_power with indices in Wave window + SIGNAL wrdata_power : REAL; SIGNAL stat_bin : NATURAL; SIGNAL stat_mosi : t_mem_mosi := c_mem_mosi_rst; @@ -243,10 +244,12 @@ BEGIN wrdata_re <= RESIZE_MEM_UDATA(stat_data_re) WHEN g_xst_enable=FALSE ELSE RESIZE_MEM_SDATA(stat_data_re); wrdata_im <= RESIZE_MEM_UDATA(stat_data_im) WHEN g_xst_enable=FALSE ELSE RESIZE_MEM_SDATA(stat_data_im); + -- synthesis translate_off -- View SST or XST power values in wave window (stat_data_im = 0 for SST) wrdata_power <= COMPLEX_RADIUS(TO_SREAL(stat_data_re), TO_SREAL(stat_data_im)) ** 2.0; stat_bin <= TO_UINT(stat_mosi.address(c_stat_ram.adr_w-1 DOWNTO 0)) / g_stat_multiplex; + -- synthesis translate_on -- For SST or for real part of XST stat_reg_re : ENTITY common_lib.common_ram_crw_crw_ratio diff --git a/libraries/dsp/st/src/vhdl/st_xsq.vhd b/libraries/dsp/st/src/vhdl/st_xsq.vhd index 073cbe526ee28874fe6c80a0541c3fc1d7629d1c..89bcd301e434019512d0cd44d4ffe9c57d56ac07 100644 --- a/libraries/dsp/st/src/vhdl/st_xsq.vhd +++ b/libraries/dsp/st/src/vhdl/st_xsq.vhd @@ -46,7 +46,7 @@ LIBRARY IEEE, common_lib, mm_lib, technology_lib, dp_lib; USE IEEE.std_logic_1164.ALL; -USE IEEE.math_real.ALL; +USE IEEE.math_real.ALL; -- for sim only USE common_lib.common_pkg.ALL; USE common_lib.common_mem_pkg.ALL; USE common_lib.common_field_pkg.ALL; @@ -106,8 +106,9 @@ ARCHITECTURE str OF st_xsq IS SIGNAL wrdata_re : STD_LOGIC_VECTOR(c_mem_data_w-1 DOWNTO 0); SIGNAL wrdata_im : STD_LOGIC_VECTOR(c_mem_data_w-1 DOWNTO 0); - SIGNAL wrdata_power : REAL; + -- Sim only signals for observing wrdata_power with indices in Wave window + SIGNAL wrdata_power : REAL; SIGNAL stat_index : NATURAL; SIGNAL a_sp : NATURAL; SIGNAL b_sp : NATURAL; @@ -181,14 +182,15 @@ BEGIN wrdata_re <= RESIZE_MEM_SDATA(stat_data_re); wrdata_im <= RESIZE_MEM_SDATA(stat_data_im); - -- View XST power values in wave window + -- synthesis translate_off wrdata_power <= COMPLEX_RADIUS(TO_SREAL(stat_data_re), TO_SREAL(stat_data_im)) ** 2.0; - -- Translate statistcs [crosslets][in A][in B] order into indices + -- Indices for statistics [crosslets][in A][in B] stat_index <= TO_UINT(stat_mosi.address(c_stat_ram.adr_w-1 DOWNTO 0)); a_sp <= (stat_index / g_nof_signal_inputs) MOD g_nof_signal_inputs; b_sp <= stat_index MOD g_nof_signal_inputs; crosslet_index <= stat_index / c_xsq; + -- synthesis translate_on --------------------------------------------------------------- -- COMBINE MEMORY MAPPED INTERFACES