Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

[VHDL] 'else generate' is not supported ...

Hi All,

I'm receiving the following error during my code compilation:

(vcom-1440) Language feature ELSE GENERATE STATEMENT is not supported yet

From what Quartus version is this feature supported?

Here is my code:

     gen_flr_cnt : if (tbl(i).sbit = flr_cnt or tbl(i).pbit = flr_cnt or tbl(i).ibit = flr_cnt) generate
      i_flr_cnt : entity work.flr_cnt
          generic map(
              TRSH =>FLR_CNT_TRSH
          )
          port map(
              clk     => clk,
              rstn    => rstn,
              clr     => cnt_clr,
              flr_in  => bit_vec(i),
              flr_out => flr_cnt_res(i)
          );
      else generate    flr_cnt_res(i) <= '0';
     end generate gen_flr_cnt; 

Thank you!

17 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I've never seen a vcom error in Quartus. I have seen that in ModelSim. Can you print out the whole error message?

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    it seems it was an error from ModelSim of Quartus...

    Is it possible that Quartus's ModelSim (ModelSim AE) doesn't support this syntax while the Quartus itself (compile+filler+placement+...) does support it?

    I'm just right away from my PC now...
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    It is very possible. Modelsim has much greater 2008 support, but if/else and case generate was oddly one thing they have only more recently supported.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    Can you find out which version of ModelSim are you using . The VHDL 2008 syntax is fully supported from the 10.3b release. If you have a pre 10.3b release, it will not support the VHDL2008 full syntax.

    -Abr
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I don't know which Modelsim version is bundled with Quartus V16, but V15 comes with 10.3d, so V16 is either the same or newer.

    Reviewing the previous discussion and misleading reports about a Quartus problem, I'm not sure if dmitryl realizes that Modelsim has it's own VHDL version options, unrelated to the Quartus analysis and synthesis settings.