Answered step by step
Verified Expert Solution
Question
1 Approved Answer
Requirement: In Verilog, design, verify and implement a calculator. It adds, subtracts or multiplies a 6 bit number to / from the current content of
Requirement:
In Verilog, design, verify and implement a calculator. It adds, subtracts or multiplies a bit number tofrom the current content of its accumulator. It continuously display the input number on the first two display digits and the current content of the accumulator on the last three digits of the display The accumulator's range is from to
Description
The heart of the calculator is the CTRL block. It receives commands from the push buttons PLUS MINUS, MULTIPLY or CLEAR and sends control signals to the datapath. Apart from CTRL there are registers, one for storing the result the accumulator and one for each of the digits used for display. The inputs shown in red are the control signals generated by the CTRL The blocks colored in blue are sequential, clocked by the input clock and initializedcleared by the common reset input. The reset is assimilated to the CLEAR command.
The output display configuration is stored in registers which are updated cyclically, with a rate of around In order to use one BCD converter and one BCDtosegment converter, the input and accumulator values, and their digits are multiplexed digit by digit. A simple solution may be based on a counter from which bits are used to generate the required control signals, as in the figure below:
Step by Step Solution
There are 3 Steps involved in it
Step: 1
Get Instant Access to Expert-Tailored Solutions
See step-by-step solutions with expert insights and AI powered tools for academic success
Step: 2
Step: 3
Ace Your Homework with AI
Get the answers you need in no time with our AI-driven, step-by-step assistance
Get Started