Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
16916 Discussions

Error during quartus simulation syntax error

Hakim1
Beginner
866 Views

Hi, i wrote my code for a 3 to 8 decoder in structural vhdl :

 

code_decodeur_3_x_8.png

 

i had no problems during the compilation. When i tried to simulate to see the results, it says :

 **** Running the ModelSim simulation **** c:/altera/13.1/modelsim_ase/win32aloem//vsim -c -do Laboratoire2.do Reading C:/altera/13.1/modelsim_ase/tcl/vsim/pref.tcl # 10.1d # do Laboratoire2.do # ** Warning: (vlib-34) Library already exists at "work". # # Model Technology ModelSim ALTERA vlog 10.1d Compiler 2012.11 Nov 2 2012 # -- Compiling module DECODEUR_3_x_8 # # Top level modules: # DECODEUR_3_x_8 # Model Technology ModelSim ALTERA vlog 10.1d Compiler 2012.11 Nov 2 2012 # -- Compiling module DECODEUR_3_x_8_vlg_sample_tst # ** Error: Simulation_decodeur_3_x_8.vwf.vt(30): near ",": syntax error, unexpected ',' # ** Error: c:/altera/13.1/modelsim_ase/win32aloem/vlog failed. # Executing ONERROR command at macro ./Laboratoire2.do line 4 Error.

 

I never had this error before. I opened the file Simulation_decodeur_3_x_8.vwf.vt and i didnt see any errors. I uploaded the code of the decodeur and the simulation one. Can you help me ?

Labels (1)
0 Kudos
2 Replies
Hakim1
Beginner
857 Views

i found the error. It seems to be the name that i gave to my inputs and outputs. when i changed "input" to "entree" and "output_0/7" to "sortie_0/7" it worked. i dont know why maybe input and output are key words that i cant use. Hope this helps for the others.

0 Kudos
roeekalinsky
Valued Contributor I
833 Views

"input" and "output" are not reserved key words in VHDL, but they are in Verilog, and your test bench is written in Verilog.

0 Kudos
Reply