-
Notifications
You must be signed in to change notification settings - Fork 103
en devel getting started
Ryota Shioya edited this page Dec 21, 2019
·
10 revisions
- This section describes the procedure from compiling the source code to perform functional simulation.
- For Windows
- Install cygwin
- Make sure to install "make" at the same time
- You can use cygwin's python and git, but it may be better to install Windows version
- Install cygwin
- For Windows and Linux
- Install python, make, git
One of the following is required
- Mentor QuestaSim or ModelSim
- Verilator
- Vivado
The following is not required if you only perform functional simulation.
- Synopsys Synplify
- Used for compiling (logic synthesis) of SystemVerilog
- Xilinx Vivado
- Output bitstream for FPGA based on netlist output by Synplify
- Pipeline viewer Konata
- Download and extract the pre-built binary archive from Konata
- Editor
- [Visual Studio Code] (https://code.visualstudio.com/) is recommended
- Please install SystemVerilog extension after introduction
- It is recommended to install svls-vscode
- Refer to files in "Processor/Tools/SetEnv" and set environment variables
- See "SetEnv.bat" for Windows and "SetEnv.sh" for Linux
- At least RSD_ROOT must be set for simulation
- On Windows, RSD_CYGWIN_PATH must also be set
- Set RSD_QUESTASIM_PATH when using Modelsim / QuestaSim
- Move to "Processor/Src" and make as follows
- For Modelsim / QuestaSim
make make run # run simulation make kanata # run simulation & outputs a konata log file
- For Verilator, specify Makefile.verilator, like
make -f Makefile.verilator
- For Vivado, specify Makefile.vivado, like
make -f Makefile.vivado
- For Modelsim / QuestaSim
- The above sub-command is "kanata", not "konata"
- See below for details
- If the simulation is successful, "kanata.log" is generated in Processor/Src
- Use Konata to visualize logs
- See "How to Synthesis"