Home > Community > Forums > Functional Verification > Multiple Classes per Package

Email

* Required Fields

Recipients email * (separate multiple addresses with commas)

Your name *

Your email *

Message *

Contact Us

* Required Fields
First Name *

Last Name *

Email *

Company / Institution *

Comments: *

 Multiple Classes per Package 

Last post Fri, Mar 2 2007 11:58 AM by archive. 4 replies.
Started by archive 02 Mar 2007 11:58 AM. Topic has 4 replies and 1435 views
Page 1 of 1 (5 items)
Sort Posts:
  • Fri, Mar 2 2007 11:58 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,910
    Multiple Classes per Package Reply

    Do I need to declare every class in a separate package or can I place multiple classes in a single package?

    Dave Fechser
    LSI Logic, Inc.
    Fort Collins, CO


    Originally posted in cdnusers.org by dfechser
    • Post Points: 0
  • Fri, Mar 2 2007 1:23 PM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,910
    RE: Multiple Classes per Package Reply

    Hello Dave,

    You are free to place multiple classes into a single package.

    Kathleen


    Originally posted in cdnusers.org by kameade
    • Post Points: 0
  • Sat, Mar 3 2007 8:18 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,910
    RE: Multiple Classes per Package Reply

    I hope this is not a language related question - LRM doesn't limit any such thing. As a methodology as well I will be very surprised if someone tries that - we are only populating the namespace by doing that. Instead what we usually do in our company and also recommend to our customers is to have one package per IP block - such as AHB, ENET, PCI etc. Sure there can be few packages per complex IP if needed but not 1 package per class.

    Regards
    Ajeetha, CVC
    www.noveldv.com  


    Originally posted in cdnusers.org by ajeetha
    • Post Points: 0
  • Wed, Mar 7 2007 7:21 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,910
    RE: Multiple Classes per Package Reply

    Thanks. I want to do one package per VIP block but have only been able to find examples of one-class-per-package.


    Originally posted in cdnusers.org by dfechser
    • Post Points: 0
  • Wed, Mar 7 2007 7:36 AM

    • archive
    • Top 75 Contributor
    • Joined on Fri, Jul 4 2008
    • Posts 88
    • Points 4,910
    RE: Multiple Classes per Package Reply

    Example:

    package vip_pkg;

    class one_c;
    ...
    endclass

    class two_c;
    ...
    endclass

    endpackage

    module vip;

    import vip_pkg::*;

    endmodule


    Originally posted in cdnusers.org by tpylant
    • Post Points: 0
Page 1 of 1 (5 items)
Sort Posts:
Started by archive at 02 Mar 2007 11:58 AM. Topic has 4 replies.