--- Quote Start ---
Hello,
I have reading a lot of posts that they are talking about shift registers, but always they are refered to a fix data, not to PRBS. What I would like to get is from a PRBS generator (can be the qsys block or created in quartus), delay one bit the PRBS sequence and after that add the two sequences (PRBS + PRBS shifted). As an example, if the original sequence is 1010, I would shift one bit right: 0101 and finally I would sum both sequences (1010 + 0101). Is it possible to do this for a PRBS code?
I have though in some options, but I don't know if they will work or if there is a faster option:
1. Store the original PRBS in a RAM and then work from there.
2. Connect the PRBS generator to a shift register (Megawizard).
Any help will be appreciate it.
Thanks!!!
--- Quote End ---
if I understood you:
--clocked process
if reset then
shift1 <= "1010";
elsif rising_edge(clk) then
shift1 <= shift1(0) & shift(3 downto 1);
shift1_d <= shift1;
result <= std_logic_vector(signed(shift1) + signed(shift1_d));
end if;