You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I would like to request a feature. I was recently helping a junior engineer to debug a mysterious error that he was struggling with. After searching high and low, we discovered that they had used to instead of downto when defining a range, resulting in a null range, which was only caused a cryptic error message from the simulation tool several layers down in the hierarchy.
I understand that use of null ranges is valid VHDL and I understand if you don't want to create warnings on valid code, but I think that it would helpful to have a warning shown in cases like this, perhaps one that can be suppressed by the user (or even, is suppressed by default and can be un-suppressed by the user) for people who want to use null ranges?
Specifically, I would like to see warnings on X to Y and Y downto X, where X < Y in both cases, e.g.
library IEEE;
use IEEE.std_logic_1164.all;
packagetestissubtypenull_range_toisintegerrange1to0;
subtypenull_range_downtoisintegerrange0downto1;
subtypeslv_null_range_toisstd_logic_vector(1to0);
subtypeslv_null_range_downtoisstd_logic_vector(0downto1);
endpackagetest;
The text was updated successfully, but these errors were encountered:
I would like to request a feature. I was recently helping a junior engineer to debug a mysterious error that he was struggling with. After searching high and low, we discovered that they had used
to
instead ofdownto
when defining a range, resulting in a null range, which was only caused a cryptic error message from the simulation tool several layers down in the hierarchy.I understand that use of null ranges is valid VHDL and I understand if you don't want to create warnings on valid code, but I think that it would helpful to have a warning shown in cases like this, perhaps one that can be suppressed by the user (or even, is suppressed by default and can be un-suppressed by the user) for people who want to use null ranges?
Specifically, I would like to see warnings on
X to Y
andY downto X
, where X < Y in both cases, e.g.The text was updated successfully, but these errors were encountered: