SyoSil ApS UVM Scoreboard  1.0.3.0
cl_scb_test_io_std_dump.svh
1 /// SCB dump test using the function based API
2 class cl_scb_test_io_std_dump extends cl_scb_test_single_scb;
3  //-------------------------------------
4  // UVM Macros
5  //-------------------------------------
6  `uvm_component_utils(cl_scb_test_io_std_dump)
7 
8  //-------------------------------------
9  // Constructor
10  //-------------------------------------
11  extern function new(string name = "cl_scb_test_io_std_dump", uvm_component parent = null);
12 
13  //-------------------------------------
14  // UVM Phase methods
15  //-------------------------------------
16  extern task run_phase(uvm_phase phase);
17 endclass : cl_scb_test_io_std_dump
18 
19 function cl_scb_test_io_std_dump::new(string name = "cl_scb_test_io_std_dump",
20  uvm_component parent = null);
21  super.new(name, parent);
22 endfunction : new
23 
24 task cl_scb_test_io_std_dump::run_phase(uvm_phase phase);
25  phase.raise_objection(this);
26 
27  super.run_phase(phase);
28 
29  this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_full_scb_dump(1'b1);
30  this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_full_scb_dump_file_name(
31  "io_std_dump");
32  this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_enable_c2s_full_scb_dump(1'b1);
33 
34  fork
35  for(int unsigned i=0; i<10; i++) begin
36  cl_tb_seq_item item1;
37  item1 = cl_tb_seq_item::type_id::create("item1");
38  item1.int_a = i;
39  this.scb_env.syoscb[0].add_item("Q1", "P1", item1);
40  end
41 
42  for(int unsigned i=0; i<10; i++) begin
43  cl_tb_seq_item item1;
44  item1 = cl_tb_seq_item::type_id::create("item1");
45  item1.int_a = i;
46  this.scb_env.syoscb[0].add_item("Q2", "P1", item1);
47  end
48 
49  for(int unsigned i=10; i<20; i++) begin
50  cl_tb_seq_item item1;
51  item1 = cl_tb_seq_item::type_id::create("item1");
52  item1.int_a = i;
53  this.scb_env.syoscb[0].add_item("Q1", "P2", item1);
54  end
55 
56  for(int unsigned i=10; i<20; i++) begin
57  cl_tb_seq_item item1;
58  item1 = cl_tb_seq_item::type_id::create("item1");
59  item1.int_a = i;
60  this.scb_env.syoscb[0].add_item("Q2", "P2", item1);
61  end
62  join
63 
64  phase.drop_objection(this);
65 endtask: run_phase
SCB dump test using the function based API.

Project: SyoSil ApS UVM Scoreboard, Revision: 1.0.3.0

Copyright 2014-2022 SyoSil ApS
All Rights Reserved Worldwide

Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at

http://www.apache.org/licenses/LICENSE-2.0

Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License.
doxygen
Doxygen Version: 1.8.14
Generated with IDV SV Filter Version: 2.6.3
Fri Sep 2 2022 14:37:03
Find a documentation bug? Report bugs to: scoreboard@syosil.com