Skip to content

Commit

Permalink
More cleanup of the flow scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
tajayi committed Feb 7, 2020
1 parent 3e9518e commit dee4513
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 100 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Expand Up @@ -51,6 +51,8 @@ flow/*.opennet
flow/platforms/*
!flow/platforms/nangate45

flow/private/*

# network
.nfs*

Expand Down
9 changes: 2 additions & 7 deletions flow/Makefile
Expand Up @@ -459,18 +459,12 @@ clean_all: clean_synth clean_floorplan clean_place clean_cts clean_route clean_f
nuke: clean_test clean_issues
rm -rf ./results ./logs ./reports ./objects
rm -rf layer_*.mps macrocell.list *best.plt *_pdn.def dummy.guide run.param
rm -rf *.rpt *.rpt.old *.def.v innovus.* pin_dumper.log
rm -rf *.rpt *.rpt.old *.def.v pin_dumper.log
rm -rf versions.txt


# DEF/GDS viewer shortcuts
#-------------------------------------------------------------------------------
$(foreach def,$(notdir $(wildcard $(RESULTS_DIR)/*.def)),innovus_$(def)): innovus_%:
innovus -execute "loadLefFile $(OBJECTS_DIR)/merged.lef ; \
loadDefFile $(RESULTS_DIR)/$* ; \
win" \
-no_logv ; stty sane

RESULTS_DEF = $(notdir $(wildcard $(RESULTS_DIR)/*.def))
RESULTS_GDS = $(notdir $(wildcard $(RESULTS_DIR)/*.gds))
$(foreach file,$(RESULTS_DEF) $(RESULTS_GDS),klayout_$(file)): klayout_%: $(OBJECTS_DIR)/klayout.lyt
Expand All @@ -480,3 +474,4 @@ $(foreach file,$(RESULTS_DEF) $(RESULTS_GDS),klayout_$(file)): klayout_%: $(OBJE
# Utilities
#-------------------------------------------------------------------------------
include $(UTILS_DIR)/utils.mk
-include ./private/util/utils.mk
3 changes: 1 addition & 2 deletions flow/test/test_helper.sh
Expand Up @@ -21,10 +21,9 @@ set -o pipefail

mkdir -p $TEST_DIR/logs/$PLATFORM

if which innovus &> /dev/null; then
if [ -f "./private/util/utils.mk" ]; then
TARGETS="finish drc congestion"
else
echo "INFO: No innovus installation detected; skipping third-party DRC"
TARGETS="finish"
fi

Expand Down
60 changes: 0 additions & 60 deletions flow/util/explore_route.tcl

This file was deleted.

32 changes: 1 addition & 31 deletions flow/util/utils.mk
@@ -1,41 +1,14 @@
# Utilities
#===============================================================================
drc: $(REPORTS_DIR)/drc.rpt
$(REPORTS_DIR)/drc.rpt: finish
innovus -execute "loadLefFile $(OBJECTS_DIR)/merged.lef ; \
loadDefFile $(RESULTS_DIR)/5_route.def; \
verify_drc -limit 10000 -report $(REPORTS_DIR)/drc.rpt; \
exit" \
-no_gui -no_logv
#; stty sane here breaks gnu parallel

congestion: $(REPORTS_DIR)/congestion.rpt
$(REPORTS_DIR)/congestion.rpt: $(RESULTS_DIR)/4_cts.def
innovus -execute "loadLefFile $(OBJECTS_DIR)/merged.lef ; \
loadDefFile $<; \
earlyGlobalRoute; \
describeCongestion > $@; \
reportCongestion -hotSpot -overflow >> $@; \
exit" \
-no_gui -no_logv
#; stty sane here breaks gnu parallel


grep_cells:
find ./logs/ -iname 1_1_yosys.log -exec sh -c "grep -iH 'Number of cells' {} | tail -1" \;

grep_drc:
find ./reports/ -iname drc.rpt -exec sh -c "grep -iH 'viol' {} | tail -1" \;

grep_congestion:
find ./reports/ -iname congestion.rpt -exec sh -c "grep -iH 'congestion index' {} | tail -1" \;

grep_util:
find ./reports/ -iname 6_final_report.rpt -exec sh -c "grep -iH 'Design area' {} | tail -1" \;

# Run test using gnu parallel
#-------------------------------------------------------------------------------
TEST_SCRIPT ?= $(TEST_DIR)/core_tests.sh
TEST_SCRIPT ?= $(TEST_DIR)/gf14.sh
run_test:
parallel --sshloginfile $(TEST_DIR)/nodes.txt \
--timeout 21600 \
Expand Down Expand Up @@ -92,6 +65,3 @@ $(foreach script,$(ISSUE_SCRIPTS),$(script)_issue): %_issue : versions.txt
clean_issues:
rm -rf $(foreach issue, $(ISSUE_SCRIPTS), $(issue)_*.tar.gz)
rm -rf vars.sh runme.sh

explore:
min_routing_layer=2 max_routing_layer=7 capacity_adjustment=0 unidirectional_routing=1 layers_adjustment1=0.9 layers_adjustment2=0.5 layers_adjustment3=0.5 layers_adjustment4=0.5 layers_adjustment5=0.5 layers_adjustment6=0.5 layers_adjustment7=0.5 openroad -no_init ./util/explore_route.tcl

0 comments on commit dee4513

Please sign in to comment.