00001 virtual class cl_syoscb_compare_base extends uvm_object; 00002 `uvm_object_utils(cl_syoscb_compare_base) 00003 00004 // TBD: Field macros? 00005 cl_syoscb_cfg cfg; 00006 00007 extern function new(string name = "cl_syoscb_compare_base"); 00008 00009 // TBD: Here the abstract compare API must be enforced 00010 // TBD: The definition of the return bit for both compare and compare_do 00011 // must be defined, e.g. status or progress. Currently it is undefined 00012 pure virtual function bit compare(); 00013 pure virtual function bit compare_do(); 00014 00015 extern function void set_cfg(cl_syoscb_cfg cfg); 00016 extern function cl_syoscb_cfg get_cfg(); 00017 extern function string get_primary_queue_name(); 00018 00019 endclass: cl_syoscb_compare_base 00020 00021 function cl_syoscb_compare_base::new(string name = "cl_syoscb_compare_base"); 00022 super.new(name); 00023 endfunction : new 00024 00025 // TBD: Replace by UVM cfg DB lookup? 00026 function void cl_syoscb_compare_base::set_cfg(cl_syoscb_cfg cfg); 00027 this.cfg = cfg; 00028 endfunction : set_cfg 00029 00030 function cl_syoscb_cfg cl_syoscb_compare_base::get_cfg(); 00031 return(this.cfg); 00032 endfunction : get_cfg 00033 00034 function string cl_syoscb_compare_base::get_primary_queue_name(); 00035 return(this.get_cfg().primary_queue); 00036 endfunction: get_primary_queue_name
|
Project: SyoSil ApS UVM Scoreboard, Revision: 1.0.0.0 |
Copyright 2014 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 Version: 1.6.1 IDV SV Filter Version: 2.6.2 Thu Oct 30 05:34:49 2014 |