<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:dc="http://purl.org/dc/elements/1.1/">
  <channel>
    <title>DEV Community: Anna Terteryan</title>
    <description>The latest articles on DEV Community by Anna Terteryan (@anna_terteryan_780c316630).</description>
    <link>https://dev.to/anna_terteryan_780c316630</link>
    <image>
      <url>https://media2.dev.to/dynamic/image/width=90,height=90,fit=cover,gravity=auto,format=auto/https:%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Fuser%2Fprofile_image%2F2109111%2F133df473-b327-4bc1-8817-899b598c2eb7.png</url>
      <title>DEV Community: Anna Terteryan</title>
      <link>https://dev.to/anna_terteryan_780c316630</link>
    </image>
    <atom:link rel="self" type="application/rss+xml" href="https://dev.to/feed/anna_terteryan_780c316630"/>
    <language>en</language>
    <item>
      <title>Logic Gates</title>
      <dc:creator>Anna Terteryan</dc:creator>
      <pubDate>Sun, 22 Sep 2024 12:54:59 +0000</pubDate>
      <link>https://dev.to/anna_terteryan_780c316630/logic-gates-54lf</link>
      <guid>https://dev.to/anna_terteryan_780c316630/logic-gates-54lf</guid>
      <description>&lt;p&gt;Logic gates are the basic building blocks of any digital system. They are electronic circuits that have one or more inputs and only one output. The relationship between the inputs and the outputs is based on certain logic and that is why they are referred to as logic gates. There are &lt;strong&gt;AND&lt;/strong&gt;, &lt;strong&gt;OR&lt;/strong&gt;, &lt;strong&gt;XOR&lt;/strong&gt;, &lt;strong&gt;NOT&lt;/strong&gt;, &lt;strong&gt;NAND&lt;/strong&gt;, &lt;strong&gt;NOR&lt;/strong&gt; and &lt;strong&gt;XNOR&lt;/strong&gt; gates.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvx6z4igigpdv3vcgjh74.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2Fvx6z4igigpdv3vcgjh74.png" alt="Image description" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

&lt;p&gt;When you go to the inner workings of the computer it deals with binary digits: 0 and 1.  So, the inputs and outputs for these logic gates are combinations of zeros and ones. A &lt;strong&gt;NOT&lt;/strong&gt; gate inverts its input. If the input is 1, the output will be 0, and if the input is 0, the output will be 1. It is usually called as negation or inversion. The &lt;strong&gt;AND&lt;/strong&gt; gate takes two inputs and gives one output. It outputs 1 when both of the inputs are 1, but in other cases, the output is 0. The &lt;strong&gt;OR&lt;/strong&gt; gate, on the other hand outputs 1 when at least one of the inputs is 1. When there are two zeros, the output is always 0. The &lt;strong&gt;NAND&lt;/strong&gt; gate flips the results of &lt;strong&gt;AND&lt;/strong&gt; gate (1 to 0 and 0 to 1) and is equal to the &lt;strong&gt;AND&lt;/strong&gt; gate followed by the &lt;strong&gt;NOT&lt;/strong&gt; gate. The same method is used with &lt;strong&gt;OR&lt;/strong&gt; gates with the name of &lt;strong&gt;NOR&lt;/strong&gt;. &lt;strong&gt;XOR&lt;/strong&gt; gate outputs 1 if only one of its inputs is 1. If both of the inputs are 1 or 0, the output is always 0. &lt;strong&gt;XOR&lt;/strong&gt; also has its inverse gate which is called &lt;strong&gt;XNOR&lt;/strong&gt;. This gate works same as &lt;strong&gt;NAND&lt;/strong&gt; and &lt;strong&gt;NOR&lt;/strong&gt;.&lt;/p&gt;

&lt;p&gt;&lt;a href="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1a0omr2uplzo7nbjn2w3.png" class="article-body-image-wrapper"&gt;&lt;img src="https://media.dev.to/cdn-cgi/image/width=800%2Cheight=%2Cfit=scale-down%2Cgravity=auto%2Cformat=auto/https%3A%2F%2Fdev-to-uploads.s3.amazonaws.com%2Fuploads%2Farticles%2F1a0omr2uplzo7nbjn2w3.png" alt="Image description" width="" height=""&gt;&lt;/a&gt;&lt;/p&gt;

</description>
    </item>
  </channel>
</rss>
