Error: (vcom-11) while running RTL simulation in Modelsim INTEL FPGA STARTER EDITION
Hi, I have been working on MAX10M50 Development board. I am trying to write code for SPI with CS. I ahve created source and sim files. All complie correctly in quartus prime software. While running RTL simulation in modelsim it shows following error.
# -- Compiling architecture TB of SPI_16bit_CS_TB
# ** Error: (vcom-11) Could not find work.spi_16bit_cs.
# ** Error (suppressible): C:/Users/salvi/Desktop/FPGA/VHDL Codes/SPI_16_CS_28_06/SPI_16bit_CS_TB.vhd(55): (vcom-1195) Cannot find expanded name "work.SPI_16bit_CS".
# ** Error: C:/Users/salvi/Desktop/FPGA/VHDL Codes/SPI_16_CS_28_06/SPI_16bit_CS_TB.vhd(55): Unknown expanded name.
# ** Note: C:/Users/salvi/Desktop/FPGA/VHDL Codes/SPI_16_CS_28_06/SPI_16bit_CS_TB.vhd(96): VHDL Compiler exiting
# End time: 13:17:38 on Jun 28,2022, Elapsed time: 0:00:00
# Errors: 3, Warnings: 0
# ** Error: C:/intelFPGA/20.1/modelsim_ase/win32aloem/vcom failed.
# Error in macro ./SPI_16bit_run_msim_rtl_vhdl.do line 10
# C:/intelFPGA/20.1/modelsim_ase/win32aloem/vcom failed.
# while executing
I am attaching 3 vhdl code files.
Please tell me how to overcome this error.