Skip to content

Apply VCS SynopsysGenericOptions at elaboration #59

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions VendorScripts_VCS.tcl
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Do we still need {*}${SynopsysGenericOptions} as part of simulate then? I thought they could be specified in either or. Is specifying it in both OK?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes {}${SynopsysGenericOptions} should either be in ElaborateOptions or SimulateOptions, so {}${SynopsysGenericOptions} should be removed from SimulateOptions.

Original file line number Diff line number Diff line change
Expand Up @@ -233,7 +233,14 @@ proc vendor_simulate {LibraryName LibraryUnit args} {
set DebugOptions "-debug_access+all"
}

set ElaborateOptions [concat -full64 -time $SimulateTimeUnits ${DebugOptions} {*}${ExtendedElaborateOptions} ${LibraryName}.${LibraryUnit}]
if {$::osvvm::GenericDict ne ""} {
set SynopsysGenericOptions "-lca -g synopsys_generics.txt"
CreateGenericFile ${::osvvm::GenericDict}
} else {
set SynopsysGenericOptions ""
}

set ElaborateOptions [concat -full64 -time $SimulateTimeUnits ${DebugOptions} {*}${ExtendedElaborateOptions} ${LibraryName}.${LibraryUnit} {*}${SynopsysGenericOptions}]
puts "vcs ${ElaborateOptions}"
set VcsErrorCode [catch {exec vcs {*}${ElaborateOptions}} SimulateErrorMessage]
# puts "VcsErrorCode $VcsErrorCode" ;# returns 1 on success
Expand All @@ -245,13 +252,6 @@ proc vendor_simulate {LibraryName LibraryUnit args} {
# } else {
# puts $SimulateErrorMessage
# }

if {$::osvvm::GenericDict ne ""} {
set SynopsysGenericOptions "-lca -g synopsys_generics.txt"
CreateGenericFile ${::osvvm::GenericDict}
} else {
set SynopsysGenericOptions ""
}

set SimulateOptions [concat {*}${ExtendedRunOptions} {*}${SynopsysGenericOptions} -ucli -do temp_Synopsys_run.tcl]
puts "./simv ${SimulateOptions}"
Expand Down