Friday, November 21, 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: Questa vs. NC
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
avidan_e
Posts: 16
Online: User is Offline
12/27/2007 2:42 AM  
Hi, In the code below, nc will compile the code only if NC is defined. Otherwise it will issue two compilation errors. Questa on the other hand, will compile the code anyway. Who is right? package x; class z; function new(); `ifndef NC bit x = 1; // Questa compiles this line `else bit x; x = 1; `endif `ifndef NC randomize(); // Questa issues a warning but compiles `else void'(randomize()); `endif endfunction endclass endpackage once again if you want to read this in a normal way open the text file. Cadence guys - can someone please tell me what am I doing wrong that everything shows up as one line? Best, Avidan

Attachment: for_cdnusers.txt

shalom
Posts: 13
Online: User is Offline
12/27/2007 3:20 AM  
Regarding
[code]randomize();[/code]
vs
[code]void'(randomize());[/code]

there is an ambiguity in the IEEE 1800-2005 standard as to whether a function may be called like a task without casting it to void. In the 1800-2008 standard, it is planned to say that it is legal, but will issue a warning.

-- Shalom
TAM
Posts: 56
Online: User is Offline
12/27/2007 6:02 AM  
The Verilog 2001 standard explicitly disallows the setting of an initial value on a variable declared in a function or a task. As the syntax error message says, section 6.2.1 concludes with "Variable declaration assignments are only allowed at the module level."

The SystemVerilog adds a declaration assignment in a package. But I don't see anything in the LRM that goes as far as permitting it in a class function or task. The list of enhancements to tasks and functions given in section 12.1 of the SV LRM doesn't mention anything about variable declaration assignments.

Perhaps someone who knows the SV standard better than myself can give us the final word.
shalom
Posts: 13
Online: User is Offline
12/27/2007 12:22 PM  
6.4 in 1800-2005 says simply,

"A variable can be declared with an initializer, for example:
int i = 0;"

This was intended to be unconditional.

-- Shalom
shalom
Posts: 13
Online: User is Offline
12/27/2007 12:22 PM  
6.4 in 1800-2005 says simply,

"A variable can be declared with an initializer, for example:
int i = 0;"

This was intended to be unconditional.

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



ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.