strings in generics...

Discussion in 'VHDL' started by Russell, Aug 18, 2007.

  1. Russell

    Russell

    Joined:
    Aug 17, 2007
    Messages:
    6
    I used a string in a generic with the ‘&’ operator (as shown in the code fragment below), but it does not concatenate (ignores the part after the &)

    Do you know if concatenation is not allowed for generics?



    entity mux is

    generic (

    PartNo : string := "12345" & “ABC”

    );

    port (

    TxClk : in std_logic;
    Etc…

    Gives PartNo as “12345”
    Russell, Aug 18, 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. Juergen Berchtel
    Replies:
    1
    Views:
    5,990
    John C. Bollinger
    May 20, 2005
  2. Kurt Krueckeberg
    Replies:
    2
    Views:
    708
    =?ISO-8859-1?Q?Ney_Andr=E9_de_Mello_Zunino?=
    Nov 17, 2004
  3. Ben

    Strings, Strings and Damned Strings

    Ben, Jun 22, 2006, in forum: C Programming
    Replies:
    14
    Views:
    756
    Malcolm
    Jun 24, 2006
  4. Russell
    Replies:
    3
    Views:
    579
    Mike Treseler
    Aug 20, 2007
  5. Soul
    Replies:
    0
    Views:
    517
Loading...

Share This Page