Velocity Reviews - Computer Hardware Reviews

Velocity Reviews > Newsgroups > Programming > VHDL > strings in generics...

Reply
Thread Tools

strings in generics...

 
 
Russell Russell is offline
Junior Member
Join Date: Aug 2007
Posts: 6
 
      08-17-2007
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”
 
Reply With Quote
 
 
 
Reply

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Strings, Strings and Damned Strings Ben C Programming 14 06-24-2006 05:09 AM
How to generate k+1 length strings from a list of k length strings? Girish Sahani Python 17 06-09-2006 11:01 AM
Catching std::strings and c-style strings at once Kurt Krueckeberg C++ 2 11-17-2004 03:53 AM
convert list of strings to set of regexes; convert list of strings to trie Klaus Neuner Python 7 07-26-2004 07:25 AM
Comparing strings from within strings Rick C Programming 3 10-21-2003 09:10 AM



Advertisments