Continue to Site

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.

Inout port connection in sub module

Status
Not open for further replies.

arjun1nh07

Newbie level 2
Newbie level 2
Joined
Jan 9, 2014
Messages
2
Helped
0
Reputation
0
Reaction score
0
Trophy points
1
Visit site
Activity points
22
I have ram design in that design one sub module as inout port.
I have used continuous assignment statement to assign input and output to that inout port

assign d1=(WR1 && !RD1 && (!SF && !AF))?din:0;
assign d2=(WR2 &&!RD2 &&(!SF && !AF))?din:0;
assign d3=(WR3 &&!RD3 &&(!SF && !AF))?din:0;
assign d4=(WR4 &&!RD4 &&(!SF && !AF))?din:0;
this is for input
assign din=(MEM_RD1)?d1:(MEM_RD2)?d2:(MEM_RD3)?d3:(MEM_RD4)?d4:din;
this for output

I am getting only x as my input and output not able to retrive or send value to that port.
I have even tried connecting inout port in top module
If possible please help me friends
 

You must always turn off one direction by assigning 'z'.

If you are designing real hardware I suggest that you don't use inout.
Use separate ports for input and output.

For FPGA, inout is OK for pins.

For ASIC, you probably don't use inout in the design. Bidirectional pins are created by using I/O cells.
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top