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”
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”