mirror of
https://github.com/lowobservable/coax.git
synced 2026-01-28 21:11:51 +00:00
Add interface2
This commit is contained in:
27
interface2/fpga/tests/Makefile
Normal file
27
interface2/fpga/tests/Makefile
Normal file
@@ -0,0 +1,27 @@
|
||||
IVERILOG ?= iverilog
|
||||
|
||||
RTL = ../rtl
|
||||
TESTS = $(patsubst %.v,%,$(wildcard *_tb.v))
|
||||
|
||||
all: test
|
||||
|
||||
coax_buffer_tb: coax_buffer_tb.v $(RTL)/coax_buffer.v $(RTL)/third_party/*.v
|
||||
coax_buffered_rx_tb: coax_buffered_rx_tb.v $(RTL)/coax_buffered_rx.v $(RTL)/coax_rx.v $(RTL)/coax_rx_bit_timer.v $(RTL)/coax_buffer.v $(RTL)/third_party/*.v
|
||||
coax_buffered_tx_tb: coax_buffered_tx_tb.v $(RTL)/coax_buffered_tx.v $(RTL)/coax_tx.v $(RTL)/coax_tx_bit_timer.v $(RTL)/coax_buffer.v $(RTL)/third_party/*.v
|
||||
coax_rx_bit_timer_tb: coax_rx_bit_timer_tb.v $(RTL)/coax_rx_bit_timer.v
|
||||
coax_rx_tb: coax_rx_tb.v $(RTL)/coax_rx.v $(RTL)/coax_rx_bit_timer.v
|
||||
coax_tx_bit_timer_tb: coax_tx_bit_timer_tb.v $(RTL)/coax_tx_bit_timer.v
|
||||
coax_tx_distorter_tb: coax_tx_distorter_tb.v $(RTL)/coax_tx_distorter.v
|
||||
coax_tx_tb: coax_tx_tb.v $(RTL)/coax_tx.v $(RTL)/coax_tx_bit_timer.v
|
||||
control_tb: control_tb.v $(RTL)/control.v $(RTL)/coax_buffered_tx.v $(RTL)/coax_tx.v $(RTL)/coax_tx_bit_timer.v $(RTL)/coax_buffer.v $(RTL)/third_party/*.v
|
||||
|
||||
test: $(TESTS)
|
||||
$(foreach tb,$(TESTS),./run_test.sh $(tb);)
|
||||
|
||||
clean:
|
||||
rm -f *_tb *.vcd
|
||||
|
||||
%_tb:
|
||||
$(IVERILOG) -o $@ $^
|
||||
|
||||
.PHONY: all, clean
|
||||
Reference in New Issue
Block a user