@@ -241,7 +241,7 @@ synth-report: synth
241241
242242.PHONY : do-synth-report
243243do-synth-report :
244- ( $( TIME_CMD ) $( OPENROAD_CMD ) $( SCRIPTS_DIR ) /synth_metrics.tcl) 2>&1 | tee $( abspath $(LOG_DIR ) /1_2_yosys_metrics.log)
244+ $( RUN_CMD ) --log $( abspath $(LOG_DIR ) /1_2_yosys_metrics.log) -- tee -- $( OPENROAD_CMD ) $(SCRIPTS_DIR ) /synth_metrics.tcl
245245
246246.PHONY : memory
247247memory :
@@ -641,7 +641,7 @@ generate_abstract: $(RESULTS_DIR)/6_final.gds $(RESULTS_DIR)/6_final.def $(RESU
641641.PHONY : do-generate_abstract
642642do-generate_abstract :
643643 mkdir -p $(LOG_DIR ) $(REPORTS_DIR )
644- ( $( TIME_CMD ) $( OPENROAD_CMD ) $( SCRIPTS_DIR ) /generate_abstract.tcl -metrics $( LOG_DIR ) /generate_abstract.json) 2>&1 | tee $( abspath $( LOG_DIR ) /generate_abstract.log)
644+ $( RUN_CMD ) --log $( abspath $(LOG_DIR ) /generate_abstract.log) --tee -- $( OPENROAD_CMD ) $( SCRIPTS_DIR ) /generate_abstract.tcl -metrics $( LOG_DIR ) /generate_abstract.json
645645
646646.PHONY : clean_abstract
647647clean_abstract :
@@ -661,15 +661,16 @@ gds: $(GDS_FINAL_FILE)
661661# Merge wrapped macros using Klayout
662662# -------------------------------------------------------------------------------
663663$(WRAPPED_GDSOAS ) : $(OBJECTS_DIR ) /klayout_wrap.lyt $(WRAPPED_LEFS )
664- ($( TIME_CMD) $( SCRIPTS_DIR) /klayout.sh -zz -rd design_name=$( basename $( notdir $@ ) ) \
664+ $(RUN_CMD ) --log $(abspath $(LOG_DIR ) /6_merge_$(basename $(notdir $@ ) ) .log) --tee -- \
665+ $(SCRIPTS_DIR ) /klayout.sh -zz -rd design_name=$(basename $(notdir $@ ) ) \
665666 -rd in_def=$(OBJECTS_DIR ) /def/$(notdir $(@:$(STREAM_SYSTEM_EXT ) =def ) ) \
666667 -rd in_files=" $( ADDITIONAL_GDSOAS) " \
667668 -rd config_file=$(FILL_CONFIG ) \
668669 -rd seal_file=" " \
669670 -rd out_file=$@ \
670671 -rd tech_file=$(OBJECTS_DIR ) /klayout_wrap.lyt \
671672 -rd layer_map=$(GDS_LAYER_MAP ) \
672- -r $(UTILS_DIR ) /def2stream.py) 2>&1 | tee $( abspath $( LOG_DIR ) /6_merge_ $( basename $( notdir $@ ) ) .log)
673+ -r $(UTILS_DIR ) /def2stream.py
673674
674675# Merge GDS using Klayout
675676# -------------------------------------------------------------------------------
@@ -678,14 +679,15 @@ $(GDS_MERGED_FILE): check-klayout $(RESULTS_DIR)/6_final.def $(OBJECTS_DIR)/klay
678679
679680.PHONY : do-gds-merged
680681do-gds-merged :
681- ($( TIME_CMD) $( STDBUF_CMD) $( SCRIPTS_DIR) /klayout.sh -zz -rd design_name=$( DESIGN_NAME) \
682+ $(RUN_CMD ) --log $(abspath $(LOG_DIR ) /6_1_merge.log) --tee -- \
683+ $(SCRIPTS_DIR ) /klayout.sh -zz -rd design_name=$(DESIGN_NAME ) \
682684 -rd in_def=$(RESULTS_DIR ) /6_final.def \
683685 -rd in_files=" $( GDSOAS_FILES) $( WRAPPED_GDSOAS) " \
684686 -rd seal_file=" $( SEAL_GDSOAS) " \
685687 -rd out_file=$(GDS_MERGED_FILE ) \
686688 -rd tech_file=$(OBJECTS_DIR ) /klayout.lyt \
687689 -rd layer_map=$(GDS_LAYER_MAP ) \
688- -r $(UTILS_DIR ) /def2stream.py) 2>&1 | tee $( abspath $( LOG_DIR ) /6_1_merge.log)
690+ -r $(UTILS_DIR ) /def2stream.py
689691
690692$(RESULTS_DIR ) /6_final.v : $(LOG_DIR ) /6_report.log
691693
@@ -702,17 +704,18 @@ drc: $(REPORTS_DIR)/6_drc.lyrdb
702704
703705$(REPORTS_DIR ) /6_drc.lyrdb : $(GDS_FINAL_FILE ) $(KLAYOUT_DRC_FILE )
704706ifneq ($(KLAYOUT_DRC_FILE ) ,)
705- ($(TIME_CMD) $(SCRIPTS_DIR)/klayout.sh -zz -rd in_gds="$<" \
707+ $(RUN_CMD) --log $(abspath $(LOG_DIR)/6_drc.log) --tee -- \
708+ $(SCRIPTS_DIR)/klayout.sh -zz -rd in_gds="$<" \
706709 -rd report_file=$(abspath $@) \
707- -r $(KLAYOUT_DRC_FILE)) 2>&1 | tee $(abspath $(LOG_DIR)/6_drc.log)
710+ -r $(KLAYOUT_DRC_FILE)
708711 # Hacky way of getting DRV count (don't error on no matches)
709712 grep -c "<value>" $@ > $(REPORTS_DIR)/6_drc_count.rpt || [[ $$? == 1 ]]
710713else
711714 echo "DRC not supported on this platform" > $@
712715endif
713716
714717$(RESULTS_DIR ) /6_final.cdl : $(RESULTS_DIR ) /6_final.v
715- ( $( TIME_CMD ) $( OPENROAD_CMD ) $( SCRIPTS_DIR ) /cdl.tcl) 2>&1 | tee $( abspath $(LOG_DIR ) /6_cdl.log)
718+ $( RUN_CMD ) --log $( abspath $(LOG_DIR ) /6_cdl.log) -- tee -- $( OPENROAD_CMD ) $(SCRIPTS_DIR ) /cdl.tcl
716719
717720$(OBJECTS_DIR ) /6_final_concat.cdl : $(RESULTS_DIR ) /6_final.cdl $(CDL_FILE )
718721 cat $^ > $@
@@ -722,10 +725,11 @@ lvs: $(RESULTS_DIR)/6_lvs.lvsdb
722725
723726$(RESULTS_DIR ) /6_lvs.lvsdb : $(GDS_FINAL_FILE ) $(KLAYOUT_LVS_FILE ) $(OBJECTS_DIR ) /6_final_concat.cdl
724727ifneq ($(KLAYOUT_LVS_FILE ) ,)
725- ($(TIME_CMD) $(SCRIPTS_DIR)/klayout.sh -b -rd in_gds="$<" \
728+ $(RUN_CMD) --log $(abspath $(LOG_DIR)/6_lvs.log) --tee -- \
729+ $(SCRIPTS_DIR)/klayout.sh -b -rd in_gds="$<" \
726730 -rd cdl_file=$(abspath $(OBJECTS_DIR)/6_final_concat.cdl) \
727731 -rd report_file=$(abspath $@) \
728- -r $(KLAYOUT_LVS_FILE)) 2>&1 | tee $(abspath $(LOG_DIR)/6_lvs.log)
732+ -r $(KLAYOUT_LVS_FILE)
729733else
730734 echo "LVS not supported on this platform" > $@
731735endif
0 commit comments