Forum Discussion

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

problem of lpm_mux in megafunction

I wish to know the sel function in megafunction of lpm_mux , is it edge trigger or level trigger ??

12 Replies

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

    Sorry, I posted the wrong question ((

    Here is what I meant to ask:

    Is it possible to use lpm_mux in pipeline mode to multiplex two stream of 8-bit data @ 50MHz each into a single stream of 8-bit data @ 100MHz ?

    Can lpm_mux on the first rising edge of the clock select the first 8-bit stream and on the second rising edge of the clock select the second 8-bit stream and so on?

    I suppose that in this case Sel is ignored by lpm_mux?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    No. Its just a mux, Sel is always used and never ignored. You could easily do it though by having a toggle bit toggling at 2x data rate selecting the alternating halves of the wrod.