VMM - subenv/vmm_subenv.sv

subenv/vmm_subenv.sv expanded source

00001 // 
00002 // -------------------------------------------------------------
00003 //    Copyright 2004-2008 Synopsys, Inc.
00004 //    All Rights Reserved Worldwide
00005 // 
00006 //    Licensed under the Apache License, Version 2.0 (the
00007 //    "License"); you may not use this file except in
00008 //    compliance with the License.  You may obtain a copy of
00009 //    the License at
00010 // 
00011 //        http://www.apache.org/licenses/LICENSE-2.0
00012 // 
00013 //    Unless required by applicable law or agreed to in
00014 //    writing, software distributed under the License is
00015 //    distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
00016 //    CONDITIONS OF ANY KIND, either express or implied.  See
00017 //    the License for the specific language governing
00018 //    permissions and limitations under the License.
00019 // -------------------------------------------------------------
00020 // 
00021 
00022 
00023 `ifndef VMM_SUBENV__SV
00024 `define VMM_SUBENV__SV
00025 
00026 `include "vmm.sv"
00027 `include "RAL/vmm_ral.sv"
00028 class vmm_subenv_version;
00029    function int major();
00030       major = 0;
00031    endfunction: major
00032 
00033    function int minor();
00034       minor = 0;
00035    endfunction: minor
00036 
00037    function int patch();
00038       patch = 0;
00039    endfunction: patch
00040 
00041    function string vendor();
00042       vendor = "Synopsys";
00043    endfunction: vendor
00044 
00045    function void display(string prefix = "");
00046       $write("%s\n", this.psdisplay(prefix));
00047    endfunction: display
00048 
00049    function string psdisplay(string prefix = "");
00050       $sformat(psdisplay, "%sVMM SUBENV Version %0d.%0d.%0d (%s)",
00051                prefix, this.major(), this.minor(), this.patch(), this.vendor());
00052    endfunction: psdisplay
00053 endclass: vmm_subenv_version
00054 
00055 
00056 //
00057 // vmm_subenv was moved to std_lib.
00058 // vmm_mam was moved to RAL.
00059 // This file is provided for backward compatibility purposes only
00060 //
00061 
00062 `endif // VMM_SUBENV__SV