CA Lab Setup
CA Lab Setup
Tools Setup
This lab will require use of Linux as all the tools are supported for the Linux Environment.
For this purpose you can either setup WSL2 or Virtualbox for using Ubuntu in Windows
WSL Setup
For setting up WSL2, open the command prompt as administrator and run the following
command.
wsl --install
Restart your computer once the WSL kernel has successfully been installed. For opening the
WSL terminal, open the Ubuntu app from the Windows start menu. Now follow the steps
given in the RISC-V and ModelSim Installation section at the end of the manual for installing
the required tools.
Download and Install Virtualbox. After installation is complete, open Virtualbox and select the
new option for creating a new VM.
Following dialog box will open. From there browse the Ubuntu iso image downloaded
previously.
In the next step set a password for your VM.
Select the amount of RAM and CPU cores for your VM.
Select the hard disk space for your VM and then finish the setup.After this your VM will start
running and Ubuntu installation will take place when your VM runs for the first time. After
Installation completion you will get the following window.
Login to your account with the password that you previously used. Open the system settings,
and in the Display section change the resolution to the resolution of your screen.
This will increase the size of the Ubuntu Desktop in VM and now we are ready to install the
required softwares.
wget
https://download.altera.com/akdlm/software/acdsinst/20.1std.1/720/ib_ins
tallers/ModelSimSetup-20.1.1.720-linux.run
chmod +x ModelSimSetup-20.1.1.720-linux.run
./ModelSimSetup-20.1.1.720-linux.run
When you execute the third command in the above listing the ModelSim setup will run.
Select the ModelSim - Intel FPGA Starter Edition and perform the installation.
export PATH=$PATH:~/intelFPGA/20.1/modelsim_ase/bin
Similarly, use the following command for setting up the RISC-V gcc toolchain.
wget
https://static.dev.sifive.com/dev-tools/freedom-tools/v2020.12/riscv64-u
nknown-elf-toolchain-10.2.0-2020.12.8-x86_64-linux-ubuntu14.tar.gz