aboutsummaryrefslogtreecommitdiffstats
path: root/libraries/vendors/compile-altera.ps1
diff options
context:
space:
mode:
Diffstat (limited to 'libraries/vendors/compile-altera.ps1')
-rw-r--r--libraries/vendors/compile-altera.ps122
1 files changed, 10 insertions, 12 deletions
diff --git a/libraries/vendors/compile-altera.ps1 b/libraries/vendors/compile-altera.ps1
index 030c21926..a6b442926 100644
--- a/libraries/vendors/compile-altera.ps1
+++ b/libraries/vendors/compile-altera.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
@@ -80,21 +81,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 = ""
)
@@ -103,11 +104,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 -Debug:$false -ArgumentList "AlteraQuartus"
@@ -137,7 +135,7 @@ function Get-AlteraQuartusDirectory
foreach ($Drive in Get-DriveInfo)
{ $Path = $Drive.Name + "Altera"
if (Test-Path $Path -PathType Container)
- { foreach ($Major in 17..13)
+ { foreach ($Major in 16..13)
{ foreach ($Minor in 3..0)
{ $Dir = $Path + "\" + $Major + "." + $Minor + "\quartus"
if (Test-Path $Dir -PathType Container)