Skip to content

Commit 7b4d7a6

Browse files
johnymil-chipflowrobtaylor
authored andcommitted
Fix of generation verilog modules
1 parent 84f4db7 commit 7b4d7a6

File tree

4 files changed

+41
-10
lines changed

4 files changed

+41
-10
lines changed

Makefile

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,9 +32,13 @@ sim-run: sim-build software-build
3232
sim-check: sim-run
3333
pdm run python -m my_design.tools.json_compare my_design/tests/events_reference.json build/sim/events.json
3434

35+
.PHONY: pyuvm-gen-verilog
36+
pyuvm-gen-verilog: init
37+
pdm run python -m my_design.ips.spi
38+
3539
.PHONY: verif-run-pyuvm
36-
verif-run-pyuvm: init
37-
YOSYS=yowasp-yosys pdm run chipflow export --dir pyuvm_verif/verilog
40+
verif-run-pyuvm: pyuvm-gen-verilog
41+
AMARANTH_USE_YOSYS=builtin pdm run chipflow export --dir pyuvm_verif/verilog
3842
pdm run make -C pyuvm_verif -j4 ARG=$(ARG)
3943

4044
.PHONY: silicon-prepare # Build RTLIL for the design

pdm.lock

Lines changed: 32 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

pyproject.toml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,9 @@ license = {file = "LICENSE.md"}
1313

1414
requires-python = "~=3.9"
1515
dependencies = [
16-
"chipflow-lib @ git+https://github.com/ChipFlow/chipflow-lib.git@main",
16+
"amaranth[builtin-yosys] @ git+https://github.com/amaranth-lang/amaranth",
1717
"amaranth-cv32e40p @ git+https://github.com/ChipFlow/amaranth-cv32e40p@main",
18+
"chipflow-lib @ git+https://github.com/ChipFlow/chipflow-lib.git@main",
1819
"pyuvm~=2.9.1",
1920
"ziglang==0.11.0",
2021
]

pyuvm_verif/Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
CWD=$(shell pwd)
22
SIM=verilator
3-
VERILOG_SOURCES=$(wildcard $(CWD)/*/*.v)
3+
VERILOG_SOURCES=$(wildcard $(CWD)/verilog/*.v) $(wildcard $(CWD)/../build/export/ips/*.v)
44
.PHONY: print_vars
55

66
ifeq ($(ARG),SPI)

0 commit comments

Comments
 (0)