Question: IMPORTANT: For every line of code you need to add comments describing what is being performed, example: Module hwork(x,y,z); //identifying input-outputs The lines without comments

IMPORTANT: For every line of code you need to add comments describing what is being performed, example: Module hwork(x,y,z); //identifying input-outputs The lines without comments will receive half score, So if you have written 100 lines of code 50 pts for code, 50 points for comments. You can group comments for a couple of lines, doing a certain operation Question: a) (70 Pts) Write down the Verilog design code that gets two 4-bit number inputs from BASYS3 slide switches (number a=SW12(LSB)->SW15(MSB), number b=SW8(LSB)->SW11(MSB)) and adds these numbers if SW3 is ON subtracts these numbers if SW2 is ON (a-b) multiplies these numbers if SW1 is ON divides these numbers if SWO is ON (a/b) AND Displays the result on the 4-digit seven segment display. b) (30 Pts) Give the BASYS3.xdc file for this design code
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
