Presentation is loading. Please wait.

Presentation is loading. Please wait.

Quiz 2.1 1.What are the results of the following 4-bit bitwise logical operations? NOT 1011 2 1001 2 OR 1011 2 1001 2 NOR 1011 2 1001 2 AND 1011 2 1001.

Similar presentations


Presentation on theme: "Quiz 2.1 1.What are the results of the following 4-bit bitwise logical operations? NOT 1011 2 1001 2 OR 1011 2 1001 2 NOR 1011 2 1001 2 AND 1011 2 1001."— Presentation transcript:

1 Quiz 2.1 1.What are the results of the following 4-bit bitwise logical operations? NOT 1011 2 1001 2 OR 1011 2 1001 2 NOR 1011 2 1001 2 AND 1011 2 1001 2 NAND 1011 2 1001 2 XOR 1011 2 2.What are the results of the following 4-bit arithmetic operations (2’s complement)? NEG 1011 2 1001 2 ADD 1011 2 1001 2 SUB 1011 2

2 Quiz 2.2 Draw a logic circuit for a 3 input NAND gate (using N for N-type transistor and P for P-type transistor). Digital Logic Devices b a 11 0 NAND

3 3 Quiz 2.3 What is the logical equation and truth table for the following circuit? Quiz

4 Quiz 2.4 Implement a half adder using a PLA ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? ? a b c ? ? ? ? ? ? ? ? ? ? sum sum = abc + abc + abc + abc = a  b  c Name___________________ Section_______

5 5 Quiz 2.5 1.What is a bi-stable circuit? 2.With a RS NAND latch, why can’t R and S be low at the same time? 3.How is Q set with the following latch? Quiz 0 0

6 Design a State Diagram for a blinking traffic sign as follows: Switch OFF No lights Switch ON, repeat No lights on 1 & 2 on 1, 2, 3, & 4 on 1, 2, 3, 4, & 5 on Hint: How many states? Quiz 2.6 Finite State Machine 1 2 3 4 5

7 Quiz 2.7 Outputs (depend only on state: S 1 S 0 ) S1S1 S0S0 ZYX 00 01 10 11 Lights 1 and 2 Lights 3 and 4 Light 5 Next State: S 1 'S 0 ' (depend on state and input) InS1S1 S0S0 S1'S1'S0'S0' 0XX 100 101 110 111 Switch Whenever In=0, next state is 00. S 1 ' = S 0 ' =X = Y = Z = Fill in the Next State/ Output values and equations


Download ppt "Quiz 2.1 1.What are the results of the following 4-bit bitwise logical operations? NOT 1011 2 1001 2 OR 1011 2 1001 2 NOR 1011 2 1001 2 AND 1011 2 1001."

Similar presentations


Ads by Google