Hardware Basics

How are binary values represented in electronic circuits?

Transistors

We use transistors to implement "switches" in electronic circuits.

NMOS Transistor

  • One end (vss) is the source connected to ground. the other ends (vg and vdd) are the gate and drain
  • When , the transistor is off, and acts as an open switch
  • When , the transistor is on, and acts as a closed switch

PMOS Transistor

This diagram may be wrong.

$

tri-state buffer

Tri-State Buffer

  • Has one input , one output , and a control input
  • If , then , else if , then the output is high-impedance state (aka logic Z, third state)
Symbol

Truth Table

e x f
0 0 Z
0 1 Z
1 0 0
1 1 1