项目作者: mcavoya

项目描述 :
Verilog HDL Four Function Calculator
高级语言: Verilog
项目地址: git://github.com/mcavoya/ff_calc.git
创建时间: 2017-05-20T16:15:28Z
项目社区:https://github.com/mcavoya/ff_calc

开源协议:MIT License

下载


ff_calc

Verilog HDL Four Function Calculator

This project was started as an exercise. I wanted to try my hand at developing a four function calculator in Verilog HDL. More specifically, I wanted to design a Shunting Yard parser which converts infix notation to postfix (RPN). More information about the shunting yard algorithm can be found on Wikipedia.

https://en.wikipedia.org/wiki/Shunting-yard_algorithm

Since this project is just an exercise, it is not very practical. But, it is completely extensible and could easily be made fully functional. Right now it simply uses 4-bit tokens. The tokens are BCD 0 through 9, plus…

0xA : + (addition)

0xB : - (subtraction)

0xC : * (multiplication)

0xD : / (division)

0xE : = (equals)

0xF : clear

The calculations are simple integer math with no attempt at carry, borrow, rounding, etc.