<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Sequential Logic &#8211; Logisim-evolution</title>
	<atom:link href="https://logisimevolution.com/sequential-logic/feed/" rel="self" type="application/rss+xml" />
	<link>https://logisimevolution.com</link>
	<description>Download v5.0.0 &#38; Digital Logic Simulator Reference Guide</description>
	<lastBuildDate>Wed, 25 Nov 2026 00:05:07 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.1.4</generator>

<image>
	<url>https://logisimevolution.com/wp-content/uploads/2026/06/favicon-150x150.png</url>
	<title>Sequential Logic &#8211; Logisim-evolution</title>
	<link>https://logisimevolution.com</link>
	<width>32</width>
	<height>32</height>
</image> 
	<item>
		<title>FSM Sequence Detector (101 and 1101) in Logisim-evolution: Mealy vs Moore State Machines</title>
		<link>https://logisimevolution.com/sequence-detector/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Oct 2026 13:14:43 +0000</pubDate>
				<category><![CDATA[Sequential Logic]]></category>
		<guid isPermaLink="false">https://logisimevolution.com/sequence-detector/</guid>

					<description><![CDATA[Direct Answer: Designing an FSM Sequence Detector in Logisim-evolution A Sequence Detector is a synchronous Finite State Machine (FSM) that monitors a 1-bit serial input stream (X) and asserts output Z = 1 whenever a target bit pattern such as 101 or 1101 arrives. A Mealy machine computes its output from both the present state...]]></description>
										<content:encoded><![CDATA[
<div class="logisim-evolution-article" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.7; color: #1e293b; max-width: 860px; margin: 0 auto;">

    <!-- Direct Answer Summary Box / GEO Answer Block -->
    <div style="background-color: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 22px 24px; margin-bottom: 30px;">
        <h3 style="margin-top: 0; margin-bottom: 10px; color: #166534; font-size: 19px; font-weight: 700;">
            Direct Answer: Designing an FSM Sequence Detector in Logisim-evolution
        </h3>
        <p style="margin: 0; font-size: 15px; color: #14532d; line-height: 1.65;">
            A <strong>Sequence Detector</strong> is a synchronous Finite State Machine (FSM) that monitors a 1-bit serial input stream (<code>X</code>) and asserts output <code>Z = 1</code> whenever a target bit pattern such as <code>101</code> or <code>1101</code> arrives. A <strong>Mealy machine</strong> computes its output from both the present state and current input <code>X</code>, requiring $N$ states for an $N$-bit sequence (3 states for <code>101</code>, 4 states for <code>1101</code>) and asserting <code>Z = 1</code> immediately in the same cycle. A <strong>Moore machine</strong> derives its output strictly from the registered present state, requiring $N+1$ states (4 states for <code>101</code>, 5 states for <code>1101</code>) while guaranteeing glitch-free synchronous outputs.
        </p>
    </div>

    <!-- Recommended Lab Textbooks & FPGA Hardware -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Recommended FSM Design Textbooks and FPGA Synthesis Boards
    </h2>
    <p style="margin-bottom: 24px;">
        Finite State Machines power every protocol parser, memory controller, and CPU control unit. Pair Logisim-evolution&#8217;s state table synthesis with these industry-standard resources:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Textbook: Harris & Harris -->
        <div style="background: #ffffff; border: 2px solid #2563eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.08);">
            <div>
                <span style="background: #2563eb; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    FSM Design Standard
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Digital Design &amp; Computer Architecture
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    By David Harris &amp; Sarah Harris. Dedicates an entire chapter to Mealy vs. Moore state encoding, next-state Karnaugh minimization, and Verilog/VHDL FSM templates.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Publisher: Morgan Kaufmann • Essential Coursework Reference
                </div>
            </div>
            <a href="/go/digital-design-book" target="_blank" rel="sponsored nofollow noopener" style="background: #2563eb; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                View Textbook on Amazon &rarr;
            </a>
        </div>

        <!-- Hardware Pick: Basys 3 -->
        <div style="background: #ffffff; border: 2px solid #059669; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(5,150,105,0.08);">
            <div>
                <span style="background: #059669; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Physical Hardware Target
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Digilent Basys 3 Artix-7 FPGA
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Synthesize your sequence detector onto physical silicon using onboard pushbuttons for <code>X</code> and <code>CLK</code> and LEDs to indicate live state transitions.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$165 USD • Native Logisim FPGA Commander Support
                </div>
            </div>
            <a href="/go/basys3" target="_blank" rel="sponsored nofollow noopener" style="background: #059669; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Basys 3 on Amazon &rarr;
            </a>
        </div>

    </div>

    <!-- Mealy vs Moore Comparison Table -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Comparing Mealy and Moore Sequence Detector Architectures
    </h2>
    <p style="margin-bottom: 20px;">
        Before drawing a state diagram, select between a Mealy or Moore architecture and decide whether overlapping sequences are allowed:
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 14px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Evaluation Dimension</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #2563eb;">Mealy State Machine</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #059669;">Moore State Machine</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Output Dependency</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">$Z = f(\text{Present State}, X)$</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">$Z = f(\text{Present State})$ only</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">States for <code>101</code> Detector</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">3 states (2 flip-flops)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">4 states (2 flip-flops)</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">States for <code>1101</code> Detector</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">4 states (2 flip-flops)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">5 states (3 flip-flops)</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Detection Latency</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #2563eb;">Immediate (0 cycle delay on final bit)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">1 clock cycle after final bit latches</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Glitch Resistance</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #dc2626;">Susceptible to input <code>X</code> glitches</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">Glitch-free (Synchronous state output)</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Complete 1101 Overlapping Moore State Table -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        State Transition Table for an Overlapping 1101 Moore Detector
    </h2>
    <p style="margin-bottom: 20px;">
        In an <strong>overlapping</strong> detector, the trailing <code>1</code> of <code>1101</code> simultaneously acts as the first <code>1</code> of a subsequent <code>1101</code> sequence (for example, stream <code>1101101</code> asserts <code>Z = 1</code> twice). Below is the complete 5-state Moore transition table:
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 13.5px; text-align: center;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; color: #0f172a;">Present State</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #0f172a;">Code (Q2 Q1 Q0)</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #0f172a;">Matched Prefix</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #2563eb;">Next State (X = 0)</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #059669;">Next State (X = 1)</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #7c3aed;">Output (Z)</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; font-weight: 700;">S0 (Idle)</td>
                    <td style="font-family: monospace;">000</td>
                    <td>None</td>
                    <td style="font-family: monospace;">S0 (000)</td>
                    <td style="font-family: monospace;">S1 (001)</td>
                    <td style="font-weight: 700;">0</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; font-weight: 700;">S1</td>
                    <td style="font-family: monospace;">001</td>
                    <td><code>1</code></td>
                    <td style="font-family: monospace;">S0 (000)</td>
                    <td style="font-family: monospace;">S2 (010)</td>
                    <td style="font-weight: 700;">0</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; font-weight: 700;">S2</td>
                    <td style="font-family: monospace;">010</td>
                    <td><code>11</code></td>
                    <td style="font-family: monospace;">S3 (011)</td>
                    <td style="font-family: monospace;">S2 (010)</td>
                    <td style="font-weight: 700;">0</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; font-weight: 700;">S3</td>
                    <td style="font-family: monospace;">011</td>
                    <td><code>110</code></td>
                    <td style="font-family: monospace;">S0 (000)</td>
                    <td style="font-family: monospace; font-weight: 700; color: #059669;">S4 (100)</td>
                    <td style="font-weight: 700;">0</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; text-align: left; font-weight: 700; color: #7c3aed;">S4 (Detected)</td>
                    <td style="font-family: monospace; font-weight: 700; color: #7c3aed;">100</td>
                    <td><code>1101</code></td>
                    <td style="font-family: monospace;">S0 (000)</td>
                    <td style="font-family: monospace;">S2 (010) [Overlap!]</td>
                    <td style="font-weight: 700; color: #16a34a;">1</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Implementing FSMs in Logisim -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Two Proven Methods to Build Sequence Detectors in Logisim
    </h2>
    <p style="margin-bottom: 20px;">
        You can implement any state transition table in Logisim-evolution using either minimized Boolean gates or a clean ROM lookup table:
    </p>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; padding: 20px; margin-bottom: 20px;">
        <h3 style="font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 8px 0;">
            Method A: Discrete D Flip-Flops and Combinational Analysis
        </h3>
        <ol style="font-size: 14px; color: #334155; margin: 0 0 0 20px; line-height: 1.65;">
            <li>Open <strong>Window &rarr; Combinational Analysis</strong>. Define inputs <code>Q2, Q1, Q0, X</code> and outputs <code>D2, D1, D0, Z</code>.</li>
            <li>Enter the next-state rows from the table above (setting unused states <code>101, 110, 111</code> to transition safely back to <code>000</code>).</li>
            <li>Click <strong>Build Circuit</strong> to synthesize the minimized next-state logic, then wire <code>D2, D1, D0</code> into a 3-bit Register whose output <code>Q[2:0]</code> feeds back to the combinational inputs.</li>
        </ol>
    </div>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #059669; border-radius: 6px; padding: 20px; margin-bottom: 35px;">
        <h3 style="font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 8px 0;">
            Method B: ROM-Based State Machine (Cleanest Architecture)
        </h3>
        <p style="font-size: 14px; color: #334155; margin: 0; line-height: 1.65;">
            Combine the 3-bit state register output <code>Q[2:0]</code> and 1-bit input <code>X</code> into a 4-bit ROM address bus (<code>{Q2, Q1, Q0, X}</code>). Configure a 16&times;4-bit ROM whose 4-bit data output directly encodes <code>{Z, D2, D1, D0}</code>. Updating the sequence from <code>1101</code> to <code>1011</code> requires changing only a few hex bytes in the ROM rather than rewiring logic gates.
        </p>
    </div>

    <!-- Common Traps & Fixes -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequent Traps in Sequence Detector State Machines
    </h2>
    <p style="margin-bottom: 20px;">
        Avoid these four classic mistakes when debugging your FSM in Logisim:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Trap 1 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 1: Incorrect Overlap Transition After Detection
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Returning from <code>S4</code> (<code>1101</code>) back to <code>S0</code> when <code>X = 1</code> misses overlapping matches like <code>1101101</code>.<br>
                <strong>The Fix:</strong> In <code>S4</code>, the last two bits received are <code>...01</code>; if the next bit is <code>X = 1</code>, the suffix is <code>11</code>, so transition to <code>S2</code>, not <code>S0</code> or <code>S1</code>.
            </p>
        </div>

        <!-- Trap 2 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 2: Don&#8217;t-Care Lockup in Unused Binary States
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Marking unused 3-bit states (<code>101, 110, 111</code>) as Don&#8217;t-Cares (<code>X</code>) can accidentally synthesize a closed loop trapping the FSM permanently if noise occurs.<br>
                <strong>The Fix:</strong> Explicitly map all unused states to return to <code>S0 (000)</code> for self-recovering hardware.
            </p>
        </div>

        <!-- Trap 3 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 3: Self-Looping on Repeated 1s in S2
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Sending <code>S2</code> (matched <code>11</code>) back to <code>S0</code> when <code>X = 1</code> fails on streams like <code>11101</code>.<br>
                <strong>The Fix:</strong> When in <code>S2</code> (<code>11</code>) and <code>X = 1</code> arrives, the trailing two bits are still <code>11</code>, so <code>S2</code> must loop to itself!
            </p>
        </div>

        <!-- Trap 4 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 4: Toggling Input X After the Clock Edge
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> In a Mealy machine, toggling <code>X</code> manually while testing changes output <code>Z</code> asynchronously before the clock even ticks.<br>
                <strong>The Fix:</strong> Set <code>X</code> to the desired bit <em>before</em> ticking the clock, or feed <code>X</code> from a synchronous Shift Register driven by the same clock.
            </p>
        </div>

    </div>

    <!-- Curriculum Progression -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Curriculum Progression from Sequence Detectors to Control Units
    </h2>
    <p style="margin-bottom: 24px;">
        Apply your finite state machine skills to real-world hardware controllers and processors:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px;">
        <a href="/traffic-light-controller/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Traffic Light Controller &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Design a timed Moore FSM controlling multi-way intersection signals.</div>
        </a>
        <a href="/vending-machine-controller/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Vending Machine FSM &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Build a coin-accumulating Mealy/Moore controller with change dispense outputs.</div>
        </a>
        <a href="/digital-lock/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Digital Combination Lock &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Extend sequence detection to multi-digit keypad unlock state machines.</div>
        </a>
        <a href="/rom/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">ROM Lookup Tables &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Replace complex next-state K-maps with clean ROM memory state tables.</div>
        </a>
    </div>

    <!-- FAQ Section -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequently Asked Questions About FSM Sequence Detectors
    </h2>

    <div style="margin-bottom: 35px;">
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Can I build a sequence detector using a Shift Register instead of an FSM?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Yes, for fixed-length bit patterns! Feed the serial stream into a 4-bit SIPO Shift Register and wire an AND gate checking <code>Q3 &amp; Q2 &amp; ~Q1 &amp; Q0</code> to detect <code>1101</code>. However, FSMs are far more memory-efficient for long patterns or complex protocol handshakes.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Why does a Moore machine need one more state than a Mealy machine?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Because a Moore output depends solely on the stored state, the machine must enter a dedicated final state (e.g., <code>S4</code>) after the last bit arrives just to assert <code>Z = 1</code>. A Mealy machine asserts <code>Z = 1</code> on the transition arc leaving <code>S3</code>, eliminating the extra state.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                What is the difference between overlapping and non-overlapping sequence detection?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                In a <strong>non-overlapping</strong> detector, once <code>101</code> is detected, the machine resets completely to <code>S0</code>, ignoring the final <code>1</code>. In an <strong>overlapping</strong> detector, the final <code>1</code> of <code>101</code> is reused as the first <code>1</code> of a new <code>101</code> match (so <code>10101</code> triggers twice).
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Should I use Binary or One-Hot state encoding in Logisim-evolution?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Use <strong>Binary encoding</strong> (3 flip-flops for 5 states) when minimizing flip-flop count for coursework K-maps. Use <strong>One-Hot encoding</strong> (5 flip-flops for 5 states) when exporting Verilog/VHDL to FPGAs, where flip-flops are abundant and simple decoding maximizes clock frequency.
            </p>
        </div>
    </div>

    <!-- FTC Affiliate Disclosure -->
    <div style="background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-top: 30px; font-size: 12.5px; color: #64748b; line-height: 1.5;">
        <strong>Affiliate Disclosure:</strong> Logisim-evolution Community is an independent educational resource. Some links in this guide are affiliate links. If you purchase textbooks or FPGA hardware through these links, we may earn an affiliate commission at no extra cost to you.
    </div>

</div>



<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://logisimevolution.com/sequence-detector/#article",
      "headline": "FSM Sequence Detector (101 and 1101) in Logisim-evolution: Mealy vs Moore State Machines",
      "description": "Learn how to design Mealy and Moore FSM sequence detectors (101 and 1101) in Logisim-evolution with state transition tables, ROM implementations, and overlapping logic.",
      "url": "https://logisimevolution.com/sequence-detector/",
      "inLanguage": "en-US",
      "mainEntityOfPage": "https://logisimevolution.com/sequence-detector/",
      "proficiencyLevel": "Intermediate",
      "articleSection": "Sequential Logic",
      "publisher": {
        "@type": "Organization",
        "name": "Logisim-evolution Community",
        "url": "https://logisimevolution.com"
      }
    },
    {
      "@type": "HowTo",
      "@id": "https://logisimevolution.com/sequence-detector/#howto",
      "name": "How to Build a 1101 Sequence Detector in Logisim-evolution",
      "description": "Step-by-step instructions to implement an overlapping Moore FSM sequence detector using Combinational Analysis or a ROM state table.",
      "step": [
        {
          "@type": "HowToStep",
          "name": "Define State Encoding and Transition Table",
          "text": "Assign binary codes to states S0 through S4 and map next-state transitions for X=0 and X=1."
        },
        {
          "@type": "HowToStep",
          "name": "Synthesize Next-State Logic or Program ROM",
          "text": "Use Window -> Combinational Analysis to generate D2, D1, D0, and Z gates, or encode the state table into a 16x4-bit ROM."
        },
        {
          "@type": "HowToStep",
          "name": "Connect the 3-Bit State Register",
          "text": "Feed next-state lines into a 3-bit Register clocked by a shared Clock and feed Q[2:0] back into the state table inputs."
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://logisimevolution.com/sequence-detector/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Can I build a sequence detector using a Shift Register instead of an FSM?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes, a 4-bit SIPO shift register paired with a 4-input AND gate can detect fixed patterns like 1101, though FSMs scale better for complex protocols."
          }
        },
        {
          "@type": "Question",
          "name": "Why does a Moore machine need one more state than a Mealy machine?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Moore outputs depend only on the registered state, requiring a dedicated final state to assert Z=1, whereas Mealy asserts Z=1 directly on the final input transition."
          }
        },
        {
          "@type": "Question",
          "name": "What is the difference between overlapping and non-overlapping sequence detection?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Overlapping detectors reuse trailing bits of a matched pattern as the prefix of the next match; non-overlapping detectors reset completely to S0."
          }
        },
        {
          "@type": "Question",
          "name": "Should I use Binary or One-Hot state encoding in Logisim-evolution?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Use Binary encoding to minimize flip-flop count in coursework, and One-Hot encoding when exporting HDL to FPGAs."
          }
        }
      ]
    }
  ]
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Shift Registers in Logisim-evolution: SISO, SIPO, PISO, and PIPO Architectures</title>
		<link>https://logisimevolution.com/shift-register/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Oct 2026 13:14:34 +0000</pubDate>
				<category><![CDATA[Sequential Logic]]></category>
		<guid isPermaLink="false">https://logisimevolution.com/shift-register/</guid>

					<description><![CDATA[Direct Answer: Designing Shift Registers in Logisim-evolution A Shift Register is a sequential cascade of $N$ edge-triggered D flip-flops sharing a common clock, where each active clock edge transfers the stored bit from stage $i$ to stage $i+1$. In Logisim-evolution, you can use the built-in Shift Register component (Memory &#8594; Shift Register, supporting 1 to...]]></description>
										<content:encoded><![CDATA[
<div class="logisim-evolution-article" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.7; color: #1e293b; max-width: 860px; margin: 0 auto;">

    <!-- Direct Answer Summary Box / GEO Answer Block -->
    <div style="background-color: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 22px 24px; margin-bottom: 30px;">
        <h3 style="margin-top: 0; margin-bottom: 10px; color: #166534; font-size: 19px; font-weight: 700;">
            Direct Answer: Designing Shift Registers in Logisim-evolution
        </h3>
        <p style="margin: 0; font-size: 15px; color: #14532d; line-height: 1.65;">
            A <strong>Shift Register</strong> is a sequential cascade of $N$ edge-triggered D flip-flops sharing a common clock, where each active clock edge transfers the stored bit from stage $i$ to stage $i+1$. In Logisim-evolution, you can use the built-in <strong>Shift Register</strong> component (<em>Memory &rarr; Shift Register</em>, supporting 1 to 32 stages and optional parallel load) or wire discrete D flip-flops in series. Depending on how data enters and exits, shift registers divide into four architectures: <strong>SISO</strong> (Serial-In Serial-Out delay lines), <strong>SIPO</strong> (Serial-In Parallel-Out GPIO expanders like the 74HC595), <strong>PISO</strong> (Parallel-In Serial-Out serializers like the 74HC165), and <strong>PIPO</strong> (Parallel-In Parallel-Out buffers).
        </p>
    </div>

    <!-- Recommended Lab Kits and Measurement Hardware -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Recommended Hardware Starter Kits and Serial Bus Analyzers
    </h2>
    <p style="margin-bottom: 24px;">
        Shift registers are the hardware bridge behind SPI, I2S, and UART serial interfaces. Prototyping with physical 74HC595 chips and a logic analyzer demonstrates real-time serial-to-parallel conversion:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Hardware Pick 1: Elegoo Kit -->
        <div style="background: #ffffff; border: 2px solid #2563eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.08);">
            <div>
                <span style="background: #2563eb; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Includes 74HC595 Chip
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Elegoo Electronics Component Starter Kit
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Ships with physical 74HC595 8-bit SIPO shift registers, 830-point breadboards, LEDs, and 220&Omega; resistors so you can drive 8 LEDs using only 3 control wires.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$25–$35 USD • Essential for Hardware Lab Prototyping
                </div>
            </div>
            <a href="/go/elegoo-starter-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #2563eb; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Starter Kit on Amazon &rarr;
            </a>
        </div>

        <!-- Hardware Pick 2: Logic Analyzer -->
        <div style="background: #ffffff; border: 2px solid #059669; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(5,150,105,0.08);">
            <div>
                <span style="background: #059669; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Serial Protocol Decoder
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    USB 8-Channel 24MHz Logic Analyzer
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Inspect serial data (<code>DS</code>), shift clock (<code>SH_CP</code>), and latch clock (<code>ST_CP</code>) waveforms simultaneously in PulseView to debug bit-shifting timing.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$12–$15 USD • Compatible with Sigrok &amp; PulseView
                </div>
            </div>
            <a href="/go/logic-analyzer-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #059669; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Logic Analyzer on Amazon &rarr;
            </a>
        </div>

    </div>

    <!-- Master Comparison Table -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Comparing SISO, SIPO, PISO, and PIPO Shift Register Modes
    </h2>
    <p style="margin-bottom: 20px;">
        Each shift register topology optimizes either pin-count reduction (serial interfaces) or throughput (parallel buses):
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 14px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Architecture</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #2563eb;">Data Entry</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #059669;">Data Exit</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Clocks for $N$ Bits</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Standard 7400 IC</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Primary Application</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">SISO (Serial-In Serial-Out)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">1 bit per clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">1 bit per clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">$N$ clocks latency</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS91 (8-Bit SISO)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Fixed cycle time-delay lines</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #2563eb;">SIPO (Serial-In Parallel-Out)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">1 bit per clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">All $N$ bits at once</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">$N$ load clocks</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700; color: #2563eb;">74HC595 / 74LS164</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">LED matrix &amp; UART/SPI receivers</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #059669;">PISO (Parallel-In Serial-Out)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">All $N$ bits in 1 clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">1 bit per clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">1 load + $N$ shift clocks</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700; color: #059669;">74HC165 / 74LS166</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Keyboard polling &amp; SPI transmitters</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">PIPO (Parallel-In Parallel-Out)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">All $N$ bits in 1 clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">All $N$ bits in 1 clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">1 clock</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS194 (Universal)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Arithmetic multiply/divide shifters</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Built-In Logisim Shift Register Configuration -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Configuring the Built-In Logisim Shift Register Component
    </h2>
    <p style="margin-bottom: 20px;">
        Logisim-evolution&#8217;s native <strong>Shift Register</strong> (under <em>Memory &rarr; Shift Register</em>) exposes attributes that often confuse first-time users:
    </p>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; padding: 20px; margin-bottom: 35px;">
        <ul style="font-size: 14.5px; color: #334155; margin: 0 0 0 20px; line-height: 1.7;">
            <li><strong>Data Bits vs Number of Stages:</strong> <em>Number of Stages</em> sets how many flip-flop cells exist in the shift chain (e.g., 8 stages for an 8-bit byte). <em>Data Bits</em> sets the width of <em>each</em> stage (keep at <code>1</code> for standard bitwise serial shifting).</li>
            <li><strong>Parallel Load Attribute:</strong> Setting <em>Parallel Load</em> to <code>Yes</code> exposes parallel input pins along the top edge and parallel output pins along the bottom edge, turning the component into a universal SISO/SIPO/PISO/PIPO block.</li>
            <li><strong>Shift Enable Pin:</strong> The west-edge <code>shift</code> pin acts as a synchronous shift enable. When <code>shift = 1</code>, bits advance on the clock edge; when <code>shift = 0</code>, all stages hold their values.</li>
        </ul>
    </div>

    <!-- Universal Bidirectional Shift Register & LFSR -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Building a 4-Bit Universal Shift Register and LFSR Generator
    </h2>
    <p style="margin-bottom: 20px;">
        By placing a 4-to-1 Multiplexer in front of each D Flip-Flop, you can construct a 74LS194-style universal shift register controlled by a 2-bit mode selector (<code>S1, S0</code>):
    </p>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #059669; border-radius: 6px; padding: 20px; margin-bottom: 35px;">
        <ul style="font-size: 14px; color: #334155; margin: 0 0 0 20px; line-height: 1.65;">
            <li><code>S1 S0 = 00</code> (<strong>Hold</strong>): MUX input 0 routes $Q_i$ back into $D_i$.</li>
            <li><code>S1 S0 = 01</code> (<strong>Shift Right</strong>): MUX input 1 routes $Q_{i+1}$ into $D_i$ (with external <code>Serial_In_R</code> entering bit 3).</li>
            <li><code>S1 S0 = 10</code> (<strong>Shift Left</strong>): MUX input 2 routes $Q_{i-1}$ into $D_i$ (with external <code>Serial_In_L</code> entering bit 0).</li>
            <li><code>S1 S0 = 11</code> (<strong>Parallel Load</strong>): MUX input 3 routes external bus <code>P[3:0]</code> directly into $D_i$.</li>
            <li><strong>Bonus Application (LFSR):</strong> Feeding the XOR of specific tap outputs (such as $Q_3 \oplus Q_2$ on a 4-bit register) back into the serial input creates a <strong>Linear Feedback Shift Register (LFSR)</strong> that generates maximal-length $2^N &#8211; 1$ pseudo-random sequences.</li>
        </ul>
    </div>

    <!-- Common Traps & Fixes -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequent Traps in Shift Register Wiring
    </h2>
    <p style="margin-bottom: 20px;">
        Avoid these four frequent mistakes when simulating or breadboarding shift registers:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Trap 1 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 1: Confusing Data Bits with Stage Count
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Setting <em>Data Bits = 8</em> instead of <em>Number of Stages = 8</em> creates an 8-bit-wide pipeline rather than a serial 8-bit shifter.<br>
                <strong>The Fix:</strong> Keep <em>Data Bits = 1</em> and increase <em>Number of Stages</em> to 8 for standard serial bit shifting.
            </p>
        </div>

        <!-- Trap 2 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 2: Forgetting the 74HC595 Storage Latch Clock
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> When using a physical 74HC595 SIPO chip, pulsing <code>SH_CP</code> shifts bits internally, but the output LEDs remain frozen.<br>
                <strong>The Fix:</strong> After shifting 8 bits, pulse the Storage Register Clock (<code>ST_CP</code> / <code>RCLK</code>) once to copy the shift register into the output latch.
            </p>
        </div>

        <!-- Trap 3 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 3: All-Zero Lockup in LFSR Circuits
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> On simulation start, all Logisim flip-flops initialize to <code>0</code>, and $0 \oplus 0 = 0$, trapping an XOR-based LFSR permanently at zero.<br>
                <strong>The Fix:</strong> Use XNOR feedback instead of XOR (so all-ones is the lockup state), or preset Bit 0 to <code>1</code> at startup.
            </p>
        </div>

        <!-- Trap 4 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 4: Unconnected Serial Data Input
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Leaving the serial input pin floating injects <code>X</code> (unknown/error blue wires) into Stage 0, propagating errors down the entire chain.<br>
                <strong>The Fix:</strong> Always tie unused serial inputs to constant <code>0</code> or feed back the last stage output for a Ring Counter.
            </p>
        </div>

    </div>

    <!-- Curriculum Progression -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Curriculum Progression from Shift Registers to Serial Protocols
    </h2>
    <p style="margin-bottom: 24px;">
        Continue advancing through sequential hardware architectures with these closely related modules:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px;">
        <a href="/registers/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Parallel-Load Registers &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Compare serial shifting with simultaneous parallel CPU register loading.</div>
        </a>
        <a href="/counter/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Counters &amp; Ring Counters &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Convert shift registers into Ring and Johnson counters using feedback loops.</div>
        </a>
        <a href="/sequence-detector/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">FSM Sequence Detector &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Use a shift register or state machine to detect 101 and 1101 bit patterns.</div>
        </a>
        <a href="/7400-ics-in-logisim/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">7400 Series IC Pinouts &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Review physical DIP pinouts for 74HC595 and 74LS164 shift register chips.</div>
        </a>
    </div>

    <!-- FAQ Section -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequently Asked Questions About Shift Registers
    </h2>

    <div style="margin-bottom: 35px;">
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                How many clock cycles does it take to load an 8-bit SIPO shift register?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                An 8-bit Serial-In Parallel-Out (SIPO) shift register requires exactly <strong>8 clock cycles</strong> to shift all 8 bits into their respective flip-flop stages, after which all 8 bits are available simultaneously on the parallel output bus.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                How can a shift register perform fast binary multiplication or division?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Shifting an unsigned binary integer one bit to the left (injecting <code>0</code> at the LSB) multiplies its value by <strong>2</strong>. Shifting one bit to the right (injecting <code>0</code> at the MSB for logical shift, or copying the sign bit for arithmetic shift) divides the value by <strong>2</strong> in a single clock cycle.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                What is a Ring Counter vs a Johnson Counter?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                A <strong>Ring Counter</strong> connects the last stage output $Q_{N-1}$ directly back to the serial input $D_0$, circulating a single <code>1</code> across $N$ states. A <strong>Johnson Counter</strong> (Twisted Ring) connects the inverted output $\overline{Q_{N-1}}$ back to $D_0$, doubling the state count to $2N$ unique states.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Can I cascade multiple Logisim Shift Registers to exceed 32 stages?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Yes. Connect the final stage serial output of the first Shift Register into the serial input of a second Shift Register while sharing the identical <code>clk</code> and <code>clr</code> wires.
            </p>
        </div>
    </div>

    <!-- FTC Affiliate Disclosure -->
    <div style="background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-top: 30px; font-size: 12.5px; color: #64748b; line-height: 1.5;">
        <strong>Affiliate Disclosure:</strong> Logisim-evolution Community is an independent educational resource. Some links in this guide are affiliate links. If you purchase electronic kits or tools through these links, we may earn an affiliate commission at no extra cost to you.
    </div>

</div>



<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://logisimevolution.com/shift-register/#article",
      "headline": "Shift Registers in Logisim-evolution: SISO, SIPO, PISO, and PIPO Architectures",
      "description": "Complete guide to SISO, SIPO, PISO, and PIPO shift registers in Logisim-evolution. Includes universal 4-bit shift register design, LFSR feedback, and 74HC595 breadboarding.",
      "url": "https://logisimevolution.com/shift-register/",
      "inLanguage": "en-US",
      "mainEntityOfPage": "https://logisimevolution.com/shift-register/",
      "proficiencyLevel": "Intermediate",
      "articleSection": "Sequential Logic",
      "publisher": {
        "@type": "Organization",
        "name": "Logisim-evolution Community",
        "url": "https://logisimevolution.com"
      }
    },
    {
      "@type": "HowTo",
      "@id": "https://logisimevolution.com/shift-register/#howto",
      "name": "How to Build a 4-Bit Universal Shift Register in Logisim-evolution",
      "description": "Step-by-step instructions to build a 4-bit shift register supporting Hold, Shift Right, Shift Left, and Parallel Load.",
      "step": [
        {
          "@type": "HowToStep",
          "name": "Place Four D Flip-Flops and 4-to-1 MUXes",
          "text": "Align four D Flip-Flops and place a 4-to-1 Multiplexer in front of each D input."
        },
        {
          "@type": "HowToStep",
          "name": "Wire Mode Inputs on Each Multiplexer",
          "text": "Connect Q_i to input 0 (Hold), Q_{i+1} to input 1 (Shift Right), Q_{i-1} to input 2 (Shift Left), and parallel data P_i to input 3."
        },
        {
          "@type": "HowToStep",
          "name": "Connect Shared Clock and 2-Bit Mode Selector",
          "text": "Wire the 2-bit selector S[1:0] to all MUXes and broadcast the system clock to every flip-flop."
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://logisimevolution.com/shift-register/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "How many clock cycles does it take to load an 8-bit SIPO shift register?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "An 8-bit SIPO shift register requires 8 clock cycles to shift all 8 bits serially into the register before reading them in parallel."
          }
        },
        {
          "@type": "Question",
          "name": "How can a shift register perform fast binary multiplication or division?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Shifting left by 1 bit multiplies an unsigned binary number by 2; shifting right by 1 bit divides by 2 in a single clock cycle."
          }
        },
        {
          "@type": "Question",
          "name": "What is a Ring Counter vs a Johnson Counter?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "A Ring Counter feeds Q_last back to D_0 for N states, while a Johnson Counter feeds inverted ~Q_last back to D_0 for 2N states."
          }
        },
        {
          "@type": "Question",
          "name": "Can I cascade multiple Logisim Shift Registers to exceed 32 stages?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. Wire the final stage serial output of the first shift register into the serial input of the next while sharing the clock."
          }
        }
      ]
    }
  ]
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Parallel-Load Registers in Logisim-evolution: Architecture, Timing, and CPU Integration</title>
		<link>https://logisimevolution.com/registers/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Oct 2026 13:14:32 +0000</pubDate>
				<category><![CDATA[Sequential Logic]]></category>
		<guid isPermaLink="false">https://logisimevolution.com/registers/</guid>

					<description><![CDATA[Direct Answer: Parallel-Load Registers in Logisim-evolution A Register is an $N$-bit synchronous storage element built by grouping $N$ edge-triggered D flip-flops that share a common clock (clk) and asynchronous reset (clr) line. In Logisim-evolution, the built-in Register component (located under Memory &#8594; Register, configurable from 1 to 32 bits) includes an active-high Write Enable (en)...]]></description>
										<content:encoded><![CDATA[
<div class="logisim-evolution-article" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.7; color: #1e293b; max-width: 860px; margin: 0 auto;">

    <!-- Direct Answer Summary Box / GEO Answer Block -->
    <div style="background-color: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 22px 24px; margin-bottom: 30px;">
        <h3 style="margin-top: 0; margin-bottom: 10px; color: #166534; font-size: 19px; font-weight: 700;">
            Direct Answer: Parallel-Load Registers in Logisim-evolution
        </h3>
        <p style="margin: 0; font-size: 15px; color: #14532d; line-height: 1.65;">
            A <strong>Register</strong> is an $N$-bit synchronous storage element built by grouping $N$ edge-triggered D flip-flops that share a common clock (<code>clk</code>) and asynchronous reset (<code>clr</code>) line. In Logisim-evolution, the built-in <strong>Register</strong> component (located under <em>Memory &rarr; Register</em>, configurable from 1 to 32 bits) includes an active-high Write Enable (<code>en</code>) pin. Internally, a 2-to-1 multiplexer on each bit selects between holding the previous output ($D = Q$ when <code>en = 0</code>) and latching the new input bus ($D = D_{in}$ when <code>en = 1</code>) on the rising clock edge—completely avoiding dangerous clock-gating glitches.
        </p>
    </div>

    <!-- Recommended Lab Textbooks & Hardware Kits -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Recommended Architecture Textbooks and Breadboard Hardware
    </h2>
    <p style="margin-bottom: 24px;">
        Registers form the Program Counter, Instruction Register, and General-Purpose Register File of every CPU. Combine Logisim simulation with these proven academic and physical lab resources:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Textbook: Harris & Harris -->
        <div style="background: #ffffff; border: 2px solid #2563eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.08);">
            <div>
                <span style="background: #2563eb; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Essential Reference
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Digital Design &amp; Computer Architecture
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    By David Harris &amp; Sarah Harris. Explains enabled registers, register file multi-port reading, setup/hold timing budgets, and synchronous reset design in detail.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Publisher: Morgan Kaufmann • Standard University Text
                </div>
            </div>
            <a href="/go/digital-design-book" target="_blank" rel="sponsored nofollow noopener" style="background: #2563eb; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                View Textbook on Amazon &rarr;
            </a>
        </div>

        <!-- Hardware Pick: Elegoo Starter Kit -->
        <div style="background: #ffffff; border: 2px solid #059669; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(5,150,105,0.08);">
            <div>
                <span style="background: #059669; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Breadboard Lab Kit
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Elegoo Electronics Component Starter Kit
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Provides 830-point breadboards, LED status bars, DIP switches, and jumper wires for physically testing 74LS173, 74LS273, and 74LS374 octal register ICs.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$25–$35 USD • Ideal for Hardware Prototyping
                </div>
            </div>
            <a href="/go/elegoo-starter-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #059669; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Starter Kit on Amazon &rarr;
            </a>
        </div>

    </div>

    <!-- Comparison Table -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Comparing Latches, Edge-Triggered Registers, and Register Files
    </h2>
    <p style="margin-bottom: 20px;">
        Selecting the right storage primitive prevents subtle timing bugs when scaling from single-bit flip-flops to full CPU datapaths:
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 14px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Storage Type</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #2563eb;">Triggering Mode</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #059669;">Load Enable Control</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">7400 IC Equivalent</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Typical Architecture Role</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Transparent D-Latch</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Level-Sensitive (Transparent while CLK=1)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Latch Enable (LE)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS373 (Octal)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Legacy 8086 address/data demultiplexing</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Simple D Register</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Rising Clock Edge</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">None (Loads every cycle)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS273 / 74LS374</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Pipeline stage buffers (IF/ID, ID/EX)</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #2563eb;">Parallel-Load Register</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Rising Clock Edge</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">MUX-Gated Write Enable (en)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS173 / 74LS377</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Accumulator (AC), Program Counter (PC), MAR</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Multi-Port Register File</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Rising Clock Edge (Write) / Async Read</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Decoder-driven per-register WE</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS670 (4&#215;4 File)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">MIPS / RISC-V 32&times;32 general registers</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Logisim Built-in Register Pinout -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Pinout and Attributes of the Built-In Logisim Register
    </h2>
    <p style="margin-bottom: 20px;">
        Logisim-evolution&#8217;s native <strong>Register</strong> component (under <em>Memory &rarr; Register</em>) displays its current hexadecimal value directly on the schematic canvas, making live CPU debugging effortless:
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 13.5px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 10px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Pin / Port</th>
                    <th style="padding: 10px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Location on Block</th>
                    <th style="padding: 10px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Bit Width</th>
                    <th style="padding: 10px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Functional Behavior</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700; color: #2563eb;">D (Data In)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">West edge (top)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">1 to 32 bits</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">Input value sampled on the active clock edge when <code>en = 1</code>.</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700; color: #059669;">Q (Data Out)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">East edge</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">Matches <code>D</code></td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">Continuously drives the currently stored $N$-bit value onto the output bus.</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700;">en (Enable)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">West edge (middle)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">1 bit</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">Active-high write enable. Defaults to <code>1</code> if left unconnected.</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700;">clk (Triangle)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">West edge (bottom)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">1 bit</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">Triggers capture on Rising Edge (default) or Falling Edge via Properties.</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700; color: #dc2626;">clr (Reset)</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">South edge</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">1 bit</td>
                    <td style="padding: 10px 14px; border: 1px solid #cbd5e1;">Asynchronous active-high clear: immediately forces <code>Q = 0</code> regardless of clock.</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Building from Discrete Flip-Flops -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Building a 4-Bit Parallel-Load Register from D Flip-Flops
    </h2>
    <p style="margin-bottom: 20px;">
        In introductory digital logic labs, you are often required to construct a 4-bit register from individual D flip-flops to demonstrate how Write Enable works without corrupting the clock tree:
    </p>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; padding: 20px; margin-bottom: 35px;">
        <ol style="font-size: 14.5px; color: #334155; margin: 0 0 0 20px; line-height: 1.7;">
            <li><strong>Place Four D Flip-Flops:</strong> Align four 1-bit D Flip-Flops vertically (Bit 3 at top, Bit 0 at bottom).</li>
            <li><strong>Add 2-to-1 Multiplexers:</strong> Place one 2-to-1 MUX in front of each flip-flop&#8217;s <code>D</code> input.</li>
            <li><strong>Wire Feedback Loop:</strong> Connect each flip-flop&#8217;s output <code>Q</code> back to input <code>0</code> of its own MUX. Connect external bus bits <code>D_in[3:0]</code> to input <code>1</code> of each MUX.</li>
            <li><strong>Broadcast Control Signals:</strong> Wire the <code>Load_Enable</code> pin to the select port of all four MUXes. Wire the system <code>CLK</code> directly to every flip-flop&#8217;s clock pin with zero intermediate gates.</li>
        </ol>
    </div>

    <!-- Common Traps & Fixes -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequent Traps in Register Design and Clocking
    </h2>
    <p style="margin-bottom: 20px;">
        Avoid these four critical timing and wiring mistakes when building register banks:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Trap 1 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 1: Gating the Clock Instead of Using a MUX
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Passing <code>CLK</code> and <code>Load_Enable</code> through an AND gate (<code>CLK &amp; EN</code>) creates false rising edges (glitches) whenever <code>EN</code> toggles while <code>CLK</code> is high, and introduces clock skew on FPGAs.<br>
                <strong>The Fix:</strong> Always feed the raw clock directly to flip-flops and implement <code>Load_Enable</code> via a 2-to-1 MUX on the <code>D</code> input.
            </p>
        </div>

        <!-- Trap 2 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 2: Confusing Asynchronous Clear with Synchronous Reset
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> The bottom <code>clr</code> pin on Logisim&#8217;s Register clears data instantaneously even without a clock edge, which can cause timing hazards if driven by combinational glitch signals.<br>
                <strong>The Fix:</strong> Only drive <code>clr</code> from a clean master reset button or synchronized reset controller; for clocked zeroing, feed <code>0x00</code> into the <code>D</code> input MUX.
            </p>
        </div>

        <!-- Trap 3 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 3: Bus Width Mismatch Errors
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Placing a default 8-bit Register onto a 4-bit or 32-bit CPU bus immediately triggers an orange incompatible width error.<br>
                <strong>The Fix:</strong> Select the Register and change its <em>Data Bits</em> property to match your bus width before connecting wires.
            </p>
        </div>

        <!-- Trap 4 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 4: Forgetting Active-Low Output Enable on 74LS374
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Physical octal register chips like the 74LS374 enter high-impedance (Z) state if their Output Enable ($\overline{OE}$) pin floats.<br>
                <strong>The Fix:</strong> Tie $\overline{OE}$ directly to Ground (0V) on breadboards unless sharing a tristate bus.
            </p>
        </div>

    </div>

    <!-- Curriculum Progression -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Curriculum Progression from Registers to Processor Datapaths
    </h2>
    <p style="margin-bottom: 24px;">
        Parallel registers serve as the backbone of counters, shift registers, and multi-register CPU files:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px;">
        <a href="/flip-flops/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Flip-Flops Foundation &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Review D flip-flop edge triggering, setup/hold times, and metastability.</div>
        </a>
        <a href="/shift-register/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Shift Registers Guide &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Shift bitstreams serially through chained registers (SISO, SIPO, PISO, PIPO).</div>
        </a>
        <a href="/counter/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Binary Counters Tutorial &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Combine a register with a +1 adder to build a synchronous Program Counter.</div>
        </a>
        <a href="/mips-processor/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">MIPS 32&times;32 Register File &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Scale registers into a dual-read, single-write MIPS CPU register bank.</div>
        </a>
    </div>

    <!-- FAQ Section -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequently Asked Questions About Logisim Registers
    </h2>

    <div style="margin-bottom: 35px;">
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                What happens if I leave the Register Enable (en) pin unconnected in Logisim?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                In Logisim-evolution, an unconnected <code>en</code> pin defaults to logic <code>1</code> (enabled), meaning the register will capture new data on every active clock edge. To hold data across cycles, you must wire <code>en</code> to a control signal.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Why should I avoid gating the clock signal with an AND gate to control register loading?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Clock gating via combinational AND gates creates timing skew between gated and ungated registers and introduces transient glitch pulses whenever the enable line transitions while the clock is high. Using a 2-to-1 feedback multiplexer on the <code>D</code> input keeps the clock tree pure.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                How do I initialize a Register to a non-zero value on simulation reset?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Logisim&#8217;s native Register always resets to <code>0</code> when <code>clr</code> is pulsed. If you need a register to boot to a specific non-zero constant (such as a stack pointer at <code>0xFF</code>), place a 2-to-1 MUX in front of <code>D</code> that injects the constant during a synchronous reset cycle.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                What is the maximum bit-width supported by Logisim-evolution&#8217;s Register?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Logisim-evolution supports Data Bits up to 32 bits natively on a single Register block (matching 32-bit architectures like MIPS and RISC-V). For 64-bit registers, instantiate two 32-bit registers sharing identical <code>clk</code>, <code>en</code>, and <code>clr</code> lines.
            </p>
        </div>
    </div>

    <!-- FTC Affiliate Disclosure -->
    <div style="background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-top: 30px; font-size: 12.5px; color: #64748b; line-height: 1.5;">
        <strong>Affiliate Disclosure:</strong> Logisim-evolution Community is an independent educational resource. Some links in this guide are affiliate links. If you purchase textbooks or hardware starter kits through these links, we may earn an affiliate commission at no extra cost to you.
    </div>

</div>



<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://logisimevolution.com/registers/#article",
      "headline": "Parallel-Load Registers in Logisim-evolution: Architecture, Timing, and CPU Integration",
      "description": "Learn how to build and use parallel-load registers in Logisim-evolution. Covers D flip-flop arrays, MUX-based write enable, pinout attributes, and avoiding clock-gating glitches.",
      "url": "https://logisimevolution.com/registers/",
      "inLanguage": "en-US",
      "mainEntityOfPage": "https://logisimevolution.com/registers/",
      "proficiencyLevel": "Intermediate",
      "articleSection": "Sequential Logic",
      "publisher": {
        "@type": "Organization",
        "name": "Logisim-evolution Community",
        "url": "https://logisimevolution.com"
      }
    },
    {
      "@type": "HowTo",
      "@id": "https://logisimevolution.com/registers/#howto",
      "name": "How to Build a 4-Bit Parallel-Load Register in Logisim-evolution",
      "description": "Step-by-step instructions to construct a 4-bit enabled register from D flip-flops and 2-to-1 multiplexers.",
      "step": [
        {
          "@type": "HowToStep",
          "name": "Align Four Edge-Triggered D Flip-Flops",
          "text": "Place four 1-bit D Flip-Flops vertically to store bits 0 through 3."
        },
        {
          "@type": "HowToStep",
          "name": "Insert 2-to-1 Feedback Multiplexers",
          "text": "Connect each flip-flop Q output to input 0 of a 2-to-1 MUX, and external data D_in to input 1."
        },
        {
          "@type": "HowToStep",
          "name": "Broadcast Write Enable and System Clock",
          "text": "Route Load_Enable to all MUX select pins, and connect the raw clock signal directly to every flip-flop clock pin."
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://logisimevolution.com/registers/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "What happens if I leave the Register Enable (en) pin unconnected in Logisim?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "An unconnected en pin defaults to logic 1 (enabled), so the register captures new data on every active clock edge."
          }
        },
        {
          "@type": "Question",
          "name": "Why should I avoid gating the clock signal with an AND gate to control register loading?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Clock gating introduces timing skew and glitch pulses when enable changes while the clock is high. Use a 2-to-1 multiplexer on the D input instead."
          }
        },
        {
          "@type": "Question",
          "name": "How do I initialize a Register to a non-zero value on simulation reset?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Place a 2-to-1 MUX in front of the D input to inject your non-zero boot constant during a synchronous reset cycle."
          }
        },
        {
          "@type": "Question",
          "name": "What is the maximum bit-width supported by Logisim-evolution's Register?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Logisim-evolution natively supports up to 32 bits per Register component. For 64-bit registers, combine two 32-bit registers in parallel."
          }
        }
      ]
    }
  ]
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>SR, D, JK, and T Flip-Flops in Logisim-evolution: Complete Sequential Logic Guide</title>
		<link>https://logisimevolution.com/flip-flops/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Oct 2026 13:14:23 +0000</pubDate>
				<category><![CDATA[Sequential Logic]]></category>
		<guid isPermaLink="false">https://logisimevolution.com/flip-flops/</guid>

					<description><![CDATA[Direct Answer: Understanding Flip-Flops in Logisim-evolution A Flip-Flop is an edge-triggered bistable multivibrator that stores exactly one bit of binary data ($Q$). While latches are level-sensitive (passing data continuously while enable is high), flip-flops sample their inputs strictly at the rising or falling transition of a clock pulse. Logisim-evolution provides four fundamental flip-flop components in...]]></description>
										<content:encoded><![CDATA[
<div class="logisim-evolution-article" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.7; color: #1e293b; max-width: 860px; margin: 0 auto;">

    <!-- Direct Answer Summary Box / GEO Answer Block -->
    <div style="background-color: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 22px 24px; margin-bottom: 30px;">
        <h3 style="margin-top: 0; margin-bottom: 10px; color: #166534; font-size: 19px; font-weight: 700;">
            Direct Answer: Understanding Flip-Flops in Logisim-evolution
        </h3>
        <p style="margin: 0; font-size: 15px; color: #14532d; line-height: 1.65;">
            A Flip-Flop is an edge-triggered bistable multivibrator that stores exactly one bit of binary data ($Q$). While latches are level-sensitive (passing data continuously while enable is high), flip-flops sample their inputs strictly at the rising or falling transition of a clock pulse. Logisim-evolution provides four fundamental flip-flop components in the <em>Memory</em> library: the <strong>SR Flip-Flop</strong> (Set-Reset, with undefined state when $S=R=1$), the <strong>D Flip-Flop</strong> (Data/Delay, where $Q_{next} = D$, the universal building block of CPU registers), the <strong>JK Flip-Flop</strong> (universal, toggling when $J=K=1$), and the <strong>T Flip-Flop</strong> (Toggle, where $Q_{next} = T \oplus Q$, serving as a 2-to-1 frequency divider in binary counters).
        </p>
    </div>

    <!-- Recommended Lab Kits and Measurement Hardware -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Recommended Hardware Starter Kits and Timing Measurement Tools
    </h2>
    <p style="margin-bottom: 24px;">
        Prototyping flip-flops on physical breadboards reveals the reality of clock edge jitter, switch bounce, and setup/hold timing constraints:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Hardware Pick 1: Elegoo Kit -->
        <div style="background: #ffffff; border: 2px solid #2563eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.08);">
            <div>
                <span style="background: #2563eb; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Breadboard Lab Kit
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Elegoo Electronics Component Starter Kit
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Includes solderless breadboards, 555 precision timers for generating variable clock pulses, tactile pushbuttons, multi-color LEDs, and decoupling capacitors required for 74LS74 and 74LS76 ICs.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$25–$35 USD • Essential for Digital Logic Lab Homework
                </div>
            </div>
            <a href="/go/elegoo-starter-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #2563eb; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Starter Kit on Amazon &rarr;
            </a>
        </div>

        <!-- Hardware Pick 2: Logic Analyzer -->
        <div style="background: #ffffff; border: 2px solid #059669; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(5,150,105,0.08);">
            <div>
                <span style="background: #059669; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Timing Verification Tool
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    USB 8-Channel 24MHz Logic Analyzer
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Directly capture clock rising edges, propagation delays ($t_{pd}$), setup violations, and switch bouncing events on your breadboard using Sigrok PulseView.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$12–$15 USD • Compatible with Sigrok &amp; PulseView
                </div>
            </div>
            <a href="/go/logic-analyzer-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #059669; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Logic Analyzer on Amazon &rarr;
            </a>
        </div>

    </div>

    <!-- Comparative Table of Flip-Flop Types -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Comprehensive Comparison of SR, D, JK, and T Flip-Flops
    </h2>
    <p style="margin-bottom: 20px;">
        Each flip-flop architecture possesses distinct characteristic behaviors, excitation formulas, and integrated circuit implementations:
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 14px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Flip-Flop Type</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #2563eb;">Characteristic Equation</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #059669;">Next State Behavior ($Q_{next}$)</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Forbidden State</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Standard 7400 IC</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Primary Use Case</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">SR Flip-Flop</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">Q_next = S + ~R &middot; Q</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Set (1), Reset (0), Hold (Q)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #dc2626;">S = 1, R = 1</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">74LS279 (Quad SR Latch)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Switch debouncing circuits</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">D Flip-Flop</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700; color: #2563eb;">Q_next = D</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Direct data latching on clock edge</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">None (Impossible)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #2563eb;">74LS74 (Dual D-Type)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">CPU pipeline registers, RAM cells</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">JK Flip-Flop</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">Q_next = J &middot; ~Q + ~K &middot; Q</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Hold (00), Reset (01), Set (10), Toggle (11)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">None (11 triggers toggle)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #059669;">74LS76 / 74LS73 (Dual JK)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Synchronous state machines &amp; counters</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">T Flip-Flop</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">Q_next = T &oplus; Q</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Hold (T = 0), Invert State (T = 1)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">None</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Tied JK (J=K=T) or D (D=T&oplus;Q)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Frequency dividers, ripple counters</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Truth Tables & Excitation Tables -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Truth Tables and State Excitation Formulas
    </h2>
    <p style="margin-bottom: 20px;">
        When designing synchronous sequential circuits or finite state machines (FSMs), engineers use <strong>Excitation Tables</strong> to determine what inputs must be applied to achieve a desired state transition ($Q 	o Q_{next}$):
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 13.5px; text-align: center;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #0f172a;">Transition (Q &rarr; Q_next)</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #2563eb;">D Input Required</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #059669;">S, R Inputs Required</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #d97706;">J, K Inputs Required</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #7c3aed;">T Input Required</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700;">0 &rarr; 0</td>
                    <td style="font-family: monospace; font-weight: 700; color: #2563eb;">0</td>
                    <td style="font-family: monospace;">S = 0, R = X</td>
                    <td style="font-family: monospace; font-weight: 700; color: #059669;">J = 0, K = X</td>
                    <td style="font-family: monospace; font-weight: 700; color: #7c3aed;">0</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700;">0 &rarr; 1</td>
                    <td style="font-family: monospace; font-weight: 700; color: #2563eb;">1</td>
                    <td style="font-family: monospace;">S = 1, R = 0</td>
                    <td style="font-family: monospace; font-weight: 700; color: #059669;">J = 1, K = X</td>
                    <td style="font-family: monospace; font-weight: 700; color: #7c3aed;">1</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700;">1 &rarr; 0</td>
                    <td style="font-family: monospace; font-weight: 700; color: #2563eb;">0</td>
                    <td style="font-family: monospace;">S = 0, R = 1</td>
                    <td style="font-family: monospace; font-weight: 700; color: #059669;">J = X, K = 1</td>
                    <td style="font-family: monospace; font-weight: 700; color: #7c3aed;">1</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1; font-family: monospace; font-weight: 700;">1 &rarr; 1</td>
                    <td style="font-family: monospace; font-weight: 700; color: #2563eb;">1</td>
                    <td style="font-family: monospace;">S = X, R = 0</td>
                    <td style="font-family: monospace; font-weight: 700; color: #059669;">J = X, K = 0</td>
                    <td style="font-family: monospace; font-weight: 700; color: #7c3aed;">0</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Clock Timing, Setup, and Hold -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Understanding Setup Time, Hold Time, and Metastability
    </h2>
    <p style="margin-bottom: 20px;">
        Unlike combinational gates where outputs settle after propagation delay, sequential flip-flops demand strict adherence to dynamic timing windows around the clock edge:
    </p>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 22px; margin-bottom: 35px;">
        <ul style="font-size: 14.5px; color: #334155; margin: 0 0 0 20px; line-height: 1.7;">
            <li><strong>Setup Time ($t_s$):</strong> The minimum duration the input data signal ($D$) must remain stable <em>before</em> the active clock transition occurs.</li>
            <li><strong>Hold Time ($t_h$):</strong> The minimum duration the input data signal must remain stable <em>after</em> the active clock transition has arrived.</li>
            <li><strong>Metastability Hazard:</strong> If an asynchronous input switches within the $t_s + t_h$ aperture window, the internal cross-coupled latches enter a metastable state—hovering at an intermediate voltage between 0 and 1 for an indeterminate period before collapsing unpredictably to 0 or 1.</li>
            <li><strong>Two-Stage Synchronizer:</strong> To safely interface external asynchronous inputs (such as pushbuttons or serial UART) into your Logisim clock domain, pass the signal through two cascaded D Flip-Flops in series.</li>
        </ul>
    </div>

    <!-- Common Traps & Fixes -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequent Traps in Sequential Flip-Flop Circuits
    </h2>
    <p style="margin-bottom: 20px;">
        Avoid these common architectural mistakes when building sequential circuits in Logisim-evolution:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Trap 1 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 1: Level-Sensitive Latch vs Edge-Triggered Flip-Flop
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Using a transparent D-Latch instead of a D Flip-Flop causes data to flow through continuously whenever the clock is high, creating race conditions.<br>
                <strong>The Fix:</strong> Ensure your component has a triangle symbol on the clock pin, indicating true edge-triggering. In Logisim, select components from <em>Memory &rarr; D Flip-Flop</em>.
            </p>
        </div>

        <!-- Trap 2 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 2: Asynchronous Preset and Clear Pin Inversion
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Flip-flop components include asynchronous Set ($S$) and Reset ($R$ / Clear) pins. In Logisim, these override the clock. On real 74LS74 ICs, they are active-low ($\overline{PRE}, \overline{CLR}$).<br>
                <strong>The Fix:</strong> In software, leave them unconnected if unused. On physical breadboards, tie $\overline{PRE}$ and $\overline{CLR}$ directly to VCC (+5V).
            </p>
        </div>

        <!-- Trap 3 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 3: Mechanical Pushbutton Contact Bouncing
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Triggering a physical flip-flop clock line with a tactile pushbutton introduces mechanical contact chatter, producing 5 to 20 false clock edges per press.<br>
                <strong>The Fix:</strong> Debounce the switch using an SR Latch (cross-coupled NAND gates with a SPDT switch) or an RC filter with a 74LS14 Schmitt trigger inverter.
            </p>
        </div>

        <!-- Trap 4 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 4: Mixed Rising and Falling Clock Edges
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Configuring some flip-flops for rising-edge triggering and others for falling-edge triggering halves the available propagation time across stages.<br>
                <strong>The Fix:</strong> Standardize on a single clock polarity (rising edge) across all sequential components in your project.
            </p>
        </div>

    </div>

    <!-- Curriculum Progression -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Curriculum Progression from Flip-Flops to Complex Systems
    </h2>
    <p style="margin-bottom: 24px;">
        Flip-flops provide the fundamental memory foundation for all subsequent sequential logic architectures:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px;">
        <a href="/registers/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit; transition: all 0.2s ease;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Registers Guide &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Combine multiple D Flip-Flops with write enable gating to build parallel CPU data registers.</div>
        </a>
        <a href="/shift-register/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit; transition: all 0.2s ease;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Shift Registers Guide &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Cascade flip-flops to convert between serial bitstreams and parallel data buses (SISO, SIPO, PISO).</div>
        </a>
        <a href="/counter/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit; transition: all 0.2s ease;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Counters Tutorial &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Build synchronous up/down binary counters and decade counters using JK and T flip-flops.</div>
        </a>
        <a href="/chronogram-timing-analysis/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit; transition: all 0.2s ease;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Chronogram Timing Analysis &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Use Logisim-evolution&#8217;s built-in timing analyzer to view waveform propagation and clock skew.</div>
        </a>
    </div>

    <!-- FAQ Section -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequently Asked Questions About Flip-Flops
    </h2>

    <div style="margin-bottom: 35px;">
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                What is the critical difference between a Latch and a Flip-Flop?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                A latch is <strong>level-sensitive</strong>: as long as its clock/enable input remains active high, the output continuously tracks changes on the input. A flip-flop is <strong>edge-triggered</strong>: it samples input data exclusively during the instantaneous clock voltage transition (rising edge or falling edge) and ignores input changes during the rest of the clock cycle.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Why is the SR = 11 state invalid in an SR Flip-Flop?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                In a NOR-based SR latch, applying $S=1$ and $R=1$ forces both complementary outputs ($Q$ and $\overline{Q}$) to logic 0 simultaneously, violating Boolean complementarity. When both inputs return to 0 simultaneously, the circuit enters an unpredictable race condition where gate propagation delays dictate which output becomes 1.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                How do I convert a D Flip-Flop into a T Flip-Flop?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Place an XOR gate in front of the D input. Feed the toggle control signal ($T$) and the current flip-flop output ($Q$) into the XOR gate: $D = T \oplus Q$. When $T = 0$, $D = Q$ (hold). When $T = 1$, $D = \overline{Q}$ (toggle on every clock edge).
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Can Logisim-evolution simulate setup and hold timing violations?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Logisim-evolution provides discrete unit-delay simulation where gate propagation latencies are modeled. Its built-in <strong>Chronogram</strong> tool (under <em>Simulate &rarr; Chronogram</em>) visualizes waveform transitions across clock ticks, allowing students to observe race conditions and propagation skew directly.
            </p>
        </div>
    </div>

    <!-- FTC Affiliate Disclosure -->
    <div style="background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-top: 30px; font-size: 12.5px; color: #64748b; line-height: 1.5;">
        <strong>Affiliate Disclosure:</strong> Logisim-evolution Community is an independent educational resource. Some links in this guide are affiliate links. If you purchase electronic kits, breadboards, or instruments through these links, we may earn an affiliate commission at no extra cost to you. We only recommend genuine laboratory equipment tested for digital logic coursework.
    </div>

</div>



<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://logisimevolution.com/flip-flops/#article",
      "headline": "SR, D, JK, and T Flip-Flops in Logisim-evolution: Complete Sequential Logic Guide",
      "description": "Comprehensive tutorial to SR, D, JK, and T flip-flops in Logisim-evolution, featuring truth tables, excitation tables, setup/hold timing analysis, and 7400 IC breadboard pinouts.",
      "url": "https://logisimevolution.com/flip-flops/",
      "inLanguage": "en-US",
      "mainEntityOfPage": "https://logisimevolution.com/flip-flops/",
      "proficiencyLevel": "Intermediate",
      "articleSection": "Sequential Logic",
      "publisher": {
        "@type": "Organization",
        "name": "Logisim-evolution Community",
        "url": "https://logisimevolution.com"
      }
    },
    {
      "@type": "HowTo",
      "@id": "https://logisimevolution.com/flip-flops/#howto",
      "name": "How to Use Flip-Flops in Logisim-evolution",
      "description": "Step-by-step instructions to instantiate, wire, and test edge-triggered flip-flops in Logisim-evolution.",
      "step": [
        {
          "@type": "HowToStep",
          "name": "Select Flip-Flop Component",
          "text": "Navigate to the Memory library and select the desired flip-flop type (D, JK, T, or SR)."
        },
        {
          "@type": "HowToStep",
          "name": "Connect System Clock",
          "text": "Place a Clock component from the Wiring library and wire it to the triangle-marked clock port of the flip-flop."
        },
        {
          "@type": "HowToStep",
          "name": "Wire Data Inputs and Output Pins",
          "text": "Connect input pins to data ports (D, J/K, T, or S/R) and attach output pins to Q and Q_not."
        },
        {
          "@type": "HowToStep",
          "name": "Pulse the Clock to Verify State Transitions",
          "text": "Use the Poke Tool or press Ctrl+T to tick the clock and observe synchronous state updates on output Q."
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://logisimevolution.com/flip-flops/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "What is the critical difference between a Latch and a Flip-Flop?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Latches are level-sensitive, passing data continuously while clock/enable is high. Flip-flops are edge-triggered, sampling inputs exclusively on the clock voltage transition."
          }
        },
        {
          "@type": "Question",
          "name": "Why is the SR = 11 state invalid in an SR Flip-Flop?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Applying S=1 and R=1 forces both Q and ~Q to zero, violating Boolean complementarity and triggering unpredictable race conditions upon return to zero."
          }
        },
        {
          "@type": "Question",
          "name": "How do I convert a D Flip-Flop into a T Flip-Flop?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Place an XOR gate driven by toggle input T and current state Q, connecting the XOR output to D (D = T XOR Q)."
          }
        },
        {
          "@type": "Question",
          "name": "Can Logisim-evolution simulate setup and hold timing violations?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Logisim-evolution models gate propagation delays and features a Chronogram tool under Simulate -> Chronogram to visualize waveform transitions across clock cycles."
          }
        }
      ]
    }
  ]
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Synchronous and Asynchronous Counters in Logisim-evolution: Ripple, Mod-N, and Up/Down Guide</title>
		<link>https://logisimevolution.com/counter/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Oct 2026 11:32:35 +0000</pubDate>
				<category><![CDATA[Sequential Logic]]></category>
		<guid isPermaLink="false">https://logisimevolution.com/counter/</guid>

					<description><![CDATA[Direct Answer: Designing Counters in Logisim-evolution A digital Counter is a sequential state machine that cycles through a deterministic binary sequence on each active clock pulse. In Logisim-evolution, you can instantiate the pre-built Counter component (Memory &#8594; Counter, up to 32 bits, with Up/Down, Parallel Load, and Ripple Carry-Out) or construct counters from discrete JK...]]></description>
										<content:encoded><![CDATA[
<div class="logisim-evolution-article" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.7; color: #1e293b; max-width: 860px; margin: 0 auto;">

    <!-- Direct Answer Summary Box / GEO Answer Block -->
    <div style="background-color: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 22px 24px; margin-bottom: 30px;">
        <h3 style="margin-top: 0; margin-bottom: 10px; color: #166534; font-size: 19px; font-weight: 700;">
            Direct Answer: Designing Counters in Logisim-evolution
        </h3>
        <p style="margin: 0; font-size: 15px; color: #14532d; line-height: 1.65;">
            A digital <strong>Counter</strong> is a sequential state machine that cycles through a deterministic binary sequence on each active clock pulse. In Logisim-evolution, you can instantiate the pre-built <strong>Counter</strong> component (<em>Memory &rarr; Counter</em>, up to 32 bits, with Up/Down, Parallel Load, and Ripple Carry-Out) or construct counters from discrete JK or T flip-flops. <strong>Synchronous counters</strong> clock every flip-flop simultaneously via combinational lookahead gates ($T_n = \prod_{i=0}^{n-1} Q_i$), eliminating propagation skew, whereas <strong>asynchronous ripple counters</strong> cascade each stage&#8217;s $Q$ output into the next stage&#8217;s clock pin—trading speed and glitch-free decoding for minimal wiring.
        </p>
    </div>

    <!-- Recommended Lab Kits and Measurement Hardware -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Recommended Hardware Starter Kits and Timing Analyzers
    </h2>
    <p style="margin-bottom: 24px;">
        Testing synchronous and ripple counters on physical hardware reveals the exact propagation delay skew between bit stages that software unit-delay simulation hides:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Hardware Pick 1: Elegoo Kit -->
        <div style="background: #ffffff; border: 2px solid #2563eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.08);">
            <div>
                <span style="background: #2563eb; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Breadboard Lab Kit
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Elegoo Electronics Component Starter Kit
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Includes solderless breadboards, 555 clock timers, 7-segment LEDs, and jumper wires for prototyping 74LS161/74LS163 synchronous counters and 74LS90 decade counters.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$25–$35 USD • Essential for Digital Clock &amp; Counter Labs
                </div>
            </div>
            <a href="/go/elegoo-starter-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #2563eb; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Starter Kit on Amazon &rarr;
            </a>
        </div>

        <!-- Hardware Pick 2: Logic Analyzer -->
        <div style="background: #ffffff; border: 2px solid #059669; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(5,150,105,0.08);">
            <div>
                <span style="background: #059669; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Waveform Verification
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    USB 8-Channel 24MHz Logic Analyzer
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Capture all 4 counter bits simultaneously in PulseView to observe frequency division ($f/2, f/4, f/8, f/16$) and measure ripple-counter decoding glitches.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$12–$15 USD • Compatible with Sigrok &amp; PulseView
                </div>
            </div>
            <a href="/go/logic-analyzer-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #059669; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Logic Analyzer on Amazon &rarr;
            </a>
        </div>

    </div>

    <!-- Comparison Table -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Comparing Asynchronous, Synchronous, Decade, and Ring Counters
    </h2>
    <p style="margin-bottom: 20px;">
        Choosing the right counter topology depends on your maximum clock frequency, glitch tolerance, and target modulus:
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 14px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Counter Topology</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #2563eb;">Clocking Architecture</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #059669;">Max Speed ($N$-bit)</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Decoding Glitches</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Standard 7400 IC</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Asynchronous Ripple</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Previous stage $Q$ drives next <code>clk</code></td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Slow ($N \times t_{pd}$ cumulative)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #dc2626; font-weight: 700;">Yes (Transient states)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS93 (4-Bit Ripple)</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #2563eb;">Synchronous Binary</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Shared global <code>clk</code> on all flip-flops</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">Fast ($1 \times t_{pd} + t_{AND}$)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">Minimal (Simultaneous)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS161 / 74LS163</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Mod-10 Decade (BCD)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Counts <code>0000</code> to <code>1001</code> then resets</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Fast (Synchronous)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">None if sync-cleared</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">74LS90 / 74LS160</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Johnson / Ring Counter</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Feedback shift register ($2N$ or $N$ states)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Ultra-Fast (No carry chain)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">Glitch-free 1-hot</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-family: monospace;">CD4017 (Decade Johnson)</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Built-in Logisim Counter Modes -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Built-In Logisim Counter Control Truth Table
    </h2>
    <p style="margin-bottom: 20px;">
        Logisim-evolution&#8217;s native <strong>Counter</strong> component combines counting, parallel loading, and up/down direction control via two west-edge control pins (<code>load</code> and <code>count</code>):
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 13.5px; text-align: center;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #0f172a;">load Pin</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #0f172a;">count Pin</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #2563eb;">Action on Active Clock Edge</th>
                    <th style="padding: 10px 12px; border: 1px solid #cbd5e1; color: #0f172a;">Typical Usage</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="font-family: monospace; font-weight: 700;">0</td>
                    <td style="font-family: monospace; font-weight: 700;">0</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;"><strong>Hold:</strong> Counter retains current value ($Q_{next} = Q$).</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;">Pause timer or stall CPU Program Counter</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="font-family: monospace; font-weight: 700;">0</td>
                    <td style="font-family: monospace; font-weight: 700; color: #16a34a;">1</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;"><strong>Count Down:</strong> Decrements by 1 (wraps from 0 to Max Value).</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;">Countdown timers and stack pointers</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="font-family: monospace; font-weight: 700; color: #2563eb;">1</td>
                    <td style="font-family: monospace; font-weight: 700;">0</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;"><strong>Parallel Load:</strong> Loads value from data bus <code>D</code> ($Q_{next} = D$).</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;">CPU Jump / Branch target loading</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="font-family: monospace; font-weight: 700; color: #2563eb;">1</td>
                    <td style="font-family: monospace; font-weight: 700; color: #16a34a;">1</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;"><strong>Count Up (Default):</strong> Increments by 1 (wraps from Max Value to 0).</td>
                    <td style="padding: 10px 12px; border: 1px solid #cbd5e1;">Standard Program Counter ($PC + 1$) &amp; clocks</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Building a 4-Bit Synchronous Counter from Flip-Flops -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Building a 4-Bit Synchronous Counter and Mod-10 Decade Counter
    </h2>
    <p style="margin-bottom: 20px;">
        To construct a glitch-free 4-bit synchronous binary counter from JK or T flip-flops:
    </p>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; padding: 20px; margin-bottom: 25px;">
        <h3 style="font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0;">
            Synchronous Toggle Equations for 4-Bit Binary Counting
        </h3>
        <ul style="font-size: 14px; color: #334155; margin: 0 0 0 20px; line-height: 1.65;">
            <li>Connect a single shared <strong>Clock</strong> component to the clock pins of all four T Flip-Flops (or JK Flip-Flops with $J=K$).</li>
            <li><strong>Bit 0 ($Q_0$):</strong> Tie $T_0 = 1$ (always toggles every cycle, dividing clock by 2).</li>
            <li><strong>Bit 1 ($Q_1$):</strong> Tie $T_1 = Q_0$ (toggles only when $Q_0 = 1$).</li>
            <li><strong>Bit 2 ($Q_2$):</strong> Place an AND gate computing $T_2 = Q_1 \cdot Q_0$.</li>
            <li><strong>Bit 3 ($Q_3$):</strong> Place an AND gate computing $T_3 = Q_2 \cdot Q_1 \cdot Q_0$.</li>
        </ul>
    </div>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #059669; border-radius: 6px; padding: 20px; margin-bottom: 35px;">
        <h3 style="font-size: 16px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0;">
            Converting to a Mod-10 BCD Decade Counter (0 to 9)
        </h3>
        <p style="font-size: 14px; color: #334155; margin: 0; line-height: 1.65;">
            To reset cleanly after <code>9</code> (<code>1001</code>) without displaying <code>10</code> (<code>1010</code>), use a 2-input NAND/AND gate detecting state <code>1010</code> ($Q_3 \cdot \overline{Q_2} \cdot Q_1 \cdot \overline{Q_0}$, or simply $Q_3 \cdot Q_1$ since 10 is the first state where both $Q_3$ and $Q_1$ are 1) wired to the asynchronous <code>clr</code> pins—or better yet, wire $Q_3 \cdot Q_0$ (state <code>1001</code>) to the synchronous <code>load</code> pin with data input <code>0000</code> so the reset happens cleanly on the next rising clock edge.
        </p>
    </div>

    <!-- Common Traps & Fixes -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequent Traps When Designing Counters in Logisim
    </h2>
    <p style="margin-bottom: 20px;">
        Eliminate these four notorious counter bugs before submitting your digital clock or CPU lab:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Trap 1 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 1: Mod-N Off-By-One Reset Error
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Wiring an asynchronous <code>clr</code> detector for state <code>9</code> (<code>1001</code>) causes the counter to reset immediately upon reaching 9, creating a Mod-9 counter (0–8) instead of Mod-10 (0–9).<br>
                <strong>The Fix:</strong> Asynchronous clear must decode state <code>N</code> (<code>1010</code> for Mod-10); synchronous load-zero must decode state <code>N - 1</code> (<code>1001</code>).
            </p>
        </div>

        <!-- Trap 2 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 2: Misreading Built-In Counter load/count Pins
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Leaving <code>load = 0</code> and <code>count = 1</code> makes the counter count <em>downward</em> (FF, FE, FD&#8230;), confusing students expecting upward counting.<br>
                <strong>The Fix:</strong> In Logisim, leave both <code>load</code> and <code>count</code> unconnected (or tie both to <code>1</code>) to count upward.
            </p>
        </div>

        <!-- Trap 3 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 3: Ripple Counter Up-vs-Down Clock Polarity
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Connecting $Q$ of a rising-edge flip-flop directly to the rising-edge clock of the next stage produces a <em>down-counter</em>, not an up-counter.<br>
                <strong>The Fix:</strong> For a rising-edge ripple up-counter, connect the inverted output $\overline{Q}$ to the next stage&#8217;s clock (or configure flip-flops for falling-edge triggering).
            </p>
        </div>

        <!-- Trap 4 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 4: Asynchronous Clear Race Hazards
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> On physical breadboards, if one flip-flop clears 2ns faster than its neighbor, the NAND reset pulse vanishes before all bits clear.<br>
                <strong>The Fix:</strong> Use synchronous clear/load counters like the 74LS163, or latch the reset pulse across a full half-cycle.
            </p>
        </div>

    </div>

    <!-- Curriculum Progression -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Curriculum Progression from Counters to Digital Clocks
    </h2>
    <p style="margin-bottom: 24px;">
        Counters drive timekeeping, frequency division, and instruction sequencing across digital systems:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px;">
        <a href="/digital-clock/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Digital Clock Project &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Cascade Mod-60 and Mod-24 counters into a 7-segment 24-hour clock.</div>
        </a>
        <a href="/flip-flops/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">JK &amp; T Flip-Flops &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Review flip-flop excitation tables required for designing custom counter sequences.</div>
        </a>
        <a href="/7-segment-display/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">7-Segment Display Decoder &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Display your BCD decade counter output cleanly on numeric LEDs.</div>
        </a>
        <a href="/traffic-light-controller/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Traffic Light Controller &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Use countdown timers to control green, yellow, and red intersection state durations.</div>
        </a>
    </div>

    <!-- FAQ Section -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequently Asked Questions About Logisim Counters
    </h2>

    <div style="margin-bottom: 35px;">
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                How do I daisy-chain multiple 4-bit counters in Logisim to build an 8-bit or Mod-60 counter?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Connect the <code>carry</code> output (bottom-right pin) of the lower-order counter to the <code>count</code> enable logic of the higher-order counter while sharing the same master clock, or configure the built-in Counter&#8217;s <em>Data Bits</em> property directly to 8 bits and set <em>Maximum Value</em> to <code>0x3B</code> (59 decimal).
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Why is a synchronous counter preferred over a ripple counter in FPGAs?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                FPGAs rely on dedicated global clock routing networks (BUFG) for predictable static timing analysis. Ripple counters route data outputs into flip-flop clock pins, breaking synchronous timing rules and creating severe clock skew and false decoding glitches.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                How do I make a counter count by 2 or 4 instead of 1?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Either shift the counter output left by 1 or 2 bits (appending constant <code>0</code> or <code>00</code> to the LSB via a Splitter), or build a custom synchronous counter using a Register paired with a constant <code>+4</code> Adder (the standard MIPS Program Counter architecture).
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                What is the difference between a Mod-16 counter and a Decade counter?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                A 4-bit Mod-16 counter cycles through all 16 binary states (<code>0000</code> to <code>1111</code>, 0–15). A Decade (Mod-10) counter truncates the sequence at <code>1001</code> (9) and resets to <code>0000</code>, making it ideal for decimal 7-segment displays.
            </p>
        </div>
    </div>

    <!-- FTC Affiliate Disclosure -->
    <div style="background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-top: 30px; font-size: 12.5px; color: #64748b; line-height: 1.5;">
        <strong>Affiliate Disclosure:</strong> Logisim-evolution Community is an independent educational resource. Some links in this guide are affiliate links. If you purchase electronic kits or measurement tools through these links, we may earn an affiliate commission at no extra cost to you.
    </div>

</div>



<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://logisimevolution.com/counter/#article",
      "headline": "Synchronous and Asynchronous Counters in Logisim-evolution: Ripple, Mod-N, and Up/Down Guide",
      "description": "Master synchronous and ripple counters in Logisim-evolution. Learn JK/T flip-flop counter equations, Mod-10 BCD decade counters, built-in counter pinouts, and glitch elimination.",
      "url": "https://logisimevolution.com/counter/",
      "inLanguage": "en-US",
      "mainEntityOfPage": "https://logisimevolution.com/counter/",
      "proficiencyLevel": "Intermediate",
      "articleSection": "Sequential Logic",
      "publisher": {
        "@type": "Organization",
        "name": "Logisim-evolution Community",
        "url": "https://logisimevolution.com"
      }
    },
    {
      "@type": "HowTo",
      "@id": "https://logisimevolution.com/counter/#howto",
      "name": "How to Build a 4-Bit Synchronous Counter in Logisim-evolution",
      "description": "Step-by-step instructions to construct a glitch-free 4-bit synchronous binary counter from T flip-flops and AND gates.",
      "step": [
        {
          "@type": "HowToStep",
          "name": "Wire Shared Master Clock",
          "text": "Connect a single Clock component directly to the clock pin of all four T Flip-Flops."
        },
        {
          "@type": "HowToStep",
          "name": "Chain Lookahead Toggle Gates",
          "text": "Tie T0=1, T1=Q0, T2=Q1&Q0, and T3=Q2&Q1&Q0 using AND gates."
        },
        {
          "@type": "HowToStep",
          "name": "Add Mod-N Reset Logic",
          "text": "Decode the terminal count state to reset the counter synchronously or asynchronously back to 0000."
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://logisimevolution.com/counter/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "How do I daisy-chain multiple 4-bit counters in Logisim to build an 8-bit or Mod-60 counter?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Connect the carry output of the lower counter to the enable logic of the higher counter while sharing a clock, or set Data Bits to 8 and Maximum Value to 0x3B."
          }
        },
        {
          "@type": "Question",
          "name": "Why is a synchronous counter preferred over a ripple counter in FPGAs?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Synchronous counters keep all flip-flops on a single global clock net, avoiding clock skew, static timing violations, and decoding glitches."
          }
        },
        {
          "@type": "Question",
          "name": "How do I make a counter count by 2 or 4 instead of 1?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Shift the counter output left with a Splitter or pair a Register with a +4 Adder."
          }
        },
        {
          "@type": "Question",
          "name": "What is the difference between a Mod-16 counter and a Decade counter?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "A Mod-16 counter cycles 0 through 15, while a Decade (Mod-10) counter resets after 9 (1001) back to 0 for BCD decimal applications."
          }
        }
      ]
    }
  ]
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>Chronogram and Timing Analysis in Logisim-evolution: Waveform Debugging Guide</title>
		<link>https://logisimevolution.com/chronogram-timing-analysis/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Oct 2026 11:31:06 +0000</pubDate>
				<category><![CDATA[Sequential Logic]]></category>
		<guid isPermaLink="false">https://logisimevolution.com/chronogram-timing-analysis/</guid>

					<description><![CDATA[Direct Answer: Using Chronogram Timing Analysis in Logisim-evolution Logisim-evolution&#8217;s built-in Chronogram (Simulate &#8594; Chronogram) is an interactive digital waveform analyzer that records and plots 1-bit signals and multi-bit hexadecimal/binary buses across clock cycles. Unlike static LEDs or Probes that display only the final settled value, the Chronogram exposes transient ripple-counter glitches, off-by-one FSM transitions, bus...]]></description>
										<content:encoded><![CDATA[
<div class="logisim-evolution-article" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.7; color: #1e293b; max-width: 860px; margin: 0 auto;">

    <div style="background-color: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 22px 24px; margin-bottom: 30px;">
        <h3 style="margin-top: 0; margin-bottom: 10px; color: #166534; font-size: 19px; font-weight: 700;">
            Direct Answer: Using Chronogram Timing Analysis in Logisim-evolution
        </h3>
        <p style="margin: 0; font-size: 15px; color: #14532d; line-height: 1.65;">
            Logisim-evolution&#8217;s built-in <strong>Chronogram</strong> (<strong>Simulate &rarr; Chronogram</strong>) is an interactive digital waveform analyzer that records and plots 1-bit signals and multi-bit hexadecimal/binary buses across clock cycles. Unlike static LEDs or Probes that display only the final settled value, the Chronogram exposes transient ripple-counter glitches, off-by-one FSM transitions, bus contention timing, and setup/hold race hazards—and exports clean timing diagrams to <strong>PNG</strong> or raw <strong>CSV</strong> logs for engineering lab reports.
        </p>
    </div>

    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Recommended Hardware Logic Analyzers and Timing Textbooks
    </h2>
    <p style="margin-bottom: 24px;">
        Learning to read timing diagrams in Logisim&#8217;s Chronogram prepares you directly for debugging physical breadboards and FPGAs with hardware logic analyzers:
    </p>
    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 35px;">
        <div style="background: #ffffff; border: 2px solid #059669; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;">
            <div>
                <span style="background: #059669; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;">Hardware Equivalent</span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">USB 8-Channel 24MHz Logic Analyzer</h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">The physical lab counterpart to Logisim&#8217;s Chronogram—capture 8 simultaneous digital channels at 24 MS/s in open-source Sigrok PulseView.</p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">Price: ~$12–$15 USD • Compatible with PulseView</div>
            </div>
            <a href="/go/logic-analyzer-kit" target="_blank" rel="sponsored nofollow noopener" style="background: #059669; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">Check Logic Analyzer on Amazon &rarr;</a>
        </div>
        <div style="background: #ffffff; border: 2px solid #2563eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between;">
            <div>
                <span style="background: #2563eb; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px;">Timing Reference</span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">Digital Design &amp; Computer Architecture</h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">Covers static timing analysis, critical path propagation delay ($t_{pcq} + t_{pd} + t_{setup}$), clock skew, and contamination delay.</p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">Publisher: Morgan Kaufmann • Standard University Text</div>
            </div>
            <a href="/go/digital-design-book" target="_blank" rel="sponsored nofollow noopener" style="background: #2563eb; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">View Textbook on Amazon &rarr;</a>
        </div>
    </div>

    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Comparing Chronogram Modes and Verification Tools in Logisim
    </h2>
    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 14px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1;">Verification Tool</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #2563eb;">Capture Resolution</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #059669;">Best For</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #2563eb;">Chronogram (Clock-Synced)</td>
                    <td>1 sample per clock edge / tick</td>
                    <td>CPUs, Counters, FSM state transitions, MIPS instruction traces</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Chronogram (Real-Time)</td>
                    <td>Sub-cycle propagation ticks</td>
                    <td>Observing ripple-carry delay &amp; asynchronous gate glitches</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Simulate &rarr; Test Vector</td>
                    <td>Automated pass/fail assertion table</td>
                    <td>Regression testing ALUs and combinational circuits</td>
                </tr>
            </tbody>
        </table>
    </div>

    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Four Stage Chronogram Capture and Export Workflow
    </h2>
    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; padding: 20px; margin-bottom: 20px;">
        <h3 style="font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0;">Phase 1: Label All Target Pins, Registers, and Probes</h3>
        <p style="font-size: 14.5px; color: #334155; margin: 0;">Chronogram only lists named components. Give descriptive <em>Label</em> properties to your Clock (<code>CLK</code>), input/output pins, and internal Registers. To trace an intermediate wire without adding an output pin, attach a labeled <strong>Probe</strong> (<em>Wiring &rarr; Probe</em>).</p>
    </div>
    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #059669; border-radius: 6px; padding: 20px; margin-bottom: 20px;">
        <h3 style="font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0;">Phase 2: Select Signals and Configure Clock Base</h3>
        <p style="font-size: 14.5px; color: #334155; margin: 0;">Open <strong>Simulate &rarr; Chronogram</strong>. Choose your <code>CLK</code> signal in the timebase selector, then move your target buses and flags from the left component tree into the active trace pane. Set bus radices to <em>Hexadecimal</em> or <em>Signed Decimal</em>.</p>
    </div>
    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #d97706; border-radius: 6px; padding: 20px; margin-bottom: 20px;">
        <h3 style="font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0;">Phase 3: Run Ticks and Inspect Transitions</h3>
        <p style="font-size: 14.5px; color: #334155; margin: 0;">Press <code>Ctrl+R</code> to reset, then tick manually with <code>Ctrl+T</code> or continuously with <code>Ctrl+K</code>. Drag the vertical cursor bar across rising clock edges to verify that register updates occur cleanly one cycle after control signals assert.</p>
    </div>
    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #7c3aed; border-radius: 6px; padding: 20px; margin-bottom: 35px;">
        <h3 style="font-size: 17px; font-weight: 800; color: #0f172a; margin: 0 0 10px 0;">Phase 4: Export Waveforms for Lab Reports</h3>
        <p style="font-size: 14.5px; color: #334155; margin: 0;">Use the Chronogram toolbar&#8217;s <strong>Export Image</strong> (PNG) or <strong>Export File</strong> (CSV/txt) options to embed crisp, publication-ready timing diagrams directly into coursework submissions.</p>
    </div>

    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequent Traps When Debugging with Chronogram
    </h2>
    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; margin-bottom: 35px;">
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px;">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">Trap 1: Empty Signal Tree Because Pins Are Unnamed</h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0;"><strong>Fix:</strong> Assign a non-empty <em>Label</em> property to every Clock, Pin, Register, and Probe you want to record.</p>
        </div>
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px;">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">Trap 2: Missing Subcircuit Signals</h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0;"><strong>Fix:</strong> Expand the subcircuit instance folder in the Chronogram signal tree to probe signals buried inside nested modules.</p>
        </div>
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px;">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">Trap 3: Confusing Half-Ticks with Full Clock Cycles</h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0;"><strong>Fix:</strong> Remember that <code>Ctrl+T</code> advances one half-period (low&rarr;high or high&rarr;low), so two presses equal one full clock cycle.</p>
        </div>
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px;">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">Trap 4: Ultra-High Tick Frequency Dropping Samples</h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0;"><strong>Fix:</strong> Lower <em>Simulate &rarr; Tick Frequency</em> to <code>2 Hz–16 Hz</code> while recording long Chronogram traces for smooth GUI redrawing.</p>
        </div>
    </div>

    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Curriculum Progression from Waveforms to Hardware Debugging
    </h2>
    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px;">
        <a href="/flip-flops/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Flip-Flops &amp; Setup/Hold &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Understand rising-edge sampling and metastability windows in waveforms.</div>
        </a>
        <a href="/counter/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Ripple vs Synchronous Counters &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Use Chronogram to spot transient ripple glitches on asynchronous counters.</div>
        </a>
        <a href="/mips-processor/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">MIPS Processor Trace &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Record PC, Instruction, ALU_Out, and RegWrite across an entire MIPS program.</div>
        </a>
        <a href="/troubleshooting/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">Troubleshooting Guide &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Resolve red short-circuit wires, blue floating nets, and oscillation errors.</div>
        </a>
    </div>

    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequently Asked Questions About Logisim Chronogram
    </h2>
    <div style="margin-bottom: 35px;">
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">Why don&#8217;t my internal wires appear in the Chronogram signal list?</h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0;">Chronogram only lists named pins, clocks, registers, and probes. Attach a labeled <strong>Probe</strong> to any internal net you wish to record.</p>
        </div>
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">Can I export Chronogram waveforms for university lab reports?</h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0;">Yes. Chronogram supports exporting high-contrast PNG images as well as plain-text CSV logs.</p>
        </div>
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">How do I display multi-bit bus values in hexadecimal instead of binary?</h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0;">Right-click the bus name in the Chronogram trace list and switch its <em>Radix</em> format to Hexadecimal, Unsigned Decimal, or Signed Decimal.</p>
        </div>
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">Does Logisim Chronogram show real nanosecond gate delays?</h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0;">Logisim uses unit-delay simulation ticks rather than physical silicon picoseconds; for real nanosecond timing, export HDL to AMD Vivado&#8217;s post-implementation timing simulator.</p>
        </div>
    </div>
    
    <div style="background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-top: 30px; font-size: 12.5px; color: #64748b; line-height: 1.5;">
        <strong>Affiliate Disclosure:</strong> Logisim-evolution Community is an independent educational resource. Some links in this guide are affiliate links. If you purchase textbooks, FPGA boards, or electronics kits through these links, we may earn an affiliate commission at no extra cost to you.
    </div>
</div>


<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://logisimevolution.com/chronogram-timing-analysis/#article",
      "headline": "Chronogram and Timing Analysis in Logisim-evolution: Waveform Debugging Guide",
      "description": "Master Logisim-evolution's Chronogram waveform analyzer to trace buses, debug race hazards, and export PNG/CSV timing diagrams.",
      "url": "https://logisimevolution.com/chronogram-timing-analysis/",
      "inLanguage": "en-US",
      "mainEntityOfPage": "https://logisimevolution.com/chronogram-timing-analysis/",
      "proficiencyLevel": "Intermediate",
      "articleSection": "Sequential Logic",
      "publisher": {
        "@type": "Organization",
        "name": "Logisim-evolution Community",
        "url": "https://logisimevolution.com"
      }
    },
    {
      "@type": "HowTo",
      "@id": "https://logisimevolution.com/chronogram-timing-analysis/#howto",
      "name": "How to Capture Waveforms with Logisim Chronogram",
      "description": "Master Logisim-evolution's Chronogram waveform analyzer to trace buses, debug race hazards, and export PNG/CSV timing diagrams.",
      "step": [
        {
          "@type": "HowToStep",
          "name": "Label Target Signals",
          "text": "Assign clear names to clocks, pins, registers, and internal probes."
        },
        {
          "@type": "HowToStep",
          "name": "Open Chronogram Window",
          "text": "Navigate to Simulate -> Chronogram and add signals to the active trace list."
        },
        {
          "@type": "HowToStep",
          "name": "Run Simulation Ticks",
          "text": "Press Ctrl+T or Ctrl+K to plot multi-bit buses and clock edges."
        },
        {
          "@type": "HowToStep",
          "name": "Export Timing Diagrams",
          "text": "Save crisp PNG screenshots or CSV logs for lab documentation."
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://logisimevolution.com/chronogram-timing-analysis/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Why don't my internal wires appear in the Chronogram signal list?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Chronogram tracks named pins, clocks, registers, and probes; attach a labeled Probe to trace internal nets."
          }
        },
        {
          "@type": "Question",
          "name": "Can I export Chronogram waveforms for university lab reports?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes, Chronogram supports exporting PNG images and CSV logs."
          }
        },
        {
          "@type": "Question",
          "name": "How do I display multi-bit bus values in hexadecimal?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Right-click the signal name in Chronogram and change Radix to Hexadecimal."
          }
        },
        {
          "@type": "Question",
          "name": "Does Logisim Chronogram show real nanosecond gate delays?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "No, Logisim uses unit-delay ticks; use Vivado or Quartus for physical silicon timing."
          }
        }
      ]
    }
  ]
}
</script>
]]></content:encoded>
					
		
		
			</item>
		<item>
		<title>ROM Memory and Lookup Tables in Logisim-evolution: Hex Loading, Control Stores, and FPGA Mapping</title>
		<link>https://logisimevolution.com/rom/</link>
		
		<dc:creator><![CDATA[Admin]]></dc:creator>
		<pubDate>Thu, 15 Oct 2026 11:30:33 +0000</pubDate>
				<category><![CDATA[Sequential Logic]]></category>
		<guid isPermaLink="false">https://logisimevolution.com/rom/</guid>

					<description><![CDATA[Direct Answer: Using ROM Memory and Lookup Tables in Logisim-evolution The ROM component in Logisim-evolution (Memory &#8594; ROM) models non-volatile Read-Only Memory configurable from 1 to 24 address bits (up to $2^{24}$ words) and 1 to 32 data bits per word. Unlike RAM, ROM preserves its programmed hexadecimal contents inside the .circ project file across...]]></description>
										<content:encoded><![CDATA[
<div class="logisim-evolution-article" style="font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Oxygen, Ubuntu, Cantarell, sans-serif; line-height: 1.7; color: #1e293b; max-width: 860px; margin: 0 auto;">

    <!-- Direct Answer Summary Box / GEO Answer Block -->
    <div style="background-color: #f0fdf4; border: 1px solid #bbf7d0; border-left: 5px solid #16a34a; border-radius: 8px; padding: 22px 24px; margin-bottom: 30px;">
        <h3 style="margin-top: 0; margin-bottom: 10px; color: #166534; font-size: 19px; font-weight: 700;">
            Direct Answer: Using ROM Memory and Lookup Tables in Logisim-evolution
        </h3>
        <p style="margin: 0; font-size: 15px; color: #14532d; line-height: 1.65;">
            The <strong>ROM</strong> component in Logisim-evolution (<em>Memory &rarr; ROM</em>) models non-volatile Read-Only Memory configurable from 1 to 24 address bits (up to $2^{24}$ words) and 1 to 32 data bits per word. Unlike RAM, ROM preserves its programmed hexadecimal contents inside the <code>.circ</code> project file across simulation resets and software restarts. Engineers use Logisim ROMs in three primary roles: as <strong>Instruction Memory</strong> storing machine code for 8-bit and 32-bit MIPS CPUs, as <strong>Combinational Lookup Tables (LUTs)</strong> replacing complex gate networks for 7-segment decoders or math tables, and as <strong>Microcode Control Stores</strong> for FSMs.
        </p>
    </div>

    <!-- Recommended Textbooks & FPGA Hardware -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Recommended Computer Architecture Textbooks and FPGA Memory Hardware
    </h2>
    <p style="margin-bottom: 24px;">
        When exporting Logisim circuits to physical FPGAs, ROMs synthesize directly into FPGA Lookup Tables (LUTs) or dedicated Block RAM (BRAM) primitives. Reference these proven resources:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(290px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Textbook: Harris & Harris -->
        <div style="background: #ffffff; border: 2px solid #2563eb; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(37,99,235,0.08);">
            <div>
                <span style="background: #2563eb; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Memory Architecture Guide
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Digital Design &amp; Computer Architecture
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    By David Harris &amp; Sarah Harris. Covers ROM-based combinational logic synthesis, instruction memory organization, and HDL <code>$readmemh</code> initialization.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Publisher: Morgan Kaufmann • Standard University Text
                </div>
            </div>
            <a href="/go/digital-design-book" target="_blank" rel="sponsored nofollow noopener" style="background: #2563eb; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                View Textbook on Amazon &rarr;
            </a>
        </div>

        <!-- Hardware Pick: Basys 3 -->
        <div style="background: #ffffff; border: 2px solid #059669; border-radius: 10px; padding: 24px; display: flex; flex-direction: column; justify-content: space-between; box-shadow: 0 4px 6px -1px rgba(5,150,105,0.08);">
            <div>
                <span style="background: #059669; color: #ffffff; font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 3px 8px; border-radius: 4px; letter-spacing: 0.5px;">
                    Physical Silicon Target
                </span>
                <h3 style="font-size: 18px; font-weight: 800; color: #0f172a; margin: 10px 0 8px 0;">
                    Digilent Basys 3 Artix-7 FPGA
                </h3>
                <p style="font-size: 13.5px; color: #475569; line-height: 1.6; margin-bottom: 14px;">
                    Includes 1,800 Kbits of fast Xilinx Block RAM (BRAM) and 16MB Quad-SPI Flash, allowing your exported Logisim ROMs and CPU programs to run at 100MHz.
                </p>
                <div style="font-size: 13px; color: #0f172a; font-weight: 600; margin-bottom: 14px;">
                    Price: ~$165 USD • Silicon: Xilinx Artix-7 XC7A35T
                </div>
            </div>
            <a href="/go/basys3" target="_blank" rel="sponsored nofollow noopener" style="background: #059669; color: #ffffff !important; text-align: center; padding: 11px 18px; border-radius: 6px; font-size: 14px; font-weight: 700; text-decoration: none;">
                Check Basys 3 on Amazon &rarr;
            </a>
        </div>

    </div>

    <!-- Comparison Table -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Comparing ROM, RAM, and Discrete Gate Networks in Logisim
    </h2>
    <p style="margin-bottom: 20px;">
        Deciding between a ROM lookup table, RAM block, or combinational gates depends on mutability, size, and hardware synthesis goals:
    </p>

    <div style="overflow-x: auto; margin-bottom: 35px;">
        <table style="width: 100%; border-collapse: collapse; border: 1px solid #cbd5e1; font-size: 14px; text-align: left;">
            <thead>
                <tr style="background-color: #f1f5f9; border-bottom: 2px solid #cbd5e1;">
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Memory / Logic Type</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #2563eb;">Persistence on Save</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #059669;">Runtime Writes</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Read Timing</th>
                    <th style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #0f172a;">Best Use Case</th>
                </tr>
            </thead>
            <tbody>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #2563eb;">Logisim ROM</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #16a34a;">Yes (Stored in <code>.circ</code>)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Read-Only</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Asynchronous combinational lookup</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">CPU Instruction Memory, 7-Segment LUTs</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #f8fafc;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Logisim RAM</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; color: #dc2626;">Volatile (Cleared on Reset)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700; color: #059669;">Synchronous or Async</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Async or Clocked (Configurable)</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Data Memory (Stack, Heap, Arrays)</td>
                </tr>
                <tr style="border-bottom: 1px solid #e2e8f0; background: #ffffff;">
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1; font-weight: 700;">Discrete Logic Gates</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Hardwired in schematic</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Immutable</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Gate propagation delay</td>
                    <td style="padding: 12px 14px; border: 1px solid #cbd5e1;">Small 2-to-4 decoders, simple adders</td>
                </tr>
            </tbody>
        </table>
    </div>

    <!-- Hex Image File Formats -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Loading External Hex Files into Logisim ROM Images
    </h2>
    <p style="margin-bottom: 20px;">
        Rather than typing machine code byte-by-byte in the GUI, you can generate plain-text hex files from Python assemblers or MARS/RARS and load them via <strong>Right-Click ROM &rarr; Load Image&#8230;</strong>. Logisim-evolution requires a strict header line on line 1:
    </p>

    <div style="background: #090d16; border: 1px solid #1e293b; border-radius: 8px; padding: 20px; margin-bottom: 35px; overflow-x: auto;">
        <pre style="margin: 0; font-family: monospace; font-size: 13.5px; color: #38bdf8; line-height: 1.6;"><code>v2.0 raw
# Comments start with #
20080005 20090003 01095020 ac0a0000
16*00000000
08000007

# Modern Logisim-evolution v3.0 addressed format (optional):
# v3.0 hex words addressed
# 00: 20080005 20090003 01095020 ac0a0000</code></pre>
    </div>

    <!-- Step-by-Step ROM Workflow -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Configuring and Wiring ROM Memory in Your Schematic
    </h2>
    <p style="margin-bottom: 20px;">
        Follow this clean procedure to configure a ROM for either a CPU program memory or a combinational lookup table:
    </p>

    <div style="background: #f8fafc; border: 1px solid #e2e8f0; border-left: 4px solid #2563eb; border-radius: 6px; padding: 20px; margin-bottom: 35px;">
        <ol style="font-size: 14.5px; color: #334155; margin: 0 0 0 20px; line-height: 1.7;">
            <li><strong>Place the Component:</strong> Select <em>Memory &rarr; ROM</em> and place it on the canvas.</li>
            <li><strong>Set Address &amp; Data Widths:</strong> In the Properties panel, set <em>Address Bit Width</em> (e.g., <code>4</code> for 16 entries, <code>8</code> for 256 words) and <em>Data Bit Width</em> (e.g., <code>7</code> for 7-segment outputs, <code>32</code> for MIPS instructions).</li>
            <li><strong>Wire Address &amp; Chip Select:</strong> Connect your address bus (or Program Counter) to the upper-left <code>A</code> port. Leave the lower-left <code>sel</code> (Chip Select) pin unconnected (defaults to 1) or tie it to constant <code>1</code>.</li>
            <li><strong>Populate Contents:</strong> Right-click the ROM and choose <em>Edit Contents</em> to type hex values directly, or choose <em>Load Image&#8230;</em> to import a <code>v2.0 raw</code> file.</li>
        </ol>
    </div>

    <!-- Common Traps & Fixes -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequent Traps When Using ROMs in Logisim-evolution
    </h2>
    <p style="margin-bottom: 20px;">
        Avoid these four common ROM configuration errors:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(310px, 1fr)); gap: 20px; margin-bottom: 35px;">
        
        <!-- Trap 1 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 1: Disabled sel Pin Outputs High-Z (XXXX)
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Connecting an uninitialized or <code>0</code> signal to the ROM&#8217;s bottom-left <code>sel</code> pin places the data output bus into floating blue/error state.<br>
                <strong>The Fix:</strong> Tie <code>sel</code> to constant <code>1</code> (active-high) or leave it disconnected so the ROM remains continuously enabled.
            </p>
        </div>

        <!-- Trap 2 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 2: Missing v2.0 raw Header in Hex Files
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Importing a raw hex dump from a text editor without the magic header causes Logisim to throw an invalid memory image format error.<br>
                <strong>The Fix:</strong> Always ensure the very first line of your text file reads exactly <code>v2.0 raw</code> (or <code>v3.0 hex words plain</code>).
            </p>
        </div>

        <!-- Trap 3 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 3: Word-Addressed ROM vs Byte-Addressed PC
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Connecting a 32-bit MIPS PC that increments by 4 directly to a 32-bit-wide ROM skips 3 out of every 4 instructions.<br>
                <strong>The Fix:</strong> Use a Splitter to drop the bottom 2 bits of the PC, feeding <code>PC[9:2]</code> into an 8-bit ROM address port.
            </p>
        </div>

        <!-- Trap 4 -->
        <div style="background: #ffffff; border: 1px solid #fed7aa; border-left: 4px solid #ea580c; border-radius: 8px; padding: 20px; box-shadow: 0 1px 3px rgba(0,0,0,0.05);">
            <h3 style="font-size: 16px; font-weight: 800; color: #9a3412; margin: 0 0 8px 0;">
                Trap 4: Large Address Widths Slowing Down Save Files
            </h3>
            <p style="font-size: 13.5px; color: #475569; margin: 0; line-height: 1.6;">
                <strong>Problem:</strong> Setting <em>Address Bit Width = 24</em> (16 million words) even when only 50 instructions are used bloats XML <code>.circ</code> file parsing.<br>
                <strong>The Fix:</strong> Size your ROM address width tightly to your program&#8217;s actual needs (typically 8 to 12 bits for coursework CPUs).
            </p>
        </div>

    </div>

    <!-- Curriculum Progression -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Curriculum Progression from ROM Memory to Full Processors
    </h2>
    <p style="margin-bottom: 24px;">
        Put ROM lookup tables and instruction memories to work inside complete Logisim architectures:
    </p>

    <div style="display: grid; grid-template-columns: repeat(auto-fit, minmax(250px, 1fr)); gap: 16px; margin-bottom: 40px;">
        <a href="/building-a-cpu/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">8-Bit CPU Architecture &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Load your hand-assembled machine code into an 8-bit instruction ROM.</div>
        </a>
        <a href="/mips-processor/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">32-Bit MIPS Processor &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Interface a 32-bit wide word-addressed instruction ROM with PC+4 logic.</div>
        </a>
        <a href="/7-segment-display/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">7-Segment ROM Decoder &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Replace dozens of logic gates with a single 16&times;7-bit ROM lookup table.</div>
        </a>
        <a href="/sequence-detector/" style="display: block; padding: 18px 20px; background: #ffffff; border: 1px solid #e2e8f0; border-radius: 8px; text-decoration: none; color: inherit;">
            <div style="font-weight: 700; color: #2563eb; font-size: 15px; margin-bottom: 6px;">ROM-Based State Machines &rarr;</div>
            <div style="font-size: 13px; color: #64748b;">Encode FSM next-state and output transition tables cleanly inside a ROM.</div>
        </a>
    </div>

    <!-- FAQ Section -->
    <h2 style="font-size: 24px; font-weight: 800; color: #0f172a; margin-top: 40px; margin-bottom: 16px;">
        Frequently Asked Questions About Logisim ROMs
    </h2>

    <div style="margin-bottom: 35px;">
        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Does Logisim-evolution save ROM contents inside the .circ file?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Yes. Unlike RAM (which resets to zeros when you close or reset the simulation), any hex data entered or loaded into a ROM component is saved permanently inside the <code>.circ</code> XML project file.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Can I export a Logisim ROM to Verilog or VHDL for FPGA synthesis?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Yes. When you export HDL from Logisim-evolution, ROM contents are translated into initialized Verilog <code>case</code> lookup statements or VHDL constant arrays, which AMD Vivado and Intel Quartus synthesize directly into FPGA LUTs or initialized Block RAM.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                How do I write a repeating pattern in a v2.0 raw hex file?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                Logisim supports run-length encoding using an asterisk: writing <code>16*00</code> fills 16 consecutive memory addresses with <code>0x00</code>.
            </p>
        </div>

        <div style="margin-bottom: 18px; border-bottom: 1px solid #e2e8f0; padding-bottom: 14px;">
            <h3 style="font-size: 16px; font-weight: 700; color: #0f172a; margin-bottom: 6px;">
                Why does my ROM output turn blue (unknown) when I connect a control signal to sel?
            </h3>
            <p style="font-size: 14.5px; color: #475569; margin: 0; line-height: 1.6;">
                When <code>sel</code> is driven to <code>0</code>, the ROM tristates its output bus to high-impedance (blue wire in Logisim). Ensure <code>sel</code> is driven to <code>1</code> during read operations or leave the pin disconnected.
            </p>
        </div>
    </div>

    <!-- FTC Affiliate Disclosure -->
    <div style="background-color: #f8fafc; border: 1px solid #e2e8f0; border-radius: 8px; padding: 14px 18px; margin-top: 30px; font-size: 12.5px; color: #64748b; line-height: 1.5;">
        <strong>Affiliate Disclosure:</strong> Logisim-evolution Community is an independent educational resource. Some links in this guide are affiliate links. If you purchase textbooks or FPGA hardware through these links, we may earn an affiliate commission at no extra cost to you.
    </div>

</div>



<script type="application/ld+json">
{
  "@context": "https://schema.org",
  "@graph": [
    {
      "@type": "TechArticle",
      "@id": "https://logisimevolution.com/rom/#article",
      "headline": "ROM Memory and Lookup Tables in Logisim-evolution: Hex Loading, Control Stores, and FPGA Mapping",
      "description": "Complete guide to using ROM components in Logisim-evolution. Covers v2.0 raw and v3.0 hex file loading, LUT combinational replacement, CPU instruction memory, and FPGA synthesis.",
      "url": "https://logisimevolution.com/rom/",
      "inLanguage": "en-US",
      "mainEntityOfPage": "https://logisimevolution.com/rom/",
      "proficiencyLevel": "Intermediate",
      "articleSection": "Sequential Logic",
      "publisher": {
        "@type": "Organization",
        "name": "Logisim-evolution Community",
        "url": "https://logisimevolution.com"
      }
    },
    {
      "@type": "HowTo",
      "@id": "https://logisimevolution.com/rom/#howto",
      "name": "How to Load a Hex Image into a Logisim-evolution ROM",
      "description": "Step-by-step instructions to configure address/data widths and import a v2.0 raw hex program into a Logisim ROM.",
      "step": [
        {
          "@type": "HowToStep",
          "name": "Configure Address and Data Bit Widths",
          "text": "Place a ROM from the Memory library and set Address Bit Width and Data Bit Width in the properties panel."
        },
        {
          "@type": "HowToStep",
          "name": "Format a v2.0 raw Hex File",
          "text": "Create a plain-text file starting with 'v2.0 raw' on line 1 followed by space-separated hex words."
        },
        {
          "@type": "HowToStep",
          "name": "Import Image and Verify Chip Select",
          "text": "Right-click the ROM -> Load Image, select your file, and ensure the sel pin is unconnected or tied to 1."
        }
      ]
    },
    {
      "@type": "FAQPage",
      "@id": "https://logisimevolution.com/rom/#faq",
      "mainEntity": [
        {
          "@type": "Question",
          "name": "Does Logisim-evolution save ROM contents inside the .circ file?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. Unlike RAM, ROM contents are persisted directly inside the .circ XML project file across restarts."
          }
        },
        {
          "@type": "Question",
          "name": "Can I export a Logisim ROM to Verilog or VHDL for FPGA synthesis?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Yes. Exported HDL converts ROM tables into Verilog case statements or VHDL constant arrays that synthesize into FPGA LUTs or Block RAM."
          }
        },
        {
          "@type": "Question",
          "name": "How do I write a repeating pattern in a v2.0 raw hex file?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "Use run-length encoding with an asterisk, such as 16*00 to repeat 0x00 sixteen times."
          }
        },
        {
          "@type": "Question",
          "name": "Why does my ROM output turn blue (unknown) when I connect a control signal to sel?",
          "acceptedAnswer": {
            "@type": "Answer",
            "text": "When sel is 0, the ROM tristates its output bus to high-impedance (blue wire). Drive sel to 1 or leave it unconnected."
          }
        }
      ]
    }
  ]
}
</script>
]]></content:encoded>
					
		
		
			</item>
	</channel>
</rss>
