From 9eb03897170474840cd978e1a98f65fbed74be38 Mon Sep 17 00:00:00 2001 From: Blaise Tine Date: Wed, 3 Jun 2020 06:40:25 -0400 Subject: [PATCH] minor update --- driver/rtlsim/Makefile | 4 ++-- driver/rtlsim/vortex.cpp | 3 +++ driver/tests/demo/kernel.elf | Bin 252496 -> 252496 bytes hw/opae/vortex_afu.sv | 2 +- hw/rtl/libs/VX_generic_queue.v | 2 +- 5 files changed, 7 insertions(+), 4 deletions(-) diff --git a/driver/rtlsim/Makefile b/driver/rtlsim/Makefile index ecd98d89..3b2295fc 100644 --- a/driver/rtlsim/Makefile +++ b/driver/rtlsim/Makefile @@ -1,7 +1,7 @@ #CFLAGS += -std=c++11 -O2 -DNDEBUG -Wall -Wextra -Wfatal-errors CFLAGS += -std=c++11 -g -O0 -Wall -Wextra -Wfatal-errors -CFLAGS += -I../../include -I../../../hw/simulate -I../../../runtime +CFLAGS += -I../../include -I../../../hw/simulate -I../../../hw # control RTL debug print states DBG_PRINT_FLAGS = -DDBG_PRINT_CORE_ICACHE \ @@ -19,7 +19,7 @@ DBG_PRINT_FLAGS = -DDBG_PRINT_CORE_ICACHE \ MULTICORE += -DNUM_CLUSTERS=1 -DNUM_CORES=2 #DEBUG = 1 -AFU=1 +#AFU=1 CFLAGS += -fPIC diff --git a/driver/rtlsim/vortex.cpp b/driver/rtlsim/vortex.cpp index f751d4c2..95314f62 100644 --- a/driver/rtlsim/vortex.cpp +++ b/driver/rtlsim/vortex.cpp @@ -7,6 +7,7 @@ #include #include +#include #include /////////////////////////////////////////////////////////////////////////////// @@ -59,6 +60,7 @@ class vx_device { public: vx_device() { mem_allocation_ = vx_dev_caps(VX_CAPS_ALLOC_BASE_ADDR); + simulator_.attach_ram(&ram_); } ~vx_device() { @@ -144,6 +146,7 @@ public: private: size_t mem_allocation_; + RAM ram_; Simulator simulator_; std::future future_; }; diff --git a/driver/tests/demo/kernel.elf b/driver/tests/demo/kernel.elf index 1cc2eeccde18313d3d5d1762eb033f23a322ea47..f996721bf560bc118887281a0d89ec9e826e8696 100755 GIT binary patch delta 28 kcmcbxh5y19{)QID7N#xCQ%