From 8066c1092eb68698b2430a3bfccf5e86114fd916 Mon Sep 17 00:00:00 2001 From: Daniel Lublin Date: Wed, 21 Sep 2022 10:12:55 +0200 Subject: [PATCH 1/2] Make fmt output changes that will be made --- hw/application_fpga/fw/mta1_mkdf/Makefile | 4 +++- hw/application_fpga/fw/testfw/Makefile | 4 +++- 2 files changed, 6 insertions(+), 2 deletions(-) diff --git a/hw/application_fpga/fw/mta1_mkdf/Makefile b/hw/application_fpga/fw/mta1_mkdf/Makefile index 29423e4..f07dc01 100644 --- a/hw/application_fpga/fw/mta1_mkdf/Makefile +++ b/hw/application_fpga/fw/mta1_mkdf/Makefile @@ -1,4 +1,6 @@ +FMTFILES=main.c lib.h lib.c proto.h proto.c types.h .PHONY: fmt fmt: # Uses ../.clang-format - clang-format --verbose -i main.c lib.h lib.c proto.h proto.c types.h + clang-format --dry-run --ferror-limit=0 $(FMTFILES) + clang-format --verbose -i $(FMTFILES) diff --git a/hw/application_fpga/fw/testfw/Makefile b/hw/application_fpga/fw/testfw/Makefile index 079f82e..df58812 100644 --- a/hw/application_fpga/fw/testfw/Makefile +++ b/hw/application_fpga/fw/testfw/Makefile @@ -1,4 +1,6 @@ +FMTFILES=main.c .PHONY: fmt fmt: # Uses ../.clang-format - clang-format --verbose -i main.c + clang-format --dry-run --ferror-limit=0 $(FMTFILES) + clang-format --verbose -i $(FMTFILES) From 10b7951933d4ef14735153376e7ef9b77717b840 Mon Sep 17 00:00:00 2001 From: Daniel Lublin Date: Wed, 21 Sep 2022 11:25:13 +0200 Subject: [PATCH 2/2] Let verilator print when touched by kill -USR1 --- hw/application_fpga/tb/application_fpga_verilator.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/hw/application_fpga/tb/application_fpga_verilator.cc b/hw/application_fpga/tb/application_fpga_verilator.cc index b0f917a..46c50c3 100644 --- a/hw/application_fpga/tb/application_fpga_verilator.cc +++ b/hw/application_fpga/tb/application_fpga_verilator.cc @@ -271,6 +271,7 @@ volatile int touch_cyc = 0; void sighandler(int) { + printf("touched!\n"); touch_cyc = 1000; }