Skip to content

Commit

Permalink
Merge pull request #604 from tcal-x/simrun
Browse files Browse the repository at this point in the history
Add 'make PLATFORM=sim run' for gathering profiling data.
  • Loading branch information
tcal-x committed Jun 17, 2022
2 parents efd504f + 71837b7 commit 574666a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
2 changes: 1 addition & 1 deletion common/interact.expect
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ foreach c $choices {
expect ">"
send_user "Sending $c...\n"
send $c
sleep 1
# sleep 1

}

Expand Down
6 changes: 5 additions & 1 deletion proj/proj.mk
Original file line number Diff line number Diff line change
Expand Up @@ -366,11 +366,15 @@ else
load: $(CFU_VERILOG) $(SOFTWARE_BIN)
$(SIM_MK) run

run: $(SOFTWARE_BIN)
@echo Running automated test in Verilator simulation
$(BUILD_DIR)/interact.expect s $(RUN_MENU_ITEMS) |& tee $(SOFTWARE_LOG)

unit: $(SOFTWARE_BIN)
@echo Running unit test in Verilator simulation
$(BUILD_DIR)/interact.expect s $(TEST_MENU_ITEMS) |& tee $(UNITTEST_LOG)

prog bitstream run:
prog bitstream:
@echo Target not supported when PLATFORM=sim

endif
Expand Down

0 comments on commit 574666a

Please sign in to comment.