Skip to content

Commit

Permalink
hotfix: TCL8_5_TM_PATH being unset causes crash
Browse files Browse the repository at this point in the history
  • Loading branch information
donn committed Sep 22, 2024
1 parent 6d20d41 commit 0eeb0cf
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 1 deletion.
6 changes: 5 additions & 1 deletion flow.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,11 @@ if { [file exists $::env(OPENLANE_ROOT)/install/env.tcl ] } {
if { ! [info exists ::env(OPENROAD_BIN) ] } {
set ::env(OPENROAD_BIN) openroad
}
set ::env(TCL8_5_TM_PATH) "$::env(OPENLANE_ROOT)/scripts:$::env(TCL8_5_TM_PATH)"
if { [info exists ::env(TCL8_5_TM_PATH)] } {
set ::env(TCL8_5_TM_PATH) "$::env(OPENLANE_ROOT)/scripts:$::env(TCL8_5_TM_PATH)"
} else {
set ::env(TCL8_5_TM_PATH) "$::env(OPENLANE_ROOT)/scripts"
}
package require openlane; # provides the utils as well

proc run_placement_step {args} {
Expand Down
17 changes: 17 additions & 0 deletions scripts/openlane-1.0.1.tm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set scripts_dir [ file dirname [ file normalize [ info script ] ] ]
foreach file [glob $scripts_dir/tcl_commands/*.tcl] {
source $file
}
17 changes: 17 additions & 0 deletions scripts/openlane_utils-1.0.1.tm
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Copyright 2024 Efabless Corporation
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
set scripts_dir [ file dirname [ file normalize [ info script ] ] ]
foreach file [glob $scripts_dir/utils/*.tcl] {
source $file
}

0 comments on commit 0eeb0cf

Please sign in to comment.