Question: i need a Verilog code that correspond with the design i made ? I should get the infomation from my switch one ( 0 :

i need a Verilog code that correspond with the design i made ?
I should get the infomation from my switch one (0:7) and the other (8:16) and the FSM is to select the operation which are 3 bit number that the ALU going to preform using button like how i have it the middle change mode while the four select the opration. i should use all four segment as well so it should display in two place led and 4 segment.
Your design should allow the user to select the following operations: addition, subtraction, multiplication, division (need to handle divide-by-zero), logical shift (either left or right), bitwise
AND, and bitwise OR. It should only allow at most one operation to be conducted at a time. You
may assume inputs are unsigned numbers. Display the output on the seven segment display in
decimal or hexadecimal as well as on the LED lights in binary. You should consider reusing Verilog
modules you designed in this course, such as the seven-segment display, etc. Note, you may use
behavioral Verilog to implement the operations instead of a structural implementation. This means
you can use the +,,,/, & ,| operators rather than having a module that does the operation
from the ground up. You may choose to use all 16 DIP switches on your Basys board for inputs,
and use buttons to encode the operations. Or use 8 DIP switches in combination with buttons to
load different registers then use 3 DIP switches to encode the operation.
components are
3register
a Faint state machine -how it design is button in the middle change mode while the one on the side choose Mode one +,-,*,/ and Mode two shift right, shift left, bitwise OR, bitwise AND
check statement before a ALU for the /
ALU
4segment and display on led
i need a Verilog code that correspond with the

Step by Step Solution

There are 3 Steps involved in it

1 Expert Approved Answer
Step: 1 Unlock blur-text-image
Question Has Been Solved by an Expert!

Get step-by-step solutions from verified subject matter experts

Step: 2 Unlock
Step: 3 Unlock

Students Have Also Explored These Related Programming Questions!