Forum Discussion

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    Hello,

    your LFSR won't start, unless at least one register holds a "one", the LFSR has 2**n-1 states, excluding the all zero state, as known from the theory.

    I connected the a set input to the nReset signal and added an output for easier simulation. All you have to do is do set the end time, define the Reset and Clock input signals in waveform editor and start the simulation, which produces the expected LFSR signal with a 63 clocks period.

    Regards,

    Frank