Quantcast
Channel: Altera Forums
Viewing all articles
Browse latest Browse all 19390

Conditional when statement with port map

$
0
0
Hi,

I am trying to write a conditional concurrent port map without success. Here it is.

Code:

  map_gen: for i in 0 to N-1 generate
                    map_0: entity work.my_tff(arch) port map('1', '1', clk, s_q_out(0), s_en_out(0)) when i=0 else
                    map_g: entity work.my_tff(arch) port map(s_q_out(i-1), s_en_out(i-1), clk, s_q_out(i), s_en_out(i));
            end generate;

What´s is wrong?

Regards
Jaraqui

Viewing all articles
Browse latest Browse all 19390

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>