{"action":"opened","issue":{"url":"https://api.github.com/repos/nickg/nvc/issues/111","labels_url":"https://api.github.com/repos/nickg/nvc/issues/111/labels{/name}","comments_url":"https://api.github.com/repos/nickg/nvc/issues/111/comments","events_url":"https://api.github.com/repos/nickg/nvc/issues/111/events","html_url":"https://github.com/nickg/nvc/issues/111","id":66299474,"number":111,"title":"** Fatal: IF-GENERATE statement was not constant folded","user":{"login":"postoroniy","id":6311402,"avatar_url":"https://avatars.githubusercontent.com/u/6311402?v=3","gravatar_id":"","url":"https://api.github.com/users/postoroniy","html_url":"https://github.com/postoroniy","followers_url":"https://api.github.com/users/postoroniy/followers","following_url":"https://api.github.com/users/postoroniy/following{/other_user}","gists_url":"https://api.github.com/users/postoroniy/gists{/gist_id}","starred_url":"https://api.github.com/users/postoroniy/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/postoroniy/subscriptions","organizations_url":"https://api.github.com/users/postoroniy/orgs","repos_url":"https://api.github.com/users/postoroniy/repos","events_url":"https://api.github.com/users/postoroniy/events{/privacy}","received_events_url":"https://api.github.com/users/postoroniy/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2015-04-04T09:48:59Z","updated_at":"2015-04-04T09:48:59Z","closed_at":null,"body":"below test is failed in elaboration stage, ghdl is fine\r\n** Fatal: IF-GENERATE statement was not constant folded\r\n\ttest.vhd, Line 23\r\nentity t1 is\r\nport(\r\n    A,B,C : in  bit;\r\n    D     : out bit\r\n);\r\nend t1;\r\n\r\narchitecture rtl of t1 is\r\nbegin\r\n    D<='1' when A='1' and B='1' and C='1' else '0';\r\nend rtl;\r\n\r\nentity test is\r\nport(\r\n    A,B,C : in  bit_vector(7 downto 0);\r\n    D     : out bit_vector(7 downto 0)\r\n);\r\nend test;\r\n\r\narchitecture rtl of test is\r\nbegin\r\n    ADD_GEN: for I in 0 to 7 generate\r\n        L: if I=0 generate--failure is here \r\n            U0: entity work.t1\r\n                port map(A(I),B(I),'0',D(I));\r\n        end generate L;\r\n        U: if I>0 generate\r\n            UX: entity work.t1\r\n                port map(A(I),B(I),C(I-1),D(I));\r\n        end generate U;\r\n    end generate ADD_GEN;\r\nend rtl;"}}