12

17 阅读1分钟
covergroup basic_rw @(inreq_cov_event);
      coverpoint req.cmd {
          bins read = {simplebus_req::OP_READ};
          bins write = {simplebus_req::OP_WRITE};
      }
      coverpoint req.addr {
          bins mmio = {[32'h3000_0000:32'h4000_0000]};
          bins mem = default;
      }
          cross req.cmd, req.addr;
endgroup: basic_rw