mirror of
https://github.com/lowobservable/coax.git
synced 2026-02-27 09:28:56 +00:00
23 lines
590 B
Makefile
23 lines
590 B
Makefile
IVERILOG ?= iverilog
|
|
VVP ?= vvp
|
|
|
|
RTL = ../rtl
|
|
|
|
all: coax_tx_bit_timer_tb.vcd coax_tx_tb.vcd coax_rx_tb.vcd hello_world_tb.vcd
|
|
|
|
coax_tx_bit_timer_tb: coax_tx_bit_timer_tb.v $(RTL)/coax_tx_bit_timer.v
|
|
coax_tx_tb: coax_tx_tb.v $(RTL)/coax_tx_bit_timer.v $(RTL)/coax_tx.v
|
|
coax_rx_tb: coax_rx_tb.v $(RTL)/coax_tx_bit_timer.v $(RTL)/coax_tx.v $(RTL)/coax_rx_bit_timer.v $(RTL)/coax_rx.v
|
|
hello_world_tb: hello_world_tb.v $(RTL)/hello_world.v $(RTL)/coax_tx_bit_timer.v $(RTL)/coax_tx.v
|
|
|
|
clean:
|
|
rm -f *_tb *.vcd
|
|
|
|
%_tb:
|
|
$(IVERILOG) -o $@ $^
|
|
|
|
%_tb.vcd: %_tb
|
|
$(VVP) -N $< -lxt2
|
|
|
|
.PHONY: all, clean
|