Compiling fibonacci_calculator.sv in Quartus It will open the file containing the top module which in this case is fibonacci_calculator.sv. Now that we have created the project, under Compilation Hierachy double click fibonacci_calculator. On the next screen it will display a summary of your settings. Next to Simulation, under Tool Name click on ModelSim-Altera and under format click SystemVerilog HDL then press next. Be sure to select EP2AGX45DF29I5 otherwise your area and timing numbers will be incorrect. Scroll down using the arrow pointing downwards on the bottom right. You may come back to this screen after you create the project from the homescreen by clicking Project-> Add/Remove Files.ĭesigning hardware relies on the capability of each FPGA.
After you have selected the files to add press Next. For most cases it suffices to click Add All. The next screen allows you to add files to the project. For most purposes this should be left as empty project. The next page asks if you want to use a previous template for your design. Once this section is complete, select Next. For example, in the below screenshot the project name is fibonnacci_calculator because fibonacci_calculator.sv declares the module fibonacci_calculator. The name of the project has to match the name of the top, non-testbench module in the project. If you have a directory for this class, there should be sub-folders for each project. Be aware that you cannot have multiple projects in the same directory. Select the folder where the fibonacci_calculator.sv and tb_fibonacci_calculator.sv are saved. You will be asked to select a working directory for the project. Now, run Quartus and navigate to File -> Create a New Project. sv extension with other text editors (right). Make sure to double check the type is SystemVerilog HDL File with Quartus (left) or All Files (*.*) with a. All these text editors have downloadable packages that support the Verilog/SystemVerilog language (the two names are sometimes used interchangebly). You can save the files into the folder by copy-and-pasting the text into Quartus as it has a built in text editor that can be accessed through File->New.Īnother way to do this is to pasting the text into your favorite text-editor (Atom/Sublime-Text/TextMate/Vim/etc). The testbench is used to run a module named fibonacci_calculator, hence the name tb_fibonacci_calculator.sv. In this class, any file starting with tb_ is designated a testbench file. Start by creating a folder that will contain both the fibonacci_calculator.sv and tb_fibonacci_calculator.sv files which can be found on the class website. Creating your first project: fibonacci_calculator Creating a directory for the project The end result should look something like the below but varies slightly depending on the installation directory. If this is the case, you will need to manually add the path to your. Then check if Modelsim-Alteria doesn't have a path. In Quartus, go to Tools-> Options -> EDA Tools options (Tools in the right hand corner.). Fixing the error caused by changing the installation directory
Now that the install is complete, uncheck USB Blaster II driver and launch quartus.
Once the download is complete, you may delete the setup files in your download folder. Press next and Quartus/Modelsim will be installed. If there are more devices that is OK as long as Quartus Prime and Modelsim are checked. If all setup files were downloaded correctly, we get the following screen. If you choose a directory with spaces such as Program Files there will be an extra step at the end, but do not worry if an error message pops up when this option is selected. To make things easier, it is recommended to use the default directory. Click Next and accept the agreement.ĭuring the setup you will need to choose an installation directory. Once the download is complete run QuartusLiteSetup-17.1.0.590-windows.exe. Click on where you want to download the setup files and press ok.
If the settings in your browser are correct, the following window should show up. Next, disable any adblockers and click download selected Files. Go back to the download page and under devices, uncheck all devices except for the Arria II model. Create an account and make sure you are signed in. Make sure you have approximately 14GB of available disk space on your local disk.
You will need to download a windows ISO and obtian a valid windows key.
If you are using a mac, one option is to use BootCamp which enables you to dual-boot both Mac OS and Windows. For other setups, the instructions below may not apply. The following tutorial assumes that you using Windows and Google Chrome as your default browser. Quartus_modelsim_tutorial Quartus 17.1 & ModelSim Tutorial Page Installing Quartus