Skip to content

Commit

Permalink
Changed rggen generation to verilog due to verilator 4.106 support
Browse files Browse the repository at this point in the history
Signed-off-by: Anderson Ignacio <[email protected]>
  • Loading branch information
aignacio committed Jun 6, 2022
1 parent ef09d9b commit 17f7b26
Show file tree
Hide file tree
Showing 8 changed files with 780 additions and 17 deletions.
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
[submodule "rggen-sv-rtl"]
path = rggen-sv-rtl
url = https://github.com/rggen/rggen-sv-rtl
[submodule "rggen-verilog-rtl"]
path = rggen-verilog-rtl
url = https://github.com/rggen/rggen-verilog-rtl.git
1 change: 1 addition & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
RUN apt-get update && apt-get upgrade -y
RUN apt-get install git file make ruby -y
RUN gem install rggen
RUN gem install rggen-verilog

WORKDIR /
RUN git clone https://github.com/rggen/rggen-sv-rtl.git
Expand Down
15 changes: 4 additions & 11 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,13 @@ RUN_CMD := docker run --rm --name axi_dma \
-v $(abspath .):/axi_dma -w \
/axi_dma aignacio/axi_dma

###########################################################
#SIM ?= verilator
#TOPLEVEL_LANG ?= verilog
#VERILOG_SOURCES += dff.sv
#TOPLEVEL = dff
#MODULE = run_test
#include $(shell cocotb-config --makefiles)/Makefile.sim
###########################################################
.PHONY: run_test csr_dma.sv clean

run_test:
run_test: csr_out
$(RUN_CMD) tox

gen_csr:
$(RUN_CMD) rggen -c config.yml -o csr_out csr_dma.xlsx
csr_out:
$(RUN_CMD) rggen --plugin rggen-verilog -c config.yml -o csr_out csr_dma.xlsx

clean:
@rm -rf run_dir
Loading

0 comments on commit 17f7b26

Please sign in to comment.