OpenCores
URL https://opencores.org/ocsvn/uart2bus_testbench/uart2bus_testbench/trunk

Subversion Repositories uart2bus_testbench

[/] [uart2bus_testbench/] [trunk/] [tb/] [uvm_src/] [comps/] [uvm_monitor.svh] - Blame information for rev 16

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 16 HanySalah
//
2
//-----------------------------------------------------------------------------
3
//   Copyright 2007-2011 Mentor Graphics Corporation
4
//   Copyright 2007-2010 Cadence Design Systems, Inc.
5
//   Copyright 2010 Synopsys, Inc.
6
//   All Rights Reserved Worldwide
7
//
8
//   Licensed under the Apache License, Version 2.0 (the
9
//   "License"); you may not use this file except in
10
//   compliance with the License.  You may obtain a copy of
11
//   the License at
12
//
13
//       http://www.apache.org/licenses/LICENSE-2.0
14
//
15
//   Unless required by applicable law or agreed to in
16
//   writing, software distributed under the License is
17
//   distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
18
//   CONDITIONS OF ANY KIND, either express or implied.  See
19
//   the License for the specific language governing
20
//   permissions and limitations under the License.
21
//-----------------------------------------------------------------------------
22
 
23
//-----------------------------------------------------------------------------
24
// CLASS: uvm_monitor
25
//
26
// This class should be used as the base class for user-defined monitors.
27
//
28
// Deriving from uvm_monitor allows you to distinguish monitors from generic
29
// component types inheriting from uvm_component.  Such monitors will
30
// automatically inherit features that may be added to uvm_monitor in the future.
31
//
32
//-----------------------------------------------------------------------------
33
 
34
virtual class uvm_monitor extends uvm_component;
35
 
36
  // Function: new
37
  //
38
  // Creates and initializes an instance of this class using the normal
39
  // constructor arguments for : ~name~ is the name of the
40
  // instance, and ~parent~ is the handle to the hierarchical parent, if any.
41
 
42
  function new (string name, uvm_component parent);
43
    super.new(name, parent);
44
  endfunction
45
 
46
  const static string type_name = "uvm_monitor";
47
 
48
  virtual function string get_type_name ();
49
    return type_name;
50
  endfunction
51
 
52
endclass
53
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.