Free tools Windows power users keep installed

One-click scans. No signup required.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

An LFSR updates a binary register by shifting its state and feeding back the XOR of selected bits. The tap positions define a recurrence; a primitive polynomial of degree n gives an XOR LFSR a maximum period of 2n − 1, excluding the all-zero state. This tutorial explains how to read that rule, compare common implementations, and check that a chosen polynomial and seed behave as intended.

What is a linear feedback shift register?

A linear feedback shift register (LFSR) is a finite-state machine whose state is held in a binary register. At each clock step, the bits shift by one position and a new bit is computed from selected bits in the current state. In the usual XOR implementation, the feedback bit is the XOR of the selected taps. Because XOR is addition over the two-element field GF(2), the feedback rule is linear.

An LFSR is deterministic: given the same initial state and update rule, it produces the same sequence. It is used to generate repeatable bit patterns in applications such as digital hardware tests, communications, and scramblers. Its output is not truly random. The University of Alberta ECE explanation describes the shift-register and combinational-feedback structure; IEEE Technology Navigator summarizes the polynomial relationship and applications.

How do feedback taps determine the next state?

A tap is a state bit included in the feedback calculation. For example, define a four-bit state as [b3,b2,b1,b0], shift toward the lower indices, discard the old b0, and insert b3 XOR b0 as the new b3. The recurrence is:

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
#1 Best Overall
Elebase USB to USB C Adapter for iPhone 18 Pro Max,USBC Car Charger Adapter
  • Read Before You Buy — No Video Output: These adapters support charging and USB 2.0 data transfer, but cannot transmit video signals. Except for standard USB webcams (which use USB data only), they are not compatible with HDMI/DisplayPort cables, video-capable USB-C hubs, or docking stations with video output.
  • Convert USB-A Ports to USB-C: Designed to connect USB-C earphones, cables, flash drives, card readers, and other USB-C accessories to standard USB-A ports. Plug-and-play with no drivers or software required.
  • Aluminum Alloy Housing: Built with a sturdy aluminum alloy shell that aids in heat dissipation and protects against daily wear and scratches. Designed to maintain a stable and secure connection.
  • Compact & Travel-Friendly: The ultra-compact design allows the adapter to stay plugged into your device without blocking adjacent ports or adding bulk, reducing wear and tear on your original USB ports.
  • 12-Month Warranty: Backed by a 12-month manufacturer warranty for peace of mind. Designed to meet strict quality control standards for reliable everyday performance.

[b3,b2,b1,b0] → [b3 XOR b0,b3,b2,b1]

Starting from 0001, the states begin 0001 → 1000 → 1100 → 1110 → 1111. This example demonstrates how to read a recurrence; it is not a claim that this tap choice has a maximal period. The displayed rule specifies the output convention, direction, indices, and feedback taps, so it can be implemented or checked without guessing what a diagram means.

The polynomial notation encodes the same recurrence, but conventions vary: authors may number bits from the opposite end, reverse the shift direction, define a different output bit, or include or omit the leading term. Thus, a polynomial alone is not enough to translate code reliably. State which bit is output, which way the register shifts, how taps are numbered, and whether the polynomial includes its leading term. The tap-to-polynomial relationship is described in the University of Alberta note and the IEEE overview.

Rank #2
Anker USB-C Hub, 5-in-1 USB Hub for Laptops, 4K HDMI Multiport Adapter
  • 5-in-1 USB-C Hub: Experience comprehensive connectivity featuring a Power Delivery input, two USB-A 2.0 ports, a USB-A 3.0 port, and an HDMI port. (Note: The USB-C power delivery input port is only for connecting an external wall charger to power your laptop and cannot power peripheral devices.)
  • 90W Pass-Through Charging: Achieve optimal charging with 90W pass-through power to your laptop, supported by a total input of 100W, with the hub reserving 10W for operational efficiency. (Note: Wall charger not included.)
  • Quick Data Transfers: Accelerate your productivity with rapid data transfers using a high-speed 5Gbps USB 3.0 port and two 480Mbps USB 2.0 ports.
  • 4K HDMI Display: Enhance your visual experience with a hub capable of delivering 4K resolution at 30Hz in both mirror and extend modes. Please note that this hub is compatible with MacBook (macOS 12 and newer), Windows 10 and 11, ChromeOS, and laptops equipped with DP Alt Mode and Power Delivery. Note: This device is not compatible with Linux.
  • What You Get: Anker USB-C Hub (5-in-1, 4K HDMI), welcome guide, 18-month warranty, and our friendly customer service.

When does an LFSR reach its maximum period?

An n-stage XOR LFSR has at most 2n possible states, but its all-zero state is a fixed point: XORing zero-valued taps always produces zero, so the register cannot leave it. When the feedback polynomial is primitive and the seed is nonzero, the LFSR cycles through every nonzero state exactly once before repeating. Its period is therefore 2n − 1. An arbitrary polynomial or seed does not guarantee that period. The maximal-period condition is covered by IEEE Technology Navigator.

  • Primitive polynomial: required for the maximal-length cycle under the specified XOR recurrence.
  • Nonzero seed: required to enter that nonzero-state cycle; the zero seed remains locked at zero.
  • Verified convention: the polynomial must correspond to the actual shift direction, bit indexing, and feedback rule in the implementation.

OpenTitan documents lockup handling for XOR and complementary XNOR implementations, along with its coefficient choices and verification approach, in its prim_lfsr documentation. Those implementation details are specific to OpenTitan, not general bounds on LFSR width.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Rank #3
Sale
Anker USB C Hub, 7in1 Multi-Port USB Adapter, 4K@60Hz USBC to HDMI Splitter
  • Sleek 7-in-1 USB-C Hub: Features an HDMI port, two USB-A 3.0 ports, and a USB-C data port, each providing 5Gbps transfer speeds. It also includes a USB-C PD input port for charging up to 100W and dual SD and TF card slots, all in a compact design.
  • Flawless 4K@60Hz Video with HDMI: Delivers exceptional clarity and smoothness with its 4K@60Hz HDMI port, making it ideal for high-definition presentations and entertainment. (Note: Only the HDMI port supports video projection; the USB-C port is for data transfer only.)
  • Double Up on Efficiency: The two USB-A 3.0 ports and a USB-C port support a fast 5Gbps data rate, significantly boosting your transfer speeds and improving productivity.
  • Fast and Reliable 85W Charging: Offers high-capacity, speedy charging for laptops up to 85W, so you spend less time tethered to an outlet and more time being productive.
  • What You Get: Anker USB-C Hub (7-in-1), welcome guide, 18-month warranty, and our friendly customer service.

Fibonacci and Galois LFSRs: what changes?

Fibonacci and Galois describe different ways of organizing the feedback logic. Neither name, by itself, specifies the shift direction or bit numbering, so compare concrete recurrences rather than relying on labels alone.

Form Where feedback logic is applied Practical consideration
Fibonacci Selected taps are combined into a feedback value outside the register, then the value is shifted in. The recurrence can be easy to read as one feedback equation; the combined logic path depends on the specific circuit.
Galois Feedback is distributed through internal state updates at selected positions. Internal state updates differ from the Fibonacci recurrence; verify the mapping, taps, and output convention for the particular implementation.

Logic depth and timing depend on the actual circuit and target. A University of Alberta implementation discussion describes a shorter clock-to-clock path for a one-to-many implementation in its particular design context; that should not be treated as a universal advantage of a named LFSR form. For a hardware reference showing forms, seed handling, lockup protection, and checks, consult OpenTitan’s prim_lfsr documentation.

Rank #4
Sale
UGREEN USB to USB C Adapter Combo 4-Pack, 10Gbps USB C Converter Space Gray
  • Dual Converters, Infinite Potential:Includes 2× USB C male to USB A female adapters and 2× USB A male to USB C female adapters. Perfect for a wide range of uses—tablets with Bluetooth keyboards, expand USB ports on macbook, and more. Two different converters for all your daily needs
  • Next-Level 10Gbps & 3A Charging: No more slow 480Mbps, this usb to usb c adapter has a transfer speed of up to 10Gbps, allowing you to do more transferring in less time. This usb adapter fits both USB A and USB C charger, supporting up to 3A fast charging
  • Upgraded Exquisite Craftsmanship: With an aluminum alloy housing and metal connector, the usbc to usb adapter is extremely durable and sturdy. Rigorously tested to withstand more than 10,000 times of plugging and unplugging, ensuring long-lasting performance
  • Broad Compatible: The usb c to usb adapter widely supports all USB C/ USB A devices like laptops, tablets, cellphones, car chargers, and phone chargers. Such as compatible with MacBook Pro/Air 2023/2022, Thunderbolt 4/3 Devices,Apple MagSafe Watch 9/8/7/SE/Ultra, iPad Pro 2022/2021, Samsung Galaxy S23/S20/S10, and iPhone 17/16/15 Pro. Plug and play
  • Please Note: To reach 10Gbps speed, keep the cable under 3.3 ft. For USB A Male to USB C adapters, try flipping the USB C connector. USB C Male to USB A adapters support bidirectional 10Gbps transfer within 3.3 ft
Independent reader supportYour contribution helps us test, update, and keep practical guides available for everyone.Support on Ko-Fi

How to choose and verify a feedback polynomial

Choose a polynomial only after deciding the register width and implementation convention. A listed polynomial is not evidence by itself that a specific code implementation has the desired period: reversing bit indices or shifting in the other direction can change the realized recurrence.

  1. Fix the state convention. Write down the register width, shift direction, output bit, tap numbering, and whether polynomial notation includes the leading term.
  2. Specify the recurrence. Identify the exact state bits that are XORed and where the resulting feedback bit enters. Use the same convention in the diagram, polynomial, and code.
  3. Use a verified primitive polynomial for a maximal period. Confirm that it is primitive for the recurrence convention in use; do not infer maximal length from polynomial degree alone.
  4. Select a nonzero seed. The all-zero state is locked under XOR feedback. Confirm any implementation-specific seed requirements as well.
  5. Check the transition function and period. Test successive states against the stated recurrence and, when a maximal period is required, verify the full cycle or use a suitable formal method. OpenTitan documents formal transition-function verification and a bounded simulation sweep for its own implementation.

OpenTitan reports that its documented coefficient set ranges from 3-bit to 168-bit, and that polynomials up to 34 bits were swept in simulation for maximal length. These are facts about that project’s implementation and verification, not universal LFSR limits or a guarantee for a different design. See the OpenTitan documentation.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.
Best Value
Anker USB C Hub, 5-in-1 USBC to HDMI Splitter with 4K Display
  • 5-in-1 Connectivity: Equipped with a 4K HDMI port, a 5 Gbps USB-C data port, two 5 Gbps USB-A ports, and a USB C 100W PD-IN port. Note: The USB C 100W PD-IN port supports only charging and does not support data transfer devices such as headphones or speakers.
  • Powerful Pass-Through Charging: Supports up to 85W pass-through charging so you can power up your laptop while you use the hub. Note: Pass-through charging requires a charger (not included). Note: To achieve full power for iPad, we recommend using a 45W wall charger.
  • Transfer Files in Seconds: Move files to and from your laptop at speeds of up to 5 Gbps via the USB-C and USB-A data ports. Note: The USB C 5Gbps Data port does not support video output.
  • HD Display: Connect to the HDMI port to stream or mirror content to an external monitor in resolutions of up to 4K@30Hz. Note: The USB-C ports do not support video output.
  • What You Get: Anker 332 USB-C Hub (5-in-1), welcome guide, our worry-free 18-month warranty, and friendly customer service.

Can an LFSR be used for cryptography?

A long period does not make an LFSR cryptographically secure. The recurrence is linear, and linear complexity is the length of the shortest LFSR capable of reproducing a sequence. The Berlekamp–Massey algorithm can reconstruct a shortest linear recurrence from sequence data. An IEEE paper on sequence complexity states that LFSRs cannot ensure large linear complexity unless their lengths are prohibitively high: “On the linear complexity of nonlinearly filtered PN-sequences”, published November 30, 2003.

Use a plain LFSR for deterministic sequence generation where its properties are appropriate, not as a secure keystream generator. A cryptographic system requires a separately justified construction; an LFSR’s period alone does not supply that security.

Implementing an LFSR in hardware

An FPGA is one way to implement and observe LFSR logic, but no particular board is required to understand or simulate the recurrence. AMD’s XAPP210 application note discusses LFSRs in Virtex devices; its implementation advice is tied to that device context and should not automatically be applied to every FPGA generation. OpenTitan’s primitive documentation provides another hardware implementation reference.

For a first implementation, make the recurrence the source of truth: write the state update, simulate from a known nonzero seed, and compare each next state with hand-calculated steps. If the simulation disagrees, check bit order, shift direction, whether the old or updated state is used in feedback, and whether the polynomial convention matches the code.

Special offer. See more information about Outbyte and uninstall instructions. Please review EULA and Privacy policy.

Product prices and availability are accurate as of the date/time indicated and are subject to change. Any price and availability information displayed on Amazon at the time of purchase will apply.