Forum Discussion
Altera_Forum
Honored Contributor
11 years agoError while compiling eda simulation library
Hi, i'm tryng to compile Quartus library for active-hdl, VHDL language but i receive this errors:
Error: Error: VCP2000 c:/altera/13.1/quartus/eda/sim_lib/altera_lnsim.sv : (1522, 15): Syntax error. Unexpected token: static[_STATIC]. The 'static' is a SystemVerilog 3.x keyword. Please use -v2k or -v95 switch . Error: Error: VCP2000 c:/altera/13.1/quartus/eda/sim_lib/altera_lnsim.sv : (1523, 14): Syntax error. Unexpected token: begin[_BEGIN]. Expected tokens: '(*' , 'import' , 'export' , 'endpackage' , 'event' ... . Warning: Warning: VCP7606 c:/altera/13.1/quartus/eda/sim_lib/altera_lnsim.sv : (1615, 43): Package altera_generic_pll_functions imports its own symbols. Error: Error: VCP2890 c:/altera/13.1/quartus/eda/sim_lib/altera_lnsim.sv : (1618, 71): Unspecified argument is used for an argument that does not have a default value: time_string. Error: Error: VCP2890 c:/altera/13.1/quartus/eda/sim_lib/altera_lnsim.sv : (1619, 91): Unspecified argument is used for an argument that does not have a default value: time_string. Error: Error: VCP2890 c:/altera/13.1/quartus/eda/sim_lib/altera_lnsim.sv : (1620, 85): Unspecified argument is used for an argument that does not have a default value: time_string. Error: Error: VCP0120 Internal unknown error occurred. Info: Compile failure 6 Errors 1 Warnings Analysis time: 2[s]. Info: temp_simlib_comp.tmp(19) Script: Break at line 19. Info: onerror { exit } Error: Compilation was NOT successful. 6 errors, 1 warnings Any suggestion? Thanks4 Replies
- Altera_Forum
Honored Contributor
Hi,
Just wonder in which simulator the above errors are shown? Have you got a chance to try with Modelsim Altera? - Altera_Forum
Honored Contributor
Do you have -sv2k5 on your vlog command, as that file is SystemVerilog.
- Altera_Forum
Honored Contributor
Actually, I pulled up a Riviera Pro simulation I'm running(in Q15.0) and it's added this way:
vlog $USER_DEFINED_COMPILE_OPTIONS "$QUARTUS_INSTALL_DIR/eda/sim_lib/altera_lnsim.sv" -work altera_lnsim So maybe as the message says of adding -v2k5. Seems strange. Just a guess. And to totally confuse you, I did a search on altera_lnsim.v, and in a 13.1 version of the simulation section of the Quartus handbook, I found: VCS and VCS MX Guidelines The following guidelines apply to simulating Quartus II designs in the VCS or VCS MX software: ■ Do not specify the -v option for altera_lnsim.sv because it defines a systemverilog package. ■ Add -verilog and +verilog2001ext+.v options to make sure all .v files are compiled as verilog 2001 files, and all other files are compiled as systemverilog I know this is for a different simulator, but thought I'd mention it. - Altera_Forum
Honored Contributor
I received this error in the Quartus tool "Compiling EDA simulation Libraries" in the Tool menu. I used the gui to compile the library so i can't place or edit compilation command.