Telboy99
Newbie
I have a command buffer from an input of a UART and I want to decode various commands to perform actions in a FSM. I have created an array of 80 characters and in this example I want to see if the word Print has been entered, however, this does not compile.
type InputBufferType is array (0 to 80) of std_logic_vector(7 downto 0);
signal CommandBuffer : InputBufferType;
if commandBuffer(0 to 4) = "Print" then
Any suggestions are welcome !
type InputBufferType is array (0 to 80) of std_logic_vector(7 downto 0);
signal CommandBuffer : InputBufferType;
if commandBuffer(0 to 4) = "Print" then
Any suggestions are welcome !