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

Avoid simulation warning when adr_chan_cnt is null-array. No functional change.

parent 4f9f6bb0
No related branches found
No related tags found
No related merge requests found
......@@ -95,6 +95,8 @@ begin
next_page <= '1' when unsigned(adr_tot_cnt) = c_page_size-1 and wr_en='1' else '0';
adr_tot_cnt <= adr_chan_cnt & adr_points_cnt;
gen_bit_flip : if g_bit_flip=true generate
wr_adr <= adr_chan_cnt & flip(adr_points_cnt); -- flip the addresses to perform the reorder
end generate;
......@@ -117,7 +119,13 @@ begin
count => adr_points_cnt
);
-- Generate on c_nof_channels to avoid simulation warnings on TO_UINT(adr_chan_cnt) when adr_chan_cnt is a NULL array
one_chan : if c_nof_channels=1 generate
cnt_ena <= '1' when in_val = '1' else '0';
end generate;
more_chan : if c_nof_channels>1 generate
cnt_ena <= '1' when in_val = '1' and TO_UINT(adr_chan_cnt) = c_nof_channels-1 else '0';
end generate;
u_adr_chan_cnt : entity common_lib.common_counter
generic map(
......@@ -132,8 +140,6 @@ begin
count => adr_chan_cnt
);
adr_tot_cnt <= adr_chan_cnt & adr_points_cnt;
u_buff : ENTITY common_lib.common_paged_ram_r_w
GENERIC MAP (
g_str => "use_adr",
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment