data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv
None: at end of input
1: b'%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:21: Cannot find include file: rv_defs.v\n`include "rv_defs.v" \n         ^~~~~~~~~~~\n        ... Looked in:\n             data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu,data/full_repos/permissive/161356276/rv_defs.v\n             data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu,data/full_repos/permissive/161356276/rv_defs.v.v\n             data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu,data/full_repos/permissive/161356276/rv_defs.v.sv\n             rv_defs.v\n             rv_defs.v.v\n             rv_defs.v.sv\n             obj_dir/rv_defs.v\n             obj_dir/rv_defs.v.v\n             obj_dir/rv_defs.v.sv\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:54: syntax error, unexpected $fopen, expecting TYPE-IDENTIFIER\n      int f = $fopen(filename,"r");\n              ^~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:77: Unsupported or unknown PLI call: $dist_uniform\n if(   $dist_uniform(seed, 0, 100 ) <= 100) begin\n       ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:118: syntax error, unexpected \'@\'\n @(posedge clk);\n ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:121: syntax error, unexpected \'@\'\n      @(posedge clk);\n      ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:123: syntax error, unexpected \'@\'\n      @(posedge clk);\n      ^\n%Warning-STMTDLY: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:155: Unsupported: Ignoring delay on this delayed statement.\n   always #5ns clk <= ~clk;\n          ^\n                  ... Use "/* verilator lint_off STMTDLY */" and lint_on around source to disable this message.\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:165: syntax error, unexpected \'@\'\n      repeat(3) @(posedge clk);\n                ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:172: Define or directive not defined: \'`FUNC_ADD\'\n       `FUNC_ADD: return "add";\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:172: syntax error, unexpected \':\', expecting endcase\n       `FUNC_ADD: return "add";\n                ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:173: Define or directive not defined: \'`FUNC_XOR\'\n       `FUNC_XOR:return "xor";\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:174: Define or directive not defined: \'`FUNC_OR\'\n       `FUNC_OR: return "or";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:175: Define or directive not defined: \'`FUNC_AND\'\n       `FUNC_AND:return "and";\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:176: Define or directive not defined: \'`FUNC_SLT\'\n       `FUNC_SLT:return "slt";\n       ^~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:177: Define or directive not defined: \'`FUNC_SLTU\'\n       `FUNC_SLTU:return "sltu";\n       ^~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:178: Define or directive not defined: \'`FUNC_SL\'\n       `FUNC_SL: return "sl";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:179: Define or directive not defined: \'`FUNC_SR\'\n       `FUNC_SR:return"sr";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:186: Define or directive not defined: \'`BRA_EQ\'\n       `BRA_EQ: return "eq";\n       ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:186: syntax error, unexpected \':\', expecting endcase\n       `BRA_EQ: return "eq";\n              ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:187: Define or directive not defined: \'`BRA_NEQ\'\n       `BRA_NEQ: return "neq";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:188: Define or directive not defined: \'`BRA_LT\'\n       `BRA_LT: return "lt";\n       ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:189: Define or directive not defined: \'`BRA_GE\'\n       `BRA_GE: return "ge";\n       ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:190: Define or directive not defined: \'`BRA_LTU\'\n       `BRA_LTU:return "ltu";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:191: Define or directive not defined: \'`BRA_GEU\'\n       `BRA_GEU:return "geu";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:198: Define or directive not defined: \'`LDST_B\'\n       `LDST_B: return "s8";\n       ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:198: syntax error, unexpected \':\', expecting endcase\n       `LDST_B: return "s8";\n              ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:199: Define or directive not defined: \'`LDST_BU\'\n       `LDST_BU: return "u8";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:200: Define or directive not defined: \'`LDST_H\'\n       `LDST_H: return "s16";\n       ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:201: Define or directive not defined: \'`LDST_HU\'\n       `LDST_HU: return "u16";\n       ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:202: Define or directive not defined: \'`LDST_L\'\n       `LDST_L:return "32";\n       ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:245: Define or directive not defined: \'`CSR_ID_CYCLESH\'\n `CSR_ID_CYCLESH: return "cyclesh";\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:245: syntax error, unexpected \':\', expecting endcase\n `CSR_ID_CYCLESH: return "cyclesh";\n                ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:246: Define or directive not defined: \'`CSR_ID_CYCLESL\'\n `CSR_ID_CYCLESL: return "cyclesl";\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:247: Define or directive not defined: \'`CSR_ID_TIMEH\'\n `CSR_ID_TIMEH: return "timeh";\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:248: Define or directive not defined: \'`CSR_ID_TIMEL\'\n `CSR_ID_TIMEL: return "timel";\n ^~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:249: Define or directive not defined: \'`CSR_ID_MSCRATCH\'\n `CSR_ID_MSCRATCH: return "mscratch";\n ^~~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:250: Define or directive not defined: \'`CSR_ID_MEPC\'\n `CSR_ID_MEPC: return "mepc";\n ^~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:251: Define or directive not defined: \'`CSR_ID_MSTATUS\'\n `CSR_ID_MSTATUS: return "mstatus";\n ^~~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:252: Define or directive not defined: \'`CSR_ID_MCAUSE\'\n `CSR_ID_MCAUSE: return "mcause";\n ^~~~~~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:264: Define or directive not defined: \'`BRA_EQ\'\n `BRA_EQ: do_take = (rs1 == rs2);\n ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:264: syntax error, unexpected \':\', expecting endcase\n `BRA_EQ: do_take = (rs1 == rs2);\n        ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:265: Define or directive not defined: \'`BRA_NEQ\'\n `BRA_NEQ: do_take = (rs1 != rs2);\n ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:266: Define or directive not defined: \'`BRA_GE\'\n `BRA_GE: do_take = $signed(rs1) >= $signed(rs2);\n ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:267: Define or directive not defined: \'`BRA_LT\'\n `BRA_LT: do_take = $signed(rs1) < $signed(rs2);\n ^~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:268: Define or directive not defined: \'`BRA_GEU\'\n `BRA_GEU: do_take = rs1 >= rs2;\n ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:269: Define or directive not defined: \'`BRA_LTU\'\n `BRA_LTU: do_take = rs1 < rs2;\n ^~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:274: syntax error, unexpected end\n   end\n   ^~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:283: syntax error, unexpected end\n end\n ^~~\n%Warning-STMTDLY: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:301: Unsupported: Ignoring delay on this delayed statement.\n      #500us;\n      ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:373: Define or directive not defined: \'`OPC_AUIPC\'\n     `OPC_AUIPC: \n     ^~~~~~~~~~\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:373: syntax error, unexpected \':\', expecting endcase\n     `OPC_AUIPC: \n               ^\n%Error: data/full_repos/permissive/161356276/hdl/ip_cores/urv-core/tb/cpu/main.sv:381: Define or directive not defined: \'`OPC_LUI\'\n     `OPC_LUI: \n     ^~~~~~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function string decode_csr(bit[11:0] csr);
      case(csr)
	`CSR_ID_CYCLESH: return "cyclesh";
	`CSR_ID_CYCLESL: return "cyclesl";
	`CSR_ID_TIMEH: return "timeh";
	`CSR_ID_TIMEL: return "timel";
	`CSR_ID_MSCRATCH: return "mscratch";
	`CSR_ID_MEPC: return "mepc";
	`CSR_ID_MSTATUS: return "mstatus";
	`CSR_ID_MCAUSE: return "mcause";
	default: return "???";
      endcase
      
   endfunction
function string decode_csr(bit[11:0] csr);

      case(csr)
	`CSR_ID_CYCLESH: return "cyclesh";
	`CSR_ID_CYCLESL: return "cyclesl";
	`CSR_ID_TIMEH: return "timeh";
	`CSR_ID_TIMEL: return "timel";
	`CSR_ID_MSCRATCH: return "mscratch";
	`CSR_ID_MEPC: return "mepc";
	`CSR_ID_MSTATUS: return "mstatus";
	`CSR_ID_MCAUSE: return "mcause";
	default: return "???";
      endcase
      
   endfunction