Continue to Site

Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

Problems when compiling VHDL files

Status
Not open for further replies.

tybhsl

Member level 1
Joined
Dec 14, 2004
Messages
39
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,286
Activity points
486
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!
 

Check the Declaration of ISETS....
It should be declared as integer with range more than 4......

What is this lru3_repl_table?
Is it a function or a procedure.
If u r using some library functions check wether the library is included.
Conv_unsigned can be omited by simply adding
use ieee.std_logic_unsigned.all.....
 

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.

solved by adding " ieee.std_logic_arth.all". Thank you very much!

but
Error: COMP96_0368: icache.vhd : (98, : Value 3 out of range.
still exists.

ISETS is declared as constant integer with range 1 to 4 in a package compiled as a library ......

can you give more advice on how to solve this problem? Thanks!
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top