VMM OpenSource - (expanded) sv/perf/vmm_perf_version.sv

Expanded versions of source files are the output of the preprocessor. Lines subject to conditional compilation are not shown and all compiler pragmas have been stripped. Macros have been completely expanded.

sv/perf/vmm_perf_version.sv unexpanded 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: 
00023: `define VMM_PERF_VERSION__SV
00024: 
00025: class vmm_perf_version;
00026:    function int major();
00027:       major = 1;
00028:    endfunction: major
00029: 
00030:    function int minor();
00031:       minor = 1;
00032:    endfunction: minor
00033: 
00034:    function int patch();
00035:       patch = 9;
00036:    endfunction: patch
00037: 
00038: 
00039:    function string vendor();
00040:       vendor = "Synopsys";
00041:    endfunction: vendor
00042: 
00043:    function void display(string prefix = "");
00044:       $write("%s\n", this.psdisplay(prefix));
00045:    endfunction: display
00046: 
00047:    function string psdisplay(string prefix = "");
00048:       $sformat(psdisplay, "%sVMM Performance Analyzer Version %0d.%0d.%0d (%s)",
00049:                prefix, this.major(), this.minor(), this.patch(), this.vendor());
00050:    endfunction: psdisplay
00051: endclass: vmm_perf_version
00052: