From 64eeb07c6bbf15e8054d62730a3b277c952e96cf Mon Sep 17 00:00:00 2001 From: James Stine Date: Thu, 16 Feb 2023 15:01:52 -0600 Subject: [PATCH 1/3] Get rid of extra CR/LF in .synopsys_dc.setup file --- synthDC/.synopsys_dc.setup | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/synthDC/.synopsys_dc.setup b/synthDC/.synopsys_dc.setup index 6942e58e6..ac93f6592 100755 --- a/synthDC/.synopsys_dc.setup +++ b/synthDC/.synopsys_dc.setup @@ -21,8 +21,7 @@ if {$tech == "sky130"} { set pdk /proj/models/tsmc28/libraries/28nmtsmc/tcbn28hpcplusbwp30p140_190a/ set s10lib $pdk/TSMCHOME/digital/Front_End/timing_power_noise/NLDM/tcbn28hpcplusbwp30p140_180a lappend search_path $s10lib -} -elseif {$tech == "tsmc28psyn"} { +} elseif {$tech == "tsmc28psyn"} { set TLU /home/jstine/TLU+ set pdk /proj/models/tsmc28/libraries/28nmtsmc/tcbn28hpcplusbwp30p140_190a/ set s10lib $pdk/TSMCHOME/digital/Front_End/timing_power_noise/NLDM/tcbn28hpcplusbwp30p140_180a From 8e9cf8f3e4d755a7468ce6dc97918473ed4a7e51 Mon Sep 17 00:00:00 2001 From: James Stine Date: Thu, 16 Feb 2023 15:16:32 -0600 Subject: [PATCH 2/3] Update bug in Makefile --- synthDC/Makefile | 23 ++++++++++++++++++----- 1 file changed, 18 insertions(+), 5 deletions(-) diff --git a/synthDC/Makefile b/synthDC/Makefile index d7fb2b914..9dd2b0aba 100755 --- a/synthDC/Makefile +++ b/synthDC/Makefile @@ -21,6 +21,7 @@ export MAXCORES ?= 1 export MAXOPT ?= 0 export DRIVE ?= FLOP export USESRAM ?= 1 +export USETOPO ?= 0 time := $(shell date +%F-%H-%M) hash := $(shell git rev-parse --short HEAD) @@ -30,8 +31,6 @@ export SAIFPOWER ?= 0 OLDCONFIGDIR ?= ${WALLY}/config export CONFIGDIR ?= $(OUTPUTDIR)/config - - default: @echo " Basic synthesis procedure for Wally:" @echo " Invoke with make synth" @@ -51,6 +50,18 @@ DIRS = $(DIRS32) $(DIRS64) configs: $(CONFIG) $(CONFIG): +ifeq ($(USETOPO), 0)) +ifeq ($(TECH), tsmc28psyn)) + @echo "Bad configuration: you cannot use physical synthesis without tsmc28psyn and usetopo (i.e., -topo)" + exit 1 +endif +endif +ifeq ($(USETOPO), 1)) +ifneq ($(TECH), tsmc28psyn)) + @echo "Bad configuration: you cannot use usetopo (i.e., -topo) without tsmc28psyn" + exit 1 +endif +endif @echo $(CONFIG) cp -r $(OLDCONFIGDIR)/shared/*.vh $(CONFIGDIR) cp -r $(OLDCONFIGDIR)/$(CONFIG)/* $(CONFIGDIR) @@ -116,15 +127,17 @@ mkdirecs: @mkdir -p $(OUTPUTDIR)/mapped @mkdir -p $(OUTPUTDIR)/unmapped - synth: mkdirecs configs rundc clean rundc: +ifeq ($(USETOPO), 0) dc_shell-xg-t -64bit -f scripts/$(NAME).tcl | tee $(OUTPUTDIR)/$(NAME).out +else -rundctopo: dc_shell-xg-t -64bit -topographical_mode -f scripts/$(NAME).tcl | tee $(OUTPUTDIR)/$(NAME).out - +endif + + clean: rm -rf $(OUTPUTDIR)/hdl rm -rf $(OUTPUTDIR)/WORK From 3347aa7fe8fa3ee06d73451f73b808ee8bc82afd Mon Sep 17 00:00:00 2001 From: James Stine Date: Thu, 16 Feb 2023 15:50:31 -0600 Subject: [PATCH 3/3] fix typo - remove extra p at end of script --- synthDC/.synopsys_dc.setup | 1 - synthDC/wallySynth.py | 2 +- 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/synthDC/.synopsys_dc.setup b/synthDC/.synopsys_dc.setup index ac93f6592..ccc0c67c8 100755 --- a/synthDC/.synopsys_dc.setup +++ b/synthDC/.synopsys_dc.setup @@ -29,7 +29,6 @@ if {$tech == "sky130"} { set TLUPLUS true set mw_logic1_net VDD set mw_logic0_net VSS - set TLU_PDK /home/jstine/TLU+/ set CAPTABLE $TLU/1p8m/ set MW_REFERENCE_LIBRARY /home/jstine/MW set MW_TECH_FILE tcbn28hpcplusbwp30p140 diff --git a/synthDC/wallySynth.py b/synthDC/wallySynth.py index 876a482d9..d89964c10 100755 --- a/synthDC/wallySynth.py +++ b/synthDC/wallySynth.py @@ -40,7 +40,7 @@ if __name__ == '__main__': tech = args.tech if args.tech else 'sky90' maxopt = int(args.maxopt) usesram = int(args.usesram) - usetopo = int(args.usetopop) + usetopo = int(args.usetopo) mod = 'orig' if args.freqsweep: