Question: 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
1 Expert Approved Answer
Step: 1 Unlock
Question Has Been Solved by an Expert!
Get step-by-step solutions from verified subject matter experts
Step: 2 Unlock
Step: 3 Unlock
