Hello everyone ,
my dut is in vhdl , i include it only in test bench ,all other components are in systemverilog , when I compile
it gives me this error
near “;”: syntax error, unexpected ‘;’, expecting STRING_LITERAL or a tick-double-quoted string literal.
is line 1 : which is in vhdl :library ieee ;
in dut I use neither quote nor double quote
thanks
Make sure your VHDL file is actually being compiled as a VHDL file. Simulators typically have different filenames (vlog / vcom) for front end compilation.
In reply to sbellock:
thank you for you reply
vhdl file is comiled before as vhdl and when i include it in testbench it mention the line where is included then error :near “;”: syntax error, unexpected ‘;’, expecting STRING_LITERAL or a tick-double-quoted string literal.
have you ever had such error ?
What do you mean by “when i include it in testbench”? How are you doing that? What language is your testbbench. In general, there is no standard for interoperability between different standards, so you need to look at your tools user manual if your testbench is SystemVerilog, but your design is VHDL.
As Dave stated, you can’t just include a VHDL file in a SystemVerilog package. Your VHDL file needs to be compiled as a separate step in your compilation flow.
actually I have compiled vhdl file using command vcom and systemverilog file using vlog but still give same error
do I have to use signal_spy?so it can solve it or this is a solution of another problem ?
I’ve questa 10.7c
thanks