Skip to content

Commit 79ed9f8

Browse files
authored
Merge pull request #55 from nickg/nvc-elab-run
Perform NVC elaboration and run in a single step
2 parents c99eb4b + 5049620 commit 79ed9f8

File tree

1 file changed

+2
-9
lines changed

1 file changed

+2
-9
lines changed

VendorScripts_NVC.tcl

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -243,15 +243,8 @@ proc vendor_simulate {LibraryName LibraryUnit args} {
243243
set ElaborateOptions [concat {*}${LocalElaborateOptions} ${LibraryUnit}]
244244
set RunOptions [concat {*}${LocalRunOptions} ${LibraryUnit}]
245245

246-
puts "nvc ${GlobalOptions} -e ${ElaborateOptions}"
247-
if { [catch {exec $nvc {*}${GlobalOptions} -e --jit {*}${ElaborateOptions}} ElaborateMessage]} {
248-
PrintWithPrefix "Elaborate Error:" $ElaborateMessage
249-
error "Failed: simulate $LibraryUnit"
250-
} else {
251-
puts $ElaborateMessage
252-
}
253-
puts "nvc ${GlobalOptions} -r ${RunOptions}"
254-
if { [catch {exec $nvc {*}${GlobalOptions} -r {*}${RunOptions} 2>@1} SimulateMessage]} {
246+
puts "nvc ${GlobalOptions} -e --jit --no-save ${ElaborateOptions} -r ${RunOptions}"
247+
if { [catch {exec $nvc {*}${GlobalOptions} -e --jit --no-save {*}${ElaborateOptions} -r {*}${RunOptions} 2>@1} SimulateMessage]} {
255248
PrintWithPrefix "Error:" $SimulateMessage
256249
error "Failed: simulate $LibraryUnit"
257250
} else {

0 commit comments

Comments
 (0)