rzsmith
Newbie
I would like to parse separate characters inside a VHDL string array. The actual code is quite large and 99.99% of it has nothing to do with this question.
I am getting an error: Error: Indexed name is not a 'std_logic_vector'
Sample code:
component TestRun is
port ( StrAr : in string(1 to 3) :="ABC" );
...
signal Char_Two : std_logic_vector( 7 downto 0 );
What is the correct syntax to:
Char_Two <= StrAr(1); -- ie Char_Two = 'B'
I am getting an error: Error: Indexed name is not a 'std_logic_vector'
Sample code:
component TestRun is
port ( StrAr : in string(1 to 3) :="ABC" );
...
signal Char_Two : std_logic_vector( 7 downto 0 );
What is the correct syntax to:
Char_Two <= StrAr(1); -- ie Char_Two = 'B'