-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcfs_algn_virtual_sequence_slow_pace.sv
More file actions
51 lines (39 loc) · 2.16 KB
/
cfs_algn_virtual_sequence_slow_pace.sv
File metadata and controls
51 lines (39 loc) · 2.16 KB
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
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
`ifndef CFS_ALGN_VIRTUAL_SEQUENCE_SLOW_PACE_SV
`define CFS_ALGN_VIRTUAL_SEQUENCE_SLOW_PACE_SV
class cfs_algn_virtual_sequence_slow_pace extends cfs_algn_virtual_sequence_base;
`uvm_object_utils(cfs_algn_virtual_sequence_slow_pace)
function new(string name = "");
super.new(name);
endfunction // new()
virtual task body();
cfs_md_sequence_simple_master rx_sequence;
fork
begin
int unsigned algn_data_width = p_sequencer.model.env_config.get_algn_data_width();
int unsigned ctrl_size = p_sequencer.model.reg_block.CTRL.SIZE.get_mirrored_value();
`uvm_do_on_with(rx_sequence, p_sequencer.md_rx_sequencer, {
((algn_data_width / 8) + item.offset) % item.data.size() == 0;
(item.data.size() + item.offset) <= (algn_data_width / 8);
item.data.size() >= ctrl_size;
})
end
begin
int unsigned tx_item_idx = 0;
int unsigned num_tx_items;
do begin
cfs_md_sequence_simple_slave tx_sequence;
cfs_md_item_mon item_mon;
p_sequencer.md_tx_sequencer.pending_items.get(item_mon);
num_tx_items = rx_sequence.item.data.size()/ p_sequencer.model.reg_block.CTRL.SIZE.get_mirrored_value();
`uvm_do_on_with(tx_sequence, p_sequencer.md_tx_sequencer, {
num_tx_items == 1 -> item.response == CFS_MD_OKAY;
num_tx_items > 1 && tx_item_idx < (num_tx_items - 1) -> item.response == CFS_MD_OKAY;
num_tx_items > 1 && tx_item_idx == (num_tx_items - 1) -> item. response == CFS_MD_ERR;
})
tx_item_idx++;
end while(tx_item_idx < num_tx_items);
end
join
endtask // body()
endclass //cfs_algn_virtual_sequence_slow_pace extends superClass
`endif // CFS_ALGN_VIRTUAL_SEQUENCE_SLOW_PACE_SV