aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/vendors/compile-xilinx-ise.ps1
diff options
context:
space:
mode:
authorPatrick Lehmann <Patrick.Lehmann@plc2.de>2017-07-28 15:45:54 +0200
committerTristan Gingold <tgingold@free.fr>2017-07-29 08:39:30 +0200
commit06906cef13381eb8a021d0822b778df219b1f7b1 (patch)
tree8ad220372d6a022ee7d3cb2f1a28ed8532d5a9a1 /libraries/vendors/compile-xilinx-ise.ps1
parent59e5071d5eb9ba98fa0c2189e48359d416165b4d (diff)
downloadghdl-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-ise.ps1')
-rw-r--r--libraries/vendors/compile-xilinx-ise.ps116
1 files changed, 7 insertions, 9 deletions
diff --git a/libraries/vendors/compile-xilinx-ise.ps1 b/libraries/vendors/compile-xilinx-ise.ps1
index 3ec51d591..42a54327e 100644
--- a/libraries/vendors/compile-xilinx-ise.ps1
+++ b/libraries/vendors/compile-xilinx-ise.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
@@ -78,14 +79,14 @@ param(
# 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 = ""
)
@@ -99,11 +100,8 @@ if ($Help)
$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 -Debug:$false -ArgumentList "XilinxISE"