This thread has been locked.

If you have a related question, please click the "Ask a related question" button in the top right corner. The newly created question will be automatically linked to this question.

TSW14J56EVM: Simulation doesn't work

Part Number: TSW14J56EVM

Hi,

I want to simulate the FPGA on board TSW14J56EVM. So i install Quartus v14.0 with Altera Modelsim (started Edition) and i downloaded the FPGA firmware from the product page.

But, whatever the version of Modelsim i used, i cannot simulate the FPGA. I've compilation error, or worth, Modelsim says that some files is missing.

My aim is to be able to simulate the behavior, to understand how the FPGA works and finally add a - simple - data manipulation IP between data capture and write access into DDR.

Thanks for your help

  • Hi mhed
    We are looking into this. Someone will provide a more detailed response shortly.
    Best regards,
    Jim B
  • Mhed,

    There are no test bench files for the Verilog modules in the J56 firmware, so the released firmware can’t be simulated directly.

     

    If you developed test bench files for different modules but are facing issues with Model Sim,

     

    1.       Can you first compile the J56 source code with no test bench files included to verify all other files are available.

    2.       Please note, project file names in the released firmware source are a bit long, so we have to ensure the firmware file path + file name is short enough to restore the project successfully. Please keep the path of the firmware file short, with minimal sub folders before restoring the project in Quartus. This should help.

    3.       If there are any issues still, please share screenshots of the compilation error.

     

    Attached is a design document developed for the J56 firmware. This is a good starting point for understanding and editing the code.

    Regards,

    Jim

     6560.TSW14J56 RevD MC firmware design document.doc

  • Hi Jim

    Thank you for your answer.
    I'm going to read the document you've attached.

    Ok for the testbench, too bad it would have helped me a lot in my work. However, even if there is no testbench, when you launch RTL simulation flow from Quartus, the source code is compiled first. And this is during this step that i've got errors. I don't have errorr if i run "analysis & synthesis" so i thought that the problem is in compilation script for Modelsim (jesd204b_run_msim_rtl_verilog.do or jesd204b_run_msim_rtl_vhdl.do)

    And, yes i as it is mentionned in other posts, i'had rename the projet to limit the number of characters.
  • Mhed,

    So are you able to do a recompile without errors? I could not tell by your last response.

    Regards,

    Jim

  • Hi Jim,

    Sorry if my answer is not clear.

    I launch the project with Quartus (v14.0).
    If i select "Compilation" as current Flow in task panel, then if i run "analysis & synthesis", there are warnings but no errors.
    If i select "RTL Simulation" as current Flow in task panel, Modelsim is launched and start to compile the design. But then i've got errors and compilation stops.

    I hope this is more clear to you

  • Mhed,

    Try the following to resolve errors shown in Model Sim RTL Simulation

     

    1.       Please copy and replace the attached Verilog files- dec_data_capture_gz.sv, enc_data_gen_gz.sv & jesdcon204b_top.v in the following IP folder

    \* path of the project*\J56\J56D_respin\Altera_JESD204B\jesd204b_refdesign\ip.

     

    And replace trigger_module.v file from the following location

    \* path of the project*\J56\J56D_respin\Altera_JESD204B\jesd204b_refdesign\syn\AVGZ_gen_jesd204b_120_SP2_external_memory.

     

    Forward references- using a signal in logic before declaring the signal type(wire or register) is not allowed in Model Sim

    Attached Verilog files have the declaration issues fixed, please replace them in respective folder.

     

    2.       When Model Sim software runs, it auto-generates a .do file ‘jesd204b_run_msim_rtl_systemverilog.do’ (script file for Model sim to execute) in following location:

    The file can be either VHDL or Verilog or System Verilog based

    We need to edit the .do file, add a command to compile package file first before proceeding to compile other modules

    Please add the following command in .do file in the top after the libraries for IP cores are declared

     

    file Path: \* path of the project*\ J56\J56D_respin\Altera_JESD204B\jesd204b_refdesign\syn\AVGZ_gen_jesd204b_120_SP2\simulation\modelsim

     

    Command to include: vlog -sv -work work +incdir+C:/TI_Bit/J56/AFE7444_1/J56D_respin/Altera_JESD204B/jesd204b_refdesign/src {C:/TI_Bit/J56/AFE7444_1/J56D_respin/Altera_JESD204B/jesd204b_refdesign/src/jesdcon_pkg.v}.

     

    Change the file path in the command from C:/TI_Bit/ to the path where project is restored.

     

    We generated system Verilog based .do file and verified the package related errors got resolved, but the suggested solution should work even if .do file is VHDL or Verilog based. To change from VHDL to Verilog or system Verilog, change the EDA Tool Settings Simulation format accordingly.

    EDA Settings available in Assignments->Settings tab of Quartus.

     

    3.       Launch Model Sim from Start Menu instead of running from Quartus and execute the .do file with the following command in Transcript window Command: do C:/TI_Bit/J56/J56D_respin/Altera_JESD204B/jesd204b_refdesign/syn/AVGZ_gen_jesd204b_120_SP2/simulation/modelsim/jesd204b_run_msim_rtl_systemverilog.do

    Please correct the file path from C:/TI_Bit/ to the path where project got restored

     

    Once the command gets executed, all the modules will be available under work library in Model sim, from there it can be added to Wave window for simulation.

     

    Above steps should be helpful to get the RTL simulation working.

    Regards,

    Jim

    Source Files.zip

  • Hi Jim,

    Thank you for your answer.

    However, there was change in our company, i don't work on this project anymore. But i've transmitted this subject to my co-worker who now wokks on this project. I hope your answer will help him.