Git Product home page Git Product logo

Comments (8)

zhipengzhaocmu avatar zhipengzhaocmu commented on August 11, 2024

The simulation errors in your last screenshot suggest the simulation library path is not correctly specified. Have you followed the simulation steps in README?

Simulation Setup:

Compile Quartus 19.3 IP library for RTL simulation. Open Quartus 19.3. Select "Launch Simulation Library Compiler" under the "Tools" Tab. Select "ModelSim" as the "Tool name" and specify the path for "Executable location." Then select "Stratix 10" as Library families. Specify the output directory and click "Start Compilation".
Add the compiled library path as the environment variable, by export SIM_LIB_PATH=your_install_path/sim_lib/verilog_libs

Line5-7 of run_vsim.sh requires the path to $SIM_LIB_PATH.

The "errors" in your first three screenshots are expected. We forced qsys to generate those IP core files without connecting those IPs together. This is intended as we only need the individual IP core files. As long as you observe "generated_files" folder is created under $pigasus_repo/pigasus/hardware/scripts/, and there are a list of .sv files as shown below, you should be good.
file_list

I'm not sure about the "Killed" you observed after PCIe subsystem is generated. That does not show up on my end. If you just care about simulation, you can actually comment line 17-43 of run_ipgen.sh. Those lines are generating the Ethernet and PCIe subsystems, which are not used in simulation. Also make sure you have installed the Stratix 10 device after installing Quartus 19.3.

One thing I noticed is that the .pcap files in input_gen are missing. Will add them back soon.

from pigasus.

Gavindeed avatar Gavindeed commented on August 11, 2024

Thanks for your response! I found out that I tried to install the simulation library using Quartus 19.3 by following the instructions, but Quartus showed that "Modelsim-Altera software comes packaged with precompiled simulation libraries", so I do not need to compile (actually it does not allow me to compile). So I tried to find out the sim_lib in the Quartus directory, and I found out the directory "intelFPGA_pro/19.3/quartus/eda/sim_lib". However, this directory seems not to be the one vsim wanted. After running the ./run_vsim.sh again, I got the similar errors reported:

image

Thanks,
Junzhi

from pigasus.

zhipengzhaocmu avatar zhipengzhaocmu commented on August 11, 2024

The Modelsim-Altera and ModelSim are not the same.

We highly recommend running RTL simulation of Pigasus before testing it on real system. Here we use Modelsim-SE (requires license) as our simulation tool. We do not recommend using the Modelsim-Altera_Start_Edition (Modelsim-ASE) -- the free version that comes with Quartus -- to simulate Pigasus, as Pigasus exceeds the line limit of Modelsim-ASE, which leads to extremely slow simulation. We have not tested other simulation tools like VCS.

If you have ModelSim installed, then you will need to do
Select "Launch Simulation Library Compiler" under the "Tools" Tab. Select "ModelSim" as the "Tool name" and specify the path for "Executable location." Then select "Stratix 10" as Library families. Specify the output directory and click "Start Compilation".

If you prefer to use the ModelSim-Altera, then you will need to specify vsim path to point to ModelSim-Altera instead of ModelSim. The compiled sim_lib should be different for these two different tools.

from pigasus.

ShashankOV avatar ShashankOV commented on August 11, 2024

@zhipengzhaocmu If those errors are expected when generating the IPs we should probably include a note in the README accompanying that command, for others who might come across it.

from pigasus.

ShashankOV avatar ShashankOV commented on August 11, 2024

@Gavindeed Are you still facing the "Killed" issue, or did you follow @zhipengzhaocmu's recommendation to comment those lines? Could this be because the VM does not have enough memory - PCIe especially is a pretty heavy IP to build, could be a resource issue if it's constrained. Of course also look at the other comments already suggested.

from pigasus.

Gavindeed avatar Gavindeed commented on August 11, 2024

Thanks for your reply! Zhipeng’s answer is correct that I was not using the correct version of modelsim. I cannot get the modelsim SE so I have to use modelsim ase from Intel. I changed the last line of run_vsim.sh (removing all the $ characters) since modelsim ase has the compiled sim library packaged. I found out it worked. However, it took me two and a half hour to finish the 100 packet simulation instead of 20 seconds shown in the tutorial. Is this time expected? Also I found out it was only using one core to run the simulation, could it be accelerated by using multiple cores?

For the “killed” problem, I temporarily ignored it since the simulation worked for now. But I will try to rerun it by adding more memory resource to the VM. Thanks!

from pigasus.

ShashankOV avatar ShashankOV commented on August 11, 2024

from pigasus.

Gavindeed avatar Gavindeed commented on August 11, 2024

Thanks for your response!

from pigasus.

Related Issues (12)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.