diff options
-rw-r--r-- | dist/mcode/windows/compile-libraries.ps1 | 2 | ||||
-rw-r--r-- | doc/conf.py | 21 | ||||
-rw-r--r-- | libraries/vendors/compile-osvvm.ps1 | 21 | ||||
-rwxr-xr-x | libraries/vendors/compile-osvvm.sh | 9 |
4 files changed, 34 insertions, 19 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/doc/conf.py b/doc/conf.py index e9c53f9ad..650942af1 100644 --- a/doc/conf.py +++ b/doc/conf.py @@ -54,10 +54,23 @@ author = u'Tristan Gingold' # |version| and |release|, also used in various other places throughout the # built documents. # -# The short X.Y version. -version = '0.33' -# The full version, including alpha/beta/rc tags. -release = '0.33' +def _IsUnderGitControl(): + return (check_output(["git", "rev-parse", "--is-inside-work-tree"], universal_newlines=True).strip() == "true") + +def _LatestTagName(): + return check_output(["git", "describe", "--abbrev=0", "--tags"], universal_newlines=True).strip() + +version = "0.33" # The short X.Y version. +release = "0.33" # The full version, including alpha/beta/rc tags. +try: + if _IsUnderGitControl: + latestTagName = _LatestTagName()[1:] # remove prefix "v" + versionParts = latestTagName.split("-")[0].split(".") + + version = ".".join(versionParts[:2]) + release = version # ".".join(versionParts[:3]) +except: + pass # The language for content autogenerated by Sphinx. Refer to documentation # for a list of supported languages. 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 ) |