Monday, October 06, 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: Simple question about $display
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
nnxx
Posts: 9
Online: User is Offline
4/23/2008 8:37 AM  
Hello experts, Here's something I just can't figure out, but might be trivial for someone out there ... If I define a global as a hierarchical path like so : `define HIER_PATH Itop.I1.I2.I3 How can I use $display (or any alternative) to print the value of `HIER_PATH in a message. I'm aware of %m and %M, but they don't apply here. Thanks!
tpylant
Posts: 87
Online: User is Offline
4/23/2008 1:00 PM  
As you stated, the %m is the only way I can think of. You would need to put a function in the module represented by I3 and have it display the value of %m.

You might also want to post this question to the Simulation Forum and perhaps someone over there might have something more elegant, perhaps using VPI.

Tim
TAM
Posts: 56
Online: User is Offline
4/23/2008 1:43 PM  
If you are using SystemVerilog, there is a new macro directive `" that allows you to build a string inside a macro. The following worked in my little testcase.

`define HIER_PATH Itop.I1.I2.I3
`define disp(hp) `"hp`"
initial $display(`disp(`HIER_PATH));

I had to use the `" in a macro, I couldn't use it directly in the $display statement. It seems as if it is only legal in a macro, not in the actual Verilog text.
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > SystemVerilog > Simple question about $display


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.