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

  Explain the term internal inductance

Outline the steps involved in the electroquasistatic field analysis of a parallel plate structure and the determination of its input behavior. Compare the input behavior with the electrostatic case.

  What is the value of the rlc-circuit complex impedance

The input signal is 10 sin ( 2 pi 1592 t + 0degrees ) applied to a series RLC circuit with resistor R = 1000 ohm and inductor L = 0.2 H, and C = 0.1 micro F. what is The value of the total circuit complex impedance.

  Derive the 3thorder differential equation for v

The circuit elements have parameter values L1= 1H, L2=1H, C = 1F, and R = 2.5+(0.5x0.244) ohms. The resistor value is then between 2.5 and 2.9995 ohms. Using Kirchhoff's voltage and currents laws, derive the 3thorder differential equation for vo(t)..

  Determine the displacement of joint

Problem 1: For the following truss, each member has the same EA. All members are pin connected at their joints. (i) Under the loads at C and D, determine the displacement of joint D along the CD direction (20')

  How many flip-flops would be required

A binary pulse counter can be constructed by interconnecting T -type flip-flops in an appropriate manner. Assume it is desired to construct a counter which can count up to 10010.

  Write the assembly language program to load each number

Use the immediate addressing mode to add four to each value that is loaded to accumulator. Store the results in Locations 13-15. Let's assume that in Locations 10-12 we have the values 5, 6, and 7. After executing your code, the values in Location..

  Describe the characteristics of the series rc filter circuit

Describe the characteristics of the series RC filter circuit with the output across the resistive component. Distinguish the pass and stop bands with reference to the cutoff frequency. Also, state what happens to the circuit complex impedance at t..

  What is the value of the smallest resistor

The voltage drops across three resistors in series are measured to be 10.0V, 15.0V, and 25.0V. If the largest resistor is 47.0 ?, what is the value of the smallest resistor?

  Derive the form of the filter that maximizes the snr

Derive the form of the filter that maximizes the SNR at the output of the filter at time t =tO To make this problem simpler, you do not need to insist that the filter is causal.

  In the circuit shown in figure a-4 the zener diode is

in the circuit shown in figure a-4 the zener diode is rated at 5.6 v and is operating in the zener region. if the

  Plot the step and impulse response of the system

Assume the output is taken from the capacitor in this RC system with R=200Ohm and C=1µF. Plot the step and impulse response of the system by using the LSIM (you can use TF function before LSIM to calculate your system coefficients) function of MATLAB..

  How to derive the expression for the capacitor voltage

The rectangular shaped current pulse is applied to 0.5microFarad capacitor.The initial voltege on the capacitor is a 20V drop in the reference direction of the current. Assume the passive sign convention. Derive the expression for the capacitor vo..

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