How to make a calculator with logic gates ( + - * / and To the power of 2 ?

Answers (1)

If you are just learning about logic gates, you have a ways to go before you start designing calculators. A calculation is not a logic function, it is a process. So you have to design a processor. That is a Read-Only-Memory, a ROM. Suppose our ROM has eight bits of output. These bits are fed back to form a portion of the address of the next step in a process. We use a latch register so the outputs only change in step with a clock signal. Now we have a device that can step through a process and alter its process depending on whatever signals we supply to it. And that is what a calculator does.

Here is a project to build an 8 bit computer. What I call a processor is what the project calls an instruction register.
www.instructables.com/id/How-to-Build-an-8-Bit-Computer/

Votes: +1 / -0

With respect thank you for taking the time ,Actually we just have to do it on paper (only gates) , and this is my project for the university, tried so hard but I couldn't solve this problem ,Unfortunately my passing score it depends on the project

Well then you need further instructions, because "calculator" is far too advanced for a class project. Maybe it was supposed to be "arithmetic logic unit" which is a lot simpler and made only from logic gates.

d

i want just do it with ( + - / * ) can i complete this ?(actually with your help)
www.uupload.ir/files/w3kw_main-qimg-2a2f1a4d40e250d661a52ae53166bc4f.gif

What you have in the picture is a two bit adder. You can multiply with an adder, but that requires a sequencer, which is the ROM that I mentioned before. Division requires subtraction and a sequencer.

It has been over 30 years since I worked with logic gates, so don't expect a lot of help from me.

I did not understand you,This is my university project and i must do it , i need just some help to complete a logic gate for calculation ( + - / * ) but I could not really do anything ...