Subtype of User-Defined Type?

Discussion in 'VHDL' started by tonyfai, Dec 6, 2007.

  1. tonyfai

    tonyfai

    Joined:
    Sep 13, 2007
    Messages:
    2
    Hi,

    I tried to declare a subtype of a user-defined type like this:

    TYPE test IS (a, b , c, d, e);
    SUBTYPE subtest IS test (a, c, e);

    However, Quartus v7.2 give me an error:
    "Type Conversion near text or symbol "test" must have one argument", which I don't understand even after reading Quartus' help.

    Can someone please explain what the error means? Is it even possible to do such subtype declaration? If so, what's the correct format?

    Thank you.
    tonyfai, Dec 6, 2007
    #1
    1. Advertising

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. Hari

    subtype for integers

    Hari, Jan 7, 2004, in forum: VHDL
    Replies:
    5
    Views:
    607
    Jim Lewis
    Jan 12, 2004
  2. Mohammed  A khader
    Replies:
    1
    Views:
    2,560
    Jonathan Bromley
    Jan 28, 2005
  3. Oodini
    Replies:
    1
    Views:
    1,731
    Keith Thompson
    Sep 27, 2005
  4. zhangpei@gmail.com

    type/subtype definition in entity

    zhangpei@gmail.com, Apr 17, 2007, in forum: VHDL
    Replies:
    3
    Views:
    7,773
    zhangpei@gmail.com
    Apr 18, 2007
  5. valtih1978

    defines both a type and a subtype

    valtih1978, Nov 13, 2012, in forum: VHDL
    Replies:
    4
    Views:
    342
    valtih1978
    Nov 15, 2012
Loading...

Share This Page