tybhsl
Member level 1

When I try to compile the file of icache.vhd in leon2.0
using Active-HDL 5.1 instead of ModSim in which no error is reported, some errors are reported as the following:
case ISETS is
when 2 =>
...
Line98 when 3 =>
Line99 if ICLOCK_BIT = 1 then
Line100 xset := std_logic_vector(conv_unsigned(lru3_repl_table
conv_integer(xlru)) (unlocked), 2));
Line101 else
Line102 xset := std_logic_vector(conv_unsigned(lru3_repl_table
(conv_integer(xlru)) (0), 2));
end if;
when 4 =>
....
when others =>
end case;
Error: COMP96_0368: icache.vhd : (98, 8): Value 3 out of range.
Error: COMP96_0149: icache.vhd : (100, 32): Explicit type conversion are allowed between closely related types only.
Error: COMP96_0149: icache.vhd : (102, 32): Explicit type conversion are allowed between closely related types only.
Could you please tell me what should I do? How can I simulate it with the tool of Active-HDL 5.1 but ModSim? Thank you very much!
using Active-HDL 5.1 instead of ModSim in which no error is reported, some errors are reported as the following:
case ISETS is
when 2 =>
...
Line98 when 3 =>
Line99 if ICLOCK_BIT = 1 then
Line100 xset := std_logic_vector(conv_unsigned(lru3_repl_table
conv_integer(xlru)) (unlocked), 2));
Line101 else
Line102 xset := std_logic_vector(conv_unsigned(lru3_repl_table
(conv_integer(xlru)) (0), 2));
end if;
when 4 =>
....
when others =>
end case;
Error: COMP96_0368: icache.vhd : (98, 8): Value 3 out of range.
Error: COMP96_0149: icache.vhd : (100, 32): Explicit type conversion are allowed between closely related types only.
Error: COMP96_0149: icache.vhd : (102, 32): Explicit type conversion are allowed between closely related types only.
Could you please tell me what should I do? How can I simulate it with the tool of Active-HDL 5.1 but ModSim? Thank you very much!