![]() |
|
![]() |
|
Answers Database
Foundation XVHDL: Using pullups and pulldowns
Record #1366
Product Family: Software entity IOB is port (IN1, CLOCK: in std_logic; OUT_PAD: out std_logic); attribute INHIBIT_BUF: boolean; attribute INHIBIT_BUF of OUT_PAD: signal is true; -- The INHIBIT_BUF attribute prevents the VHDL compiler from -- inferring an OBUF on the OUT_PAD port. This is necessary -- because we are going to instantiate an OBUF onto the port. end IOB; architecture PULLUP_EXAMPLE of IOB is component PULLUP port ( O: out std_logic); end component; component OBUF port (I: in std_logic; O: out std_logic); end component; signal OUT_INTERNAL: std_logic; -- This node is the input of the OBUF. begin process (CLOCK) begin if CLOCK'event and CLOCK = '1' then OUT_INTERNAL <= IN1; end if; end process; U1: PULLUP port map (O => OUT_PAD); -- Insert the pullup on the output of the OBUF. U2: OBUF port map (I => OUT_INTERNAL, O => OUT_PAD); end PULLUP_EXAMPLE; End of Record #1366 - Last Modified: 01/03/00 10:55 |
| For the latest news, design tips, and patch information on the Xilinx design environment, check out the Technical Tips! |