18 if {[
catch {
package require cmdline} ERROR]} {
19 puts "$ERROR\n If you are running this script on tclsh, you can fix this by installing 'tcllib'"
24 {simulator.arg "Target simulator, for which you want to compile the simulation libraries."}
25 {output_dir.arg "Output directory for the compiled simulation libraries."}
28 set usage "Compile the simulation libraries for the target simulator - USAGE: compile_simlib.tcl \[options\]"
30 set tcl_path [
file dirname [
info script]]
31 set repo_path [
file normalize $tcl_path/../../..]
32 source $tcl_path/../hog.tcl
39 if { $options(simulator) != "" } {
40 set simulator $options(simulator)
42 Msg Error "No simulator has been selected. Exiting..."
46 if { $options(output_dir) != "" } {
47 set output_dir $options(output_dir)
49 Msg Info "No output_dir has been defined. Using default: SimulationLib/"
50 set output_dir "SimulationLib"
55 compile_simlib -simulator $simulator -family all -language all -library all -dir $output_dir