From: David F. <da...@ch...> - 2018-07-05 22:59:31
|
Hi Orson, Ok. I discussed with my coworker. He says ghdl can be used by iverilog. He installed it and we were able to run through the regressions which showed vhdl support. However, when I compile the type_utils.vhd which uses std_ulogic_vector the compiler complains that this type name cannot be found. To me it means not supported. When I grep the ivtest/ivltests/*.vhd there are no tests for std_ulogic_vector. Please confirm that std_ulogic, std_ulogic_vector is NOT supported. Thanks, David -----Original Message----- From: Maciej Sumiński <mac...@ce...> Sent: Tuesday, July 3, 2018 11:56 PM To: ive...@li... Subject: Re: [Iverilog-devel] VHDL compile errors Hi David, VHDL support in Icarus is very limited and currently is done by compiling VHDL files to SystemVerilog. We have learnt that even though a significant part of the VHDL standard could be covered, most likely we will not be able to implement a complete VHDL simulator this way. Due to that, the concept has been abandoned and IIRC nobody works on VHDL frontend in Icarus right now. It would be much better to join a dedicated (System)Verilog simulator (e.g. Icarus) and a dedicated VHDL simulator (e.g. ghdl) and exchange data between them, but I think nobody volunteered to do that either. Regards, Orson On 07/02/2018 08:34 PM, David Fong wrote: > Hi, > > I'm trying to compile a VHDL package file and I'm getting these errors > > ../commonlib/types_common.vhd:63: syntax error > ../commonlib/types_common.vhd:63: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:64: syntax error > ../commonlib/types_common.vhd:64: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:67: syntax error > ../commonlib/types_common.vhd:67: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:67: syntax error > ../commonlib/types_common.vhd:67: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:68: syntax error > ../commonlib/types_common.vhd:68: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:69: syntax error > ../commonlib/types_common.vhd:69: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:69: syntax error > ../commonlib/types_common.vhd:69: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:70: syntax error > ../commonlib/types_common.vhd:70: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:71: syntax error > ../commonlib/types_common.vhd:71: error: Syntax error in package declarative item. > ../commonlib/types_common.vhd:71: syntax error > ../commonlib/types_common.vhd:71: error: Syntax error in package declarative item. > > 63 function "-" > 64 (i : integer; d : std_logic_vector) > 65 return std_logic_vector; > 66 > 67 function "-" (d : std_logic_vector; i : integer) return > std_logic_vector; > 68 function "-" (a, b : std_logic_vector) return std_logic_vector; > 69 function "+" (d : std_logic_vector; i : integer) return > std_logic_vector; > 70 function "+" (a, b : std_logic_vector) return std_logic_vector; > 71 function "+" (d : std_logic_vector; i : std_logic) return > std_logic_vector; > > Looks like iverilog cannot handle overloaded functions or the string named function "-" or "+" > > David > > > > > ---------------------------------------------------------------------- > -------- Check out the vibrant tech community on one of the world's > most engaging tech sites, Slashdot.org! http://sdm.link/slashdot > > > > _______________________________________________ > Iverilog-devel mailing list > Ive...@li... > https://lists.sourceforge.net/lists/listinfo/iverilog-devel > |