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

Use synthesis translate_off/on to avoid synthesis errors for REAL signals.

parent e9512be7
No related branches found
No related tags found
No related merge requests found
Pipeline #34316 failed
......@@ -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
......
......@@ -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
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment