Verilator simulation broken
Created by: wallento
Today I wanted to run the Verilator simulation, but it seems broken. I think it relates to those yml files and the fpnew package not being found:
verilator -O3 -CFLAGS "-O3 -g3 -std=gnu++11" \
-Wno-CASEINCOMPLETE -Wno-LITENDIAN -Wno-UNOPT \
-Wno-UNOPTFLAT -Wno-WIDTH -Wno-fatal --top-module top \
--Mdir obj_dir --trace -DPULP_FPGA_EMUL -cc \
+incdir+../rtl/include cluster_clock_gating.sv dp_ram.sv ram.sv top.sv ../rtl/include/apu_core_package.sv ../rtl/include/riscv_defines.sv ../rtl/include/riscv_tracer_defines.sv ../rtl/register_file_test_wrap.sv ../rtl/riscv_alu.sv ../rtl/riscv_alu_basic.sv ../rtl/riscv_alu_div.sv ../rtl/riscv_compressed_decoder.sv ../rtl/riscv_controller.sv ../rtl/riscv_cs_registers.sv ../rtl/riscv_decoder.sv ../rtl/riscv_int_controller.sv ../rtl/riscv_ex_stage.sv ../rtl/riscv_hwloop_controller.sv ../rtl/riscv_hwloop_regs.sv ../rtl/riscv_id_stage.sv ../rtl/riscv_if_stage.sv ../rtl/riscv_load_store_unit.sv ../rtl/riscv_mult.sv ../rtl/riscv_prefetch_buffer.sv ../rtl/riscv_prefetch_L0_buffer.sv ../rtl/riscv_register_file.sv ../rtl/riscv_core.sv ../rtl/riscv_apu_disp.sv ../rtl/riscv_L0_buffer.sv ../rtl/riscv_pmp.sv testbench.cpp --exe
%Error: ../rtl/include/riscv_defines.sv:391: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/include/riscv_defines.sv:391: Perhaps 'fpnew_pkg' is a package which needs to be predeclared? (IEEE 2017 26.3)
%Error: ../rtl/include/riscv_defines.sv:392: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/include/riscv_defines.sv:393: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/include/riscv_defines.sv:452: syntax error, unexpected endpackage
%Error: ../rtl/riscv_decoder.sv:238: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:241: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:242: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:243: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:679: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:684: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:689: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:694: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:703: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:714: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:726: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:733: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:741: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:749: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:759: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:773: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:782: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:796: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:815: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:832: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:835: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:837: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:842: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:847: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:852: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:859: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:864: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:869: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:874: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:889: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:897: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:905: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:914: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:923: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:933: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:942: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:952: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:961: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:977: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:980: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:983: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:989: syntax error, unexpected ::, expecting ';'
%Error: ../rtl/riscv_decoder.sv:994: syntax error, unexpected ::
%Error: ../rtl/riscv_decoder.sv:1001: syntax error, unexpected ::
%Error: ../rtl/riscv_decoder.sv:1007: syntax error, unexpected default
%Error: Exiting due to too many errors encountered; --error-limit=50