B
Brendan Lynskey
Guest
Hi.
I'm trying to access a vector slice using variables for indices, but my
(Modelsim) compiler doesn't allow it. This is the kind of thing I want to
do:
for (index = 16'h0; index < 16'h43; index = index + 16'h1)
begin
op_var = data_vect[ (index + 16'h8) : index];
...
end
The compiler tells me:
ERROR: Range must be bounded by constant expressions
Anyone know a way around this?
--
Best regards
Brendan Lynskey
ASIC Engineer - Comodo Research Lab
Invent ˛ Secure
www.comodogroup.com, www.trustix.com, www.enterprisessl.com, www.seeos.com
I'm trying to access a vector slice using variables for indices, but my
(Modelsim) compiler doesn't allow it. This is the kind of thing I want to
do:
for (index = 16'h0; index < 16'h43; index = index + 16'h1)
begin
op_var = data_vect[ (index + 16'h8) : index];
...
end
The compiler tells me:
ERROR: Range must be bounded by constant expressions
Anyone know a way around this?
--
Best regards
Brendan Lynskey
ASIC Engineer - Comodo Research Lab
Invent ˛ Secure
www.comodogroup.com, www.trustix.com, www.enterprisessl.com, www.seeos.com