Go Back   Velocity Reviews > Newsgroups > VHDL
User Name
Password
Register FAQ Members List Calendar Search Today's Posts Mark Forums Read

Reply

VHDL - Connecting two bidirectional ports together

 
Thread Tools Search this Thread
Old 06-06-2007, 04:22 PM   #1
Question Connecting two bidirectional ports together


Hi,

Previously I heard that " it is impossible to connect two bidirectional port together in VHDL without any enable signals "
But tried like this,

Way 1

***********************************************
entity dec
CPU_I2C_SDA :inout std_logic;
I2C_SDA_MC :inout std_logic;

signal declared
signal enable1 : std_logic;
signal enable2 : std_logic;


Logic starts here..........

enable1 <= '1';
process(enable1)
begin
if enable1 ='1' then
CPU_I2C_SDA <= I2C_SDA_MC ;
else
CPU_I2C_SDA <= 'Z';
end if;
end process;

enable2 <= '1';
process(enable2)
begin
if enable2 ='1' then
I2C_SDA_MC <= CPU_I2C_SDA ;
else
I2C_SDA_MC <= 'Z';
end if;
end process;
***********************************************

Way 2:

***********************************************
process(I2C_SDA_MC )
begin
if I2C_SDA_MC = '0' then
CPU_I2C_SDA <= '0';
elsif I2C_SDA_MC = '1' then
CPU_I2C_SDA <= '1';
else
CPU_I2C_SDA <= 'Z';
end if;
end process;

process(CPU_I2C_SDA)
begin
if CPU_I2C_SDA = '0' then
I2C_SDA_MC <= '0';
elsif CPU_I2C_SDA = '1' then
I2C_SDA_MC <= '1';
else
I2C_SDA_MC <='Z';
end if;
end process;

********************************************

In this both logic, I got the ERROR during compilation.

Can anyone share why the error came ?

-V


VJN
VJN is offline   Reply With Quote
Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
vhdl bidirectional transceiver with enable qtr Hardware 1 08-22-2007 06:30 AM
vhdl code for bidirectional transceiver qtr General Help Related Topics 0 07-05-2007 05:00 PM
Connecting routers makhan Hardware 2 11-18-2006 11:27 AM
Re: USB issue ... some USB 2 ports working only in USB 1 mode hungsolo2005@yahoo.com A+ Certification 0 06-14-2006 08:26 PM
alot of open ports leno bob A+ Certification 8 03-27-2005 11:44 PM




SEO by vBSEO 3.3.2 ©2009, Crawlability, Inc.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46