Closed Anselmo95 closed 6 months ago
Thanks for providing the back trace, I think I've managed to work it out from that. Here's a minimal reproducer:
entity issue821 is
end entity;
architecture test of issue821 is
signal x : integer;
begin
g: for i in 1 to 2 generate
begin
p: process is
begin
if i > 1 then
x <= 1;
elsif x < 100 then
x <= 2;
end if;
wait;
end process;
end generate;
end architecture;
The key thing is that one of the branches of the if-statement is constant once the value of the generate parameter is known but the other branch isn't.
Could you try again with the latest master branch? I think it should be fixed now.
I was just about to report this bug as well. I can confirm that the latest master fixes this. Thanks.
I confirm too, the problem is fixed now. Thanks a lot!
Hello nickg,
While elaborating a design nvc errors out with the following trace:
This seams a regression caused by this commit in particular https://github.com/nickg/nvc/commit/ff41e26881d1a468c707f43ec808fae03ced6656.
At the moment I don't have a small code snippet to reproduce the issue and cannot share the original code. The entity in the backtrace is inside many nested
if generate
statements and that's the only thing, I guess, could be releated to this issue.I will keep trying to create a reproducer but do you have some suggestion on how I could proceed?