Write vhdl code for the main calculator module

Assignment Help Electrical Engineering
Reference no: EM131367484

The problem concerns the design of a simple calculator for adding unsigned binary numbers. Operation is similar to a simple hand-held calculator, except all inputs and outputs are in binary, and the only operation is +. The calculator displays 8 bits with a binary point. The calculator has only five keys: 0, 1, . , +, and reset. Reset clears all registers and resets the calculator to the starting state. After entering the first number, the + key terminates that entry and allows a second number to be entered. When + is pushed again, the sum is put in the accumulator, and another number can be entered. This continues until the calculator is reset. Note that there is no equals key. You may assume that only normal input sequences occur, that is, a number will always be entered each time before + is pressed. Before addition can be done, the binary points of the numbers to be added must be aligned by shifting. If addition produces an overflow, the overflow should be corrected if possible. If not, set E = 1 to indicate an error.

The keys are not encoded. The calculator has six input signals: zero, one, dot, plus, reset, and V. Assume that all input signals are debounced, and V = 1 for one clock time whenever a key is pressed. Outputs to the display are 8 bits from the A register, RCTA (the number of bits to the right of the binary point), and E.

(a) Draw a block diagram for the calculator showing required registers, counters, adders, and so on. Show the necessary control signals and tell what they mean. For example, RSHA means right shift A. Specify the size of each register.

(b) Draw an SM chart for the main calculator code. Include inputting the binary numbers, aligning the binary points, adding, and correcting for overflow if possible. Define all control signals used.

(c) Write VHDL code for the main calculator module.

(d) Write a test bench for your VHDL module.

Reference no: EM131367484

Questions Cloud

Discuss about the applying contract law to non employment : Read the Module 2 assigned readings, which include Chapter 7 from The Farmer's Legal Guide to Producer Marketing Associations titled, "Contract Law Tutorial," and two law exams. In addition to these, using the Argosy University online library reso..
Understanding of perspectives : Provide a brief background of itlay including its political system, its economics system, and basic statistics (total population, physical size of country, etc.) research 2-3 customs or traditions that would allow you to gain a better understandin..
Relevant articles on the topics of cultural intelligence : Search the Capella library and the Internet for recent, relevant articles on the topics of cultural intelligence, multiculturalism, and diversity in global organizations. You will need at least three resources to support your work in this assignme..
Conduct an analysis of the australian hardware business : Develop a strategy which ensures that team members are actively encouraged and supported I. to participate in decision-making processes II. take on responsibility for project tasks III. exercise initiative during various stages of the project.
Write vhdl code for the main calculator module : The keys are not encoded. The calculator has six input signals: zero, one, dot, plus, reset, and V. Assume that all input signals are debounced, and V = 1 for one clock time whenever a key is pressed. Outputs to the display are 8 bits from the A r..
What reorder point should be used : A bakery's use of corn sweetener is normally distributed with a mean of 80 gallons per day and a standard deviation of four gallons per day. Lead time for delivery of the corn sweetener is normal, with a mean of six days and a standard deviation of t..
Exportation strategy is to finalize legal issues : Internationalization (sometimes shortened to "I18N , meaning "I - eighteen letters -N") is the process of planning and implementing products and services so that they can easily be adapted to specific local languages and cultures, a process called lo..
Aspects of brigham and women hospital : Analyze unique aspects of Brigham and Women's Hospital (BWH) and Brigham and Women's Physicians Organization (BWPO) organizational structure and the design of the physical space.
How a court would inquire into the situation : Reread the Contracts Mid-Term Exam. Click here to access the exam.Write a 3- to 5-page paper explaining the contract issues and how a court would inquire into the situation. Use the articles you found and used for the previous assignment and the C..

Reviews

Write a Review

Electrical Engineering Questions & Answers

  Find the voltage across the inductor for an instance

1- Find the voltage across the inductor for t > 0 2- Sketch the voltage and the current as a function of time 3- Find the power ( in microwatts) at the terminals of the inductor when t = 200 ms

  The parameters of the op amp in the circuit

The parameters of the op-amp in the circuit shown in given figure are Av = 105, Ri = 30 k Ω, and Ro = 500 Ω.- Determine Av f, Ri f , and Rof.

  Compute and plot capacitor voltage vc for the input signal

Consider a circuit consisting of a voltage source in series with a 1-Henry inductor and a 0.25-Farad capacitor. Assume all initial conditions are 0. Compute and plot the capacitor voltage vc(t) for the following input signal at the voltage source.

  Ndicate output frequenciesif the signal is applied to dsb

A modulating signal consists of two sinusoidal components: 1 kHz and 3 kHz. The transmitter carrier frequency is 80 kHz. If the signal is applied to an ideal DSB transmitter, indicate the output frequencies (in kHz).

  Briefly explain the idea of representing an interest rate

Briefly explain the idea of representing an interest rate as a collection of components. What is represented by the base rate? What is the risk premium for? Explain the idea of risk in lending.

  What is maximum current that resistance can conduct safely

a) What is the total resistance corresponding to 1kohm, 4kohm, 10kohm, 4.7kohm resistors connected in series b) What is the total resistance corresponding to 10ohm, 100ohm, 1kohm, 10kohm resistors connected in parallel

  Why does the thevenins technique work only for circuits

Why does the Thevenin's technique work only for circuits with linear elements (or at most a single non-linear resistor). Figure out where the mathematics of the theorem breaks down for non-linear elements and why

  Calculate gf using outside diameter of the pipe

A true centrifugal casting operation is to be performed in a horizontal configuration to make cast iron pipe sections. The sections will have a length = 42.0 in, outside diameter = 8.0 in, and a wall thickness = .50 in

  What is the efficiency of the generator at these conditions

Now assume that another identical Ll-connected load is to be paralleled with the first one. What happens to the phasor diagram for t he generator?

  State the divergence theorem and discuss its application

Are all Maxwell's equations in differential form independent? If not, which of them are independent?

  Determine the power losses in primary secondary resistance

Assuming unity power factor, determine the full load currentsin the primary and secondary windings At full load, determine the power losses in the primarysecondary resistances. If the input power to the transformer at full load is 1000kw,determine th..

  What is the rms value of the largest sine-wave inpu

An amplifier with 40 dB of small-signal, open circuit voltage gain, an input resistance of 1M Ohm, and an output resistance of 10 Ohm, drives a load of 100 Ohm. What voltage and power gains (in dB) would you expect with the load connected

Free Assignment Quote

Assured A++ Grade

Get guaranteed satisfaction & time on delivery in every assignment order you paid with us! We ensure premium quality solution document along with free turntin report!

All rights reserved! Copyrights ©2019-2020 ExpertsMind IT Educational Pvt Ltd