Skip to content

Commit 6f3df9d

Browse files
committed
Fixed some minor bugs
1 parent 03cf420 commit 6f3df9d

2 files changed

Lines changed: 4 additions & 3 deletions

File tree

src/agent/apb_monitor.svh

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -119,7 +119,6 @@ class apb_monitor#(`_APB_AGENT_PARAM_DEFS) extends uvm_monitor;
119119

120120
// Setup Phase
121121
if (trans == null) begin
122-
apb_transaction#(`_APB_AGENT_PARAM_MAP) req;
123122
if (m_vif.penable) begin
124123
`uvm_error(get_type_name(), "penable is high during the access phase")
125124
end
@@ -132,7 +131,9 @@ class apb_monitor#(`_APB_AGENT_PARAM_DEFS) extends uvm_monitor;
132131
trans.wait_states = 0;
133132

134133
if (m_cfg.agent_mode == APB_REQUESTER_AGENT) begin
135-
$cast(req, trans.clone());
134+
apb_transaction#(`_APB_AGENT_PARAM_MAP) req;
135+
136+
req = trans.clone();
136137
req.data = m_vif.pwdata;
137138
req_ap.write(req);
138139
end

src/agent/apb_transaction.svh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,7 @@ class apb_transaction#(`_APB_AGENT_PARAM_DEFS) extends uvm_sequence_item;
6161
// Poperty: error
6262
// The Completer Error signal from the transaction.
6363
// Set by the sequence in APB_REQUESTER_AGENT mode.
64-
// set by the agent in AAPB_COMPELTER_AGENT mode.
64+
// set by the agent in APB_COMPLETER_AGENT mode.
6565
rand bit error = 1'b0;
6666

6767
// Property: wait_states

0 commit comments

Comments
 (0)