There are 2 messages in this thread.
You are currently looking at messages 0 to 2.
This is a multi-part message in MIME format. ------=_NextPart_000_000C_01C488FC.1BCD9310 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable What is the proper VHDL code for bidirectional pins on a Xilinx chip? I used the code below but the chip runs hot. SRAM_BIDIRECTIONAL_PINS:process(SRAM_W_SIGNAL_5,SRAM_DQA_SIGNAL_5,SRAM_DQ= B_SIGNAL_5 ) begin if(SRAM_W_SIGNAL_5 =3D '1') then SRAMDQA <=3D SRAM_DQA_SIGNAL_5; SRAMDQB <=3D SRAM_DQB_SIGNAL_5; else SRAMDQA <=3D (others =3D> 'Z'); SRAMDQB <=3D (others =3D> 'Z'); end if; end process; Thanks, Brad b r a d @ a i v i s i o n . c o m ------=_NextPart_000_000C_01C488FC.1BCD9310 Content-Type: text/html; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <HTML><HEAD> <META http-equiv=3DContent-Type content=3D"text/html; = charset=3Diso-8859-1"> <META content=3D"MSHTML 6.00.2800.1400" name=3DGENERATOR> <STYLE></STYLE> </HEAD> <BODY> <DIV><FONT face=3D"Courier New">What is the proper VHDL code=20 for bidirectional pins on a Xilinx chip?</FONT></DIV> <DIV><FONT face=3D"Courier New">I used the code below but the chip=20 runs hot.</FONT></DIV> <DIV><FONT face=3D"Courier New"></FONT> </DIV> <DIV><FONT face=3D"Courier New"></FONT> </DIV> <DIV><FONT=20 face=3D"Courier = New">SRAM_BIDIRECTIONAL_PINS:process(SRAM_W_SIGNAL_5,SRAM_DQA_SIGNAL_5,SR= AM_DQB_SIGNAL_5=20 )<BR>begin<BR> if(SRAM_W_SIGNAL_5 =3D '1') = then<BR> SRAMDQA <=3D=20 SRAM_DQA_SIGNAL_5;<BR> SRAMDQB <=3D=20 SRAM_DQB_SIGNAL_5;<BR> else<BR> SRAMDQA <=3D (others = =3D>=20 'Z');<BR> SRAMDQB <=3D (others =3D> 'Z');<BR> end = if;<BR>end=20 process;<BR></FONT></DIV> <DIV><FONT face=3D"Courier New">Thanks,</FONT></DIV> <DIV><FONT face=3D"Courier New"></FONT> </DIV> <DIV><FONT face=3D"Courier New"><FONT face=3DArial = size=3D2>Brad</FONT></FONT></DIV> <DIV><FONT face=3D"Courier New"><FONT face=3DArial = size=3D2></FONT></FONT> </DIV> <DIV><FONT face=3D"Courier New"><FONT face=3DArial size=3D2>b = r a =20 d @ a i v i s i o = n =20 . c o m </FONT></DIV></FONT></BODY></HTML> ------=_NextPart_000_000C_01C488FC.1BCD9310--
You should use tri-state buffers. SRAMDQA <= SRAM DQA SIGNAL 5 when (SRAM W SIGNAL 5 = '1') else (others => 'Z'); x <= SRAMDQA; and so on. x -------------------------| | |\ | SRAMDQASIGNAL5 -------| \__|_______________ SRAMDQA | / |/| | SRAMWSIGNAL5 -----------| "Brad Smallridge" <b...@dslextreme.com> wrote in message news:<1...@corp.supernews.com>... > What is the proper VHDL code for bidirectional pins on a Xilinx chip? > I used the code below but the chip runs hot. > > > SRAM BIDIRECTIONAL PINS:process(SRAM W SIGNAL 5,SRAM DQA SIGNAL 5,SRAM DQ > B SIGNAL 5 ) > begin > if(SRAM W SIGNAL 5 = '1') then > SRAMDQA <= SRAM DQA SIGNAL 5; > SRAMDQB <= SRAM DQB SIGNAL 5; > else > SRAMDQA <= (others => 'Z'); > SRAMDQB <= (others => 'Z'); > end if; > end process; > > Thanks, > > Brad > > b r a d @ a i v i s i o n . c o m > --______________________________