Differences
This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
| ubuntu_virtual_cae_system [2020/03/22 16:37] – libfreetype --without-png beckmanf | ubuntu_virtual_cae_system [2024/06/03 00:28] (current) – restructure beckmanf | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | ===== Ubuntu | + | ===== Debian |
| - | The Ubuntu(r) | + | The Debian |
| - | ==== Preconfigured VirtualBox virtual machine ==== | + | * [[altera_boards|Altera DE1 board]] (Digitaltechnik, |
| + | * NOT IN SS21!!! Altera DE1 SOC (Master VLSI, Master COM) with Cyclone V FPGA | ||
| - | Hans Färber has build a [[https:// | + | 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. |
| - | ===== Install on Lubuntu 18.04 LTS ===== | + | ==== Preconfigured VirtualBox virtual machine |
| - | [[vcae-lubuntu-18.04|Install on Lubuntu 18.04]] | + | Hans Färber has build three different virtual machines: |
| + | * [[https:// | ||
| + | * [[https:// | ||
| + | * [[https:// | ||
| - | ===== Build your own from scratch | + | ===== Build your own from scratch ===== |
| - | The base system | + | The CAD software |
| ==== 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.6 (High Sierra). It is not free. For Windows(r) | + | VMWare(r) provides a commercial version |
| == 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. | + | [[https:// |
| - | === Get the virtual machine === | + | == UTM for Mac == |
| - | Download and install the the virtual machine software from [[https://www.virtualbox.org|https:// | + | [[https://github.com/ |
| + | === Get the .iso install image === | ||
| - | === Get the Lubuntu 18.04 install | + | Download |
| - | Download the ISO file for the 64 Bit Lubuntu 18.04.4 LTS Desktop version. You can download | + | < |
| + | <a href=" | ||
| + | </ | ||
| - | [[http:// | + | === Create the virtual machine === |
| + | This depends on the virtualization environment that you use. The iso contains a preconfigured debian installer which will install a machine with a user " | ||
| - | === Install the Lubuntu machine === | + | For all virtual machines choose " |
| - | + | ||
| - | This depends on the virtualization environment that you use. | + | |
| == VMWare == | == VMWare == | ||
| - | Create a new virtual machine with minimum | + | Create a new virtual machine with minimum |
| - | + | ||
| - | You need to install the guest additions. Without the guest additions, the interaction with the host system is not working (file sharing / Clipboard). Run " | + | |
| - | + | ||
| - | < | + | |
| - | cd | + | |
| - | mkdir vmware | + | |
| - | cp / | + | |
| - | cd vmware | + | |
| - | tar -xvzf VMwareTools-< | + | |
| - | cd vmware-tools-distrib | + | |
| - | sudo ./ | + | |
| - | </ | + | |
| - | + | ||
| - | Say " | + | |
| == Virtualbox == | == Virtualbox == | ||
| Line 67: | Line 59: | ||
| to be done | to be done | ||
| + | == UTM == | ||
| - | ===== Install Quartus 13.0sp1 | + | Make sure you choose " |
| - | The following steps will install | + | === Finalize the installation === |
| - | * Altera Quartus II Web Edition Version 13.0sp1 (13.0.1 build 232) | + | After the debian installer has finished you should reboot your virtual machine. It will start in terminal mode. You need to login as user "caeuser" |
| - | * Modelsim Altera Starter Edition Version 10.1d (included | + | |
| - | + | ||
| - | 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. | + | |
| - | + | ||
| - | Install the software at "/ | + | |
| < | < | ||
| - | sudo mkdir /opt/altera | + | cd |
| - | sudo chown caeuser: | + | ./go.sh |
| </ | </ | ||
| - | === Install 32Bit Libraries | + | That will install |
| - | Quartus | + | * Altera |
| + | * 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/ |
| - | < | + | ===== Test the installation ===== |
| - | sudo dpkg --add-architecture i386 | + | |
| - | sudo apt-get update | + | |
| - | </ | + | |
| - | Install the 32Bit libraries | + | === Start Quartus GUI=== |
| < | < | ||
| - | sudo apt-get install libc6:i386 libpng16-16: | + | quartus |
| </ | </ | ||
| - | === 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 |
| < | < | ||
| - | fritz@vcae: | + | sudo apt install git |
| - | quartus: error while loading shared libraries: libpng12.so.0: | + | |
| - | caeuser@vcae: | + | |
| </ | </ | ||
| - | The following check shows that libpng16 is installed but quartus needs libpng12. | + | Download the " |
| - | < | + | |
| - | fritz@vcae:~$ dpkg -l | grep png | + | |
| - | ii libpng16-16:amd64 1.6.34-1ubuntu0.18.04.1 | + | |
| - | caeuser@vcae: | + | |
| - | </code> | + | |
| - | + | ||
| - | So download, compile and copy the libpng12 library to the quartus install directory. You have to install both, the 32bit and the 64bit versions. | + | |
| < | < | ||
| cd | cd | ||
| - | cd cae | + | mkdir projects |
| - | sudo apt install build-essential gcc-multilib zlib1g-dev: | + | cd projects |
| - | wget https://www.hs-augsburg.de/homes/beckmanf/public/ | + | git clone https://gitlab.elektrotechnik.hs-augsburg.de/ |
| - | tar -xvzf libpng-1.2.59.tar.gz | + | |
| - | cd libpng-1.2.59 | + | |
| - | CFLAGS=' | + | |
| - | make | + | |
| - | sudo make install | + | |
| - | make clean | + | |
| - | ./configure --libdir=/ | + | |
| - | make | + | |
| - | sudo make install | + | |
| </ | </ | ||
| - | === Download and install Quartus 13.0sp1 (incl. Modelsim) === | + | Now start a simulation |
| < | < | ||
| - | cd | + | cd dtlab |
| - | mkdir cae | + | cd sim |
| - | cd cae | + | cd top_shift |
| - | wget http:// | + | make wave |
| - | tar -xvf Quartus-web-13.0.1.232-linux.tar | + | |
| - | ./setup.sh | + | |
| </ | </ | ||
| - | The installation directory is / | + | To run a synthesis |
| - | + | ||
| - | === adapt .profile for PATH === | + | |
| - | + | ||
| - | In order to be able to start the binaries from the commandline, | + | |
| - | + | ||
| - | <code bash .profile> | + | |
| - | # Include the ALTERA fpga software | + | |
| - | PATH=" | + | |
| - | # Include the ALTERA Modelsim VHDL simulator | + | |
| - | PATH=" | + | |
| - | </ | + | |
| - | + | ||
| - | 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: | + | |
| < | < | ||
| - | caeuser@vcae: | + | cd dtlab |
| - | Error: cannot find / | + | cd pnr |
| - | caeuser@vcae: | + | cd top_simple |
| + | make quartus | ||
| </ | </ | ||
| - | then, you have to fix the vco script. First change the permissions such that you can modify | + | If you have a [[altera_boards|FPGA Board]], |
| < | < | ||
| - | cd / | + | make prog |
| - | chmod u+w vco | + | |
| </ | </ | ||
| - | Open the vco with | + | ==== How this is done ==== |
| - | < | + | The repository [[https:// |
| - | vi vco | + | |
| - | </code> | + | |
| - | and find the following section | + | * Debian preconfigured iso |
| + | * The quartus debian packages | ||
| + | * The ansible install scripts | ||
| + | * A vagrant setup | ||
| - | < | + | are made. |
| - | else | + | |
| - | case $utype in | + | |
| - | 2.4.[7-9]*) | + | |
| - | 2.4.[1-9][0-9]*) | + | |
| - | 2.[5-9]*) | + | |
| - | 2.[1-9][0-9]*) | + | |
| - | 3.[0-9]*) | + | |
| - | *) vco=" | + | |
| - | </ | + | |
| - | And change | + | ==== Install Quartus via the package ==== |
| - | === Fix the libfreetype problem === | + | If you already have a native linux installed, then you can install quartus also via a debian package. In order to make the packages available on your installation. Copy the file [[https:// |
| - | If you see | + | < |
| - | + | deb [arch=i386, | |
| - | < | + | |
| - | caeuser@ADLab-Tools-OS:~$ vsim | + | |
| - | Error in startup script: | + | |
| - | Initialization problem, exiting. | + | |
| - | + | ||
| - | Initialization problem, exiting. | + | |
| - | + | ||
| - | while executing | + | |
| - | " | + | |
| - | invoked from within | + | |
| - | " | + | |
| - | (file "/mtitcl/vsim/vsim" line 1) | + | |
| - | ** Fatal: Read failure in vlm process (0,0) | + | |
| - | caeuser@ADLab-Tools-OS: | + | |
| </ | </ | ||
| - | then you have to install an old version or differently configured version of libfreetype. Enable the deb-src packages in the / | + | to "/ |
| < | < | ||
| - | #deb cdrom: | + | sudo cp quartus.list /etc/apt/sources.d |
| - | + | ||
| - | # See http://help.ubuntu.com/ | + | |
| - | # newer versions of the distribution. | + | |
| - | deb http:// | + | |
| - | deb-src http:// | + | |
| - | + | ||
| - | ## Major bug fix updates produced after the final release of the | + | |
| - | ## distribution. | + | |
| - | deb http:// | + | |
| - | deb-src http:// | + | |
| - | </ | + | |
| - | + | ||
| - | Now install the build dependencies and compile and install the old libfreetype version. | + | |
| - | + | ||
| - | < | + | |
| - | cd | + | |
| - | cd cae | + | |
| sudo apt update | sudo apt update | ||
| - | sudo apt build-dep -a i386 libfreetype6 | ||
| - | wget https:// | ||
| - | tar -xvzf freetype-2.8.1.tar.gz | ||
| - | cd freetype-2.8.1 | ||
| - | CFLAGS=' | ||
| - | make -j8 | ||
| </ | </ | ||
| - | It is important to configure the freetype library with " | + | === Intel Quartus 13.0sp1 for Cyclone II FPGA (Alter DE1 Board)=== |
| - | < | + | Quartus |
| - | mkdir / | + | |
| - | cp objs/ | + | |
| - | </ | + | |
| - | + | ||
| - | Now you have to change modelsim vco file and find the location: | + | |
| < | < | ||
| - | dir=`dirname " | + | sudo dpkg --add-architecture i386 |
| </ | </ | ||
| - | After that line add | + | and then |
| < | < | ||
| - | export LD_LIBRARY_PATH=/ | + | sudo apt update |
| + | sudo apt install quartus13: | ||
| </ | </ | ||
| - | === USB Settings | + | === Quartus 23.1 for Cyclone V (Altera DE1-SoC Board) |
| - | + | ||
| - | For the USB programming via the USB Blaster(tm), | + | |
| < | < | ||
| - | / | + | sudo apt update |
| + | sudo apt install quartus23 | ||
| </ | </ | ||
| - | <code bash 51-usbblaster.rules> | + | === Quartus path setup === |
| - | # Altera USB-Blaster for Quartus FPGA Software | + | |
| - | SUBSYSTEMS==" | + | |
| - | SUBSYSTEMS==" | + | |
| - | SUBSYSTEMS==" | + | |
| - | # USB-Blaster II | + | |
| - | SUBSYSTEMS==" | + | |
| - | SUBSYSTEMS==" | + | |
| - | </ | + | |
| - | For the following test you need to attach | + | In order to be able to start the binaries from the terminal, the path for the binaries has to be in the PATH environment variable. For that you have to modify |
| - | < | + | <code bash .bashrc> |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | 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 | + | |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | </ | + | |
| - | + | ||
| - | You can see the permissions for the devices with ls. See the rw rights for " | + | |
| - | the usb blaster. That is a result of the rules file. | + | |
| - | + | ||
| - | < | + | |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | 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 | + | |
| - | </ | + | |
| - | + | ||
| - | If your permissions for the usb port are correct, then you should be able to scan the jtag chain | + | |
| - | with jtagconfig. | + | |
| - | + | ||
| - | < | + | |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | 1) USB-Blaster [1-2] | + | |
| - | 020B30DD | + | |
| - | + | ||
| - | fritz@fritz-VirtualBox:/ | + | |
| - | </ | + | |
| - | + | ||
| - | === Start Modelsim === | + | |
| - | + | ||
| - | < | + | |
| - | vsim | + | |
| - | </ | + | |
| - | + | ||
| - | === Start Quartus === | + | |
| - | + | ||
| - | < | + | |
| - | quartus | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | + | ||
| - | ===== Build your own from scratch (Ubuntu 12.04) ===== | + | |
| - | + | ||
| - | Here is the description how the virtual machine is build from scratch. There are specific instructions for [[ubuntu_virtual_cae_system# | + | |
| - | + | ||
| - | ==== Virtual Machine ==== | + | |
| - | + | ||
| - | There are different virtual machine environments. | + | |
| - | + | ||
| - | == 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.8.3 (Mountain Lion). It is not free. For Windows(r) there is the VMWare Player. The VMWare Player is free. I have not tested it. | + | |
| - | + | ||
| - | == 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. The following description targets Virtualbox as this is free of charge. | + | |
| - | + | ||
| - | === Get the virtual machine === | + | |
| - | + | ||
| - | Download and install the the virtual machine software from [[https:// | + | |
| - | + | ||
| - | === Get the Ubuntu install image === | + | |
| - | + | ||
| - | Download the ISO file for the 32 Bit Ubuntu 12.04 LTS Desktop version. You can download the image from here: | + | |
| - | + | ||
| - | [[http:// | + | |
| - | + | ||
| - | === Install Ubuntu in the virtual machine === | + | |
| - | + | ||
| - | You can mount the ISO Image as CDROM in the virtual machine and boot from the virtual CDROM. Then you install to your disk. Configure the virtual machine with the following parameters. | + | |
| - | + | ||
| - | * fixed vmdk disk with 30 GByte size | + | |
| - | * depending on your RAM choose minimum 1 GByte RAM for the virtual machine | + | |
| - | * In the Graphics section give 128 MB Ram to the graphics system | + | |
| - | * Enable 2D or 3D acceleration (On my MacBook(r) 3D is proposed) | + | |
| - | + | ||
| - | To mount the virtual CDROM do: | + | |
| - | + | ||
| - | Choose Devices-> | + | |
| - | + | ||
| - | Then select the Ubuntu Install Image ISO file that you downloaded in the previous section. You now have the virtually inserted the CDROM. Now reboot the virtual machine. The settings should result in booting from the CDROM and from there you install Ubuntu to the virtual disk drive. Just select location and language as appropriate. | + | |
| - | + | ||
| - | === Post install === | + | |
| - | + | ||
| - | After installing Ubuntu you need to install guest applications from virtual box. | + | |
| - | + | ||
| - | == Problem: low-res graphics == | + | |
| - | Problem: The graphical userinterface does not start because it cannot identify the screen resolution. Whatever you do you end in a textual shell. | + | |
| - | Solution: You need to install the virtualbox guest additions. | + | |
| - | + | ||
| - | From the textual shell login to the system and run the following | + | |
| - | + | ||
| - | < | + | |
| - | sudo apt-get install dkms | + | |
| - | </ | + | |
| - | + | ||
| - | Virtually insert the VirtualBox Guest additions CD by selecting Devices-> | + | |
| - | + | ||
| - | < | + | |
| - | sudo mount /dev/cdrom /media | + | |
| - | cd /media | + | |
| - | sudo ./ | + | |
| - | </ | + | |
| - | + | ||
| - | Now you can reboot and the graphical user interface should start. | + | |
| - | + | ||
| - | < | + | |
| - | sudo shutdown -r now | + | |
| - | </ | + | |
| - | + | ||
| - | After reboot open a shell (terminal) and update the ubuntu system | + | |
| - | + | ||
| - | < | + | |
| - | sudo apt-get update | + | |
| - | sudo apt-get upgrade | + | |
| - | </ | + | |
| - | ==== Install Altera Quartus and Modelsim ==== | + | |
| - | + | ||
| - | Description for 64Bit Linux installation is here [[Quartus_on_64bit_linux]] | + | |
| - | + | ||
| - | Go to the tmp directory and download und untar the installation package. Then start the setup | + | |
| - | + | ||
| - | < | + | |
| - | cd /tmp | + | |
| - | mkdir quartus | + | |
| - | cd quartus | + | |
| - | wget http:// | + | |
| - | tar -xvf Quartus-web-13.0.1.232-linux.tar | + | |
| - | ./ | + | |
| - | </ | + | |
| - | + | ||
| - | Modelsim does not display the fonts very nicely. To have better fonts do | + | |
| - | + | ||
| - | < | + | |
| - | sudo apt-get install xfonts-75dpi | + | |
| - | </ | + | |
| - | + | ||
| - | In order to be able to start the binaries from the commandline, | + | |
| - | + | ||
| - | <code bash .profile> | + | |
| # Include the ALTERA fpga software | # Include the ALTERA fpga software | ||
| - | PATH=" | + | export |
| - | # Include the ALTERA Modelsim VHDL simulator | + | |
| - | PATH=" | + | |
| </ | </ | ||
| - | To make the new fonts active and to see the changes in the PATH variable, | + | Then you have to logout and login again to make the changes active. |
| - | + | ||
| - | <code bash> | + | |
| - | fritz@fritz-VirtualBox: | + | |
| - | / | + | |
| - | fritz@fritz-VirtualBox: | + | |
| - | </ | + | |
| - | + | ||
| - | You can see that the altera directories are now part of the PATH variable. | + | |
| - | + | ||
| - | The following steps are required to actually program the devices. If you do not need or want to do that, you can continues with starting modelsim and quartus. | + | |
| - | + | ||
| - | ==== USB Settings ==== | + | |
| - | + | ||
| - | For the USB programming via the USB Blaster(tm), | + | |
| - | + | ||
| - | < | + | |
| - | / | + | |
| - | </ | + | |
| - | + | ||
| - | <code bash 51-usbblaster.rules> | + | |
| - | # Altera USB-Blaster for Quartus FPGA Software | + | |
| - | SUBSYSTEMS==" | + | |
| - | SUBSYSTEMS==" | + | |
| - | SUBSYSTEMS==" | + | |
| - | # USB-Blaster II | + | |
| - | SUBSYSTEMS==" | + | |
| - | SUBSYSTEMS==" | + | |
| - | </ | + | |
| - | + | ||
| - | For the following test you need to attach the Altera Board to your computer. Notice that you have to attach the usb device to the virtual machine with Devices-> | + | |
| - | + | ||
| - | < | + | |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | 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 | + | |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | </ | + | |
| - | + | ||
| - | You can see the permissions for the devices with ls. See the rw rights for " | + | |
| - | the usb blaster. That is a result of the rules file. | + | |
| - | + | ||
| - | < | + | |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | 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 | + | |
| - | </ | + | |
| - | + | ||
| - | If your permissions for the usb port are correct, then you should be able to scan the jtag chain | + | |
| - | with jtagconfig. | + | |
| - | + | ||
| - | < | + | |
| - | fritz@fritz-VirtualBox:/ | + | |
| - | 1) USB-Blaster [1-2] | + | |
| - | 020B30DD | + | |
| - | + | ||
| - | fritz@fritz-VirtualBox:/ | + | |
| - | </ | + | |
| - | + | ||
| - | === Start Modelsim === | + | |
| - | + | ||
| - | < | + | |
| - | vsim | + | |
| - | </ | + | |
| - | + | ||
| - | === Start Quartus === | + | |
| - | + | ||
| - | < | + | |
| - | quartus | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Install qfsm ==== | + | |
| - | + | ||
| - | [[http:// | + | |
| - | + | ||
| - | < | + | |
| - | sudo apt-get install cmake qt4-dev-tools libgraphviz-dev | + | |
| - | </ | + | |
| - | + | ||
| - | Then you can build and install qfsm. | + | |
| - | < | + | |
| - | cd | + | |
| - | mkdir qfsm | + | |
| - | cd qfsm | + | |
| - | wget http:// | + | |
| - | bunzip2 qfsm.tar.bz2 | + | |
| - | tar -xvf qfsm.tar | + | |
| - | mkdir build | + | |
| - | cd build | + | |
| - | cmake ../ | + | |
| - | make | + | |
| - | sudo make install | + | |
| - | </ | + | |
| - | + | ||
| - | ===== Installing on Ubuntu 14.04 ===== | + | |
| - | + | ||
| - | * Ubuntu 14.04 LTS 64 Bit | + | |
| - | * Altera Quartus II Web Edition Version 13.0sp1 (13.0.1 build 232) | + | |
| - | * Modelsim Altera Starter Edition Version 10.1d (included in 13.0sp1) | + | |
| - | + | ||
| - | The ISO Image for the Ubuntu 14.04 is here: | + | |
| - | + | ||
| - | [[http:// | + | |
| - | + | ||
| - | I installed on VMWare on my Macbook running OSX 10.9.3 with VMWare 6.03. I did not install any VMWare add ons. | + | |
| - | ==== Installing Quartus ==== | + | |
| - | + | ||
| - | Add the following to your .profile in your home directory. You need to logout and login to make the changes active. | + | |
| - | + | ||
| - | <code bash .profile> | + | |
| - | # Include the ALTERA fpga software | + | |
| - | PATH=" | + | |
| - | # Include the ALTERA Modelsim VHDL simulator | + | |
| - | PATH=" | + | |
| - | </ | + | |
| - | + | ||
| - | Follow the instructions to modify the [[ubuntu_virtual_cae_system# | + | |
| - | + | ||
| - | Enable multiple architectures (32 Bit / 64 Bit) | + | |
| - | + | ||
| - | < | + | |
| - | sudo dpkg --add-architecture i386 | + | |
| - | sudo apt-get update | + | |
| - | </ | + | |
| - | + | ||
| - | Install the 32Bit libraries | + | |
| - | + | ||
| - | < | + | |
| - | sudo apt-get install libc6:i386 libpng12-0: | + | |
| - | </ | + | |
| - | + | ||
| - | + | ||
| - | Modelsim does not display the fonts very nicely. To have better fonts do | + | |
| - | + | ||
| - | < | + | |
| - | sudo apt-get install xfonts-75dpi | + | |
| - | </ | + | |
| - | + | ||
| - | Get and install the Quartus/ | + | |
| - | + | ||
| - | < | + | |
| - | cd /tmp | + | |
| - | mkdir quartus | + | |
| - | cd quartus | + | |
| - | wget http:// | + | |
| - | tar -xvf Quartus-web-13.0.1.232-linux.tar | + | |
| - | ./ | + | |
| - | </ | + | |
| - | + | ||
| - | During the setup you can deselect all device specific packages (Arria...) except CycloneII. | + | |
| - | + | ||
| - | Quartus should now run. | + | |
| - | + | ||
| - | ==== Modelsim incompatible libfreetype ==== | + | |
| - | + | ||
| - | If you start vsim after the installation it will crash with a segmentation fault. The reason is that modelsim is not compatible with a newer version of libfreetype. I followed the instructions here [[http:// | + | |
| - | + | ||
| - | === Compile a new libfreetype === | + | |
| - | < | + | |
| - | cd /tmp | + | |
| - | sudo apt-get install libc6-dev-i386 | + | |
| - | sudo apt-get build-dep -a i386 libfreetype6 | + | |
| - | wget http:// | + | |
| - | tar -xjvf freetype-2.4.12.tar.bz2 | + | |
| - | cd freetype-2.4.12 | + | |
| - | ./configure --build=i686-pc-linux-gnu " | + | |
| - | make -j8 | + | |
| - | </ | + | |
| - | + | ||
| - | === Modify the modelsim Installation === | + | |
| - | + | ||
| - | < | + | |
| - | cd ~/ | + | |
| - | mkdir lib32 | + | |
| - | cp / | + | |
| - | chmod u+w vco | + | |
| - | </ | + | |
| - | + | ||
| - | Now edit the file " | + | |
| - | + | ||
| - | < | + | |
| - | gedit ~/ | + | |
| - | </ | + | |
| - | + | ||
| - | Find the line | + | |
| - | + | ||
| - | < | + | |
| - | dir=`dirname $arg0` | + | |
| - | </ | + | |
| - | + | ||
| - | and add | + | |
| - | + | ||
| - | < | + | |
| - | export LD_LIBRARY_PATH=/ | + | |
| - | </ | + | |
| - | + | ||
| - | just below that line. You need to adapt the path to the name of your installation. | + | |
| - | + | ||
| - | Now | + | |
| - | + | ||
| - | < | + | |
| - | vsim | + | |
| - | </ | + | |
| - | + | ||
| - | should work. | + | |
| - | ===== 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 | + | |
| - | + | ||
| - | < | + | |
| - | sudo apt-get install git | + | |
| - | </ | + | |
| - | + | ||
| - | Download the " | + | |
| - | + | ||
| - | < | + | |
| - | cd | + | |
| - | mkdir projects | + | |
| - | cd projects | + | |
| - | git clone https:// | + | |
| - | </ | + | |
| - | + | ||
| - | Now start a Modelsim simulation | + | |
| - | + | ||
| - | < | + | |
| - | cd digitaltechnikpraktikum | + | |
| - | cd sim | + | |
| - | cd ledcomb | + | |
| - | make sim | + | |
| - | </ | + | |
| - | + | ||
| - | To run a synthesis | + | |
| - | + | ||
| - | < | + | |
| - | cd digitaltechnikpraktikum | + | |
| - | cd pnr | + | |
| - | cd ledcomb | + | |
| - | make compile | + | |
| - | make quartus | + | |
| - | </ | + | |
| - | + | ||
| - | If you have a [[altera_boards|FPGA Board]], you can download and test the design. | + | |
| - | + | ||
| - | < | + | |
| - | make prog | + | |
| - | </ | + | |
| - | + | ||
| - | ==== Trademarks ==== | + | |
| - | + | ||
| - | MIPS(r) and MIPS I(tm) are trademarks of [[http:// | + | |
| - | + | ||
| - | Altera(r), Quartus(r), Nios(r), Cyclone(r), USB-Blaster(tm), | + | |
| - | + | ||
| - | VMWare(r) is a trademark of [[http:// | + | |
| - | + | ||
| - | Apple(r), Mac OS(r), MacBook(r) and Mac(r) are trademarks of [[https:// | + | |
| - | + | ||
| - | Windows(r) is a trademark of [[https:// | + | |
| - | + | ||
| - | VirtualBox(r) is a trademark of [[http:// | + | |
| - | + | ||
| - | ModelSim(r) is a trademark of [[http:// | + | |
| - | + | ||
| - | Linux(r) is a trademark of [[http:// | + | |
| - | + | ||
| - | Ubuntu(r) is a trademark of [[http:// | + | |
| - | + | ||
| - | This is an independent publication and is not affiliated with, nor has it been authorized, sponsored, or otherwise approved by any of these companies. | + | |