Question: Modify the decoder in task 1 to show the sum of two 4 - bit binary inputs on one of the 7 - segment displays.
Modify the decoder in task to show the sum of two bit binary inputs on one of the segment displays. As only one segment display is used, the circuit will only work correctly for sums that are less than ten.
Write the source code, and also provide a simulation result screenshot that shows the addition of the last two digits of your ID number, or the addition of the last digit of your ID number and the last digit of your partner ID number. The sum should be less than ten.
module labfive
input : bin,
output : an
output reg : c
;
assign anb;
always @
casebin
b:
c b ;
b:
c b ;
b:
c b ;
b:
c b ;
b:
c b ;
b:
c b ;
b:
c b ;
b:
c b ;
b:
c b ;
b:
c b ;
endcase
endmodule
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
