<?xml version="1.0" encoding="utf-8"?>
<rss xmlns:dc="https://purl.org/dc/elements/1.1/" xmlns:content="https://purl.org/rss/1.0/modules/content/" xmlns:foaf="https://xmlns.com/foaf/0.1/" xmlns:og="https://ogp.me/ns#" xmlns:rdfs="https://www.w3.org/2000/01/rdf-schema#" xmlns:schema="https://schema.org/" xmlns:sioc="https://rdfs.org/sioc/ns#" xmlns:sioct="https://rdfs.org/sioc/types#" xmlns:skos="https://www.w3.org/2004/02/skos/core#" xmlns:xsd="https://www.w3.org/2001/XMLSchema#" version="2.0" xml:base="https://www.linuxjournal.com/tag/cpus">
  <channel>
    <title>CPUs</title>
    <link>https://www.linuxjournal.com/tag/cpus</link>
    <description/>
    <language>en</language>
    
    <item>
  <title>Using Linux for Logic</title>
  <link>https://www.linuxjournal.com/content/using-linux-logic</link>
  <description>  &lt;div data-history-node-id="1340268" class="layout layout--onecol"&gt;
    &lt;div class="layout__region layout__region--content"&gt;
      
            &lt;div class="field field--name-field-node-image field--type-image field--label-hidden field--item"&gt;  &lt;img src="https://www.linuxjournal.com/sites/default/files/nodeimage/story/bigstock--168092552_0.jpg" width="800" height="534" alt="""" typeof="foaf:Image" class="img-responsive" /&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-author field--type-ds field--label-hidden field--item"&gt;by &lt;a title="View user profile." href="https://www.linuxjournal.com/users/joey-bernard" lang="" about="https://www.linuxjournal.com/users/joey-bernard" typeof="schema:Person" property="schema:name" datatype="" xml:lang=""&gt;Joey Bernard&lt;/a&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-body field--type-text-with-summary field--label-hidden field--item"&gt;&lt;p&gt;
I've covered tons of different scientific
applications you can run on your computer to do rather complex
calculations, but so far, I've not really given much thought to
the hardware on which this software runs. So in this article, I take a look at
a software package that lets you dive deep down to the level of the
logic gates used to build up computational units.
&lt;/p&gt;

&lt;p&gt;
At a certain point,
you may find yourself asking your hardware to do too much work. In those cases,
you need to understand what your hardware is and how it works. So,
let's start by looking at the lowest level: the lowly
logic gate. To that end, let's use a software package named &lt;a href="https://www.cburch.com/logisim/index.html"&gt;Logisim&lt;/a&gt;
in order to play with logic gates in various groupings.
&lt;/p&gt;

&lt;p&gt;
Logisim should be available in most distributions' package management
systems. For example, in Debian-based distros, install it
with the following command:

&lt;/p&gt;&lt;pre&gt;
&lt;code&gt;
sudo apt-get install logisim
&lt;/code&gt;
&lt;/pre&gt;


&lt;p&gt;
You then can start it from your desktop environment's menu,
or you can open a terminal, type &lt;code&gt;logisim&lt;/code&gt; and press
Enter. You should see a main section of the application
where you can start to design your logic circuit. On the left-hand side,
there's a selection pane with all of the units you can use for your
design, including basic elements like wires and logic gates, and
more complex units like memory or arithmetic units.
&lt;/p&gt;

&lt;img src="https://www.linuxjournal.com/sites/default/files/styles/max_650x650/public/u%5Buid%5D/logisim1.png" width="650" height="404" alt="""" class="image-max_650x650" /&gt;&lt;p&gt;
&lt;em&gt;Figure 1. When you first start Logisim, you get a blank project where
you can start to design your first logic circuit.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;
To learn how to start using Logisim, let's look at how to set up one of
the most basic logic circuits: an AND gate.
&lt;/p&gt;

&lt;img src="https://www.linuxjournal.com/sites/default/files/styles/max_650x650/public/u%5Buid%5D/logisim2.PNG" width="650" height="528" alt="""" class="image-max_650x650" /&gt;&lt;p&gt;&lt;em&gt;Figure 2. You easily can add logic gates to your circuit to model
computations.&lt;/em&gt;&lt;/p&gt;

&lt;p&gt;
If you click the
Gates entry on the left-hand side, you'll see a full list of available
logic gates. Clicking the AND gate allows you to add them to the design
pane by clicking on the location where you want them added. At the bottom
of the left-hand side, you'll see a pane that displays the attributes
of the selected gate. You can use this pane to edit those attributes to
make the gate behave exactly the way you want. For this example,
let's change the number of inputs value from 5 to 2. The next
step is to add an output pin in order to see when the output is either
1 or 0. You can find pins in the wiring section.
&lt;/p&gt;&lt;/div&gt;
      
            &lt;div class="field field--name-node-link field--type-ds field--label-hidden field--item"&gt;  &lt;a href="https://www.linuxjournal.com/content/using-linux-logic" hreflang="en"&gt;Go to Full Article&lt;/a&gt;
&lt;/div&gt;
      
    &lt;/div&gt;
  &lt;/div&gt;

</description>
  <pubDate>Fri, 04 Jan 2019 12:30:00 +0000</pubDate>
    <dc:creator>Joey Bernard</dc:creator>
    <guid isPermaLink="false">1340268 at https://www.linuxjournal.com</guid>
    </item>

  </channel>
</rss>
