From c5090cd8673977c53041d2c0e073554aec9ca156 Mon Sep 17 00:00:00 2001 From: David Harris Date: Sun, 19 Feb 2023 20:05:39 -0800 Subject: [PATCH] Added noAtomic feature to swweep --- synthDC/Makefile | 5 +++++ synthDC/wallySynth.py | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/synthDC/Makefile b/synthDC/Makefile index 034b2f86..5ea9677c 100755 --- a/synthDC/Makefile +++ b/synthDC/Makefile @@ -89,6 +89,7 @@ endif # when mod = noPriv, the privileged unit and PMP are disabled # when mod = noFPU, the FPU, privileged unit, and PMP are disabled # when mod = noMulDiv, the MDU, FPU, privileged unit, and PMP are disabled. +# when mod = noAtomic, the Atomic, MDU, FPU, privileged unit, and PMP are disabled ifneq ($(MOD), orig) # PMP 0 @@ -103,6 +104,10 @@ ifneq ($(MOD), noPriv) ifneq ($(MOD), noFPU) # no muldiv sed -i 's/1 *<< *12/0 << 12/' $(CONFIGDIR)/wally-config.vh +ifneq ($(MOD), noMulDiv) + # no atomic + sed -i 's/1 *<< *0/0 << 0/' $(CONFIGDIR)/wally-config.vh +endif endif endif endif diff --git a/synthDC/wallySynth.py b/synthDC/wallySynth.py index 831ffca2..139bcdd6 100755 --- a/synthDC/wallySynth.py +++ b/synthDC/wallySynth.py @@ -56,7 +56,7 @@ if __name__ == '__main__': defaultfreq = 500 if tech == 'sky90' else 1500 freq = args.targetfreq if args.targetfreq else defaultfreq config = args.version if args.version else 'rv64gc' - for mod in ['noFPU', 'noMulDiv', 'noPriv', 'PMP0']: + for mod in ['noAtomic', 'noFPU', 'noMulDiv', 'noPriv', 'PMP0']: runSynth(config, mod, tech, freq, maxopt, usesram) else: defaultfreq = 500 if tech == 'sky90' else 1500