-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathdst_xtn.sv
33 lines (20 loc) · 893 Bytes
/
dst_xtn.sv
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
class read_xtn extends uvm_sequence_item;
`uvm_object_utils(read_xtn)
bit [7:0] header;
bit [7:0] payload_data[];
bit [7:0] parity;
rand bit [5:0] no_of_cycles;
extern function new(string name = "read_xtn");
extern function void do_print(uvm_printer printer);
endclass
function read_xtn::new(string name = "read_xtn");
super.new(name);
endfunction : new
function void read_xtn::do_print(uvm_printer printer);
super.do_print(printer);
printer.print_field( "header", this.header, 8, UVM_HEX );
foreach(payload_data[i])
printer.print_field($sformatf("payload_data[%0d]",i), this.payload_data[i], 8, UVM_HEX);
printer.print_field( "parity", this.parity, 8, UVM_HEX);
printer.print_field( "no_of_cycles", this.no_of_cycles, 6, UVM_HEX);
endfunction