Logic Composition

From Coder Merlin
Within these castle walls be forged Mavens of Computer Science ...
— Merlin, The Coder

Prerequisites[edit]

Experiment[edit]

This exercise relies on an external website which will enable you to easily experiment with logic gates and form various compositions with the components. The links on this wiki page will preload the relevant gates currently under discussion. For best results, open the links in a separate window so that you can continue to read the wiki while you experiment.

  • The "L" indicates a Low voltage which usually represents zero or false
  • The "H" indicates a High voltage which usually represents one or true
  • The layout flows from left to right.
  • Inputs will be leftmost and output will be rightmost.
  • Clicking on an input will toggle the input from Low to High or from High to Low
  • When an input is changed, the result will instantly impact the rest of the digram.

Input, Output, and an Inverter[edit]

Click on the image to the right ("Wire and Inverter") and open the link in a different window, then return to the wiki:
Wire and Inverter
  1. Click on the leftmost (input) H in the top diagram which simply represents a wire.
    1. What happens to the H?
    2. Does the color of the wire change?
    3. How is the output impacted?
  2. Click on the leftmost (input) H in the bottom diagram which represents an inverter.
    1. What happens to the H?
    2. Does the color of the wire change?
    3. How is the output impacted?

AND Gate[edit]

Click on the image to the right ("AND Gate") and open the link in a different window, then return to the wiki:
AND Gate
  1. Click on the top L input.
    1. What happens to the top L?
    2. What happens to the output?
  2. Click on the bottom L input.
    1. What happens to the bottom L?
    2. What happens to the output?
  3. Click several more times on the inputs until you're able to consistently predict the output.