Forum Discussion
Altera_Forum
Honored Contributor
9 years agoString operation
I have a string
signal rx_uart_buf : string (0 to 127);
Now I want to test every char value
when ST_PARSE_COM =>
if (idx < RX_BUF_SIZE) then
case character'pos(rx_uart_buf(idx)) i...
Altera_Forum
Honored Contributor
9 years agoI see. Thank you. Quartus compiles it. But to be on safety side I've decided to define a string as array of bytes
type byte_array is array (0 to RX_BUF_SIZE) of std_logic_vector(7 downto 0); signal rx_uart_buf : byte_array;