denali vip callback的运用
denaliMemCallback reg_rccb();
denaliMemTrans trans_rc();
initial begin
status = $mmassert_access(denali_rc_cfg_id, "write", "callback", PCIE_REG_DEN_SIM_ST, PCIE_REG_DEN_SIM_ST);
status = $mmassert_access(denali_rc_cfg_id, "write", "callback", PCIE_REG_DEN_LTSSM_STATE, PCIE_REG_DEN_LTSSM_STATE);
reg_rccb.enableReason[0] = DENALI_CB_Write;
reg_rccb.setCallback(denali_rc_cfg_id);
end
always@(reg_rccb.Event)begin
while(reg_rccb.getCallback(denali_rc_cfg_id))begin
trans_rc.transGet(reg_rccb.transId);
case(trans_rc.address)
PCIE_REG_DEN_SIM_ST: begin
end
PCIE_REG_DEN_LTSSM_STATE : begin
end
end
end