Welcome to EDAboard.com

Welcome to our site! EDAboard.com is an international Electronics Discussion Forum focused on EDA software, circuits, schematics, books, theory, papers, asic, pld, 8051, DSP, Network, RF, Analog Design, PCB, Service Manuals... and a whole lot more! To participate you need to register. Registration is free. Click here to register now.

[SOLVED] Converting Bi directional to single directional input

Status
Not open for further replies.

ultimate_kc

Newbie level 6
Joined
May 20, 2015
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Activity points
68
Hi,

I have a bi directional signal, say SDA in Top module. i want to convert this bi directional signal as input and output in the top module and feed into different sub modules. Is there any primitives in VHDL for this conversion? Any help will be thankful.:)
 

sythe

Junior Member level 2
Joined
May 2, 2007
Messages
20
Helped
4
Reputation
8
Reaction score
4
Trophy points
1,283
Activity points
1,411
Use an IO Buffer. Either Altera or Xilinx have them.
 

KlausST

Super Moderator
Staff member
Joined
Apr 17, 2014
Messages
22,523
Helped
4,647
Reputation
9,310
Reaction score
4,954
Trophy points
1,393
Activity points
148,810
Hi,

A tristate or open drain output buffer in the output direction, and a input buffer in the input direction.
Then you have different lines for input and output.

Klaus
 

FvM

Super Moderator
Staff member
Joined
Jan 22, 2008
Messages
50,248
Helped
14,530
Reputation
29,332
Reaction score
13,515
Trophy points
1,393
Location
Bochum, Germany
Activity points
288,490
Why do you need a specific primitive when writing VHDL.

Code:
bidir_signal <= '0' when out_signal = '0' else 'Z';
in_signal <= bidir_signal;
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Top