mirror of
https://github.com/Silicon1602/srdl2sv.git
synced 2024-12-22 23:08:39 +00:00
15 lines
332 B
Makefile
15 lines
332 B
Makefile
|
RTL_TARGETS = $(subst .rdl,.sv,srdl2sv_out/$(shell ls *.rdl))
|
||
|
|
||
|
.PHONY: clean
|
||
|
|
||
|
default: verilog_compile
|
||
|
|
||
|
verilog_compile: $(RTL_TARGETS)
|
||
|
verilator -cc -sv $(shell ls srdl2sv_out/*.sv)
|
||
|
|
||
|
srdl2sv_out/%.sv: %.rdl $(shell which srdl2sv)
|
||
|
srdl2sv $< --out-dir $(shell dirname $@) --stdout-logging INFO -d 31
|
||
|
|
||
|
clean:
|
||
|
rm -rf srdl2sv_out
|