# logic gates

By taking individual logic gates, we can combine them in a process knows as combinational logic to do increasingly more complex things. These logic gates are the foundation of computers. The bubble on top of some of the gates is an inverter, it inverts the previous signal to its opposite signal . So zero becomes one and one becomes zero .

# Flip flops and latches

The set reset latch is made from two OR gates “or in this case Nor gates" and can be thought of as a one bit memory . This is because the output of each gate feeds into the input of the other Nor gate. This circuit when tethered together with others like it can be use to form memory registers.

# Multiplexers

A multiplexer is a combinational circuit that selects binary information from many input lines to an output line. On this image the imputes are shown as A through S and the output is y. We select the values we want on the left with the variable A by electing different combinations of zeros and ones with the S or “selector” variables. So Value A0 is selected by the input S0=0 S1 = 0 S2=0 S3=0 or in simple terms 0000 = A0. Then 0001 =A1 and so on .

# Decoders and encoders

Decoders and encoders help us refer to variables while using less values. So instead of referencing D0 as 1000000 we can say instead A1 A2 A3 or 000. Encoders allow us to translate more information using fewer wires. The decoder allows us to decode the information that was passed in by the encoder.
{"ft_lang_label":"__label__en","ft_lang_prob":0.9220195,"math_prob":0.9330335,"size":1797,"snap":"2022-27-2022-33","text_gpt3_token_len":420,"char_repetition_ratio":0.11042945,"word_repetition_ratio":0.0,"special_character_ratio":0.22314969,"punctuation_ratio":0.059154928,"nsfw_num_words":0,"has_unicode_error":false,"math_prob_llama3":0.98003626,"pos_list":[0],"im_url_duplicate_count":[null],"WARC_HEADER":"{\"WARC-Type\":\"response\",\"WARC-Date\":\"2022-08-10T22:55:35Z\",\"WARC-Record-ID\":\"<urn:uuid:717cf221-3e0e-432c-803c-ea05cbb7a6a3>\",\"Content-Length\":\"131429\",\"Content-Type\":\"application/http; msgtype=response\",\"WARC-Warcinfo-ID\":\"<urn:uuid:be1c75c8-6456-46e5-9750-4ef9b121a788>\",\"WARC-Concurrent-To\":\"<urn:uuid:dbe962fe-d97e-4639-b833-a6f80d20929e>\",\"WARC-IP-Address\":\"162.159.152.4\",\"WARC-Target-URI\":\"https://quantomcomputing.medium.com/combinational-logic-fc0399d012f3?source=user_profile---------5----------------------------\",\"WARC-Payload-Digest\":\"sha1:HY5HGGHWPC5I5TRASKFK32QJ2LYIZ4WJ\",\"WARC-Block-Digest\":\"sha1:X3FXBXWSCLTZ7226OWDSUHEJWEDRAM6J\",\"WARC-Identified-Payload-Type\":\"text/html\",\"warc_filename\":\"/cc_download/warc_2022/CC-MAIN-2022-33/CC-MAIN-2022-33_segments_1659882571222.74_warc_CC-MAIN-20220810222056-20220811012056-00664.warc.gz\"}"}