OpenCores
no use no use 1/1 no use no use
Help calculator project using FPGA Spartan 3A
by jefri on May 22, 2011
jefri
Posts: 2
Joined: May 20, 2011
Last seen: May 24, 2011
Hello Guys...
I want to make Calculator using FPGA Spartan 3A with VHDL code via keyboard.

I have connected PS2 Keyboard with Spartan's LCD.

My Problem is i don't have enough references how to make calculator logic.
any reference and script examples would help me alot...

Thx
RE: Help calculator project using FPGA Spartan 3A
by julianmilthorpe on Jul 5, 2011
julianmilthorpe
Posts: 4
Joined: Jul 4, 2011
Last seen: Mar 17, 2018
Hi Jefri,

I have just started a similar project myself. I am using as a starting point this page describing a reverse polish calculator. It has a little bit on the algorithm used which might help.

http://eng.anu.edu.au/courses/ENGN3213/Projects/RPC_project_ENGN3213_2010_V2.pdf

It is a project that my Uni ran a couple of years ago. I have only just started coding the LCD driver and PS/2 interface, so it will be a little while before I get on to the arithmetic, but perhaps we can discuss?

Cheers,
RE: Help calculator project using FPGA Spartan 3A
by pbennett45 on Jul 14, 2011
pbennett45
Posts: 1
Joined: Dec 16, 2008
Last seen: Jul 14, 2011
I didn't realize this was such a standard college project... I had to do the same thing on the same board. You, however, don't give enough info for anyone to really help you. Integer only? Full Floating point? For simple integer calculations, you can use the IEEE.std_logic_signed package. When we did this in college, we were told to use the picoblaze processor. But for simple calculations a simple state machine would be easier. Good Luck.
RE: Help calculator project using FPGA Spartan 3A
by julianmilthorpe on Jul 18, 2011
julianmilthorpe
Posts: 4
Joined: Jul 4, 2011
Last seen: Mar 17, 2018
Hi pbennett,

May I ask how the picoblaze went on this project? I personally didn't do it as I opted for an image processing project, but our cohort was required to design from the ground up using an FSM.

All the arithmetic operations had to be custom coded as well I think. It involved many sleepless nights for everyone involved.

Personally I was thinking of attempting to use only an FSM based approach, but if you think utilising the Picoblaze would be more beneficial, I might be converted.

Regards,

Julian
no use no use 1/1 no use no use
© copyright 1999-2025 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.