data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv
1: b'%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:30: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n  time CLK_HI               = 5ns;      \n                              ^~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:31: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n  time CLK_LO               = 5ns;      \n                              ^~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:33: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n  time APPL_DEL             = 2ns;      \n                              ^~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:34: syntax error, unexpected TIME NUMBER, expecting TYPE-IDENTIFIER\n  time ACQ_DEL              = 8ns;      \n                              ^~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:47: Unsupported: classes\n  class progress;\n  ^~~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:52: Unsupported: new constructor\n    function new(string name);\n             ^~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:54: Unsupported: this\n          this.name     = name;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:55: Unsupported: this\n          this.acqCnt   = 0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:56: Unsupported: this\n          this.errCnt   = 0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:57: Unsupported: this\n          this.newState = 0.0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:58: Unsupported: this\n          this.oldState = 0.0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:59: Unsupported: this\n          this.numResp  = 1;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:60: Unsupported: this\n          this.totAcqCnt = 0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:61: Unsupported: this\n          this.totErrCnt = 0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:68: Unsupported: this\n          this.acqCnt   = 0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:69: Unsupported: this\n          this.errCnt   = 0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:70: Unsupported: this\n          this.newState = 0.0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:71: Unsupported: this\n          this.oldState = 0.0;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:72: Unsupported: this\n          this.numResp  = numResp_;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:78: Unsupported: this\n          this.acqCnt++;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:79: Unsupported: this\n          this.totAcqCnt++;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:80: Unsupported: this\n          this.errCnt += isError;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:81: Unsupported: this\n          this.totErrCnt += isError;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:83: Unsupported: this\n          if(ERROR_CNT_STOP_LEVEL <= this.errCnt && ERROR_CNT_STOP_LEVEL > 0) begin\n                                     ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:84: Unsupported: this\n            $error("%s> simulation stopped (ERROR_CNT_STOP_LEVEL = %d reached).", this.name, ERROR_CNT_STOP_LEVEL);\n                                                                                  ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:92: Unsupported: this\n        this.newState = $itor(this.acqCnt) / $itor(this.numResp);\n        ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:92: Unsupported: this\n        this.newState = $itor(this.acqCnt) / $itor(this.numResp);\n                              ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:92: Unsupported: this\n        this.newState = $itor(this.acqCnt) / $itor(this.numResp);\n                                                   ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:93: Unsupported: this\n        if(this.newState - this.oldState >= 0.01) begin\n           ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:93: Unsupported: this\n        if(this.newState - this.oldState >= 0.01) begin\n                           ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:95: Unsupported: this\n                  this.name,\n                  ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:96: Unsupported: this\n                  $rtoi(this.newState*100.0),\n                        ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:97: Unsupported: this\n                  this.errCnt,\n                  ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:98: Unsupported: this\n                  $itor(this.errCnt) / $itor(this.acqCnt) * 100.0);\n                        ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:98: Unsupported: this\n                  $itor(this.errCnt) / $itor(this.acqCnt) * 100.0);\n                                             ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:100: Unsupported: this\n          this.oldState = this.newState;\n          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:100: Unsupported: this\n          this.oldState = this.newState;\n                          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:119: Unsupported: this\n          $fdisplay(fptr, "Simulation Summary of %s", this.name);\n                                                      ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:121: Unsupported: this\n                    this.totErrCnt,\n                    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:122: Unsupported: this\n                    this.totAcqCnt,\n                    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:123: Unsupported: this\n                    $itor(this.totErrCnt) / ($itor(this.totAcqCnt) * 100.0 + 0.000000001));\n                          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:123: Unsupported: this\n                    $itor(this.totErrCnt) / ($itor(this.totAcqCnt) * 100.0 + 0.000000001));\n                                                   ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:124: Unsupported: this\n          if(this.totErrCnt == 0) begin\n             ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:132: Unsupported: this\n                    this.errCnt,\n                    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:133: Unsupported: this\n                    this.acqCnt,\n                    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:134: Unsupported: this\n                    $itor(this.errCnt) / $itor(this.acqCnt) * 100.0);\n                          ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:134: Unsupported: this\n                    $itor(this.errCnt) / $itor(this.acqCnt) * 100.0);\n                                               ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:137: Unsupported: this\n                    this.totErrCnt,\n                    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:138: Unsupported: this\n                    this.totAcqCnt,\n                    ^~~~\n%Error: data/full_repos/permissive/509468557/generators/cva6/src/main/resources/vsrc/cva6/tb/common/tb_dcache_pkg.sv:139: Unsupported: this\n                    $itor(this.totErrCnt) / $itor(this.totAcqCnt) * 100.0);\n                          ^~~~\n%Error: Exiting due to too many errors encountered; --error-limit=50\n'
function void check_mem();
      bit ok;
      status.reset(MEM_BYTES);
      for(int k=0; k<MEM_BYTES; k++) begin
        ok = (memory_q[k] == shadow_q[k]);
        if(!ok) begin
          $display("%s> mismatch at k=%016X: real[k>>3]=%016X, shadow[k>>3]=%016X",
            MEM_NAME, k, memory_q[k], shadow_q[k]);
        end
        status.addRes(!ok);
        status.print();
      end
    endfunction
function void check_mem();

      bit ok;
      status.reset(MEM_BYTES);
      for(int k=0; k<MEM_BYTES; k++) begin
        ok = (memory_q[k] == shadow_q[k]);
        if(!ok) begin
          $display("%s> mismatch at k=%016X: real[k>>3]=%016X, shadow[k>>3]=%016X",
            MEM_NAME, k, memory_q[k], shadow_q[k]);
        end
        status.addRes(!ok);
        status.print();
      end
    endfunction