Assignment 1
Assignment 1
AND Gate
AND gate is an electrical circuit that combines two or more signals so that the output is high
or ‘1’ if only all input signals are high or ‘1’. Here we will design two input AND gate.
Representation of two input AND gate is:
Y=A.B
Here, A and B are two binary inputs and Y is the binary output.
A B Y=A.B
0 0 0
0 1 0
1 0 0
1 1 1
When A = 0, B = 0 When A = 0, B = 1
When A = 1, B = 0 When A = 1, B = 1
Discussion:
For two input AND gate, output is logical conjunction of two inputs. Which mean two binary
number is inputted, it gives out multiplication of the numbers. Outputs of its respective
inputs are as below:
i. When A input is low (0) and B input is low (0) then Y output is low (0).
ii. When A input is low (0) and B input is high (1) then Y output is low (0).
iii. When A input is high (1) and B input is low (0) then Y output is low (0).
iv. When A input is high (1) and B input is high (1) then Y output is high (1).
NOT Gate
NOT gate is an electrical circuit that takes only one input and gives out the complement of
the input as the output. In simple word, if the input is low or ‘0’ then output is high or ‘1’
and if the input is high or ‘1’ then output is low or ‘0’.
Representation of NOT gate is:
Y=X
Here, X is the binary input and Y is the binary output.
X Y=X
0 1
1 0
When X = 0 When X = 1
Discussion:
For NOT gate, output is logical complement or negation of input. Which mean when a binary
number is inputted, it gives out the other binary number. Output of its respective input is as
below:
i. When X input is low (0) then Y output is high (1).
ii. When X input is high (1) then Y output is low (0).
OR Gate
OR gate is an electrical circuit that combines two or more signals so that the output is high
or ‘1’ when one or more input signals are high or ‘1’. Here we will design two input OR gate.
Representation of two input OR gate is:
Y=A+B
Here, A and B are two binary inputs and Y is the binary output.
A B Y=A+B
0 0 0
0 1 1
1 0 1
1 1 1
Logic circuit design using two input OR gate:
When A = 0, B = 0 When A = 0, B = 1
When A = 1, B = 0 When A = 1, B = 1
Discussion:
For two input OR gate, output is logical disjunction of two inputs. Which mean two binary
number is inputted, it gives out addition of the numbers. Outputs of its respective inputs are
as below:
i. When A input is low (0) and B input is low (0) then Y output is low (0).
ii. When A input is low (0) and B input is high (1) then Y output is high (1).
iii. When A input is high (1) and B input is low (0) then Y output is high (1).
iv. When A input is high (1) and B input is high (1) then Y output is high (1).