card=-c0 all: configuration init: configuration @pc2tp $(card) -r0 -i src/work/sc_send.dat -o log/$@.out > log/$@.log trigger: @pc2tp $(card) -r0 -i src/stimuli/$@.dat -o log/$@.out > log/$@.log probe: @pc2tp $(card) -r0 -i src/stimuli/$@.dat -o log/$@.out > log/$@.log @tail -9 log/$@.out wait: @echo "testing: Filter/Gain/Multiplier [5.0s]" @usleep 5000000 test: init wait probe data: @pc2tp $(card) -r0 -slv 1 -gsa 0xC000 -gea 0xC2DE -gb log/$@.out > log/$@.log @data2ADC -i log/$@.out -o $@/$@.eb -z $@/$@.ind -f $@/$@.fit -c $@/$@.cpu -t $@/$@.tl -p $@/$@.tp >> log/$@.log event: trigger data probe @head -32 data/data.eb > $@/$@.out @tail -32 data/data.eb > $@/$@.in @cp data/data.tp $@/$@.tp @cp data/data.tl $@/$@.tl configuration: @cd src; make @cd src/stimuli; make probe.dat clean : rm -f $(wildcard work/*) rm -f $(wildcard src/stimuli/*.dat) rm -f $(wildcard log/*) .PHONY: init trigger probe wait test data event configuration clean