Wednesday, December 03, 2008     Register | Login | Search | Contact Us
     

Many of you already received communications about the move of the Cadence user community into cadence.com. And many of you have already joined, with over 4000 registrations in the first two weeks.

The new Cadence Community enhances the ability of Cadence users to connect and collaborate. In addition to moving the community into cadence.com -- enabling single sign-on for community, Sourcelink and Cadence events -- the new site is organized around nine technology segments, giving you easy access to product information, training, forums and blogs. Some of the new features include:
  • Ability to respond to posts via e-mail
  • Technology-specific blogs
  • Latest Web 2.0 social networking capabilities
  • Public profile options
  • Private messaging
  • Friends lists
Visit the new Cadence Community today at www.cadence.com/community and join the discussions!

Registration note: Due to the scope of the enhancements and the new SSO registration system, we were not able to migrate existing cdnusers.org member accounts. So new registrations are required, but this enables a broader set of functionality we think you'll enjoy.

Forum note: Under the guidance of forum moderators, we have taken the 20+ cdnusers.org forums and consolidated them into 11 forums on the new site. Posts have been brought over so you can leverage that posting history. CDNusers forums will be set to read only starting 7/30, and cdnusers.org will be redirected to the new community on 8/4.

Best regards,
Mike and Tom

Michael A. Catrambone - Steering Committee Chairman
Distinguished Engineer
PCB/Mechanical
UTStarcom, Inc.

Tom Diederich
Cadence Community Manager
Home
Forums
Subject: Macro for multiple-value when definitions
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
matanvax
Posts: 2
Online: User is Offline
10/31/2007 3:23 AM  
The two macros below introduce new syntax for adding definitions to more than one 'when' determinant value at the same time. The first macro overloads 'extend' keyword and the second is the equivalent for 'when' keyword.

A use example:

extend [HUGE, BIG] packet {
    // definitions that pertain to these subtypes
};


The above code would be expanded in the following (naive) way:

extend HUGE packet {
    // definitions that pertain to these subtypes
};
extend BIG packet {
    // definitions that pertain to these subtypes
};



The macros code:

define
       "extend \[,...\] ({;...})" as computed {
    for each in do {
        result = appendf("%sextend %s %s %s;",result,it,,);
    };
    result = appendf("{%s}",result); // required only for versions 6.1.1 or earlier
};

define
       "when \[,...\] ({;...})" as computed {
    for each in do {
        result = appendf("%swhen %s %s %s;",result,it,,);
    };
    result = appendf("{%s}",result); // required only for versions 6.1.1 or earlier
};

blutsvente
Posts: 1
Online: User is Offline
1/29/2008 7:46 AM  
Hm, are you sure it compiles ? I get various errors, e.g. the syntactic category is missing (at least in my browser the space after "define" is empty)...

Cheers,
Thorsten.
zwinge
Posts: 1
Online: User is Offline
5/20/2008 10:33 AM  
Hi Thorsten,
the web browser does not display the [quote] <>[/quote]
BR
Ernst

[quote]
define "extend \[,...\] ({;...})" as computed {for each in do { result = appendf("%sextend %s %s %s;",result,it,,);}; result = appendf("{%s}",result); };

define "when \[,...\] ({;...})" as computed {for each in do {result = appendf("%swhen %s %s %s;",result,it,,); }; result = appendf("{%s}",result); };
[/quote]
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > Shared code - e Files > Macro for multiple-value when definitions


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.