• Skip to main content
  • Skip to search
  • Skip to footer
Cadence Home
  • This search text may be transcribed, used, stored, or accessed by our third-party service providers per our Cookie Policy and Privacy Policy.

  1. Community Forums
  2. Functional Verification
  3. Copy an array

Stats

  • Locked Locked
  • Replies 1
  • Subscribers 64
  • Views 13215
  • Members are here 0
This discussion has been locked.
You can no longer post new replies to this discussion. If you have a question you can start a new discussion

Copy an array

archive
archive over 17 years ago

Hi, For some reason my postings all show up as one single line. Any idea why? If you would like to read this normally have a look at the attached text file. I'm trying to copy an array from one class instance to another, but keep getting compilation errors everywhere I go. Please have a look at the code below: package t; class yy; int a[$]; endclass class x; int b[$]; yy y1; function u(); // option 1 : doesn't compile b = y1.a; // option 2 : doesn't compile foreach (y1.a[i]) b.push_back(y1.a[i]); // option 3 : compiles but I really wish I don't have to use it each time I want to copy an array! for (int i=0; i


Originally posted in cdnusers.org by avidan_e
  • for_cdnusers.txt
  • View
  • Hide
  • Cancel
Parents
  • archive
    archive over 17 years ago

    Check out the second posting on this forum (http://www.cdnusers.org/Forums/tabid/52/forumid/66/postid/4806/view/topic/Default.aspx). It explains how to post code so that it will appear correctly.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Reply
  • archive
    archive over 17 years ago

    Check out the second posting on this forum (http://www.cdnusers.org/Forums/tabid/52/forumid/66/postid/4806/view/topic/Default.aspx). It explains how to post code so that it will appear correctly.

    Tim


    Originally posted in cdnusers.org by tpylant
    • Cancel
    • Vote Up 0 Vote Down
    • Cancel
Children
No Data

Community Guidelines

The Cadence Design Communities support Cadence users and technologists interacting to exchange ideas, news, technical information, and best practices to solve problems and get the most from Cadence technology. The community is open to everyone, and to provide the most value, we require participants to follow our Community Guidelines that facilitate a quality exchange of ideas and information. By accessing, contributing, using or downloading any materials from the site, you agree to be bound by the full Community Guidelines.

© 2025 Cadence Design Systems, Inc. All Rights Reserved.

  • Terms of Use
  • Privacy
  • Cookie Policy
  • US Trademarks
  • Do Not Sell or Share My Personal Information