use clause

Discussion in 'VHDL' started by crazyrdx, Aug 30, 2005.

  1. crazyrdx

    crazyrdx Guest

    I would like to know why is it that in some of the VHDL code I have
    seen, the USE clauses are defined at various points in the program,
    instead of all at the beginning. In fact, there is even seeming to be a
    repetition of some of the use clauses within one program(like before
    entity declaration and then again before architecture definition). Why
    is this?

    Thanks
     
    crazyrdx, Aug 30, 2005
    #1
    1. Advertisements

  2. crazyrdx

    Guest

    You need a use clause for each package and for each entity/architecture
    pair (placed before the entity). I am not a VHDL guru, but I'm sure it
    has to do with the scope of a use statement.
     
    , Aug 30, 2005
    #2
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Jan
    Replies:
    2
    Views:
    1,687
    Mike Treseler
    Dec 16, 2004
  2. bxbxb3

    "else process" clause

    bxbxb3, May 26, 2005, in forum: VHDL
    Replies:
    3
    Views:
    883
    combinational.logic $ soc-ip.com
    May 27, 2005
  3. Andrew FPGA

    Use clause usage with XST?

    Andrew FPGA, Mar 23, 2006, in forum: VHDL
    Replies:
    1
    Views:
    928
    Rolf Eike Beer
    Mar 27, 2006
  4. =?Utf-8?B?RGFiYmxlcg==?=
    Replies:
    6
    Views:
    13,596
    =?Utf-8?B?UGhpbGxpcCBXaWxsaWFtcw==?=
    Apr 4, 2006
  5. feiyang
    Replies:
    1
    Views:
    1,811
    Ajeetha
    Nov 23, 2006
  6. Replies:
    3
    Views:
    536
    Mike Treseler
    Jul 20, 2007
  7. David C Hendry

    USE clause for cell library

    David C Hendry, Dec 11, 2008, in forum: VHDL
    Replies:
    6
    Views:
    611
    David C Hendry
    Dec 12, 2008
  8. Julien
    Replies:
    4
    Views:
    320
    Julien
    Jan 10, 2007
Loading...