From HDLBits

See Lfsr5 for explanations.

Build a 32-bit Galois LFSR with taps at bit positions 32, 22, 2, and 1.

Module Declaration

module top_module(
    input clk,
    input reset,    // Active-high synchronous reset to 32'h1
    output [31:0] q

This is long enough that you'd want to use vectors, not 32 instantiations of DFFs.

Write your solution here

Upload a source file...