Hello, hycheah and thepancake,
Thanks for your help! Now the problem is that I don't know which files to put into my modelsim project. Here is the thing:
I first created an FIR and an FFT using MegaWizard Plug-In Manager. Then the following hdl files are created:
fir_comp_ast.vhd
fir_comp_st.v
tb_fir_comp.vhd
fir_com.vhd
my_fft_tb.v
my_fft_tb.vhd
my_fft_syn.v
my_fft.vhd
Then I connected the FIR and FFT in SOPC builder, between them I put a Dual Clock FIFO, then the following hdl files are created:
fir_comp_0.vhd
dc_fifo_0.v
my_fft_0.vhd
fir_fft_two_sopc.vhd (fir_fft_two_sopc is the name of my sopc system)
fir_fft_two_sopc_inst.vhd
fir_fft_two.vhd (instantiation of my SOPC system)
At this moment, I have tried myself. I have basically added every hdl files inside; I have even added some vho files (maybe they are not necessary).
However modelsim has given some compilation errors as follows:
fir_comp_ast.vhd failed with 1 errors: ** Error: D:/FYP_extra/fir_fft/fir_fft_two/fir_comp_ast.vhd(32): Library auk_dspip_lib not found.
** Error: D:/FYP_extra/fir_fft/fir_fft_two/fir_comp_ast.vhd(33): (vcom-1136) Unknown identifier "auk_dspip_lib".
** Error: D:/FYP_extra/fir_fft/fir_fft_two/fir_comp_ast.vhd(36): VHDL Compiler exiting
compile of fir_comp_ast.vhd failed with 1 errors. ** Error: D:/FYP_extra/fir_fft/fir_fft_two/fir_compiler-library/auk_dspip_lib_pkg_fir_90.vhd(1): near "<byte 0x8b>": illegal character found in source
** Error: D:/FYP_extra/fir_fft/fir_fft_two/fir_compiler-library/auk_dspip_lib_pkg_fir_90.vhd(1): near "<byte 0x13>": illegal character found in source
** Error: D:/FYP_extra/fir_fft/fir_fft_two/fir_compiler-library/auk_dspip_lib_pkg_fir_90.vhd(1): near "<byte 0x9c>": illegal character found in source
** Error: D:/FYP_extra/fir_fft/fir_fft_two/fir_compiler-library/auk_dspip_lib_pkg_fir_90.vhd(1): VHDL Compiler exiting
# compile of my_fft.vhd failed with 1 errors.
** Error: D:/FYP_extra/fir_fft/fir_fft_two/my_fft.vhd(34): Library fft_lib not found.
** Error: D:/FYP_extra/fir_fft/fir_fft_two/my_fft.vhd(35): (vcom-1136) Unknown identifier "fft_lib".
** Error: D:/FYP_extra/fir_fft/fir_fft_two/my_fft.vhd(37): VHDL Compiler exiting
It seems that I have added some unnecessary files or missed some compulsory files? So, could you please advice on which files are necessary for my modelsim project?
Thank you so much for your patience!
Best regards