Skip to content

Commit e9b9e8d

Browse files
committed
Updates to support CreateDryRunDict CreateVhdlLsToml
1 parent e53eaf6 commit e9b9e8d

9 files changed

+32
-19
lines changed

OsvvmScriptsCore.tcl

Lines changed: 13 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -450,8 +450,7 @@ proc build {{Path_Or_File "."} args} {
450450
}
451451
# Fail on Test Case Errors
452452
if {($::osvvm::BuildStatus ne "PASSED") && ($::osvvm::FailOnTestCaseErrors)} {
453-
puts "Test finished with Test Case Errors. Return -code 1"
454-
return -code 1
453+
error "Test finished with Test Case Errors."
455454
}
456455
# Fail on Report / Script Errors?
457456
if {($ReportYamlErrorCode != 0) || ($ReportErrorCode != 0) || ($Log2ErrorCode != 0) || ($ScriptErrorCount != 0)} {
@@ -774,18 +773,20 @@ proc StopTranscript {{FileBaseName ""}} {
774773
# if {[llength [info procs vendor_StopTranscript]] > 0} {}
775774
if {[info procs vendor_StopTranscript] ne ""} {
776775
vendor_StopTranscript $TempTranscriptName
777-
# file rename -force ${TempTranscriptName} ${TranscriptFileName}
778-
file copy -force ${TempTranscriptName} ${TranscriptFileName}
779-
file delete -force ${TempTranscriptName}
780-
781-
} else {
782-
DefaultVendor_StopTranscript $TempTranscriptName
783-
if {$::osvvm::GotTee} {
784-
# file rename -force ${TempTranscriptName} ${TranscriptFileName}
776+
if {[file exists $TempTranscriptName]} {
785777
file copy -force ${TempTranscriptName} ${TranscriptFileName}
786778
file delete -force ${TempTranscriptName}
787-
} else {
788-
file copy -force ${TempTranscriptName} ${TranscriptFileName}
779+
}
780+
} else {
781+
DefaultVendor_StopTranscript $TempTranscriptName
782+
if {[file exists $TempTranscriptName]} {
783+
if {$::osvvm::GotTee} {
784+
# file rename -force ${TempTranscriptName} ${TranscriptFileName}
785+
file copy -force ${TempTranscriptName} ${TranscriptFileName}
786+
file delete -force ${TempTranscriptName}
787+
} else {
788+
file copy -force ${TempTranscriptName} ${TranscriptFileName}
789+
}
789790
}
790791
}
791792
}

StartUp.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,7 @@ namespace eval ::osvvm {
114114
} elseif {[string match -nocase $ToolExecutableName "vivado"]} {
115115
variable ScriptBaseName "Vivado"
116116

117-
} elseif {[info exist nvc_dataDir]} {
117+
} elseif {[info exist ::nvc_dataDir]} {
118118
variable ScriptBaseName "NVC"
119119

120120
} else {

StartUpShared.tcl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -80,6 +80,7 @@ source ${::osvvm::OsvvmScriptDirectory}/OsvvmScriptsCreateYamlReports.tcl ;#
8080
source ${::osvvm::OsvvmScriptDirectory}/OsvvmScriptsCore.tcl ;# OSVVM Core API
8181
source ${::osvvm::OsvvmScriptDirectory}/OsvvmScriptsSimulateSupport.tcl ;# OSVVM Simulate Support Scripts - should this be called by OsvvmScriptsCore after proc simulate?
8282
source ${::osvvm::OsvvmScriptDirectory}/OsvvmScriptsFileCreate.tcl ;# OSVVM API for file creation
83+
source ${::osvvm::OsvvmScriptDirectory}/OsvvmScriptsTranslate.tcl ;# OSVVM Create Project files for other tools
8384

8485
# --------------------------------
8586
# Load Vendor Script Default settings

VendorScripts_CompileList.tcl

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -105,6 +105,11 @@ proc vendor_analyze_vhdl {LibraryName FileName args} {
105105
set ListOfLibraryFiles [open ${LibraryName}_${::osvvm::ToolName}.files a]
106106
puts $ListOfLibraryFiles $FileName
107107
close $ListOfLibraryFiles
108+
109+
set AllFiles [open OneList.files a]
110+
puts $AllFiles [file normalize $FileName]
111+
close $AllFiles
112+
108113
}
109114

110115
proc vendor_analyze_verilog {LibraryName FileName args} {

VendorScripts_Questa.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ package require fileutil
8181
if {![catch {batch_mode} msg]} {
8282
if {[batch_mode]} {
8383
variable NoGui "true"
84-
if {[regexp {\-batch} $argv]} {
84+
if {[regexp {\-batch} $::argv]} {
8585
variable EnableTranscriptInBatchMode "false"
8686
# variable SiemensSimulateOptions -batch
8787
variable SiemensSimulateOptions -c

VendorScripts_RivieraPro.tcl

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,10 @@
6161
variable ToolName "RivieraPRO"
6262
variable simulator $ToolName ; # Variable simulator is deprecated. Use ToolName instead
6363
# Could differentiate between RivieraPRO and VSimSA
64-
variable ToolVersion [asimVersion]
64+
variable ToolVersion
65+
if {[catch {regexp {\d([\d\.]+)} [exec vsim -version] ToolVersion}]} {
66+
variable ToolVersion [asimVersion]
67+
}
6568
variable ToolNameVersion ${ToolName}-${ToolVersion}
6669
# puts $ToolNameVersion
6770

@@ -79,7 +82,10 @@
7982

8083
variable FunctionalCoverageIntegratedInSimulator "Aldec"
8184

82-
if {[batch_mode]} {
85+
if {[catch {batch_mode}]} {
86+
# batch_mode command not exist = running from shell = in batch_mode
87+
variable NoGui "true"
88+
} elseif {[batch_mode]} {
8389
variable NoGui "true"
8490
} else {
8591
variable NoGui "false"

VendorScripts_Siemens.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -95,7 +95,7 @@ package require fileutil
9595
if {![catch {batch_mode} msg]} {
9696
if {[batch_mode]} {
9797
variable NoGui "true"
98-
if {[regexp {\-batch} $argv]} {
98+
if {[regexp {\-batch} $::argv]} {
9999
variable EnableTranscriptInBatchMode "false"
100100
# variable SiemensSimulateOptions -batch
101101
variable SiemensSimulateOptions -c

VendorScripts_VSim.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ package require fileutil
8383
variable shell ""
8484
variable SiemensSimulateOptions ""
8585
if {[batch_mode]} {
86-
variable ToolArgs $argv
86+
variable ToolArgs $::argv
8787
variable NoGui "true"
8888
variable SiemensSimulateOptions "-batch"
8989
variable DebugOptions "-debug"

VendorScripts_Visualizer.tcl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ package require fileutil
6565
variable shell ""
6666
variable SiemensSimulateOptions ""
6767
if {[batch_mode]} {
68-
variable ToolArgs $argv
68+
variable ToolArgs $::argv
6969
variable NoGui "true"
7070
variable SiemensSimulateOptions "-batch"
7171
variable DebugOptions "-debug"

0 commit comments

Comments
 (0)