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

  Lithium ion battery technology

The paper includes Lithium ion battery technology with its advantages and disadvantages. The paper discusses about the Lithium air battery in which detailed reactions of Lithium with air including nonaqueous as well as aqueous are given.

  Power transformers and tariffs

Construction of different types of power transformer, significant energy savings

  Paper on orthogonal frequency-division multiplexing

This document is shown a paper on Orthogonal frequency-division multiplexing with advantages, disadvantages and uses.

  Function of the hmi in a scada system

This assignment contains electronics engineering questions like State the commonly found components of a SCADA (Supervisory control and data acquisition) system. and decribe the function of the HMI in a SCADA system.

  Resultant waveform of the odd harmonic series

Prepare an Excel graph showing the individual components and summated resultant waveform of the odd harmonic series resulting in an approximate square wave.

  Explain scada system

Explain the function of the HMI in a SCADA system.

  Design a 2-digit 24 second shot-clock

Design a 2-digit 24 second "shot-clock" countdown timer with pushbutton controller.

  Model a discrete-time system

To understand di erent signal models To be able to model a discrete-time system and design simple signal processing algorithms.

  Draw a relay construction diagram

Draw a relay construction diagram and briefly explain the operation of a relay.

  Frequency division multiplexing

Write a short technical report on Frequency Division Multiplexing

  Impact of electron energy

Briefly discuss the impact of electron energy, electron current and target on the Bremsstrahlung generated.

  Traffic light controller

The schematic of the traffic light controller

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