data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv
1: b'%Warning-WIDTH: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv:315: Operator OR expects 64 bits on the RHS, but RHS\'s VARREF \'IRQ_S_SOFT\' generates 32 bits.\n    localparam logic [XLEN-1:0] S_SW_INTERRUPT    = (1 << (XLEN-1)) | IRQ_S_SOFT;\n                                                                    ^\n                ... Use "/* verilator lint_off WIDTH */" and lint_on around source to disable this message.\n%Warning-WIDTH: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv:316: Operator OR expects 64 bits on the RHS, but RHS\'s VARREF \'IRQ_M_SOFT\' generates 32 bits.\n    localparam logic [XLEN-1:0] M_SW_INTERRUPT    = (1 << (XLEN-1)) | IRQ_M_SOFT;\n                                                                    ^\n%Warning-WIDTH: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv:317: Operator OR expects 64 bits on the RHS, but RHS\'s VARREF \'IRQ_S_TIMER\' generates 32 bits.\n    localparam logic [XLEN-1:0] S_TIMER_INTERRUPT = (1 << (XLEN-1)) | IRQ_S_TIMER;\n                                                                    ^\n%Warning-WIDTH: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv:318: Operator OR expects 64 bits on the RHS, but RHS\'s VARREF \'IRQ_M_TIMER\' generates 32 bits.\n    localparam logic [XLEN-1:0] M_TIMER_INTERRUPT = (1 << (XLEN-1)) | IRQ_M_TIMER;\n                                                                    ^\n%Warning-WIDTH: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv:319: Operator OR expects 64 bits on the RHS, but RHS\'s VARREF \'IRQ_S_EXT\' generates 32 bits.\n    localparam logic [XLEN-1:0] S_EXT_INTERRUPT   = (1 << (XLEN-1)) | IRQ_S_EXT;\n                                                                    ^\n%Warning-WIDTH: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv:320: Operator OR expects 64 bits on the RHS, but RHS\'s VARREF \'IRQ_M_EXT\' generates 32 bits.\n    localparam logic [XLEN-1:0] M_EXT_INTERRUPT   = (1 << (XLEN-1)) | IRQ_M_EXT;\n                                                                    ^\n%Warning-UNPACKED: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/include/riscv_pkg.sv:676: Unsupported: Unpacked struct/union\n    typedef struct {\n            ^~~~~~\n%Error: Exiting due to 7 warning(s)\n'
function string spikeCommitLog(logic [63:0] pc, priv_lvl_t priv_lvl, logic [31:0] instr, logic [4:0] rd, logic [63:0] result, logic rd_fpr);
        string rd_s;
        string instr_word;

        automatic string rf_s = rd_fpr ? "f" : "x";

        if (instr[1:0] != 2'b11) begin
          instr_word = $sformatf("(0x%h)", instr[15:0]);
        end else begin
          instr_word = $sformatf("(0x%h)", instr);
        end

        if (rd < 10) rd_s = $sformatf("%s %0d", rf_s, rd);
        else rd_s = $sformatf("%s%0d", rf_s, rd);

        if (rd_fpr || rd != 0) begin

            return $sformatf("%d 0x%h %s %s 0x%h\n", priv_lvl, pc, instr_word, rd_s, result);
        end else begin

            return $sformatf("%d 0x%h %s\n", priv_lvl, pc, instr_word);
        end
    endfunction
function string spikeCommitLog(logic [63:0] pc, priv_lvl_t priv_lvl, logic [31:0] instr, logic [4:0] rd, logic [63:0] result, logic rd_fpr);

        string rd_s;
        string instr_word;

        automatic string rf_s = rd_fpr ? "f" : "x";

        if (instr[1:0] != 2'b11) begin
          instr_word = $sformatf("(0x%h)", instr[15:0]);
        end else begin
          instr_word = $sformatf("(0x%h)", instr);
        end

        if (rd < 10) rd_s = $sformatf("%s %0d", rf_s, rd);
        else rd_s = $sformatf("%s%0d", rf_s, rd);

        if (rd_fpr || rd != 0) begin

            return $sformatf("%d 0x%h %s %s 0x%h\n", priv_lvl, pc, instr_word, rd_s, result);
        end else begin

            return $sformatf("%d 0x%h %s\n", priv_lvl, pc, instr_word);
        end
    endfunction