File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ # FastSandPM Manifest
2+ # ###################################################################################################
3+ [package ]
4+
5+ name =" apb_agent"
6+ version =" 0.1.0"
7+ description =" An APB UVM Agent"
Original file line number Diff line number Diff line change @@ -134,6 +134,16 @@ class apb_monitor#(`_APB_AGENT_PARAM_DEFS) extends uvm_monitor;
134134 apb_transaction # (`_APB_AGENT_PARAM_MAP ) req;
135135
136136 req = trans.clone ();
137+ if (! $cast (req, trans.clone ())) begin
138+ `uvm_fatal (
139+ get_type_name (),
140+ $sformatf (
141+ " Unable to cast transaction (%s ) to req (%s )" ,
142+ trans.get_type_name (),
143+ apb_transaction # (`_APB_AGENT_PARAM_MAP ):: type_name
144+ )
145+ )
146+ end
137147 req.data = m_vif.pwdata;
138148 req_ap.write (req);
139149 end
@@ -168,4 +178,4 @@ class apb_monitor#(`_APB_AGENT_PARAM_DEFS) extends uvm_monitor;
168178
169179 endtask : run_phase
170180
171- endclass : apb_monitor
181+ endclass : apb_monitor
You can’t perform that action at this time.
0 commit comments