Question: 2 . 2 Subtask Two Second, we need to design the logic to control the states ( ON / OFF ) of each segment in

2.2 Subtask Two
Second, we need to design the logic to control the states (ON/OFF) of each segment in the 7-Segment display. As
shown in Fig. 3, the display contains seven segments labeled through S1 to S7. When provided with input bit 1, a
segment will turn on (become red). Play with this 7-Segment display to know the correspondence between the
inputs and the segments.
rig. 3./-segment vispiay
In this subtask, you will use three input lines E0E1E2 to control the 7-Segment display. Specifically, E0E1E2
present the binary form of a decimal digit i(i=0,1,cdots,7), which will shown in the 7-Segment display. The
designing process is similar to what you have learned in Lab 10. Specially, you will write a truth table with E0E1E2
, Vol. 1, No.1, Article . Publication date: April 2024.
as inputs and S1S2S3S4S5S6S7 as outputs. Carefully decide which segments will be turned ON for each input digit
value. For example, when i=1, we assume that segments S4 and S7 will be turned ON.
Based on the truth table, derive the functions relating each output Sj with the inputs E0E1E2. Finally, construct
the circuit using AND and OR gates. To ease the grading process (and make the grader happy), you are suggested
to organize the gates as shown in Fig. 4.
You will use three "Pins" as the inputs E0E1E2. The figure does not say that there are only three AND
gates and two OR gates in the circuit. You can reuse the AND gates to reduce the number of gates.
2.3 Subtask Three
Now, you can combine the two circuits to achieve our desired functionality: click a button i, show the digit i in
the 7-Segment display. An example circuit is shown in Fig. 5. One thing to notice is that the orders of the bits for
the output of the priority encoder and the input to the rest of the combinational logic might be different. You can
easily adjust the order by modifying the attributes of the priority encoder.
2 . 2 Subtask Two Second, we need to design 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!