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

Corrected use of SHIFT_SVEC(), by first resizing to output word width.

parent 65afed6d
Branches
No related tags found
2 merge requests!100Removed text for XSub that is now written in Confluence Subband correlator...,!68Resolve L2SDP-162
......@@ -69,7 +69,6 @@ ARCHITECTURE str OF pfb2 IS
SIGNAL pfs_in_dat_y : STD_LOGIC_VECTOR(g_pfs_in_dat_w-1 DOWNTO 0);
SIGNAL pfs_in_val : STD_LOGIC;
SIGNAL pfs_in_sync : STD_LOGIC;
SIGNAL fil_out_dat_x : STD_LOGIC_VECTOR(g_pfs_out_dat_w-1 DOWNTO 0);
SIGNAL fil_out_dat_y : STD_LOGIC_VECTOR(g_pfs_out_dat_w-1 DOWNTO 0);
SIGNAL fil_out_val : STD_LOGIC;
......@@ -113,8 +112,8 @@ BEGIN
END GENERATE;
no_pfs : IF g_pfs_bypass=TRUE GENERATE
fil_out_dat_x <= SHIFT_SVEC(pfs_in_dat_x, g_pfs_in_dat_w - g_pfs_out_dat_w); -- < 0 is shift left, > 0 is shift right
fil_out_dat_y <= SHIFT_SVEC(pfs_in_dat_y, g_pfs_in_dat_w - g_pfs_out_dat_w); -- < 0 is shift left, > 0 is shift right
fil_out_dat_x <= SHIFT_SVEC(RESIZE_SVEC(pfs_in_dat_x, g_pfs_out_dat_w), g_pfs_in_dat_w - g_pfs_out_dat_w); -- < 0 is shift left, > 0 is shift right
fil_out_dat_y <= SHIFT_SVEC(RESIZE_SVEC(pfs_in_dat_y, g_pfs_out_dat_w), g_pfs_in_dat_w - g_pfs_out_dat_w); -- < 0 is shift left, > 0 is shift right
fil_out_val <= pfs_in_val;
fil_out_sync <= pfs_in_sync;
END GENERATE;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment