upsilon/gateware/rtl/common.makefile

8 lines
298 B
Plaintext
Raw Normal View History

# Generate verilog from m4 file
2023-05-10 14:35:57 -04:00
#m4 -P --synclines $< | awk -v filename=$< '/^#line/ {printf("`line %d %s 0\n", $$2, filename); next} {print}' > $@
# NOTE: f4pga yosys does not support `line directives. Use above for debug.
%.v: %.v.m4
2023-03-15 17:08:55 -04:00
m4 -P $< > $@
%_preprocessed.v: %.v
verilator -P -E $< > $@