Forum Discussion

ming1's avatar
ming1
Icon for New Contributor rankNew Contributor
4 years ago

How to design a double precision floating point fft? And how to simulata this project in modelsim?

I have generated a Unified FFT ip in quartus prime pro21.1. Then the input terminal is connected to the ROM module. I wonder if that will work well. how do I use Modelsim to simulate it. (The Version of Modelsim is ModelsimSE 10.4)

1 Reply

  • ming1's avatar
    ming1
    Icon for New Contributor rankNew Contributor

    set QSYS_SIMDIR ../
    source $QSYS_SIMDIR/mentor/msim_setup.tcl

    dev_com
    com


    vlog -vlog01compat -work work ../fft.v
    vlog -vlog01compat -work work ../count/count.v
    vlog -vlog01compat -work work ../rom/rom.v
    vlog -vlog01compat -work work ../fftip/fftip.v
    vlog -vlog01compat -work work ../tb_FFT.v


    set TOP_LEVEL_NAME tb

    elab

    add wave *
    view structure
    view signals
    run -all

    This is my .do file, and the Error reported in ModelSim is

    # ** Error: D:/hxm/intelfpga_pro/21.1/quartus/eda/sim_lib/cyclone10gx_atoms.vhd(1358): Can't recompile existing protected design unit "cyclone10gx_mux41" as unprotected.
    # ** Error: D:/hxm/intelfpga_pro/21.1/quartus/eda/sim_lib/cyclone10gx_atoms.vhd(1358): Error adding entity 'cyclone10gx_mux41' to library
    # ** Error: D:/hxm/intelfpga_pro/21.1/quartus/eda/sim_lib/cyclone10gx_atoms.vhd(1358): VHDL Compiler exiting
    # End time: 14:54:00 on Nov 13,2021, Elapsed time: 0:00:00
    # Errors: 3, Warnings: 0
    # ** Error: D:/hxm/modlesim/win64/vcom failed.
    # Error in macro ./run.do line 4

    What can I do to avoid this and simulate the correct result?