# Logic gates

A logic gate is a device that implement a boolean function, that is, performs logical operations on one or more logical inputs to produce a single logical output.

## 1-input logic gates

### Buffer

### Inverter (NOT gate)

## 2-input logic gates

### AND gates

x |
y |
out |

1 |
1 |
1 |

1 |
0 |
0 |

0 |
1 |
0 |

0 |
0 |
0 |

### NAND gates

x |
y |
out |

1 |
1 |
0 |

1 |
0 |
1 |

0 |
1 |
1 |

0 |
0 |
1 |

### OR gates

x |
y |
out |

1 |
1 |
1 |

1 |
0 |
1 |

0 |
1 |
1 |

0 |
0 |
0 |

### XOR gates

x |
y |
out |

1 |
1 |
0 |

1 |
0 |
1 |

0 |
1 |
1 |

0 |
0 |
0 |

### XNOR gates

x |
y |
out |

1 |
1 |
1 |

1 |
0 |
0 |

0 |
1 |
0 |

0 |
0 |
1 |