diff options
author | Patrick Lehmann <Patrick.Lehmann@plc2.de> | 2017-07-28 15:45:54 +0200 |
---|---|---|
committer | Tristan Gingold <tgingold@free.fr> | 2017-07-29 08:39:30 +0200 |
commit | 06906cef13381eb8a021d0822b778df219b1f7b1 (patch) | |
tree | 8ad220372d6a022ee7d3cb2f1a28ed8532d5a9a1 /libraries/vendors/compile-xilinx-vivado.ps1 | |
parent | 59e5071d5eb9ba98fa0c2189e48359d416165b4d (diff) | |
download | ghdl-06906cef13381eb8a021d0822b778df219b1f7b1.tar.gz ghdl-06906cef13381eb8a021d0822b778df219b1f7b1.tar.bz2 ghdl-06906cef13381eb8a021d0822b778df219b1f7b1.zip |
Reworked and improved pre-compile scripts.
Added Intel FPGA support.
Extended list of UVVM verification IPs.
Diffstat (limited to 'libraries/vendors/compile-xilinx-vivado.ps1')
-rw-r--r-- | libraries/vendors/compile-xilinx-vivado.ps1 | 20 |
1 files changed, 9 insertions, 11 deletions
diff --git a/libraries/vendors/compile-xilinx-vivado.ps1 b/libraries/vendors/compile-xilinx-vivado.ps1 index 621d84ab0..c25ab0c08 100644 --- a/libraries/vendors/compile-xilinx-vivado.ps1 +++ b/libraries/vendors/compile-xilinx-vivado.ps1 @@ -16,6 +16,7 @@ # # ============================================================================== # Copyright (C) 2015-2016 Patrick Lehmann - Dresden, Germany +# Copyright (C) 2017 Patrick Lehmann - Freiburg, Germany # # GHDL is free software; you can redistribute it and/or modify it under # the terms of the GNU General Public License as published by the Free @@ -63,21 +64,21 @@ param( # Clean up directory before analyzing. [switch]$Clean = $false, - # Set VHDL Standard to '93 + # Set VHDL Standard to '93. [switch]$VHDL93 = $false, - # Set VHDL Standard to '08 + # Set VHDL Standard to '08. [switch]$VHDL2008 = $false, # Skip warning messages. (Show errors only.) [switch]$SuppressWarnings = $false, - # Halt on errors + # Halt on errors. [switch]$HaltOnError = $false, - # Set vendor library source directory + # Set vendor library source directory. [string]$Source = "", - # Set output directory name + # Set output directory name. [string]$Output = "", - # Set GHDL executable + # Set GHDL binary directory. [string]$GHDL = "" ) @@ -86,11 +87,8 @@ param( $WorkingDir = Get-Location # set default values -$EnableVerbose = $PSCmdlet.MyInvocation.BoundParameters["Verbose"] -$EnableDebug = $PSCmdlet.MyInvocation.BoundParameters["Debug"] -if ($EnableVerbose -eq $null) { $EnableVerbose = $false } -if ($EnableDebug -eq $null) { $EnableDebug = $false } -if ($EnableDebug -eq $true) { $EnableVerbose = $true } +$EnableDebug = [bool]$PSCmdlet.MyInvocation.BoundParameters["Debug"] +$EnableVerbose = [bool]$PSCmdlet.MyInvocation.BoundParameters["Verbose"] -or $EnableDebug # load modules from GHDL's 'vendors' library directory Import-Module $PSScriptRoot\config.psm1 -Verbose:$false -ArgumentList "XilinxVivado" |