converting input string into prefix or postfix format

Guest
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?
 
On 22/11/2018 14:22, viraj.deochake16@vit.edu wrote:
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
 

Welcome to EDABoard.com

Sponsor

Back
Top