Skip to content

Commit c853ced

Browse files
committed
Fixed compile issues
1 parent 1a39153 commit c853ced

2 files changed

Lines changed: 6 additions & 7 deletions

File tree

src/agent/apb_transaction.svh

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,7 @@ class apb_transaction#(`_APB_AGENT_PARAM_DEFS) extends uvm_sequence_item;
2828
// Property: rand_type
2929
// The agent mode to use when randomizing.
3030
// Only randomizes values which should be set by a sequence
31-
// Note: rand_type = APB_DECODER_AGENT causes all values to be randomized
32-
apb_agent_mode_e rand_type = APB_DECODER_AGENT;
31+
apb_agent_mode_e rand_type = APB_COMPLETER_AGENT;
3332

3433
// Property: write
3534
// Whether the transaction is read or write
@@ -73,13 +72,11 @@ class apb_transaction#(`_APB_AGENT_PARAM_DEFS) extends uvm_sequence_item;
7372
function void pre_randomize();
7473
super.pre_randomize();
7574

76-
if (rand_type == APB_DECODER_AGENT) begin
77-
return;
78-
end
7975
if (rand_type == APB_COMPLETER_AGENT) begin
8076
wait_states.rand_mode(0);
8177
return;
8278
end
79+
8380
if (rand_type == APB_REQUESTER_AGENT) begin
8481
write.rand_mode(0);
8582
addr.rand_mode(0);

src/interfaces/apb_vip_if.sv

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,9 @@
1919
`include "apb_agent_macros.svh"
2020

2121
// Interface: apb_vip_if
22-
interface apb_vip_if #(
22+
interface apb_vip_if
23+
import apb_agent_pkg::*;
24+
#(
2325
`_APB_AGENT_PARAM_DEFS
2426
)(
2527
input logic preset_n,
@@ -35,7 +37,7 @@ interface apb_vip_if #(
3537
apb_pprot_t pprot;
3638
logic psel;
3739
logic penable;
38-
apb_write_t pwrite;
40+
apb_write_e pwrite;
3941
logic [ DATA_WIDTH-1:0] pwdata;
4042
logic [ _STRB_WIDTH-1:0] pstrb;
4143

0 commit comments

Comments
 (0)