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: Difference between instance and reference
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
vlsi_dude
Posts: 55
Online: User is Offline
2/15/2008 2:35 AM  
Hello... What is the difference between instantiating and referencing the struct or a unit in 'e'? Ex. unit abc {}; struct xyz {}: abc_r : abc; (Reference) abc_i : abc is instance; (instance) or xyz_r : xyz; (Reference) xyz_i : xyz is instance; (instance) So, What is the difference between Reference and Instance? Thanks!
hannes
Posts: 30
Online: User is Offline
2/15/2008 2:55 AM  
Units are like a static struct, they can only be generated during pre-run generation and they have
a static path in the hierarchy (e-path) which doesn't change during a run (units have other specific attributes
like hdl_path()). The recommendation is to use units to model static test bench components (monitors,
BFMs, sequence drivers etc.) which are valid throughout the test.

structs can be dynamically generated (on the fly), they don't have a static e-path etc.

unit abc {}; struct xyz {}:
abc_r : abc; (Reference) -> reference(pointer) to a static unit
abc_i : abc is instance; (instance) -> static unit instance
xyz_r : xyz; (Reference) -> this is a struct instance, not a reference
xyz_i : xyz is instance; (instance) -> this is an error, can not be done

to get a reference to xyz_r you could do:
var xyz_ref: xyz;
xyz_ref = xyz_r;
(xyz_ref was not generated and just assigned, so it is a reference to xyz_r)

In general assignments of structs to other structs are done by reference. After the assignment
takes place, the variable on the left side refers to the same instance that was referred to by the
expression on the right side.

-hannes
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > e > Difference between instance and reference


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.