Skip to content

Commit

Permalink
Check if CLOCK_PORT is found in the design
Browse files Browse the repository at this point in the history
Remove misleading CTS log print
  • Loading branch information
kareefardi committed Dec 24, 2023
1 parent 6c80fdb commit 9d1baf3
Show file tree
Hide file tree
Showing 3 changed files with 27 additions and 1 deletion.
1 change: 0 additions & 1 deletion scripts/openroad/cts.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,6 @@ if { [info exists ::env(MAX_TRANSITION_CONSTRAINT)] } {
configure_cts_characterization {*}$cts_characterization_args

puts "\[INFO]: Performing clock tree synthesis..."
puts "\[INFO]: Looking for the following net(s): $::env(CLOCK_NET)"
puts "\[INFO]: Running Clock Tree Synthesis..."

set arg_list [list]
Expand Down
24 changes: 24 additions & 0 deletions scripts/openroad/sta/check_clock_port.tcl
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright 2023 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.
source $::env(SCRIPTS_DIR)/openroad/common/io.tcl

read_libs -typical $::env(LIB_TYPICAL)
read_netlist

if { [get_ports $::env(CLOCK_PORT)] == "" } {
puts "\[ERROR]: CLOCK_PORT: '$::env(CLOCK_PORT)' not part of the design"
exit 1
} else {
puts "\[INFO]: CLOCK_PORT: '$::env(CLOCK_PORT)' found"
}
3 changes: 3 additions & 0 deletions scripts/tcl_commands/synthesis.tcl
Original file line number Diff line number Diff line change
Expand Up @@ -75,6 +75,9 @@ proc run_yosys {args} {
exec rm -f $arg_values(-output).bak
}
unset ::env(SAVE_NETLIST)
set log [index_file $::env(synthesis_logs)/check_clock_port.log]
puts_info "Checking clock port (log: [relpath . $log])"
run_sta_script $::env(SCRIPTS_DIR)/openroad/sta/check_clock_port.tcl -indexed_log $log
}

proc run_synth_exploration {args} {
Expand Down

0 comments on commit 9d1baf3

Please sign in to comment.