Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
18 years ago

PISO and SIPO

Hello,

I need to implement parallel-to-serial and serial-to-parallel blocks.

Is there any megawizard/function that does this in the Quartus?

and if not, how can I do it efficiently using verilog?

Thank you.

1 Reply

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

    Hello,

    you can use the LPM_SHIFTREG Megafunction or elementary HDL contsructs like this

    always @(posedge clk)
      begin
        sr <= { sr, si}; // left shift, serial input
      end

    Regards,

    Frank