I have this Systemverilog testbench, in which I want to use a package written in VHDL.
When I do: 'include "desired_pkg.vhd", it appararantly interpretes is a Verilog package, as ModelSim reports:
Error: (vlog-13069) ** while parsing file included at C:/Users/VHDL/CO_code/CO_18_03/simulation/ed_sim/models/tb_top.sv(22)
** at C:/Users/VHDL/CO_code/CO_18_03/CO_simulation/mentor/020_regmaps_struct_pkg.vhd(1): near "--": syntax error, unexpected --, expecting class.
So it tries to interpret -- (comment in VHDL) as something in Verilog. How to include this package without rewriting it into Verilog?