diff options
author | Patrick Lehmann <Patrick.Lehmann@tu-dresden.de> | 2016-12-10 22:09:35 +0100 |
---|---|---|
committer | Patrick Lehmann <Patrick.Lehmann@tu-dresden.de> | 2016-12-10 23:14:54 +0100 |
commit | 2c13b6dd9af18273c1f4e38a51acb7ea745324c1 (patch) | |
tree | 4ea1e0be14954a63fad2201365d8a19f80713bb3 | |
parent | 11b88a9ce1e48c3019c7dd4910a73e76ee33f08a (diff) | |
download | ghdl-2c13b6dd9af18273c1f4e38a51acb7ea745324c1.tar.gz ghdl-2c13b6dd9af18273c1f4e38a51acb7ea745324c1.tar.bz2 ghdl-2c13b6dd9af18273c1f4e38a51acb7ea745324c1.zip |
Updated compile order in compile-osvvm.* files.
-rw-r--r-- | dist/mcode/windows/compile-libraries.ps1 | 2 | ||||
-rw-r--r-- | libraries/vendors/compile-osvvm.ps1 | 21 | ||||
-rwxr-xr-x | libraries/vendors/compile-osvvm.sh | 9 |
3 files changed, 17 insertions, 15 deletions
diff --git a/dist/mcode/windows/compile-libraries.ps1 b/dist/mcode/windows/compile-libraries.ps1 index 597c7f237..da2b29c09 100644 --- a/dist/mcode/windows/compile-libraries.ps1 +++ b/dist/mcode/windows/compile-libraries.ps1 @@ -361,7 +361,7 @@ if ($VHDL87) } } - foreach ($SourceFile in $SourceFiles["synopsys"] + $SourceFiles["synopsys8793"]) + foreach ($SourceFile in $SourceFiles[$VHDLFlavor] + $SourceFiles["synopsys8793"]) { Write-Host " file: v$VHDLVersion\$SourceFile.v$VHDLVersion" $EnableVerbose -and (Write-Host " Patching file for VHDL-$VHDLVersion" ) | Out-Null $EnableDebug -and (Write-Host " Get-Content `"$VHDLSourceLibraryDirectory\$VHDLSourcesIndex\$SourceFile.vhdl`" -Encoding Ascii ``" -ForegroundColor DarkGray ) | Out-Null diff --git a/libraries/vendors/compile-osvvm.ps1 b/libraries/vendors/compile-osvvm.ps1 index 9617f2f3f..8b047adfd 100644 --- a/libraries/vendors/compile-osvvm.ps1 +++ b/libraries/vendors/compile-osvvm.ps1 @@ -72,23 +72,19 @@ 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 "OSVVM"
Import-Module $PSScriptRoot\shared.psm1 -Verbose:$false -Debug:$false -ArgumentList @("OSVVM", "$WorkingDir")
# Display help if no command was selected
-$Help = $Help -or (-not ($All -or $OSVVM -or $Clean))
-
-if ($Help)
+if ($Help -or (-not ($All -or $OSVVM -or $Clean)))
{ Get-Help $MYINVOCATION.InvocationName -Detailed
Exit-CompileScript
}
+
if ($All)
{ $OSVVM = $true
}
@@ -132,18 +128,21 @@ if ((-not $StopCompiling) -and $OSVVM) $Files = @(
"NamePkg.vhd",
"OsvvmGlobalPkg.vhd",
- "TextUtilPkg.vhd",
+ "VendorCovApiPkg.vhd",
"TranscriptPkg.vhd",
+ "TextUtilPkg.vhd",
"AlertLogPkg.vhd",
- "MemoryPkg.vhd",
"MessagePkg.vhd",
"SortListPkg_int.vhd",
"RandomBasePkg.vhd",
"RandomPkg.vhd",
"CoveragePkg.vhd",
+ "MemoryPkg.vhd",
"ScoreboardGenericPkg.vhd",
- "ScoreboardPkg_int.vhd",
"ScoreboardPkg_slv.vhd",
+ "ScoreboardPkg_int.vhd",
+ "ResolutionPkg.vhd",
+ "TbUtilPkg.vhd",
"OsvvmContext.vhd"
)
$SourceFiles = $Files | % { "$SourceDirectory\$_" }
diff --git a/libraries/vendors/compile-osvvm.sh b/libraries/vendors/compile-osvvm.sh index 38541aca2..9d2070c59 100755 --- a/libraries/vendors/compile-osvvm.sh +++ b/libraries/vendors/compile-osvvm.sh @@ -193,18 +193,21 @@ if [ "$COMPILE_OSVVM" == "TRUE" ]; then Files=( NamePkg.vhd OsvvmGlobalPkg.vhd - TextUtilPkg.vhd + VendorCovApiPkg.vhd TranscriptPkg.vhd + TextUtilPkg.vhd AlertLogPkg.vhd - MemoryPkg.vhd MessagePkg.vhd SortListPkg_int.vhd RandomBasePkg.vhd RandomPkg.vhd CoveragePkg.vhd + MemoryPkg.vhd ScoreboardGenericPkg.vhd - ScoreboardPkg_int.vhd ScoreboardPkg_slv.vhd + ScoreboardPkg_int.vhd + ResolutionPkg.vhd + TbUtilPkg.vhd OsvvmContext.vhd ) |