Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- INCLUDE "lpm_mux";
- SUBDESIGN mux_ahdl
- (
- data[1..0][15..0]: INPUT;
- sel[3..0]: INPUT;
- result[1..0]: OUTPUT;
- )
- VARIABLE
- lpm_mux_component: lpm_mux WITH(
- lpm_width = 2,
- lpm_size = 16,
- lpm_widths = 4
- );
- BEGIN
- lpm_mux_component.data[1..0][15..0] = data[1..0][15..0];
- lpm_mux_component.sel[3..0] = sel[3..0];
- result[1..0] = lpm_mux_component.result[1..0];
- END;
Add Comment
Please, Sign In to add comment