-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcfs_apb_sequence_simple.sv
More file actions
34 lines (25 loc) · 998 Bytes
/
cfs_apb_sequence_simple.sv
File metadata and controls
34 lines (25 loc) · 998 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
///////////////////////////////////////////////////////////////////////////////
// File: cfs_apb_sequence_simple.sv
// Author: Cristian Florin Slav
// Date: 2023-08-22
// Description: APB simple sequence class.
///////////////////////////////////////////////////////////////////////////////
`ifndef CFS_APB_SEQUENCE_SIMPLE_SV
`define CFS_APB_SEQUENCE_SIMPLE_SV
class cfs_apb_sequence_simple extends cfs_apb_sequence_base;
//Item to drive
rand cfs_apb_item_drv item;
`uvm_object_utils(cfs_apb_sequence_simple)
function new(string name = "");
super.new(name);
item = cfs_apb_item_drv::type_id::create("item");
endfunction
virtual task body();
start_item(item);
finish_item(item);
//An alternative with macros is to use `uvm_send().
//Macro `uvm_do() will not work because any constraints from sequence call will have no effect
//`uvm_send(item)
endtask
endclass
`endif