O
Olaf
Guest
Hi,
the following snippet won't pass the modelsim compiler, what's wrong
with it?
---8<---
entity counter is
generic(
BITWIDTH : integer
);
port(
...
rld_value : in natural range 2**BITWIDTH-1 downto 0
);
end counter ;
architecture rtl of counter is
...
begin
process (clk)
variable count : natural range rld_value'range; -- XXX
...
--->8---
Error: Attribute "range" requires an array prefix.
is this a syntactically problem?
Thanks,
Olaf
the following snippet won't pass the modelsim compiler, what's wrong
with it?
---8<---
entity counter is
generic(
BITWIDTH : integer
);
port(
...
rld_value : in natural range 2**BITWIDTH-1 downto 0
);
end counter ;
architecture rtl of counter is
...
begin
process (clk)
variable count : natural range rld_value'range; -- XXX
...
--->8---
Error: Attribute "range" requires an array prefix.
is this a syntactically problem?
Thanks,
Olaf