Skip to content

Commit 958604e

Browse files
committed
Updated CreateAnalyzeOrderCsv and CreateVhdlLsToml to accept PathAndFileName rather than just path.
1 parent 64521ec commit 958604e

File tree

1 file changed

+8
-10
lines changed

1 file changed

+8
-10
lines changed

OsvvmScriptsTranslate.tcl

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -90,20 +90,19 @@ proc CreateDryRunDict {ProFileToBuild} {
9090
# -------------------------------------------------
9191
# CreateVhdlLsToml for VHDL LS
9292
#
93-
proc CreateVhdlLsToml {ProFileToBuild {WhereToCreate .}} {
93+
proc CreateVhdlLsToml {ProFileToBuild {FileNameAndPath "./vhdl_ls.toml"}} {
9494
# CreateVhdlLsToml runs a build script in DryRunMode and
9595
# creates a vhdl_ls.toml file.
9696
#
9797
# ProFileToBuild - Path to the pro file that build the entire design.
98-
# WhereToCreate - Directory into which to create vhdl_ls.toml. Default = .
98+
# FileNameAndPath - Name of file to create. Default: ./vhdl_ls.toml
9999
#
100100
variable AnalyzeDict
101101

102102
# Create AnalyzeDict for the ProFileToBuild script
103103
CreateDryRunDict $ProFileToBuild
104104

105-
set TomlHomeDir [file normalize $WhereToCreate]
106-
set TomlFile [open [file join $TomlHomeDir vhdl_ls.toml] w]
105+
set TomlFile [open [file normalize $FileNameAndPath] w]
107106

108107
puts $TomlFile "# Generated by OSVVM's CreateVhdlLsToml"
109108
puts $TomlFile "\[Libraries\]"
@@ -121,27 +120,26 @@ proc CreateVhdlLsToml {ProFileToBuild {WhereToCreate .}} {
121120
close $TomlFile
122121
}
123122

124-
proc CreateAnalyzeOrderCsv {ProFileToBuild {WhereToCreate .}} {
123+
proc CreateAnalyzeOrderCsv {ProFileToBuild {FileNameAndPath "./AnalyzeOrder.csv"}} {
125124
# CreateAnalyzeOrderCsv runs a build script in DryRunMode and
126125
# creates a AnalyzeOrder.csv file.
127126
#
128-
# ProFileToBuild - Path to the pro file that build the entire design.
129-
# WhereToCreate - Directory into which to create vhdl_ls.toml. Default = .
127+
# ProFileToBuild - Path to the pro file that build the entire design.
128+
# FileNameAndPath - Name of file to create. Default: ./AnalyzeOrder.csv
130129
#
131130
variable AnalyzeOrderList
132131

133132
# Create AnalyzeDict for the ProFileToBuild script
134133
CreateDryRunDict $ProFileToBuild
135134

136-
set HomeDir [file normalize $WhereToCreate]
137-
set CsvFile [open [file join $HomeDir AnalyzeOrder.csv] w]
135+
set CsvFile [open [file normalize $FileNameAndPath] w]
138136

139137
# puts $CsvFile "# Generated by OSVVM's CreateAnalyzeOrderCsv"
140138

141139
foreach FileDict $::osvvm::AnalyzeOrderList {
142140
if {[info exists PrintString]} {puts $CsvFile "${PrintString},"}
143141
set PrintString [dict get $FileDict FileName]
144-
puts $CsvFile "[dict get $FileDict FileName],"
142+
# puts $CsvFile "[dict get $FileDict FileName],"
145143
}
146144
puts $CsvFile "${PrintString}"
147145
close $CsvFile

0 commit comments

Comments
 (0)