-
Notifications
You must be signed in to change notification settings - Fork 669
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
common.mk: Yosys compatible output can be generated by firtool without invoking SFC before MFC #1661
Conversation
@nayiri-k is looking at this and testing it. |
common.mk
Outdated
MFC_BASE_LOWERING_OPTIONS += , | ||
endif | ||
MFC_BASE_LOWERING_OPTIONS += disallowPackedArrays | ||
endif |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
It looks like this flag was already added before:
Line 218 in bfa822a
ifeq (,$(ENABLE_YOSYS_FLOW)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Additionally,
Line 218 in bfa822a
ifeq (,$(ENABLE_YOSYS_FLOW)) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
diff --git a/common.mk b/common.mk
index f6bc19c1..50a6b531 100644
--- a/common.mk
+++ b/common.mk
@@ -28,7 +28,7 @@ EXTRA_SIM_CXXFLAGS ?=
EXTRA_SIM_LDFLAGS ?=
EXTRA_SIM_SOURCES ?=
EXTRA_SIM_REQS ?=
-ENABLE_CUSTOM_FIRRTL_PASS += $(ENABLE_YOSYS_FLOW)
+# ENABLE_CUSTOM_FIRRTL_PASS += $(ENABLE_YOSYS_FLOW)
ifneq ($(ASPECTS), )
comma = ,
@@ -191,6 +191,12 @@ SFC_MFC_TARGETS = \
SFC_REPL_SEQ_MEM = --infer-rw --repl-seq-mem -c:$(MODEL):-o:$(SFC_SMEMS_CONF)
MFC_BASE_LOWERING_OPTIONS ?= emittedLineLength=2048,noAlwaysComb,disallowLocalVariables,verifLabels,locationInfoStyle=wrapInAtSquareBracket
+ifneq ($(ENABLE_YOSYS_FLOW),)
+ ifneq ($(MFC_BASE_LOWERING_OPTIONS),)
+ MFC_BASE_LOWERING_OPTIONS := $(MFC_BASE_LOWERING_OPTIONS),
+ endif
+ MFC_BASE_LOWERING_OPTIONS := $(MFC_BASE_LOWERING_OPTIONS)disallowPackedArrays
+endif
# DOC include start: FirrtlCompiler
# There are two possible cases for this step. In the first case, SFC
@@ -215,11 +221,12 @@ endif
$(MFC_LOWERING_OPTIONS):
mkdir -p $(dir $@)
-ifeq (,$(ENABLE_YOSYS_FLOW))
echo "$(MFC_BASE_LOWERING_OPTIONS)" > $@
-else
- echo "$(MFC_BASE_LOWERING_OPTIONS),disallowPackedArrays" > $@
-endif
+# ifeq (,$(ENABLE_YOSYS_FLOW))
+# echo "$(MFC_BASE_LOWERING_OPTIONS)" > $@
+# else
+# echo "$(MFC_BASE_LOWERING_OPTIONS),disallowPackedArrays" > $@
+# endif
$(FINAL_ANNO_FILE): $(EXTRA_ANNO_FILE) $(SFC_EXTRA_ANNO_FILE) $(SFC_LEVEL)
if [ $(shell cat $(SFC_LEVEL)) = low ]; then jq -s '[.[][]]' $(EXTRA_ANNO_FILE) $(SFC_EXTRA_ANNO_FILE) > $@; fi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
In the vlsi
directory, I ran make buildfile tutorial=sky130-openroad
which compiles a TinyRocketConfig, which gave the error: unsupported packed array expression
. It seems that the disallowPackedArrays
doesn't work in all cases.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@nayiri-k Try with the latest firtool(not released yet, will be in firtool >1.59.0), should be fixed in llvm/circt#6402
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Once FIRTOOL > 1.59.0 is released I'll update the feedstock and we can run CI on this to see what happens (probably after the holiday break I assume).
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@abejgonzalez Good news! 1.60.0 is out :-) https://github.com/llvm/circt/releases/tag/firtool-1.60.0
…t invoking SFC before MFC Signed-off-by: Øyvind Harboe <[email protected]>
256258c
to
9da1236
Compare
@Mergifyio rebase main |
❌ Pull request can't be updated with latest base branch changesMergify needs the author permission to update the base branch of the pull request. |
@Mergifyio copy main |
✅ Pull request copies have been created
|
#1695 updates this |
changelog:fixed
Related PRs / Issues:
Type of change:
Impact:
Contributor Checklist:
main
as the base branch?changelog:<topic>
label?changelog:
label?.conda-lock.yml
file if you updated the conda requirements file?Please Backport
?