diff options
author | Tristan Gingold <gingold@adacore.com> | 2015-12-03 04:48:15 +0100 |
---|---|---|
committer | Tristan Gingold <gingold@adacore.com> | 2015-12-03 04:48:15 +0100 |
commit | 6956cc80516f1dfc74a06a75b068437afba036ed (patch) | |
tree | 53dd811d0904efe594ec1cfe9692a224bde4456c /libraries/vendors/README.md | |
parent | f7b737b52f57a46c2f96ad87ee50741abc415ed3 (diff) | |
download | ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.tar.gz ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.tar.bz2 ghdl-6956cc80516f1dfc74a06a75b068437afba036ed.zip |
Add vendor specific library compile scripts for linux.
Merge branch from Paebbels.
Diffstat (limited to 'libraries/vendors/README.md')
-rw-r--r-- | libraries/vendors/README.md | 138 |
1 files changed, 93 insertions, 45 deletions
diff --git a/libraries/vendors/README.md b/libraries/vendors/README.md index e231c2c61..81a3306bc 100644 --- a/libraries/vendors/README.md +++ b/libraries/vendors/README.md @@ -1,10 +1,14 @@ ## Compile Scripts for Vendor VHDL Libraries -Vendors like Altera and Xilinx have there own simulation libraries, especially for primitives and hard macros. These libraries can not be shipped with GHDL, but we offer prepared compile scripts to pre-compile a vendor library, if the vendor tool is present on the computer. +Vendors like Altera and Xilinx have there own simulation libraries, especially for primitives, soft or hard macros. These libraries can not be shipped with GHDL, but we offer prepared compile scripts to pre-compile a vendor library, if the vendor tool is present on the computer. -There are also popular simulation and verification libraries, which can be pre-compile. +There are also popular simulation and verification libraries like [OSVVM][osvvm] and [VUnit][vunit], which can be pre-compile. -The compilation scripts are writen in shell languages: PowerShell for Windows and Bash for Linux. There are no further requirements. +The compilation scripts are writen in shell languages: PowerShell for Windows and Bash for Linux. The compile scripts can colorize the GHDL warning and error lines with the help of grc ([generic colourizer][grc]). + + [osvvm]: http://osvvm.org/ + [vunit]: https://github.com/LarsAsplund/vunit + [grc]: http://kassiopeia.juls.savba.sk/~garabik/software/grc.html ##### Supported Vendors Libraries @@ -24,7 +28,7 @@ The compilation scripts are writen in shell languages: PowerShell for Windows an - unimacro - simprim (incl. secureip) - Xilinx Vivado (2015.x): - - unisim + - unisim (incl. secureip) - unimacro ##### Supported Simulation and Verification Libraries @@ -37,7 +41,46 @@ The compilation scripts are writen in shell languages: PowerShell for Windows an --------------------------------------------------------------------- ### Compiling on Linux -*First I should translate the scripts before writing the docu...* + - **Step 1 - Configure the scripts** + Please open the `config.sh` file and set the dictionary entries for the installed + vendor tools to the appropriate directory to your tool's installation folder. + + `config.sh`: + ```Bash + declare -A InstallationDirectory + InstallationDirectory[AlteraQuartusII]="/opt/Altera/15.0" + InstallationDirectory[XilinxISE]="/opt/Xilinx/14.7" + InstallationDirectory[XilinxVivado]="/opt/Xilinx/Vivado/2015.2" + InstallationDirectory[OSVVM]="/home/<user>/git/GitHub/osvvm" + InstallationDirectory[VUnit]="/home/<user>/git/GitHub/vunit" + ``` + + - **Step 2 - Browse to your simulation working directory** + ```Bash + $ cd <MySimulationFolder> + ``` + + - **Step 3 - Start the compilation script(s)** + ```Bash + $ <GHDL>\libraries\vendors\compile-altera.sh --all + $ <GHDL>\libraries\vendors\compile-xilinx-ise.sh --all + $ <GHDL>\libraries\vendors\compile-xilinx-vivado.sh --all + $ <GHDL>\libraries\vendors\compile-osvvm.sh --all + $ <GHDL>\libraries\vendors\compile-vunit.sh --all + ``` + + - **Step 4 - Viewing the result** + This creates vendor directories in your current working directory and compiles the vendor files into them. + + ```Bash + $ ls -ahl + ... + drwxr-xr-x 2 <user> <group> 56K Nov 30 17:41 altera + drwxr-xr-x 2 <user> <group> 56K Nov 30 17:48 osvvm + drwxr-xr-x 2 <user> <group> 56K Nov 30 17:48 vivado + drwxr-xr-x 2 <user> <group> 56K Nov 30 17:58 vunit + drwxr-xr-x 2 <user> <group> 56K Nov 30 17:58 xilinx + ``` --------------------------------------------------------------------- ### Compiling on Windows @@ -47,14 +90,15 @@ The compilation scripts are writen in shell languages: PowerShell for Windows an vendor tools to the appropriate directory to your tool's installation folder. `config.psm1`: - - $InstallationDirectory = @{ - "AlteraQuartusII" = "C:\Altera\15.0"; - "XilinxISE" = "C:\Xilinx\14.7"; - "XilinxVivado" = "C:\Xilinx\Vivado\2015.3"; - "OSVVM" = "D:\git\GitHub\osvvm"; - "VUnit" = "D:\git\GitHub\vunit" - } + ```PowerShell + $InstallationDirectory = @{ + "AlteraQuartusII" = "C:\Altera\15.0"; + "XilinxISE" = "C:\Xilinx\14.7"; + "XilinxVivado" = "C:\Xilinx\Vivado\2015.3"; + "OSVVM" = "D:\git\GitHub\osvvm"; + "VUnit" = "D:\git\GitHub\vunit" + } + ``` - **Step 2 - Browse to your simulation working directory** ```PowerShell @@ -92,28 +136,31 @@ The compilation scripts are writen in shell languages: PowerShell for Windows an - Common parameters to all scripts: - --all Compile all libraries, including common libraries, packages and device libraries. - --clean Cleanup directory before analyzing. - --suppresswarnings Don't show warnings. Report errors only. + -h --help Print the embedded help page(s). + -a --all Compile all libraries, including common libraries, packages and device libraries. + -c --clean Cleanup directory before analyzing. + -n --no-warnings Don't show warnings. Report errors only. + -s --skip-existing Skip already compiled files (an *.o file exists). + -S --skip-largefiles Don't compile large entities like DSP and PCIe primitives. + -H --halt-on-error Stop compiling if an error occured. - `compile-altera.sh` - --altera Compile base libraries like 'altera' and 'altera_mf' - --max Compile device libraries for Max CPLDs - --arria Compile device libraries for Arria FPGAs - --cyclone Compile device libraries for Cyclone FPGAs - --stratix Compile device libraries for Stratix FPGAs - + --altera Compile base libraries like 'altera' and 'altera_mf' + --max Compile device libraries for Max CPLDs + --arria Compile device libraries for Arria FPGAs + --cyclone Compile device libraries for Cyclone FPGAs + --stratix Compile device libraries for Stratix FPGAs - `compile-xilinx-ise.sh` - --unisim Compile the unisim primitives - --unimacro Compile the unimacro macros - --simprim Compile the simprim primitives - --secureip Compile the secureip primitives + --unisim Compile the unisim primitives + --unimacro Compile the unimacro macros + --simprim Compile the simprim primitives + --secureip Compile the secureip primitives - `compile-xilinx-vivado.sh` - --unisim Compile the unisim primitives - --unimacro Compile the unimacro macros - --secureip Compile the secureip primitives + --unisim Compile the unisim primitives + --unimacro Compile the unimacro macros + --secureip Compile the secureip primitives - `compile-osvvm.sh` - `compile-vunit.sh` @@ -121,29 +168,30 @@ The compilation scripts are writen in shell languages: PowerShell for Windows an - Common parameters to all scripts: - -All Compile all libraries, including common libraries, packages and device libraries. - -Clean Cleanup directory before analyzing. - -SuppressWarnings Don't show warnings. Report errors only. + -Help Print the embedded help page(s). + -All Compile all libraries, including common libraries, packages and device libraries. + -Clean Cleanup directory before analyzing. + -SuppressWarnings Don't show warnings. Report errors only. - `compile-altera.ps1` - -Altera Compile base libraries like 'altera' and 'altera_mf' - -Max Compile device libraries for Max CPLDs - -Arria Compile device libraries for Arria FPGAs - -Cyclone Compile device libraries for Cyclone FPGAs - -Stratix Compile device libraries for Stratix FPGAs + -Altera Compile base libraries like 'altera' and 'altera_mf' + -Max Compile device libraries for Max CPLDs + -Arria Compile device libraries for Arria FPGAs + -Cyclone Compile device libraries for Cyclone FPGAs + -Stratix Compile device libraries for Stratix FPGAs - `compile-xilinx-ise.ps1` - -Unisim Compile the unisim primitives - -Unimacro Compile the unimacro macros - -Simprim Compile the simprim primitives - -Secureip Compile the secureip primitives + -Unisim Compile the unisim primitives + -Unimacro Compile the unimacro macros + -Simprim Compile the simprim primitives + -Secureip Compile the secureip primitives - `compile-xilinx-vivado.ps1` - -Unisim Compile the unisim primitives - -Unimacro Compile the unimacro macros - -Secureip Compile the secureip primitives + -Unisim Compile the unisim primitives + -Unimacro Compile the unimacro macros + -Secureip Compile the secureip primitives - `compile-osvvm.ps1` - `compile-vunit.ps1` ------------------------ -Author: Patrick Lehmann (23.11.2015) +Author: Patrick Lehmann (30.11.2015) |