Answered step by step
Verified Expert Solution
Link Copied!

Question

1 Approved Answer

Simple Calculator using verilog Consider a simple calculator that accepts inputs from 1 to 5 . The calculator can do the following operations: 1 .

Simple Calculator using verilog Consider a simple calculator that accepts inputs from 1 to 5. The calculator can do the following operations: 1. Addition, 2. Multiplication, and 3. Subtraction. - Initially the calculator is in its idle mode. The flow should be as follows: 1- Assign numbers 1 to 5 to the push buttons on the FPGA board as depicted in Fig. 2. Fig 2. Push buttons as a keypad 2- The user needs to enter the first operand (fo), and the number will be displayed on the first seven segments (disp_1).3- The user needs to enter the second operand (so), and the number will be displayed on the second seven segments (disp_2).4- Then, the user needs to select one of the 3 operations: Addition or Multiplication or Subtraction. 5- The result should be displayed on the seven segments (disp_3 and disp_4).6- If the user selects subtraction and the result is a negative value, then an LED indicator (N) should be asserted, and the absolute value of the result should be displayed on the 7-seg. Note that, 2s-Complement must be used for subtraction. 1. Cntr_Unit: To lower down the FPGA internal clock to 10Hz.2. FSM_Lock_Unit: The FSM that controls the calculator operation. 3. Disp_Unit: It accepts the binary data for seven segment displays and decode and display them using time division multiplexing. 4. SW{0,1,2}: These switches from FPGA board are used to select the operator. 5. PB{1,2,3,4,5}: These push buttons from FPGA board are used to enter the operands. Fig 2. Push buttons as a keypad

Step by Step Solution

There are 3 Steps involved in it

Step: 1

blur-text-image

Get Instant Access with AI-Powered Solutions

See step-by-step solutions with expert insights and AI powered tools for academic success

Step: 2

blur-text-image

Step: 3

blur-text-image

Ace Your Homework with AI

Get the answers you need in no time with our AI-driven, step-by-step assistance

Get Started

Students also viewed these Databases questions