[[ubuntu_virtual_cae_system]]

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
ubuntu_virtual_cae_system [2020/03/23 18:05]
beckmanf typo
ubuntu_virtual_cae_system [2024/06/03 00:28] (current)
beckmanf restructure
Line 1: Line 1:
-===== Lubuntu ​Virtual CAE System =====+===== Debian ​Virtual CAE System =====
  
-The Lubuntu(r) ​virtual CAE System is a Lubuntu ​Linux(r) based CAE environment based on Altera(r), Quartus(r), ​Modelsim(r) ​and a MIPS(r) Cross compiler. The idea is to run Ubuntu ​Linux in a virtual machine. The lab as two different boards which require different Quartus Version.+The Debian ​virtual CAE System is a Debian ​Linux based CAE environment based on Intel/Altera(r), Quartus(r), ​ghdl and gtkwave. The idea is to run Linux in a virtual machine. The lab as two different boards which require different Quartus Version.
  
-  * Altera DE1 board (Digitaltechnik,​ Entwurf digitaler Systeme 1) with Cyclone II FPGA +  * [[altera_boards|Altera DE1 board]] (Digitaltechnik,​ Entwurf digitaler Systeme 1) with Cyclone II FPGA 
-  * Altera DE1 SOC (Master VLSI, Master COM) with Cyclone V FPGA+  * NOT IN SS21!!! ​Altera DE1 SOC (Master VLSI, Master COM) with Cyclone V FPGA
  
 The last version that supports Cyclone II fpga architecture is Quartus 13.0sp1. That version does not support the Cyclone V architecture. All quartus versions that support Cyclone V do not support Cyclone II. So unfortunately there is not one Quartus version that supports both fpga architecutures. ​ The last version that supports Cyclone II fpga architecture is Quartus 13.0sp1. That version does not support the Cyclone V architecture. All quartus versions that support Cyclone V do not support Cyclone II. So unfortunately there is not one Quartus version that supports both fpga architecutures. ​
 +
 ==== Preconfigured VirtualBox virtual machine ==== ==== Preconfigured VirtualBox virtual machine ====
  
 +Hans Färber has build three different virtual machines:
  
-Hans Färber has build two different virtual machines: +  ​* [[https://​www.hs-augsburg.de/homes/haf/php/​dokuwiki/​doku.php?id=public:​praktikum_digitaltechnik:​cae-virtual-machine:​caevm-install|Altera DE1 Virtual Machine with Quartus 13.0sp1 and ghdl/​gtkwave]] for Digitaltechnik,​ Digitaltechnik Praktikum and Entwurf digitaler Systeme 1 
- +  * [[https://​www.hs-augsburg.de/​homes/​haf/​php/​dokuwiki/​doku.php?​id=public:​meng:caemachine:​caevm-install|Altera DE1 Virtual Machine ​with Quartus, Modelsim and Matlab]] for Master Courses ​ 
-  ​* [[https://​www.terasic.com.tw/cgi-bin/page/archive.pl?Language=English&​CategoryNo=183&​No=83|Altera DE1 board]][[https://​www.hs-augsburg.de/​homes/​haf/​php/​dokuwiki/​doku.php?​id=public:​praktikum_digitaltechnik:cae-virtual-machine:​caevm-install|Altera DE1 Virtual Machine]] +  * [[https://​www.terasic.com.tw/​cgi-bin/​page/​archive.pl?​Language=English&​No=836|Altera DE1 SoC board]]: [[https://​www.hs-augsburg.de/​homes/​haf/​php/​dokuwiki/​doku.php?​id=public:​meng:​caemachine:​socvm-install|SoC Virtual Machine]] (used in previous years for Master courses)
-  * [[https://​www.terasic.com.tw/​cgi-bin/​page/​archive.pl?​Language=English&​No=836|Altera DE1 SoC board]]: [[https://​www.hs-augsburg.de/​homes/​haf/​php/​dokuwiki/​doku.php?​id=public:​meng:​caemachine:​socvm-install|SoC Virtual Machine]] (for Master courses)+
  
 ===== Build your own from scratch ===== ===== Build your own from scratch =====
  
-The CAD software is based on Lubuntu linux, Quartus and other software. The software and the linux operating system are supposed to run in a virtual machine. If you do not use a virtualization environment,​ then you can install also directly on a native linux machine. ​The following description assumes Lubuntu 18.04. Just skip the virtual machine section.+The CAD software is based on Debian Linux, Quartus and other software. The software and the linux operating system are supposed to run in a virtual machine. If you do not use a virtualization environment,​ then you can install also directly on a native linux machine. ​See [[dt_manual_vm|manual setup]] for manual installation hints.
  
 ==== Virtual Machine ==== ==== Virtual Machine ====
  
 +=== Virtualization Software ===
 There are different virtual machine environments. ​ There are different virtual machine environments. ​
  
-=== VMWare ​===+== VMWare ==
  
-VMWare(r) provides a commercial version VMWare Fusion for Mac OS(r). This has a very good integration in MacOS and I use it with MacOS 10.13.(High Sierra). It is not free. For Windows(r) ​there is the VMWare Player. The VMWare Player is free. I have not tested ​it+VMWare(r) provides a commercial version ​[[https://​www.vmware.com/​products/​desktop-hypervisor.html|VMWare Fusion]] for Mac OS(r). This has a very good integration in MacOS and I use it with MacOS 12.7.(Monterey). I have a commercial version but there is free "​VMWaver Fusion"​ for personal use alsoThey have "​VMWaver Workstation"​ for Windows but I have not tested ​that.
  
-=== VirtualBox ​===+== VirtualBox ==
  
-VirtualBox(r) is available for Windows, Linux and Mac OS. It is free. From my experience with MacOS it is not as good integrated as VMWare Fusion. If you want to use this, then download and install the the virtual machine software from [[https://​www.virtualbox.org|https://​www.virtualbox.org]]+[[https://​www.virtualbox.org|VirtualBox(r)]] is available for Windows, Linux and Mac OS. It is free. From my experience with MacOS it is not as good integrated as VMWare Fusion. If you want to use this, then download and install the the virtual machine software from [[https://​www.virtualbox.org|https://​www.virtualbox.org]]
  
-=== Get the Lubuntu 18.04 install image ===+== UTM for Mac ==
  
-Download the ISO file for the 64 Bit Lubuntu 18.04.4 LTS Desktop versionYou can download ​the image from here:+[[https://​github.com/​utmapp/​UTM|UTM]] is based on [[https://​www.qemu.org|QEMU]]. UTM/QEMU allows to run the amd64 based machine also on ARM M1/M2 based Apple Laptops. I have tested this on a Intel based MacBook Pro. It is slower than VMWare.
  
-[[http://​cdimage.ubuntu.com/​lubuntu/​releases/​18.04.4/​release/​lubuntu-18.04.4-desktop-amd64.iso]]+=== Get the .iso install image ===
  
 +Download the ISO file for Debian 12.5.0 preconfigured setup. You can download the image from here:
  
-=== Install the Lubuntu machine ===+<​html>​ 
 +<a href="​http:​www.tha.de/​homes/​beckmanf/​public/​vcae-debian-12.5.0-1.iso"​ download>​http:​www.tha.de/​homes/​beckmanf/​public/​vcae-debian-12.5.0-1.iso</​a>​ 
 +</​html>​
  
-This depends on the virtualization environment that you use.+=== Create ​the virtual machine ===
  
-== VMWare ==+This depends on the virtualization environment that you use. The iso contains a preconfigured debian installer which will install a machine with a user "​caeuser"​ with password "​caeuser"​. The ISO file represents a CD like in a CDROM and will install a new virtual system. The things you need to configure in your virtualization environment are the hard disk size, the memory and the number of processors that your virtual machine shall have. 
  
-Create a new virtual ​machine with minimum 20GB hard disk. The hard disk will result in a file on the host operating system (Here MacOs) but the file size on the host will be dynamic, i.e. it will depend on the actual usage in the virtual machine. I have selected 300GB. Use the username ​"caeuser" ​with password "​caeuser"​ because that is the setting in the lab and all descriptions are based on this. The name of your computer shall be "vcae"​. ​+For all virtual ​machines choose ​"Conventional BIOS" and not "UEFI Boot".
  
-You need to install the guest additions. Without the guest additions, the interaction with the host system is not working (file sharing / Clipboard). Run "​Virtuelle Maschine -> VMWare ​Tools installieren"​ in the VMWare menu. Then run the following:​ +== VMWare ​==
- +
-<​code>​ +
-cd +
-mkdir vmware +
-cp /​media/​caeuser/​VMwareTools-<​versionnumber>​ vmware +
-cd vmware +
-tar -xvzf VMwareTools-<​versionnumber>​ +
-cd vmware-tools-distrib +
-sudo ./​vmware-install.pl  +
-</​code>​ +
- +
-Say "​yes"​ to all questions...+
  
 +Create a new virtual machine with minimum 30GB hard disk size. The hard disk will result in a file on the host operating system (Here MacOs) but the file size on the host will be dynamic, i.e. it will depend on the actual usage in the virtual machine. So you can also configure 120GB. Choose minimum 2GB ram or 50% of your RAM in your computer. Choose 50% of the processor cores on your computer.
  
 == Virtualbox == == Virtualbox ==
Line 65: Line 59:
 to be done to be done
  
-===== Install Quartus 13.0sp1 and Modelsim =====+== UTM ==
  
-The following steps will install ​+Make sure you choose "​BIOS"​ boot mode and not "​UEFI"​. After the debian installer has finished you have to virtually eject the ISO file.
  
-  * Altera Quartus II Web Edition Version 13.0sp1 (13.0.1 build 232) +=== Finalize the installation ===
-  * Modelsim Altera Starter Edition Version 10.1d (included in 13.0sp1)+
  
-These versions are required for the Altera DE1 board which is used in the digital design lab and is available in the libraryThis Quartus version is the last version that supports the Altera Cyclone II FPGA which is on that board. So do not install a later version if you want to use that board. +After the debian installer has finished you should reboot your virtual machine. It will start in terminal modeYou need to login as user "caeuser"​ with password "​caeuser" to finalize ​the installationAfter login do:
- +
-Install the software at "/​opt/​altera/​13.0sp1". Create the altera directory and change the owner to the caeuser username.+
  
 <​code>​ <​code>​
-sudo mkdir /opt/altera +cd 
-sudo chown caeuser:​caeuser /opt/altera+./go.sh
 </​code>​ </​code>​
  
-=== Install 32Bit Libraries ​ ===+That will install ​
  
-Quartus ​and Modelsim require 32Bit Libraries which are not installed by default+  * Altera ​Quartus ​II Web Edition Version 13.0sp1 (13.0.1 build 232) 
 +  * GHDL + gtkwave 
 +  * LXQt + Lightdm Window environment
  
-Enable multiple architectures (32 Bit 64 Bit)+These versions are required for the Altera DE1 board which is used in the digital design lab and is available in the library. This Quartus version is the last version that supports the Altera Cyclone II FPGA which is on that board. So do not install a later version if you want to use that board. The quartus software will be installed at "/opt/​altera/​13.0sp1"​. The installation script "​go.sh"​ installs the remaining software vi "​ansible"​. ​
  
-<​code>​ +===== Test the installation =====
-sudo dpkg --add-architecture i386 +
-sudo apt-get update +
-</​code>​+
  
-Install the 32Bit libraries+=== Start Quartus GUI===
  
 <​code>​ <​code>​
-sudo apt-get install libc6:i386 libpng16-16:​i386 libfreetype6:​i386 libsm6:i386 libxrender1:​i386 libfontconfig1:​i386 libxext6:​i386 libxft2:​i386 libncurses5:​i386+quartus
 </​code>​ </​code>​
  
-=== Missing libpng12 ​===+=== Run some projects ​===
  
-The quartus software requires the libpng12 library but Lubuntu 18.04 comes with libpng16. If you do not install libpng12, then the following error will occur: +Install git
- +
-<​code>​ +
-fritz@vcae:​~$ quartus +
-quartus: error while loading shared libraries: libpng12.so.0:​ cannot open shared object file: No such file or directory +
-caeuser@vcae:​~$  +
-</​code>​+
  
-The following check shows that libpng16 is installed but quartus needs libpng12. 
 <​code>​ <​code>​
-fritz@vcae:​~$ dpkg -l | grep png +sudo apt install git
-ii  libpng16-16:​amd64 ​                    ​1.6.34-1ubuntu0.18.04.1 ​            ​amd64 ​       PNG library - runtime (version 1.6) +
-caeuser@vcae:​~$+
 </​code>​ </​code>​
  
-So download, compile and copy the libpng12 library to the quartus install directoryYou have to install both, the 32bit and the 64bit versions.+Download ​the "​Digitallabor"​ from the git server: [[https://​gitlab.elektrotechnik.hs-augsburg.de/​beckmanf/​dtlab]]
  
 <​code>​ <​code>​
 cd cd
-cd cae +mkdir projects 
-sudo apt install build-essential gcc-multilib zlib1g-dev:​i386 +cd projects 
-wget https://www.hs-augsburg.de/homes/beckmanf/public/​libpng-1.2.59.tar.gz +git clone https://gitlab.elektrotechnik.hs-augsburg.de/​beckmanf/​dtlab.git
-tar -xvzf libpng-1.2.59.tar.gz +
-cd libpng-1.2.59 +
-CFLAGS='​-m32'​ ./configure --libdir=/​usr/​lib/​i386-linux-gnu +
-make +
-sudo make install +
-make clean +
-./configure --libdir=/​usr/​lib/​x86_64-linux-gnu +
-make +
-sudo make install+
 </​code>​ </​code>​
  
-=== Download and install Quartus 13.0sp1 (incl. Modelsim) ===+Now start a simulation
  
 <​code>​ <​code>​
-cd +cd dtlab 
-mkdir cae +cd sim 
-cd cae +cd top_shift 
-wget http://​www.hs-augsburg.de/​~beckmanf/​public/​Quartus-web-13.0.1.232-linux.tar +make wave
-tar -xvf Quartus-web-13.0.1.232-linux.tar +
-./setup.sh+
 </​code>​ </​code>​
  
-The installation directory is /​opt/​altera/​13.0sp1. You do not need to install the Arria, Cyclone V and MAX device support. Choose the ModelSim-Altera Starter Edition (Free). The Help files are optional. +To run synthesis
- +
-=== adapt .profile for PATH === +
- +
-First add symbolic link to the current version of the quartus software+
  
 <​code>​ <​code>​
-cd /opt/altera +cd dtlab 
-ln -s 13.0sp1 version +cd pnr 
-cd+cd top_simple 
 +make quartus
 </​code>​ </​code>​
  
-In order to be able to start the binaries from the commandline,​ the path for the binaries has to be in the PATH environment variable. For that you have to modify the .profile file in your home directory. Append the following snippet to the .profile file with [[http://​heather.cs.ucdavis.edu/​~matloff/​UnixAndC/​Editors/​ViIntro.html|vi]]+If you have [[altera_boards|FPGA Board]]you can download ​and test the design
- +
-<code bash .profile>​ +
-# Include the ALTERA fpga software +
-PATH="​$PATH:/​opt/​altera/​version/​quartus/​bin"​ +
-# Include the ALTERA Modelsim VHDL simulator +
-PATH="​$PATH:/​opt/​altera/​version/​modelsim_ase/​bin"​ +
-</​code>​ +
- +
-Then you have to logout ​and login again to make the changes active. +
- +
-=== Fix linux_rh60 vco script problem === +
- +
-When you run modelsim and see:+
  
 <​code>​ <​code>​
-caeuser@vcae:​~/​cae$ vsim +make prog
-Error: cannot find /​opt/​altera/​13.0sp1/​modelsim_ase/​bin/​../​linux_rh60/​vsim +
-caeuser@vcae:​~/​cae$+
 </​code>​ </​code>​
  
-then, you have to fix the vco script. First change the permissions such that you can modify the script.+==== How this is done ====
  
-<​code>​ +The repository [[https://github.com/fredowski/vcae]] contains how the
-cd /opt/altera/13.0sp1/modelsim_ase +
-chmod u+w vco +
-</code>+
  
-Open the vco with+  * Debian preconfigured iso 
 +  * The quartus debian packages 
 +  * The ansible install scripts 
 +  * A vagrant setup
  
-<​code>​ +are made.
-vi vco +
-</​code>​+
  
-and find the following section+==== Install Quartus via the package ====
  
-<​code>​ +If you already have a native ​linux installed, then you can install quartus also via a debian packageIn order to make the packages available on your installationCopy the file [[https://​github.com/​fredowski/​vcae/​blob/​main/​quartus-debian-package/​quartus.list|"quartus.list"]]
-      else +
-        case $utype in +
-          2.4.[7-9]*) ​      ​vco="​linux" ;; +
-          2.4.[1-9][0-9]*)  vco="linux" ;; +
-          2.[5-9]*) ​        vco="linux" ;; +
-          2.[1-9][0-9]*)    vco="​linux"​ ;; +
-          3.[0-9]*) ​            ​vco="​linux"​ ;; +
-          *)                vco="​linux_rh60"​ ;; +
-</​code>​+
  
-And change the "​linux_rh60"​ entry to "​linux"​+<code bash quartus.list> 
- +deb [arch=i386,amd64 trusted=yes lang=none] http://www.tha.de/homes/beckmanf/​public/​repository ./
-=== Fix the libfreetype problem === +
- +
-If you see +
- +
-<​code>​ +
-caeuser@ADLab-Tools-OS:~$ vsim +
-Error in startup script: +
-Initialization problem, exiting. +
- +
-Initialization problem, exiting. +
- +
-    while executing +
-"​InitializeINIFile quietly"​ +
-    invoked from within +
-"​ncFyP12 -+" +
-    (file "/mtitcl/vsim/vsim" line 1) +
-** Fatal: Read failure in vlm process (0,0) +
-caeuser@ADLab-Tools-OS:​~$+
 </​code>​ </​code>​
  
-then you have to install an old version or differently configured version of libfreetype. Enable the deb-src packages in the /​etc/​apt/​sources.list file to make the build dependencies work. It should look like this:+to "/​etc/​apt/​sources.d" and update ​the package repository database with
  
 <​code>​ <​code>​
-#deb cdrom:​[Lubuntu 18.04 LTS _Bionic Beaver_ - Release amd64 (20180426)]bionic main multiverse restricted universe +sudo cp quartus.list /etc/apt/sources.d
- +
-# See http://help.ubuntu.com/​community/​UpgradeNotes for how to upgrade to +
-# newer versions of the distribution. +
-deb http://​de.archive.ubuntu.com/​ubuntu/​ bionic main restricted +
-deb-src http://​de.archive.ubuntu.com/​ubuntu/​ bionic main restricted +
- +
-## Major bug fix updates produced after the final release of the +
-## distribution. +
-deb http://​de.archive.ubuntu.com/​ubuntu/​ bionic-updates main restricted +
-deb-src http://​de.archive.ubuntu.com/​ubuntu/​ bionic-updates main restricted +
-</​code>​ +
- +
-Now install the build dependencies and compile and install the old libfreetype version. +
- +
-<​code>​ +
-cd +
-cd cae+
 sudo apt update sudo apt update
-sudo apt build-dep -a i386 libfreetype6 
-wget https://​download.savannah.gnu.org/​releases/​freetype/​freetype-2.8.1.tar.gz 
-tar -xvzf freetype-2.8.1.tar.gz 
-cd freetype-2.8.1 
-CFLAGS='​-m32'​ ./configure --without-png 
-make -j8 
 </​code>​ </​code>​
  
-It is important to configure the freetype library with "​--without-png"​. Copy the libfreetype library files to the modelsim directory.+=== Intel Quartus 13.0sp1 for Cyclone II FPGA (Alter DE1 Board)===
  
-<​code>​ +Quartus ​13.0sp1 ​is a i386 architecture, ​so you need to add the i386 architecture to your system setup:
-mkdir /​opt/​altera/​13.0sp1/​modelsim_ase/​lib32 +
-cp objs/​.libs/​libfreetype.so* /​opt/​altera/​13.0sp1/​modelsim_ase/​lib32/​ +
-</​code>​ +
- +
-Now you have to change modelsim /​opt/​altera/​13.0sp1/​modelsim_ase/​vco file and find the location:+
  
 <​code>​ <​code>​
-dir=`dirname "​$arg0"​`+sudo dpkg --add-architecture i386
 </​code>​ </​code>​
  
-After that line add+and then
  
 <​code>​ <​code>​
-export LD_LIBRARY_PATH=/​opt/​altera/​13.0sp1/​modelsim_ase/​lib32+sudo apt update 
 +sudo apt install quartus13:​i386
 </​code>​ </​code>​
  
-=== USB Settings ​=== +=== Quartus 23.1 for Cyclone V (Altera DE1-SoC Board) ​===
- +
-For the USB programming via the USB Blaster(tm),​ the port permissions have to be set correctly. For that you have to create and add the file "​51-usbblaster.rules"​ to the directory "/​etc/​udev/​rules.d"​ and reboot. ​+
  
 <​code>​ <​code>​
-/​etc/​udev/​rules.d/​51-usbblaster.rules+sudo apt update 
 +sudo apt install quartus23
 </​code>​ </​code>​
  
-The file should contain the following rules for the Altera DE1 board.+=== Quartus path setup ===
  
-<code bash 51-usbblaster.rules> +In order to be able to start the binaries from the terminal, the path for the binaries has to be in the PATH environment variableFor that you have to modify the .bashrc file in your home directory. Append the following snippet to the .bashrc file with [[http://​heather.cs.ucdavis.edu/​~matloff/​UnixAndC/​Editors/​ViIntro.html|vi]].
-# Altera USB-Blaster for Quartus FPGA Software +
-SUBSYSTEMS=="​usb",​ ATTR{idVendor}=="​09fb",​ ATTR{idProduct}=="​6001",​ MODE="​0666"​ +
-SUBSYSTEMS=="​usb",​ ATTR{idVendor}=="​09fb",​ ATTR{idProduct}=="​6002",​ MODE="​0666"​ +
-SUBSYSTEMS=="​usb",​ ATTR{idVendor}=="​09fb",​ ATTR{idProduct}=="​6003",​ MODE="​0666"​ +
-# USB-Blaster II +
-SUBSYSTEMS=="​usb",​ ATTR{idVendor}=="​09fb",​ ATTR{idProduct}=="​6010",​ MODE="​0666"​ +
-SUBSYSTEMS=="​usb",​ ATTR{idVendor}=="​09fb",​ ATTR{idProduct}=="​6810",​ MODE="​0666"​ +
-</code>+
  
-For the following test you need to attach the Altera Board to your computerNotice that you have to attach the usb device to the virtual machine (Virtual Box) with Devices->USB Devices->​Altera USB-Blaster. Then you should be able to see the device in the usb device list with lsusb. ​ +<code bash .bashrc> 
- +# Include ​the ALTERA fpga software 
-<​code>​ +export PATH="​$PATH:/opt/altera/13.0sp1/quartus/bin"
-caeuser@vcae:/etc/udev/rules.d$ lsusb +
-Bus 001 Device 002: ID 80ee:0021 VirtualBox USB Tablet +
-Bus 001 Device 003: ID 09fb:6001 Altera Blaster +
-Bus 001 Device 001: ID 1d6b:0001 Linux Foundation 1.1 root hub +
-caeuser@vcae:​/etc/udev/​rules.d$+
 </​code>​ </​code>​
  
-You can see the permissions for the devices with ls. See the rw rights for "​others"​ for the device 003 which is the usb blaster. That is a result of the rules file.  +Then you have to logout ​and login again to make the changes active.
- +
-<​code>​ +
-caeuser@vcae:/​etc/​udev/​rules.d$ ls -l /​dev/​bus/​usb/​001/​ +
-insgesamt 0 +
-crw-rw-r-- 1 root root 189, 0 Mai  7 16:35 001 +
-crw-rw-r-- 1 root root 189, 1 Mai  7 16:35 002 +
-crw-rw-rw- 1 root root 189, 2 Mai  7 16:38 003 +
-</​code>​ +
- +
-If your permissions for the usb port are correct, then you should be able to scan the jtag chain +
-with jtagconfig.  +
- +
-<​code>​ +
-caeuser@vcae:/​etc/​udev/​rules.d$ jtagconfig --enum +
-1) USB-Blaster [1-2]                           +
-  020B30DD ​  ​EP2C(15|20) +
- +
-fritz@fritz-VirtualBox:/​etc/​udev/​rules.d +
-</​code>​ +
- +
-=== Start Modelsim === +
- +
-<​code>​ +
-vsim +
-</​code>​ +
- +
-=== Start Quartus === +
- +
-<​code>​ +
-quartus +
-</​code>​ +
- +
-==== Only Bachelor ET and ME students: Install qfsm ==== +
- +
-[[http://​qfsm.sourceforge.net|QFSM]] ist the state chart editor used in the lab. First you need to install some required packages.  +
- +
-<​code>​ +
-sudo apt-get install cmake qt4-dev-tools libgraphviz-dev +
-</​code>​ +
- +
-Then you can build and install qfsm.  +
-<​code>​ +
-cd +
-mkdir qfsm +
-cd qfsm +
-wget http://​sourceforge.net/​projects/​qfsm/​files/​qfsm/​qfsm-0.52/​qfsm-0.52.0-Source.tar.bz2/​download -O qfsm.tar.bz2 +
-bunzip2 qfsm.tar.bz2 +
-tar -xvf qfsm.tar +
-mkdir build +
-cd build +
-cmake ../​qfsm-0.52.0-Source +
-make +
-sudo make install +
-</​code>​ +
- +
-===== Optional: Install Quartus 18.1 ===== +
- +
-For the master course you need Quartus 18.1 to program the Altera DE1 Soc board with the Cyclone V fpga. [[vcae-lubuntu-18.04|How to install Quartus 18.1]] +
- +
-===== Very Optional: Download and build the mips toolchain ===== +
- +
-The MIPS Cross Compiler is only needed for the patterson project. +
- +
-Follow the instructions in [[mips_cross_compiler|MIPS Cross Compiler build]] +
- +
-===== Test the installation ===== +
- +
-Install git +
- +
-<​code>​ +
-sudo apt-get install git +
-</​code>​ +
- +
-Download the "​Digitaltechnikpraktikum"​ from the git server: [[https://​git.etech.fh-augsburg.de/​friedrich.beckmann/​digitaltechnikpraktikum]] +
- +
-<​code>​ +
-cd +
-mkdir projects +
-cd projects +
-git clone https://​git.etech.fh-augsburg.de/​friedrich.beckmann/​digitaltechnikpraktikum.git +
-</​code>​ +
- +
-Now start a Modelsim simulation +
- +
-<​code>​ +
-cd digitaltechnikpraktikum +
-cd sim +
-cd ledcomb +
-make sim +
-</​code>​ +
- +
-To run a synthesis +
- +
-<​code>​ +
-cd digitaltechnikpraktikum +
-cd pnr +
-cd ledcomb +
-make compile +
-make quartus +
-</​code>​ +
- +
-If you have a [[altera_boards|FPGA Board]], you can download and test the design.  +
- +
-<​code>​ +
-make prog +
-</​code>​ +
- +
-==== Trademarks ==== +
- +
-MIPS(r) and MIPS I(tm) are trademarks of  [[http://​www.mips.com|MIPS Technologies Inc.]]. See [[http://​www.mips.com/​media/​files/​mips_trademark.pdf|Mips Trademark usage]]  +
- +
-Altera(r), Quartus(r), Nios(r), Cyclone(r), USB-Blaster(tm),​ SignalTap(tm) are trademarks of [[http://​www.altera.com|Altera Corporation]]. See [[http://​www.altera.com/​common/​trademark-guidelines.html|Altera Trademark Usage Guidelines]] +
- +
-VMWare(r) is a trademark of [[http://​www.vmware.com|VMWare Inc.]] +
- +
-Apple(r), Mac OS(r), MacBook(r) and Mac(r) are trademarks of [[https://​www.apple.com|Apple Inc.]] +
- +
-Windows(r) is a trademark of [[https://​www.microsoft.com|Microsoft Corporation]]. +
- +
-VirtualBox(r) is a trademark of [[http://​www.oracle.com|Oracle Corporation]]. +
- +
-ModelSim(r) is a trademark of [[http://​www.mentor.com|Mentor Graphices Corporation]] +
- +
-Linux(r) is a trademark of [[http://​www.linuxfoundation.org/​programs/​legal/​trademark|Linus Torvald]] +
- +
-Ubuntu(r) is a trademark of [[http://​www.ubuntu.com|Canonical Ltd.]] +
- +
-This is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by any of these companies+
  
  
  • ubuntu_virtual_cae_system.1584983135.txt.gz
  • Last modified: 2020/03/23 18:05
  • by beckmanf