From 6523d430f0a683460b2195575c3990c92fed48ac Mon Sep 17 00:00:00 2001 From: Aba Date: Tue, 23 Jul 2024 01:51:29 -0700 Subject: [PATCH] Tested multiple runs --- deepsocflow/c/deepsocflow_xilinx.h | 7 ++++--- deepsocflow/c/xilinx_example.c | 2 +- deepsocflow/py/xmodel.py | 4 ++-- deepsocflow/rtl/dma_controller.sv | 20 ++++++++++---------- 4 files changed, 17 insertions(+), 16 deletions(-) diff --git a/deepsocflow/c/deepsocflow_xilinx.h b/deepsocflow/c/deepsocflow_xilinx.h index 53dcde3..9681f07 100644 --- a/deepsocflow/c/deepsocflow_xilinx.h +++ b/deepsocflow/c/deepsocflow_xilinx.h @@ -39,11 +39,12 @@ static inline void hardware_cleanup(){ cleanup_platform(); } -static inline void model_run_timed(){ +static inline void model_run_timed(int n){ XTime time_start, time_end; XTime_GetTime(&time_start); - model_run(); + for (int i=0; i