Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)

String parser

Altera_Forum
Honored Contributor II
1,130 Views

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.

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
319 Views

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
0 Kudos
Altera_Forum
Honored Contributor II
319 Views

 

--- 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?
0 Kudos
Altera_Forum
Honored Contributor II
319 Views

Yes. 

 

Cheers, 

Alex
0 Kudos
Reply