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: use of is_relevant() in sequences
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
jhzhang
Moderator
Posts: 7
Online: User is Offline
2/05/2006 7:53 PM  
Hi, I recently ran into an issue related to the use of is_relevant() from within a sequence and I'd like to get some opinion on possible solutions.

Problem: I want to use is_relevant() as a form of back-pressure to stall the enclosing sequence upon some condition. However, that condition is not known until the current item has been generated. Since 'do' is an atomic action, and is_relevant() does not allow access to the generated item as it's being 'do'ne, I'm stuck.

We eventually ended up replacing the 'do' syntax with our own macro for doing an item. Our macros would generate the item first, set some conditions based on the results of the gen, and then invoke 'do' to pass it the item we just generated. The conditions we set right after the gen would be used to implement is_relevant().

The work-around solves the problem, but it's cumbersome and we might run into some issues in the future should the semantics/implementation of 'do' change.

Has anyone else ever encountered a similar problem/limitation with is_relevant()?

cheers,

Joseph H. Zhang
Lead Verification Engineer
Cisco Systems, Inc.
(919) 392-1350
levent
Posts: 4
Online: User is Offline
2/08/2006 9:41 AM  
Hello Joseph,

You can do couple things; you can pre-generate the field of the do item or do item's field within is_relevant method, decide to start upon the generated value
pseudo code may look like

struct vr_pcie_tlp_pkt {
tlp_type: tlp_type_t;
tc: tc_t;
};

sequence vr_pcie_tl_seq {

!pre_tc: tc_t;

body()@driver.clock is {
do pkt keeping {
.tc == pre_tc;
};
};

is_relevant():bool is {
gen pre_tc;
return TRUE(tc in Ύ..3] and tc_pipe_is_empty);
};
};





jhzhang
Moderator
Posts: 7
Online: User is Offline
2/08/2006 10:08 AM  
Hi Levent, thanks for the recommendations. There's a major disadvantage that made us avoid the approaches you spoke of. That is, the user who is writing the sequences now has lost control of the field in terms of constraining as part of the do, or via extending the transaction item.

Joseph
levent
Posts: 4
Online: User is Offline
2/08/2006 10:33 AM  
Hi Joseph

Then your choice is always generate the item first.

The advantage of is relevant is to hold the generation till the last moment thus you can generate the item per the last snap shot of the environmet/dut status , because your generation may depend on the status. Forcv example, you hold of generation of a completion until there is an valid incoming request and generate the CMPL per specifics of that request.

Thus you need make a choice between
giving the same constraint control to user but not being able generate per the latest status
or
not giving the same constraint control

If you are OK with the first choice then (you may already do this)

extend FOO ex_atm_sequence {

// Items/subsequences
!cell: ex_atm_cell;

// The body() method
body() @driver.clock is {
var preprepared_cell: ex_atm_cell;
gen preprepared_cell;
...
//BLOCK until the condition is met
wait (prepared_cell.id == 5 and pipe_status==empty)
do cell keeping {it == preprepared_cell};
};

};


In this case user still can constraint the sequence or the "prepared_cell" item as he wishes. The down side is, as I mentioned, you loose the ability of generating the cell per the latest condition of environment/dut.

If still this wont resolve your issue please open up a service request and may be R&D experts can help you out

Cheers
Levent Caglar
Posting to forums is available to community members only.
Login or Register

Forums > Functional Verification > e > use of is_relevant() in sequences


ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.