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: Constraint issue
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
vbdc_montu
Posts: 6
Online: User is Offline
4/08/2008 1:34 PM  
Hi,
 
I’m trying to constraint two fields through a keep statement, but I’m receiving an error. This is the code:
 
struct packet{
...
    clkm: uint;
    keep soft clkm == 100;
 
    pkt_delay: uint;
    keep soft pkt_delay * 2 * clkm < 10000;
...
};
  
The error message:
  
      Previous constraints reduced its range of possible values,
        then the following constraint contradicted these values:
          keep pkt_delay * 2 * clkm < 100*  at line 79 in @packet
        Reduced: packet_s-@20.(pkt_delay*2*clkm) from Ύ..9999] into []
          Using: packet_s-@20.pkt_delay == �]
          Using: packet_s-@20.clkm == 𖏜]
 
It seems that the last keep is ignored when attributing value to fields clkm and pkt_delay; I tried without the “soft” in the keep statements but received the same error.
 
Thanks in advice
 
Montu

vbdc_montu
Posts: 6
Online: User is Offline
4/09/2008 12:30 PM  
My previous post is incorrect: when I use the code above I didn’t receive any errors, but the constraints seems to be ignored and a get values like 1270727026 for the pkt_delay field. I get the error above when I remove the soft constraints

Thanks for any suggestion
thinkverification
Posts: 28
Online: User is Offline
4/09/2008 12:35 PM  
if you're using PGEN (rather than IntelliGen) please try this:

keep soft pkt_delay == calc_pkt_delay();

calc_pkt_delay(): uint is {
gen result keeping {
it < 10000 / (2 * clkm);
};
};


Yaron

Yaron Ilani
VLSI Verification Specialist
www.ThinkVerification.com
vbdc_montu
Posts: 6
Online: User is Offline
4/10/2008 12:25 PM  
Hi Yaron, I’m using IntelliGen. But I tried:



keep pkt_delay < 10000 / 10000 / (2 * clkm);



, as you suggested inside your method and it worked (and I get surprised because I think I have tried this before and still get the error...).



Anyway, it worked!



Thank you!
thinkverification
Posts: 28
Online: User is Offline
4/10/2008 9:44 PM  
Great! Glad I could help.


Yaron Ilani
VLSI Verification Specialist
www.ThinkVerification.com
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > e > Constraint issue


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.