/full-adder

Full adder circuit in Ruby

Primary LanguageRuby

What?

This is a representation in ruby of the Ben Eater video: https://www.youtube.com/watch?v=wvJc9CZcvBc

Ruby has binary math built in, but this was to demonstrate binary addition with logic gates

Usage

$ ruby full-adder.rb 1101 1110

1101 plus 1110 equals:

11011

Image

Full Adder Circuit