Skip to content
Peter Kagstrom edited this page May 19, 2021 · 5 revisions

Logic Gates

Logic gates are task functions defined by truth tables specific to boolean logic.

Single input gates

  • Buffer - binary implementation of pass function
  • Not - binary implementation of task function

Two input gates

  • And
  • Or
  • Nand
  • Nor
  • Xor
  • Xnor

Making a Buffer gate:

  1. Right click on bg -> edit -> new node
  2. Right click on node -> edit -> name 'buffer gate'
  3. Right click on 'buffer gate' -> abstract to abstract into a graph
  4. Right click on graph to functionalize
  5. Enter 1 to input node
  6. Right click on function -> abstract -> evaluate
  7. Receive 1 from output node

Making a Not gate:

  1. Right click on bg, add new node
  2. Right click on node name to edit to 'not gate'
  3. Right click on 'not gate' node to abstract into a graph
  4. Right click on graph to functionalize
  5. Right click on edge in graph to functionalize
  6. Define function as mapping:
Input Output
0 1
1 0
  1. Enter 0 to input node
  2. Right click on function -> abstract -> evaluate
  3. Receive 1 from output node

Making an And gate:

  1. Right click on bg, add new node
  2. Right click on node name to edit to 'and gate'
  3. Right click on 'and gate' node to abstract into a graph
  4. Right click on graph to functionalize
  5. Right click on edge in graph to functionalize
  6. Define function as mapping:
Input Output
(0, 0) 1
(0, 1) 0
(1, 0) 0
(1, 1) 1
  1. Enter (0, 0) to input node
  2. Right click on function -> abstract -> evaluate
  3. Receive 1 from output node
Clone this wiki locally