Thursday, January 08, 2009     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: Queue query
Posting to forums is available to community members only.
Login or Register
Rate this topic:
   
Author Messages
jaally
Posts: 32
Online: User is Offline
2/15/2008 3:50 AM  
Hi Friends,

   I'm trying to clear my items in the queue by the following statement:

logic Ε:0] my_queue[$]
logic Ε:0] my_data;
...........
my_queue.push_front(my_data);
......

my_queue = {};
......


But I get this error:
my_queue = {};

*E: ILLPRI  -> Illegal expression primary

Can anyone help me in this regards?

Thanks in advance,
Jalli
shalom
Posts: 13
Online: User is Offline
2/15/2008 4:15 AM  
Try '{}
jaally
Posts: 32
Online: User is Offline
2/15/2008 4:24 AM  
Hi Shalom,
It didn't work!! :-(
Regards,
Jalli
stephenh
Posts: 77
Online: User is Offline
2/15/2008 4:50 AM  
I think this might not be supported yet (I have not checked for a long time).
You could use a foreach loop to achieve the same, something like:

foreach (my_queue) my_queue.pop()


Steve H.
jaally
Posts: 32
Online: User is Offline
2/15/2008 5:00 AM  
Hi Steve,

Thanks a lot!!....instead i'll use my_queue.delete for my_queue.size() times.

Regards,
Jalli
srinivaspudu
Posts: 2
Online: User is Offline
2/15/2008 5:24 AM  
I was going to suggest that same:

here are some more methods for your info, sytemverilog LRM lists more:
www.eda.org/sv/SystemVerilog_3.1a.pdf



size() — returns the number of items in the queue
Eg:intque.
size();
➢ insert() — inserts the given element at the specified index position
Eg:strque.
insert(1,"next");
➢ delete() — deletes the given element at the specified index position
Eg:strque.
delete(1);
➢ pop_front() — removes aand returns the first element of the queue
Eg:s
= strque.pop_front();
➢ pop_back() — removes aand returns the last element of the queue
Eg:s
= strque.pop_back();
➢ push_front() — inserts the given element at the front of the queue
Eg:s
= strque.push_front(“in-front”);
➢ push_back() — inserts the given element at the end of the queue
Posting to forums is available to community members only.
Login or Register



ActiveForums 3.6
     
Copyright 2006 Cadence Design Systems, Inc.