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.

the inout port in Verilog

Status
Not open for further replies.

wjxcom

Full Member level 5
Joined
Sep 7, 2005
Messages
281
Helped
4
Reputation
8
Reaction score
3
Trophy points
1,298
Activity points
3,840
inout port in verilog

Hi, all: how to use inout port in Verilog? I write like this:

assign data=en_in?inout_port:4'bzzzz;
assign inout_port=en_out_one?data_reg_one:4'bzzzz;
assign inout_port=(en_out_two && !en_out_one)?data_reg_two:4'bzzzz;

where data, data_reg_one, data_reg_two is internal register in CPLD ,inout_port is input and output type, en_out_one and en_out_two is enable signal.

I do not know is this two sentence mentioned above is right, because QuartusII's warning is: data conflict.
 

data is reg signal?
how can you assign data=en_in?inout_port:4'bzzzz;
for inout signal
normally, you need define another inter signal.
 

Hi wjxcom,

You'd bettern instantiate the bidirection io in your rtl code, don't let tool implement it.
 

Hi, tarkyss: would you explain this problem more detailed?
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top