12345678910111213141516171819202122232425262728293031323334 |
- .PHONY: all clean compile sim sim_gui
- all: compile
- clean:
- rm -fr work
- rm -f transcript
- rm -f *.wlf
- rm -f modelsim.ini
- rm -f testgen.o
- rm -f testgen
- compile:
- @vsim -c -do "do scripts/compile.do;quit -f"
- sim:
- @vsim -c -t ps work.tb -quiet -do "run -all;quit -f" | grep -E "\*\*|Errors"
- sim_gui:
- @vsim -t ps work.tb -quiet -do "do scripts/wave.do;run -all;wave zoom full"
- testgen: testgen.c
- gcc -Wall -Wextra -std=c99 -pedantic -g -c testgen.c
- gcc -Wall -Wextra -std=c99 -pedantic -g testgen.o -o testgen
- ./testgen
- cp testdata/default_input.txt testdata/.input.txt
- (echo && cat testdata/input.txt) >> testdata/.input.txt
- mv testdata/.input.txt testdata/input.txt
- cp testdata/default_output.txt testdata/.output.txt
- (echo && cat testdata/output.txt) >> testdata/.output.txt
- mv testdata/.output.txt testdata/output.txt
- .PHONY: testgen
|