> Quoting "Wesley J. Landaker" <[EMAIL PROTECTED]>:
>> entity bug is
>> end entity;
>>
>> architecture does_not_work of bug is
>>   subtype t1 is integer range 1 to 2;
>> begin
>>
>>   gen : for i in t1'range generate
>>     assert false report integer'image(i) severity note;
>>   end generate;
>>
>> end architecture;
>
> I have to double-check but the correct syntax should be:
>   gen : for i in t1 generate
>
> Can you try that ?
>
> Tristan.
>
>
>
1) Yes it works.

Indeed generate expects a range then xyz'low to xyz'high is one of the
possible way. A subtype of the integer is already a range.


2) I had an internal crash error of ghdl while trying some code at 3 am and
writing (unsigned(xyz))'to_integer rather than to_integer(unsigned(xyz))




_______________________________________________
Ghdl-discuss mailing list
Ghdl-discuss@gna.org
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to