Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix kill console when FPGA run is interrupted; move define in CycloneV Makefile #373

Merged
merged 1 commit into from
Mar 24, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 7 additions & 3 deletions hardware/fpga/fpga.mk
Original file line number Diff line number Diff line change
Expand Up @@ -76,9 +76,13 @@ queue-out:
sed '/$(JOB)/d' $(QUEUE_FILE) > queue; cat queue > $(QUEUE_FILE); rm queue

queue-out-remote:
ssh $(BOARD_USER)@$(BOARD_SERVER) \
"make -C $(REMOTE_ROOT_DIR)/hardware/fpga/$(TOOL)/$(BOARD) queue-out;\
kill -9 $$(ps aux | grep $(BOARD_USER) | grep console | grep python3 | grep -v grep | awk '{print $$2}')"
ifeq ($(BOARD_SERVER),)
make queue-out
@if [ "`ps aux | grep $(USER) | grep console | grep python3 | grep -v grep`" ]; then \
kill -9 $$(ps aux | grep $(USER) | grep console | grep python3 | grep -v grep | awk '{print $$2}'); fi
else
ssh $(BOARD_USER)@$(BOARD_SERVER) 'make -C $(REMOTE_ROOT_DIR)/hardware/fpga/$(TOOL)/$(BOARD) $@'
endif

#
# Testing
Expand Down
3 changes: 2 additions & 1 deletion hardware/fpga/quartus/CYCLONEV-GT-DK/Makefile
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
ROOT_DIR:=../../../..
DEFINE+=$(defmacro)IS_CYCLONEV=1

BOARD_SERVER=$(CYC5_SERVER)
BOARD_USER=$(CYC5_USER)

DEVICE=5CGTFD9E5F35C7

#DEFINES
DEFINE+=$(defmacro)IS_CYCLONEV

#specify any conditions that prevent running this FPGA
NORUN = $(USE_DDR)
Expand Down
2 changes: 1 addition & 1 deletion hardware/simulation/verilator/system_tb.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
// other macros
#define FREQ 100000000
#define BAUD 5000000
#define CLK_PERIOD 10000 // 20 ns
#define CLK_PERIOD 10000 // 10 ns

vluint64_t main_time = 0;
VerilatedVcdC* tfp = NULL;
Expand Down