Skip to content

Commit 20047ca

Browse files
committed
makefile: add ABSTRACT_SOURCE variable for generate-abstract
This can be used to generate an abstract using for instance 2_floorplan stage, which allows quickly previewing floorplan changes at the top level. When I tested it with MegaBoom, I could view the floorplan after mpl2 in minutes instead of days. Signed-off-by: Øyvind Harboe <[email protected]>
1 parent b6fb383 commit 20047ca

File tree

1 file changed

+9
-4
lines changed

1 file changed

+9
-4
lines changed

flow/scripts/generate_abstract.tcl

Lines changed: 9 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,21 @@
11
source $::env(SCRIPTS_DIR)/load.tcl
2-
load_design 6_final.odb 6_final.sdc "Starting generation of abstract views"
32

4-
read_spef $::env(RESULTS_DIR)/6_final.spef
5-
set_propagated_clock [all_clocks]
3+
set stem [expr {[info exists ::env(ABSTRACT_SOURCE)] ? $::env(ABSTRACT_SOURCE) : "6_final"}]
4+
5+
load_design $stem.odb $stem.sdc "Starting generation of abstract views"
6+
7+
if {[file exists $::env(RESULTS_DIR)/$stem.spef]} {
8+
read_spef $::env(RESULTS_DIR)/$stem.spef
9+
set_propagated_clock [all_clocks]
10+
}
611

712
puts "Starting generation of abstract views"
813
write_timing_model $::env(RESULTS_DIR)/$::env(DESIGN_NAME).lib
914
write_abstract_lef -bloat_occupied_layers $::env(RESULTS_DIR)/$::env(DESIGN_NAME).lef
1015

1116
if {[info exist ::env(CDL_FILES)]} {
1217
cdl read_masters $::env(CDL_FILES)
13-
cdl out $::env(RESULTS_DIR)/6_final.cdl
18+
cdl out $::env(RESULTS_DIR)/$stem.cdl
1419
}
1520

1621
if {![info exists standalone] || $standalone} {

0 commit comments

Comments
 (0)