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_SB_VERSION__SV
00024 `define VMM_SB_VERSION__SV
00025
00026 class vmm_sb_version;
00027 function int major();
00028 major = 1;
00029 endfunction: major
00030
00031 function int minor();
00032 minor = 4;
00033 endfunction: minor
00034
00035 function int patch();
00036 patch = 0;
00037 endfunction: patch
00038
00039
00040 function string vendor();
00041 vendor = "Synopsys";
00042 endfunction: vendor
00043
00044 function void display(string prefix = "");
00045 $write("%s\n", this.psdisplay(prefix));
00046 endfunction: display
00047
00048 function string psdisplay(string prefix = "");
00049 $sformat(psdisplay, "%sVMM SB Package %0d.%0d.%0d (%s)",
00050 prefix, this.major(), this.minor(), this.patch(), this.vendor());
00051 endfunction: psdisplay
00052 endclass: vmm_sb_version
00053
00054
00055 `endif // VMM_SB_VERSION__SV