Hi,Please find attached the code package that illustrates the techniques from the upcoming article on cdnusers.org:"Defining New Metrics in Enterprise Manager (Input Metrics)"Have Fun!Hamilton
Hi,I looked at the code and we already have automated packages to perform what you intended. Its far better reuse and less code and faster to reuse an existing package than create new code.e.g<'load vm_brun_ext/e/vm_brun_ext_top;add_brun_default_attribute my_metric BRUN_MY_METRIC;'>line 1: loads the package, line 2: first argument is the name of a pre-coded macro which performs all the code you showed (plus more) second argument is the name of the 'attribute' to be used for instance in the vsif as in your example third argument is the environment variable representation containing the value of the 'attribute' usable anywhere.vm_brun_ext is a lowlevel package that ENHANCES and SIMPLFIES many eManager automation features such as this biult into it and is heavily used by many eManager users.ex_vmutil is a package that AUTOMATES many of the common functionality required by users of eManager and is also used by many eManager customers.ex_vmcai is a TOTAL COVERAGE solution that can collect and measure any metric annotating it back into a vPlan of any format also used by internal and external eManager users.vp_lib is a complete library of such enhancement packages developed to aid reuse and automation.To this end perhaps it would be better to explain how to use these packages to obtain the required goals rather than re-writing them.thanks,Adieladiel@cadence.com
Hi Adiel,Great input! When possible everyone should reuse existing packages to reduce effort and enhance maintainability.However, this series of articles is meant to present the fundamentals so that readers will know how to customize Enterprise Manager on their own. Each article will build on the fundamentals developed in the previous articles.Can you outline the routines available in vm_brun_ext and their usage models as well as where to objtain the package? This would be great information to make available to the forum.Thanks again,Hamilton
Hi,Here is a brief outline;ex_vmcai: Total Coverage Planning implementation- Allows a team to collect coverage and perform verification planning for absolutely any metric. Whether it be covering an $ENVIRONMENT_VARIABLES or assertions or scripts, or third-party code execution etc. (TOTAL COVERAGE & PLANNING is the ability to gain confidence from any METRIC)ex_vmutil: Automates vManager execution; automatic reporting html & email; automatic rerunning; automatic session reading and executiion;vm_brun_ext: Extended simulator support; layered simulator execution flow; advanced rerun schemes; automatic session reading and execution; automatic attribute and metric additions and calculations.If you need the packages then let me know, normally I tweak them to user requirements. Most AE's within Cadence Advanced Verification Solutions also have the packages.thanks,Adiel.