Forum Discussion
Altera_Forum
Honored Contributor
14 years agoPRBS transceiver
Hi, I am using cyclone 4 device and trying to integrate the hard IP transceiver into my design. I would like to have a PRBS pattern generator - verifier which can be enabled/disabled. In case...
Altera_Forum
Honored Contributor
14 years agoAssuming I understand you (though not sure about your setup and which ip you are referring to)
You can add prbs to your design in one single build and use a switch to select input. here is example of 25 bits prbs:
process(reset, clk)
begin
if(reset = '1')then
shift_reg <= '0' & x"00F0F1";
elsif(rising_edge(clk))then
shift_reg(1) <= shift_reg(25) xor shift_reg(22);
shift_reg(25 downto 2) <= shift_reg(24 downto 1);
end if;
end process;
for your data you choose the required bits from shift_reg bits