vhdl bidirectional transceiver with enable

Discussion in 'Hardware' started by qtr, Jul 2, 2007.

  1. qtr

    qtr

    Joined:
    Jul 2, 2007
    Messages:
    2
    Hi,
    How do I connect two bidirectional ports in VHDL with an enable signal?

    data1 & data2 are bidirectional ports.
    When enab is 1, data2 should be written to data1.
    when enab is 0 , data1 should be readback to data2.

    This is the code I tried and here is the simulation results:

    http://picasaweb.google.com/qtrpenn/Sim/photo#5082639408873976578
    I am unable to see any hard drive on data2 when enab is low, why is it so?
    Could someone please help me out?
    Thanks in advance,
    QTR.
    qtr, Jul 2, 2007
    #1
    1. Advertising

  2. qtr

    balkar

    Joined:
    May 3, 2007
    Messages:
    2
    Hi

    You try the following code:

    data1 <= data2 when ena='1' else 'Z';
    data2 <= data1 when ena='0' else 'Z';
    balkar, Aug 22, 2007
    #2
    1. Advertising

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Silverstrand
    Replies:
    0
    Views:
    1,652
    Silverstrand
    Oct 13, 2005
  2. =?ISO-8859-2?Q?Pawe=B3_Go=B3aszewski?=

    C2950 (and C3550) with 10Mbit transceiver

    =?ISO-8859-2?Q?Pawe=B3_Go=B3aszewski?=, Jul 8, 2003, in forum: Cisco
    Replies:
    0
    Views:
    1,036
    =?ISO-8859-2?Q?Pawe=B3_Go=B3aszewski?=
    Jul 8, 2003
  3. Lowell

    Cisco 2501 and transceiver

    Lowell, Oct 17, 2003, in forum: Cisco
    Replies:
    2
    Views:
    1,073
    bond007
    Oct 17, 2003
  4. qtr

    vhdl code for bidirectional transceiver

    qtr, Jul 5, 2007, in forum: General Computer Support
    Replies:
    0
    Views:
    1,747
  5. becool_nikks
    Replies:
    0
    Views:
    1,887
    becool_nikks
    Mar 6, 2009
Loading...

Share This Page