Forum Discussion
Altera_Forum
Honored Contributor
16 years agoDo you use LPMs for your LFSRs?
I want to implement an LFSR as a means of generating random numbers but I'm not sure whether to use an LPM or just code it in a process. I would be interested to hear how you choose to implement them...
Altera_Forum
Honored Contributor
16 years agoaccording to xilinx doc a 4 bit shift register should have taps at 3,4
shift_reg(0) <= shift_reg(2) xor shift_reg(3); shift_reg(3 downto 1) <= shift_reg(2 downro 0);