FPGA tools

From Robin

(Difference between revisions)
Jump to: navigation, search
(Starting a terminal window with tools available)
(Det er installert nye versjoner av Xilinx verktøyene og robins hjemmeområde er flyttet. Det er også oppdaget en bug på windows versjonen dessverre. USIT, IFI drift og Robin ingeniør jobber med saken.)
Line 1: Line 1:
= FPGA tools on Windows =
= FPGA tools on Windows =
-
Vivado 2015.2 is situated on //bifrost/project0/robin/CADlib/2015/vivado
+
Vivado 2016.4 is situated on /uio/kant/ifi-project06/robin/programs/vivado
it can be accessed from any Windows machine, but it does need to have
it can be accessed from any Windows machine, but it does need to have
the LM_LICENSE_FILE environment variable set to 5370@lisens.ifi.uio.no
the LM_LICENSE_FILE environment variable set to 5370@lisens.ifi.uio.no
-
Vivado, ISE and questa is currently situated on ifiserv-854.ifi.uio.no, and LISP (2428)  
+
Vivado, ISE and Questa is currently installed locally on LISP (2428) and Questa is installed on SED (1454) and CHILL (3443).
Please notify the engineer in ROBIN if there are issues.
Please notify the engineer in ROBIN if there are issues.
 +
 +
'''BUG'''
 +
 
 +
Due to technical issues, you will receive the following error when creating a new project in Questa on '''M:/''':
 +
 +
<pre style="color:#ff0000">
 +
# Project file M:/inf3430/my_first_project.mpf is not readable.
 +
# Unable to open project.
 +
</pre>
 +
 +
We are sorry to inform that there are no current solutions to this problem. However, we are working on a solution. You may use;
 +
 +
C:\users\<username>
 +
 +
for storing project files, but be ware that there is no backup and you need to move your files to M:\ before leaving the client.
= FPGA tools on Linux =
= FPGA tools on Linux =
-
'''3430-installation 2016'''
+
'''First time initialization'''
-
  vivado 2015.2
+
  cd
-
  questa
+
  nano .bashrc
-
== Starting a terminal window with tools available ==
+
Append the following lines to the end of the .bashrc file:
 +
<pre>
 +
# Questa 10.6c
 +
export LM_LICENSE_FILE=5370@lisens.ifi.uio.no
 +
export PATH=$PATH:/projects/nanus/eda/Mentor/2017_2018/Questa/questasim/bin
-
'''First time initialization 3430-2016'''
+
# Modelsim library
-
>cd ~
+
export MODELSIM=/uio/kant/ifi-project06/robin/CADlib/modelsimCADLIB.ini
-
>/uio/kant/ifi-project06/robin/CADlib/2015/3430-tools/copy-here
+
-
Note: This will create the folder "3430-tools" from your current folder and copy files to it. You may alter these files for your own purposes later. If you want the latest changes, please just remove your 3430-tools folder and contents and do the first time initialization again.  
+
# Vivado 16.4 64-bit version
 +
source /uio/kant/ifi-project06/robin/programs/Vivado/2016.4/settings64.sh
 +
export PATH=$PATH:/uio/kant/ifi-project06/robin/programs/Vivado/2016.4/bin
 +
</pre>
'''Launch'''
'''Launch'''
-
>cd 3430-tools
 
-
> ./run
 
-
This will open a new terminal having the required environment set as in 3430-settings.sh.  vsim and vivado may be run from the new terminal if started properly. 
 
-
Note that it is required to do the ./run from the correct folder.
+
To be able to launch the applications, you need to source the .bashrc file:
 +
source .bashrc
 +
However, the .bashrc file is sourced every time you open a new terminal. So this is a first-time requirement only.
 +
 
 +
Questa with GUI:
 +
vsim
 +
 
 +
Vivado with GUI:
 +
vivado
 +
 
 +
Vlog (terminal only):
 +
vlog
 +
 
 +
Vcom (terminal only):
 +
vcom
== Digilent Adept on Linux ==
== Digilent Adept on Linux ==
Line 51: Line 83:
The ROBIN EDK repository is located at:
The ROBIN EDK repository is located at:
-
  \\bifrost.ifi.uio.no\project0\robin\CADlib\spartan3EDK2012  
+
  \\uio\kant\ifi-project06\robin\CADlib\spartan3EDK2012  
It contains BSP for the Spartan3 Starter Board.
It contains BSP for the Spartan3 Starter Board.

Revision as of 08:48, 28 August 2018

Contents

FPGA tools on Windows

Vivado 2016.4 is situated on /uio/kant/ifi-project06/robin/programs/vivado it can be accessed from any Windows machine, but it does need to have the LM_LICENSE_FILE environment variable set to 5370@lisens.ifi.uio.no

Vivado, ISE and Questa is currently installed locally on LISP (2428) and Questa is installed on SED (1454) and CHILL (3443). Please notify the engineer in ROBIN if there are issues.

BUG

Due to technical issues, you will receive the following error when creating a new project in Questa on M:/:

# Project file M:/inf3430/my_first_project.mpf is not readable.
# Unable to open project.

We are sorry to inform that there are no current solutions to this problem. However, we are working on a solution. You may use;

C:\users\<username>

for storing project files, but be ware that there is no backup and you need to move your files to M:\ before leaving the client.

FPGA tools on Linux

First time initialization

cd 
nano .bashrc

Append the following lines to the end of the .bashrc file:

# Questa 10.6c
export LM_LICENSE_FILE=5370@lisens.ifi.uio.no
export PATH=$PATH:/projects/nanus/eda/Mentor/2017_2018/Questa/questasim/bin

# Modelsim library 
export MODELSIM=/uio/kant/ifi-project06/robin/CADlib/modelsimCADLIB.ini

# Vivado 16.4 64-bit version
source /uio/kant/ifi-project06/robin/programs/Vivado/2016.4/settings64.sh
export PATH=$PATH:/uio/kant/ifi-project06/robin/programs/Vivado/2016.4/bin

Launch

To be able to launch the applications, you need to source the .bashrc file:

source .bashrc

However, the .bashrc file is sourced every time you open a new terminal. So this is a first-time requirement only.

Questa with GUI:

vsim

Vivado with GUI:

vivado

Vlog (terminal only):

vlog

Vcom (terminal only):

vcom

Digilent Adept on Linux

Digilent Adept to program the Atlys board can be obtained from the Digilent website.

Note that some Xilinx scripts require GNU BASH. Ubuntu (and possibly others) come with DASH. Disable DASH by reconfiguring it:

sudo dpkg-reconfigure dash

Note that the tools available on Windows, such as Xilinx ISE/PlanAhead and Modelsim are not supported by drift on Linux.

To enable autocompletion and history in XMD:

rlwrap xmd

License server

Licenses can be checked out from lisens.ifi.uio.no:

export LM_LICENSE_FILE=5370@lisens.ifi.uio.no

On Windows:

setx LM_LICENSE_FILE 5370@lisens.ifi.uio.no

Robin Peripheral Repository

The ROBIN EDK repository is located at:

\\uio\kant\ifi-project06\robin\CADlib\spartan3EDK2012 

It contains BSP for the Spartan3 Starter Board.

Set "Project Peripheral Reposotory Search Path" in XPS to enable it.

Academic Xilinx FPGA tools

Python interface to Xilinx/EDK MHS: https://github.com/EPiCS/reconos/tree/master/tools

XDL Format description: http://www.mn.uio.no/ifi/english/research/projects/cosrecos/publications/paper/recosoc11beckhoff.pdf

Bitstream Intepretation Library (Virtex5): https://github.com/florianbenz/bil

DeBit: http://code.google.com/p/debit/

GoAhead: http://www.mn.uio.no/ifi/english/research/projects/cosrecos/goahead/

Creating Hard Macros (guide): http://wiki.eng.iastate.edu/reconfigurable-computing-wiki/index.php/Creating_Hard_Macros

TORC: http://torc-isi.sourceforge.net/

ReconOS: https://github.com/EPiCS/reconos

Personal tools
Front page