Add an ICacheECC parameter to ICache formal flow

Satisfyingly the formal checks go through with no changes.
This commit is contained in:
Rupert Swarbrick 2020-06-30 10:46:03 +01:00 committed by Rupert Swarbrick
parent 49c9113d03
commit 4a20bc4e0d
2 changed files with 10 additions and 3 deletions

View file

@ -4,17 +4,22 @@
# A simple wrapper around fusesoc to make it a bit easier to run the formal flow
# Whether to use ECC (0 for disabled; 1 for enabled)
ECC := 0
core-name := lowrisc:fpv:ibex_icache_fpv
vlnv := $(subst :,_,$(core-name))
build-root := $(abspath ../../build/$(vlnv))
fusesoc-run := cd ../..; fusesoc --cores-root=. run
fusesoc-params := --ICacheECC=$(ECC)
fusesoc-run := fusesoc --cores-root=../.. run --build-root=$(build-root)
.PHONY: all prove lint
all: prove
prove:
fusesoc --cores-root=../.. run --build-root=$(build-root) $(core-name)
$(fusesoc-run) $(core-name) $(fusesoc-params)
lint:
mypy --strict sv2v_in_place.py

View file

@ -51,10 +51,12 @@ parameters:
targets:
default:
parameters:
- ICacheECC
hooks:
pre_build:
- sv2v_in_place
filesets:
- all
toplevel: tb
toplevel: ibex_icache
default_tool: symbiyosys