Guest User

Untitled

a guest
Jun 20th, 2018
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.38 KB | None | 0 0
  1. INCLUDE "lpm_mux";
  2. SUBDESIGN mux_ahdl
  3. (
  4. data[1..0][15..0]: INPUT;
  5. sel[3..0]: INPUT;
  6. result[1..0]: OUTPUT;
  7. )
  8. VARIABLE
  9. lpm_mux_component: lpm_mux WITH(
  10. lpm_width = 2,
  11. lpm_size = 16,
  12. lpm_widths = 4
  13. );
  14. BEGIN
  15. lpm_mux_component.data[1..0][15..0] = data[1..0][15..0];
  16. lpm_mux_component.sel[3..0] = sel[3..0];
  17. result[1..0] = lpm_mux_component.result[1..0];
  18. END;
Add Comment
Please, Sign In to add comment