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.

modelsim error but activhdl success

Status
Not open for further replies.
A

ahmadagha23

Guest
subprogram = ambiguos modelsim

hi,
I tried to compile a vhdl code (from xilinx.com) which contain following line:

"if rst = '1' or std_logic_vector(no_bits_sent) = "1010" then "

by modelsim5.6 i received following error message:

"Subprogram "=" is ambiguous. Suitable definitions exist in package 'std_logic_1164' and 'std_logic_unsigned'."

but activhdl5.1 compiled it successfully. Do you know why and what is the difference between modelsim and activhdl in these situations?


regards
 

ahmadagha23 said:
hi,
I tried to compile a vhdl code (from xilinx.com) which contain following line:

"if rst = '1' or std_logic_vector(no_bits_sent) = "1010" then "

by modelsim5.6 i received following error message:

"Subprogram "=" is ambiguous. Suitable definitions exist in package 'std_logic_1164' and 'std_logic_unsigned'."

but activhdl5.1 compiled it successfully. Do you know why and what is the difference between modelsim and activhdl in these situations?


regards

The package std_logic_unsigned is NON-STANDARD and hence this situation. Start using numeric_std instead, read VHDL FAQ at www.vhdl.org/comp.lang.vhdl

Regards
Ajeetha, CVC
www.noveldv.com
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top