Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
8 years ago

twentynm_fp_mac_encrypted simulation in questasim

Hi,

I have some problem with simulaion fpga project with twentynm_fp_mac_encypted component.

How can I get HDL code for simulation of this component

or find full information about functions of this componet ?

Thank you

5 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I need to run simulation OpenCL FPGA project of neural network (NN) with float point computations.

    Can I generate in Qsys tool HDL code of this NN for simulation ?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi,

    --- Quote Start ---

    QuestaSim get this error

    Module 'twentynm_fp_mac_encrypted' is not define.

    As per you previous threadhttps://www.alteraforum.com/forum/showthread.php?t=57404

    --- Quote End ---

    Can you edit the msim_setuo.tcl file and check again.

    1.Add below lines in Compile device library files section of msim_setuo.tcl

    
    eval  vlog $USER_DEFINED_COMPILE_OPTIONS     "$QUARTUS_INSTALL_DIR/eda/sim_lib/mentor/twentynm_atoms_ncrypt.v"      -work twentynm  
    eval  vlog $USER_DEFINED_COMPILE_OPTIONS     "$QUARTUS_INSTALL_DIR/eda/sim_lib/mentor/twentynm_hssi_atoms_ncrypt.v" -work twentynm_hssi
    eval  vlog $USER_DEFINED_COMPILE_OPTIONS     "$QUARTUS_INSTALL_DIR/eda/sim_lib/mentor/twentynm_hip_atoms_ncrypt.v"  -work twentynm_hip
    

    Best Regards,

    Anand Raj Shankar

    (This message was posted on behalf of Intel Corporation)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Hi,

    Can you edit the msim_setuo.tcl file and check again.

    1.Add below lines in Compile device library files section of msim_setuo.tcl

    
    eval  vlog $USER_DEFINED_COMPILE_OPTIONS     "$QUARTUS_INSTALL_DIR/eda/sim_lib/mentor/twentynm_atoms_ncrypt.v"      -work twentynm  
    eval  vlog $USER_DEFINED_COMPILE_OPTIONS     "$QUARTUS_INSTALL_DIR/eda/sim_lib/mentor/twentynm_hssi_atoms_ncrypt.v" -work twentynm_hssi
    eval  vlog $USER_DEFINED_COMPILE_OPTIONS     "$QUARTUS_INSTALL_DIR/eda/sim_lib/mentor/twentynm_hip_atoms_ncrypt.v"  -work twentynm_hip
    

    Best Regards,

    Anand Raj Shankar

    (This message was posted on behalf of Intel Corporation)

    --- Quote End ---

    This is not working.

    Instantitaion of twentynm_fp_mac_encrypted failed. Design unit is not found
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi ,

    Can you share your msim_setuo.tcl file?

    Best Regards,

    Anand Raj Shankar

    (This message was posted on behalf of Intel Corporation)
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hi ,

    You can simulate designs using the encrypted IP but cannot edit them. To simulate the IP, you need to compile the twentyfivenm library. This file can be found in the Quartus intallation directory.

    C:\IntelFPG\17.1\quartus\eda\sim_lib

    You can compile the twnetyfivenm VHDL /Verilog files into your work library and then recompile and simulate your design.