From 2bfc6e1347d656eeb4e7d8a28740a759e6b14433 Mon Sep 17 00:00:00 2001 From: Harrison Liew Date: Wed, 8 Feb 2023 19:00:26 -0800 Subject: [PATCH] [skip ci] abandon sv2v, Genus happy with patched firtool --- common.mk | 2 +- conda-reqs/chipyard.yaml | 3 +-- vlsi/Makefile | 11 +---------- vlsi/tutorial.mk | 2 -- 4 files changed, 3 insertions(+), 15 deletions(-) diff --git a/common.mk b/common.mk index 322e2724..08801dff 100644 --- a/common.mk +++ b/common.mk @@ -194,7 +194,7 @@ endif --disable-annotation-classless \ --disable-annotation-unknown \ --mlir-timing \ - --lowering-options=emittedLineLength=2048,noAlwaysComb,disallowLocalVariables,verifLabels,locationInfoStyle=wrapInAtSquareBracket \ + --lowering-options=emittedLineLength=2048,noAlwaysComb,disallowPackedArrays,disallowLocalVariables,verifLabels,locationInfoStyle=wrapInAtSquareBracket \ --repl-seq-mem \ --repl-seq-mem-file=$(MFC_SMEMS_CONF) \ --repl-seq-mem-circuit=$(MODEL) \ diff --git a/conda-reqs/chipyard.yaml b/conda-reqs/chipyard.yaml index 2c529305..32abb674 100644 --- a/conda-reqs/chipyard.yaml +++ b/conda-reqs/chipyard.yaml @@ -123,14 +123,13 @@ dependencies: - botocore-stubs==1.24.7 - mypy-boto3-s3==1.21.0 - sty==1.0.0 - - sv2v - pip - pip: - fab-classic==1.19.1 - mypy-boto3-ec2==1.21.9 - sure==2.0.0 - pylddwrap==1.2.1 - - hammer-vlsi + - hammer-vlsi[asap7] # doc requirements - sphinx diff --git a/vlsi/Makefile b/vlsi/Makefile index 5ff80185..d87e938b 100644 --- a/vlsi/Makefile +++ b/vlsi/Makefile @@ -80,17 +80,8 @@ $(VLSI_RTL): $(RTL_DEPS) ifneq ($(CUSTOM_VLOG), ) > $(VLSI_RTL) $(foreach file,$^,echo $(file) >> $(VLSI_RTL)) -else ifneq ($(CONVERT_SV2V), ) - # Convert System Verilog to Verilog, uniquify, remove incompatible tasks - sv2v -w=adjacent --oversized-numbers \ - -D=ASSERT_VERBOSE_COND=0 -D=STOP_COND=0 -D=PRINTF_COND=0 \ - $(filter-out %.v,$(shell cat $(TOP_MODS_FILELIST) $(TOP_BB_MODS_FILELIST))) - cat $(TOP_MODS_FILELIST) $(TOP_BB_MODS_FILELIST) | sort -u | sed 's/.sv/.v/g' > $(VLSI_RTL) - cat $(VLSI_RTL) | xargs sed -i 's/\$$fwrite.*/;/g' - echo $(TOP_SMEMS_FILE) >> $(VLSI_RTL) - echo $(build_dir)/EICG_wrapper.v >> $(VLSI_RTL) else - cat $(TOP_MODS_FILELIST) $(TOP_BB_MODS_FILELIST) | sort -u | > $(VLSI_RTL) + cat $(TOP_MODS_FILELIST) $(TOP_BB_MODS_FILELIST) | sort -u > $(VLSI_RTL) echo $(TOP_SMEMS_FILE) >> $(VLSI_RTL) echo $(build_dir)/EICG_wrapper.v >> $(VLSI_RTL) endif diff --git a/vlsi/tutorial.mk b/vlsi/tutorial.mk index cc3f9d7e..25f36e00 100644 --- a/vlsi/tutorial.mk +++ b/vlsi/tutorial.mk @@ -35,6 +35,4 @@ ifeq ($(tutorial),sky130-openroad) VLSI_OBJ_DIR ?= build-sky130-openroad # This prevents multidimensional arrays (unsupported by Yosys) at the expense of elaboration time. #ENABLE_CUSTOM_FIRRTL_PASS = 1 - # This runs sv2v for Yosys compatibility - CONVERT_SV2V = 1 endif