From 10766a1cd59b7ddb9e8a25c5d16223aba6f55346 Mon Sep 17 00:00:00 2001 From: sergeykhbr Date: Tue, 12 Dec 2023 22:45:18 +0200 Subject: [PATCH] [+] Fix in rtlgen to add skipped include statement with target_cfg.h file in systemc --- sc/prj/common/vips/uart/vip_uart_top.h | 4 ++-- sc/rtl/riscv_soc.h | 1 + sc/rtl/riverlib/core/tracer.h | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/sc/prj/common/vips/uart/vip_uart_top.h b/sc/prj/common/vips/uart/vip_uart_top.h index 9797e95c5..d26b46e15 100644 --- a/sc/prj/common/vips/uart/vip_uart_top.h +++ b/sc/prj/common/vips/uart/vip_uart_top.h @@ -76,8 +76,8 @@ SC_MODULE(vip_uart_top) { std::string outstr; std::string outstrtmp; std::string outfilename; // formatted string name with instnum - FILE *fl; - FILE *fl_tmp; + FILE* fl; + FILE* fl_tmp; vip_clk *clk0; vip_uart_receiver *rx0; diff --git a/sc/rtl/riscv_soc.h b/sc/rtl/riscv_soc.h index 2aa67d1c6..8ce8a9716 100644 --- a/sc/rtl/riscv_soc.h +++ b/sc/rtl/riscv_soc.h @@ -21,6 +21,7 @@ #include "ambalib/types_bus0.h" #include "ambalib/types_bus1.h" #include "riverlib/river_cfg.h" +#include "../prj/impl/asic/target_cfg.h" #include "ambalib/axictrl_bus0.h" #include "ambalib/axi2apb_bus1.h" #include "misclib/axi_rom.h" diff --git a/sc/rtl/riverlib/core/tracer.h b/sc/rtl/riverlib/core/tracer.h index 2606f0f6c..e6c4d247c 100644 --- a/sc/rtl/riverlib/core/tracer.h +++ b/sc/rtl/riverlib/core/tracer.h @@ -109,7 +109,7 @@ SC_MODULE(Tracer) { std::string trfilename; // formatted string name with hartid std::string outstr; std::string tracestr; - FILE *fl; + FILE* fl; };