Forum Discussion
Altera_Forum
Honored Contributor
12 years agoHello Kaz,
and thanks for your reply! challenge_dr is just used as internal signal in controller. As my code snippet shows, it is passed out of controller through challenge_out. challenge_out[3..0] and challenge_out[7..4] are each used as select-inputs of two 16-bit MUXes. Interestingly, I only get the warning for challenge_dr[0] and challenge_dr[4]. So is the MUX causing the waring? Here is its code:--------------------------------------------------------------------
--
-- MUX Parameterized Megafunction
--
INCLUDE "lpm_mux.inc";
PARAMETERS
(
WIDTH,
WIDTHS = CEIL(LOG2(WIDTH))
);
SUBDESIGN mux
(
data : INPUT;
sel : INPUT;
result : OUTPUT;
)
BEGIN
result = lpm_mux(.data=data, .sel=sel)
WITH (LPM_WIDTH = 1, LPM_SIZE = WIDTH, LPM_WIDTHS = WIDTHS);
IF !USED(result) GENERATE
result = GND;
END GENERATE;
END;