EEE241fİNAL2022 1
EEE241fİNAL2022 1
QUESTIONS Q1 Q2 Q3 Q4 Q5 Q6
PROGRAM
OUTCOME
SCORE
1(15pts.) Design a circuit with four inputs x1, x2, x3, x4 and a single output F. The output should be F = 1 in
either of the following cases:
• x1 = 0 and we have an odd function of x2, x3, x4;
• x2 = 1 and we have an even function of x1, x3, x4.
The only logic gates available are AND , OR and XOR gates. They may have three or more inputs. Inverters
are not available.
2(15pts.) Design a circuit that verifies the logical operation of a NOR gate. f = '1' (LED ON) if the NOR gate
works improperly. Assumption: when the NOR gate is not working, it generates 1's instead of 0's and vice
versa.
3(20pts.) Complete the given table for the circuit shown below:
(Priority of encoder P3>P2>P1>P0 )
w1 w0 E p3 p2 p1 p0 y3 y2 y1 y0 k x1 x0 z f
1 0 1 0 0 0 0
1 1 1 1 0 1 X
0 1 0 0 0 0 1
0 1 1 0 0 1 X
1 1 1 0 0 0 1
0 1 1 1 1 X X
0 0 1 0 0 0 0
1 0 1 0 1 x 1
4 (15pts.) Implement the following Boolean function with a 41 multiplexer, a 2-to-4-line decoder, and
some additional logic gates.
Connect input A to s1, D to s0 the selection lines of the multiplexer.
F(A,B,C,D) = ∑m(1,2,7,9,10,11,12,13,14)
5(20pts.)Design a 4-bit arithmetic unit that functions as shown in the following truth table. The circuit has
8 data inputs A3, A2, A1, A0 and B3, B2, B1, B0. (A3 and B3 are the most significant bits of the 4-bit number A
and B.) There are two control inputs that determine the function of the arithmetic circuit, C 1 and C0. There
is a 4-bit output Z3, Z2, Z1, and Z0 and an output for carry-out. All operations are performed using 2’s
complement numbers. Use binary adder, multiplexers and logic gates.
C1 C0 Description
0 0 Z=A+B
0 1 Z=A-B
1 0 Z=B-A
1 1 Z= -A
6.( 15pts.) Using a case statement write an HDL behavioral description 8-bit arithmetic logic unit
(ALU). The circuit has 2-bit Select inputs (s), 8-bit inputs (A and B), and 8-bit output (Y). Perform
arithmetic and logic operations listed below.
s Description
00 A+B
01 A-B
10 Complement A
11 Bitwise AND(A and B)