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: Gen5 list indexing, pop() on empty list
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
SomeDude
Posts: 12
Online: User is Offline
12/17/2007 3:55 AM  
Hello,

I encountered some strange error message from IntelliGen when I tried to constrain a field. Even though I know that these few lines cannot completely explain, they might give the right idea.

The user constrains tons of flags that are not checked and can result in invalid combinations. These flags are then condensed into a list of valid flags by a method that takes all flags as argument and returns a list of valid flag values.

error_list : list of bool;<BR>error_list == get_valid_errors(value(user_flag1),value(user_flag2));


The valid length_error flag is then constrained by

keep length_error == value(error_list[some_index]);<BR>

based on this valid, confirmed and easy readable flag, the creation should be constrained

keep value(length_error) == TRUE => data_length > 1500; //doesn't really matter what you constrain on the right side<BR>

If I tell PGen the generation oder with, keep gen () before () everything works as intended. As IntelliGen ignores those statements, everything should be covered with the value() function for keeping the intended order. But somehow, that doesn't really work.

If I use

keep length_error == value(error_list)[some_index]<BR>

I get

List ist empty, cannot access item some_index<BR>

Using

keep length_error == value(error_list[some_index]);


results in

Cannot use peseudo-method 'pop()' on an empty list<BR>

BTW, that complete environment does NOT contain any pop() method, so it is an internal funtion that uses it. The same code runs fine in Pgen though. If I constrain length_error == TRUE and data_length == 1530, everything runs fine, no contradiction (of course, there shouldn't be any). Both ways of indexing work with PGen. None of them work with IntelliGen. Has anybody encountered that error message before?

greetings

hannes
Posts: 30
Online: User is Offline
12/17/2007 7:19 AM  
This sounds like you might have some contraint inconsistencies. I recommend running the ICFS linter (inconsistent connected field set), using gen lint -i. This is something wil is recommended to do in general, before you start generating anything. Please also have a look in the user guide which exaplins ICFSs in detail and how to resolve them.

If you are still experiencing issues, I'd recommend to get the latest version of IntelliGen. We released a hotfix version of SPMN6.2 (SPMN06.20.002-s) at the end of November.

Regards,
-hannes
SomeDude
Posts: 12
Online: User is Offline
12/18/2007 2:07 AM  
Hello Hannes,

I was already running 002-s and now resolved the error. I had to heavily convert constraints from bidirectional to unidirectional to get it working. (Now Pgen stopped working though)

I stopped paying attention to icfs in the past because I was not able to write sequences not producing icfs but still working with pgen.
atm I'm trying to implement ifdefs to keep some constraints made for pgen out of igen and vice versa. Is there any variable I can use for checking which generator is currently being used?

greetings
hannes
Posts: 30
Online: User is Offline
12/18/2007 7:13 AM  
With sufficiently number and complexity of constraints we have found it very difficult to maintain
backward compatibility to PGen. What we recommend is to use ifdefs, as you mentioned. There
isn't a define for the generator, since the generator is set using a configuration option/command.
You could use the SPECMAN_VERSION_nn_nn_OR_LATER define if you want (i.e.
#ifdef SPECMAN_VERSION_06_20
// IGen constraints
#else
// PGen constraints

regards,
-hannes
SomeDude
Posts: 12
Online: User is Offline
12/19/2007 12:12 AM  
Using the Specman Version as decision is not really a solution for me, as my colleagues use the eVC with the same Specman Version I un and they need to use Pgen. We're still waiting for AHB to get ready for Gen5, so till then I have to keep it compatible for both.

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

Forums > Functional Verification > e > Gen5 list indexing, pop() on empty list


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.