File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff 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 );
Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments