Forum Discussion
Altera_Forum
Honored Contributor
9 years agoString parser
I need some example for string parsing. Just some basics to move on. I get commands from a terminal on UART module so I want to parse this commands and its arguments.
3 Replies
- Altera_Forum
Honored Contributor
What have you tried?
I'd store all incoming characters into a DPRAM and then process them once you've received a carriage return - assuming that marks the end of your command. Cheers, Alex - Altera_Forum
Honored Contributor
--- Quote Start --- What have you tried? I'd store all incoming characters into a DPRAM and then process them once you've received a carriage return - assuming that marks the end of your command. Cheers, Alex --- Quote End --- So I have to store all commands and compare with an incoming buffer? - Altera_Forum
Honored Contributor
Yes.
Cheers, Alex