SyoSil ApS UVM Scoreboard  1.0.3.0
cl_scb_test_io_std_dump_max_size_less.svh
1 /// Shows that SCB dumping still works when full_scb_max_queue_size > the actual number of transactions
2 class cl_scb_test_io_std_dump_max_size_less extends cl_scb_test_single_scb;
3  //-------------------------------------
4  // UVM Macros
5  //-------------------------------------
6  `uvm_component_utils(cl_scb_test_io_std_dump_max_size_less)
7 
8  //-------------------------------------
9  // Constructor
10  //-------------------------------------
11  extern function new(string name = "cl_scb_test_io_std_dump_max_size_less",
12  uvm_component parent = null);
13 
14  //-------------------------------------
15  // UVM Phase methods
16  //-------------------------------------
17  extern task run_phase(uvm_phase phase);
19 
20 function cl_scb_test_io_std_dump_max_size_less::new(
21  string name = "cl_scb_test_io_std_dump_max_size_less",
22  uvm_component parent = null);
23  super.new(name, parent);
24 endfunction : new
25 
26 task cl_scb_test_io_std_dump_max_size_less::run_phase(uvm_phase phase);
27  phase.raise_objection(this);
28 
29  super.run_phase(phase);
30 
31  this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_full_scb_dump(1'b1);
32  this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_full_scb_dump_file_name("test_io_std_dump_max_size_less");
33  void'(this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_full_scb_dump_split(1'b1));
34  this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_full_scb_max_queue_size("Q1",20);
35  this.scb_env.syoscb_cfgs.syoscb_cfg[0].set_full_scb_max_queue_size("Q2",20);
36 
37  fork
38  for(int unsigned i=0; i<10; i++) begin
39  cl_tb_seq_item item1;
40  item1 = cl_tb_seq_item::type_id::create("item1");
41  item1.int_a = i;
42  this.scb_env.syoscb[0].add_item("Q1", "P1", item1);
43  end
44 
45  for(int unsigned i=0; i<10; i++) begin
46  cl_tb_seq_item item1;
47  item1 = cl_tb_seq_item::type_id::create("item1");
48  item1.int_a = i;
49  this.scb_env.syoscb[0].add_item("Q2", "P1", item1);
50  end
51  join
52 
53  phase.drop_objection(this);
54 endtask: run_phase
Shows that SCB dumping still works when full_scb_max_queue_size > the actual number of transactions...

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:08
Find a documentation bug? Report bugs to: scoreboard@syosil.com