EDAboard.com | EDAboard.de | EDAboard.co.uk | WTWH Media

converting input string into prefix or postfix format

Ask a question - edaboard.com

elektroda.net NewsGroups Forum Index - VHDL Language - converting input string into prefix or postfix format


Guest

Thu Nov 22, 2018 3:45 pm   



Hello, I am trying to implement a basic calculator in vhdl. I need to convert the input string (eg. 2+3*4-10/5)into a prefix or postfix format so that priorities of operations can be sorted out. Is their any way available?

HT-Lab
Guest

Thu Nov 22, 2018 6:45 pm   



On 22/11/2018 14:22, viraj.deochake16_at_vit.edu wrote:
Quote:
Hello, I am trying to implement a basic calculator in vhdl. I need to convert the input string (eg. 2+3*4-10/5)into a prefix or postfix format so that priorities of operations can be sorted out. Is their any way available?


My 5 second advice would be to google some C/C+/Python/.. implementation
and then translate into VHDL. In effect you need an FSM and a Stack both
are fairly easy to do in VHDL.

Good luck,
Hans.
www.ht-lab.com

elektroda.net NewsGroups Forum Index - VHDL Language - converting input string into prefix or postfix format

Ask a question - edaboard.com

Arabic version Bulgarian version Catalan version Czech version Danish version German version Greek version English version Spanish version Finnish version French version Hindi version Croatian version Indonesian version Italian version Hebrew version Japanese version Korean version Lithuanian version Latvian version Dutch version Norwegian version Polish version Portuguese version Romanian version Russian version Slovak version Slovenian version Serbian version Swedish version Tagalog version Ukrainian version Vietnamese version Chinese version Turkish version
EDAboard.com map