-
Notifications
You must be signed in to change notification settings - Fork 17
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
adding simple test + full Dockerfile
- Loading branch information
Salvatore Girolamo
committed
Apr 30, 2021
1 parent
71648c3
commit 5bfe6bd
Showing
6 changed files
with
51 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,21 +1,25 @@ | ||
all:: | ||
make deploy | ||
make driver | ||
make driver_debug | ||
|
||
../generic_driver/gdriver_args.c: ../generic_driver/gdriver_args.ggo | ||
gengetopt -i ../generic_driver/gdriver_args.ggo -F gdriver_args --output-dir=../generic_driver/ | ||
|
||
driver: driver/driver.c ../generic_driver/gdriver_args.c | ||
driver: driver/driver.c ../generic_driver/gdriver_args.c ../generic_driver/gdriver.c | ||
gcc -std=c99 -I../generic_driver/ -I$(PSPIN_RT)/runtime/include/ -I$(PSPIN_HW)/verilator_model/include driver/driver.c ../generic_driver/gdriver.c ../generic_driver/gdriver_args.c -L$(PSPIN_HW)/verilator_model/lib/ -lpspin -o sim_${SPIN_APP_NAME} | ||
|
||
driver_debug: driver/driver.c ../generic_driver/gdriver_args.c | ||
gcc -g -std=c99 -I../generic_driver/ -I$(PSPIN_RT)/runtime/include/ -I$(PSPIN_HW)/verilator_model/include driver/driver.c ../generic_driver/gdriver.c ../generic_driver/gdriver_args.c -L$(PSPIN_HW)/verilator_model/lib/ -lpspin_debug -o sim_${SPIN_APP_NAME}_debug | ||
|
||
|
||
all:: | ||
make deploy | ||
make driver | ||
make driver_debug | ||
|
||
clean:: | ||
-@rm *.log 2>/dev/null || true | ||
-@rm -r build/ 2>/dev/null || true | ||
-@rm -r waves.vcd 2>/dev/null || true | ||
-@rm sim_${SPIN_APP_NAME} 2>/dev/null || true | ||
-@rm sim_${SPIN_APP_NAME}_debug 2>/dev/null || true | ||
-@rm sim_${SPIN_APP_NAME}_debug 2>/dev/null || true | ||
|
||
run:: | ||
./sim_${SPIN_APP_NAME} | ||
|
||
.PHONY: driver driver_debug clean run |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters