pouët.net

logic gates

category: general [glöplog]
Quote:
why is it that i see every tutorial demonstrating how they work show moving parts.


well it's good to know that... and here's a perfect example when you can use it in this way:

http://en.wikipedia.org/wiki/Ladder_logic
added on the 2008-04-27 11:06:33 by wie8 wie8
hexen: taking a chip apart? better find a chip that has an open part in the middle. this allows you to see the "bondings" (the thin wires running from the pins to the side of the actual chip). important rule of hardware designers: don't cannibalize when you don't have to :)
added on the 2008-04-27 11:32:19 by earx earx
I wonder why people on pouet only answer to really hardcore topics :|
added on the 2008-04-27 15:49:53 by xernobyl xernobyl
hexen: At the lowest level we have layers of silicon (wafers), an element which has all its electrons spinning stably around its nucleus. When we dope these wafers with tiny little amounts of other elements with unstable electron orbits (with free electrons or free holes) they become tiny bit of polarized (p or n type). We stick several of these polarized material together so that at their junction current flows (between p and n types).

If you use only a single pair (p with n) current can only flow in one direction. If you use three (p-n-p or n-p-n), many other possibilites occur. When you impose a voltage by external means to one junction, current in the other one will be effected (blocked or allowed). You can then convert this current into voltage. Thus we have a transistor.

At the simplest case you make a digital signal zero (blocking current) if the second signal is zero (low voltage). This makes an AND gate. In practice, many of these transistors are used to build a single gate (more stable more robust gates).

Also for simplicity only NOR or only NAND gates are used which can be combined to produce other gates. This reduces the problem to design only a single gate.

Other physical solutions exist for many other problems but the general idea is the same. Also these transistors do not serve only for digital electronics but for analog control, amplification, filtering etc.

By using the finiteness of the speed of current flow in these transistors, you can combine them to build temporary memory units.
We don't tend to use n-p-n or p-n-p (aka bipolar) devices for logic anymore. It's all MOSFET based CMOS logic.
added on the 2008-04-27 17:50:01 by trc_wm trc_wm
Once you think you've understood the basics of logic gates, move on to a hardware description language like VHDL or Verilog. These are programming languages which can be "synthesized" (meaning compiled, basically) into nets of logic gates.

Yep, there are programs that allow you to layout a chip by putting together p- and n- areas, but those I know of are costly and you won't see them outside a university or hardware company. And it is very tedious to create a chip that way.

So, the closest you can get to designing hardware is with VHDL/Verilog. There are FPGA-boards which you can program with those languages, the cheapest are about 150 dollars and have various I/O ports. I guess it's the point to start if you want to get creative with hardware description languages.
added on the 2008-04-27 18:04:43 by vhiiula vhiiula
Quote:
if i tried to take a computer chip apart. i wouldn't know where to start

Since your average chip these days uses devices and wires a fraction of a micron wide, I think you will have quite a bit of difficulty taking it apart without some veeerrrry expensive machinery :)
added on the 2008-04-27 20:03:47 by dnes dnes
trc_wm: wrong. cmos is composed of several mosfets, which are still 2 junction devices (npn, pnp).
wrong 2: bjt is still widely used because of its robustness and speed.
Yeah, my bad; MOSFETs are made of two p-terminals on an n-type substrate.
I seriously doubt whether BJTs are still in widespread use in logic circuits. Can you point me towards a modern, mainstream, all-BJT logic device?
added on the 2008-04-28 22:31:16 by trc_wm trc_wm
Or two n-terminals on an p-type.. or in a p-well on an n-type substrate.. or ..
added on the 2008-04-28 22:32:47 by trc_wm trc_wm
<insert random bill gates joke here>
added on the 2008-04-28 22:47:57 by raer raer
Quote:
.why is it that i see every tutorial demonstrating how they work show moving parts..

In fact they can have moving parts. I learned logic circuits by hooking up magnetic relays.
funny fact: EXOR gate needs seven switching transistors BUT only one relay (guess how?)
added on the 2008-04-28 23:48:36 by bizun_ bizun_
haha, imagine building a complex digital system using relays for your logic gates :)

A cpu? clickclickclickclickclick clickclick click click clickclickclickclick click click clickclickclickclickclickcrrrrrrrrrrrrrrrrrrrrrrrrr....
added on the 2008-04-29 00:22:23 by linde linde
people have done that already. AGES ago...
added on the 2008-04-29 00:27:50 by raer raer
trc: not being modern and mainstream does not render ttl useless. it's still widely used for interfacing devices. also which cmos device can you use at 100 centigrade? Of course they are being replaced more and more but the situation is far from "It's all MOSFET based CMOS logic". (It's true for processors though).
http://en.wikipedia.org/wiki/7400_series
if you ignore the modernity part.
and yes they are not ttl anymore :)
linde: erm, http://en.wikipedia.org/wiki/Z3_(computer) ?
And guess what, the predecessor (Z1) was even *completely* mechanical, with no electricity whatsoever.
added on the 2008-04-29 09:18:45 by KeyJ KeyJ
lol, that's what i get for being totally oblivious to computer history :P
added on the 2008-04-29 13:34:02 by linde linde
ahh, zuse! one of the major ass kickers in history. read up on leibniz while you're at it; he made up the binary number system from scratch because he wanted to make a calculator using marbles - in the 17th century! i like to think that if leibniz was alive now, he'd be a popstar, award winning 4k atari 2600 coder and triple phd student at the same time.
added on the 2008-04-29 13:43:13 by skrebbel skrebbel
skrebbel: WRONG! he's mostly known for baking cookies nowadays :)
added on the 2008-04-29 16:34:15 by havoc havoc

login