Altera_Forum
Honored Contributor
14 years agoInput pin, without a driver.
Hi all
I have a problem related to a thread (http://www.alteraforum.com/forum/showthread.php?t=26988)I once opened. lets say I want an optional input pin, that is not always in use. I used a generic that defines if the pin is used, and a generate statement that uses the pin (or not) please see attached code ENTITY my_dffe IS GENERIC ( RSTn_ON: BOOLEAN:= False; BUS_WIDTH: INTEGER:= 1 ); PORT . . . END my_dffe; ARCHITECTURE bdf_type OF my_dffe IS SIGNAL RSTn_INT: STD_LOGIC; BEGIN RESET_ON: IF (RSTn_ON) GENERATE RSTn_INT <= RSTn; END GENERATE; RESET_OFF:IF (NOT(RSTn_ON)) GENERATE RSTn_INT <= '1'; END GENERATE; . . . END bdf_type; this seemed to work fine when I used the schematic entry for the top level entity, so when I didn't want I the reset signal I simply didn't connect the pin and defined the generic as False. when I tried to convert the top level entity to VHDL and compile I got error messages. "formal port or parameter "RSTn" must have actual or default value" "see decleration for object "RSTn"" anyone have any ideas? thanks in advance