questions about logic gates (EE, ECE, CE majors please)

psycobreed

Member
Dec 7, 2000
102
0
0
is there a type of logic gate that can be used exclusively to implement any design? if yes or no, please explain why.
 

Marshallj

Platinum Member
Mar 26, 2003
2,326
0
76
Why would you want to use just one kind when there are different types to choose from?
 

Marshallj

Platinum Member
Mar 26, 2003
2,326
0
76
Originally posted by: psycobreed
is there a type of logic gate that can be used exclusively to implement any design? if yes or no, please explain why.

If the gate is inverting, all logic functions can be handled by one type of gate (NAND, NOR)
 

Imaginer

Diamond Member
Oct 15, 1999
8,076
1
0
I think it maybe the nand or nor gates. With just nand gates, you can use just those instead of a circuit with and or or gates because it would be essentially cheaper to do the entire thing in one gate with programmed connections instead of remaking a chip with and and or gates.
 

gopunk

Lifer
Jul 7, 2001
29,239
2
0
nand and nors can both do the job

i don't know the formal proof tho.... i just know that is the case.
 

jaeger66

Banned
Jan 1, 2001
3,852
0
0
Here is a good diagram of why NAND is universal. And god how I hated this class. Whoever invented hex should be shot. If he's dead, dug up and shot.
 

maverik

Junior Member
Apr 14, 2003
8
0
0
of course they are all right, NAND and NOR can do the job

on the more practical side, if you have a bigger circuit with ANDs and ORs, the easy way to convert it is as follows.

a NAND is and AND followed by a NOT, alternatively, by the DeMorgan's theorem, it is also NOTs followed by a single OR.
so in a circuit, put double inversions between any two gates (AND or OR gates) and then group the inversions forward and backward with the original gates. that is, lets say you have

Lets say you have an AND-OR circuit, insert NOTs after the output of every AND, and before the input of the ORs
Now you can group the first set of AND -- NOT -- as NANDs, and the NOT --OR becomes another NAND

so (A.B)+(C.D)+E is also (A NAND B) NAND (C NAND D) NAND (E NAND E)

phew, sorry for the lecture, but i got started and couldn't stop myself. :D
 

gunblade

Golden Member
Nov 18, 2002
1,470
0
71
Originally posted by: maverik
of course they are all right, NAND and NOR can do the job

on the more practical side, if you have a bigger circuit with ANDs and ORs, the easy way to convert it is as follows.

a NAND is and AND followed by a NOT, alternatively, by the DeMorgan's theorem, it is also NOTs followed by a single OR.
so in a circuit, put double inversions between any two gates (AND or OR gates) and then group the inversions forward and backward with the original gates. that is, lets say you have

Lets say you have an AND-OR circuit, insert NOTs after the output of every AND, and before the input of the ORs
Now you can group the first set of AND -- NOT -- as NANDs, and the NOT --OR becomes another NAND

so (A.B)+(C.D)+E is also (A NAND B) NAND (C NAND D) NAND (E NAND E)

phew, sorry for the lecture, but i got started and couldn't stop myself. :D

Just basic mixed logic design ....
I think that is really entry level stuff...
 

jaeger66

Banned
Jan 1, 2001
3,852
0
0
Originally posted by: gunblade


Just basic mixed logic design ....
I think that is really entry level stuff...

It is, but IMO digital design is like calc. The first class is always the hardest, if you can get through it everything after is easier despite harder material.

 

FeathersMcGraw

Diamond Member
Oct 17, 2001
4,041
1
0
Originally posted by: jaeger66
Whoever invented hex should be shot. If he's dead, dug up and shot.

No one says you have to use hexadecimal as your base system. Feel free to use binary if you think it's more compact and less error-prone -- oh, but wait, it isn't.
 

kag

Golden Member
May 21, 2001
1,677
0
76
www.boloxe.com
Ahhh

I'm glad I'm done with my Digital Design classes. And my Assembly class too (taught by the same teacher). Oh, the microprocessor architecture too while I'm ranting ;)
 

KC5AV

Golden Member
Jul 26, 2002
1,721
0
0
Originally posted by: maverik

a NAND is and AND followed by a NOT, alternatively, by the DeMorgan's theorem, it is also NOTs followed by a single OR.


NOOOOOOO!!!!!!!!!!!!!!!!!!!! Run away!!!!!!!!!!!!!!!!!!!!111
 

etalns

Diamond Member
Dec 20, 2001
6,513
1
0
Originally posted by: Kiyup
e=mc2

of course
rolleye.gif