Update Makefiles in examples directory to also invoke a Verilator compile

This commit is contained in:
Dennis Potter 2021-11-04 23:38:50 -07:00
parent ba45cfc64a
commit fc26817c33
Signed by: Dennis
GPG Key ID: 186A8AD440942BAF
5 changed files with 20 additions and 5 deletions

View File

@ -2,7 +2,10 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
.PHONY: clean .PHONY: clean
default: $(RTL_TARGETS) default: verilog_compile
verilog_compile: $(RTL_TARGETS)
verilator -cc -sv $(shell ls srdl2sv_out/*.sv)
srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv)
srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO

View File

@ -2,7 +2,10 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
.PHONY: clean .PHONY: clean
default: $(RTL_TARGETS) default: verilog_compile
verilog_compile: $(RTL_TARGETS)
verilator -cc -sv $(shell ls srdl2sv_out/*.sv)
srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv)
srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO

View File

@ -2,7 +2,10 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
.PHONY: clean .PHONY: clean
default: $(RTL_TARGETS) default: verilog_compile
verilog_compile: $(RTL_TARGETS)
verilator -cc -sv $(shell ls srdl2sv_out/*.sv)
srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv)
srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO

View File

@ -2,7 +2,10 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
.PHONY: clean .PHONY: clean
default: $(RTL_TARGETS) default: verilog_compile
verilog_compile: $(RTL_TARGETS)
verilator -cc -sv $(shell ls srdl2sv_out/*.sv)
srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv)
srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO

View File

@ -2,7 +2,10 @@ RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
.PHONY: clean .PHONY: clean
default: $(RTL_TARGETS) default: verilog_compile
verilog_compile: $(RTL_TARGETS)
verilator -cc -sv $(shell ls srdl2sv_out/*.sv)
srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv) srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv)
srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO