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.

how to write tristate gate in verilog ,

Status
Not open for further replies.

googlegzh

Newbie level 6
Joined
Mar 5, 2005
Messages
11
Helped
0
Reputation
0
Reaction score
0
Trophy points
1,281
Activity points
1,358
verilog tristate with active low

it may "DC"
 

assign TRI_OUT =(EN)? 1'bZ : ABC;
 

I think you got your equation backward. The assignment is actually the other way around.
 

rakko said:
I think you got your equation backward. The assignment is actually the other way around.

well I guess it depends on whether the EN pin is active low or active high. :)
 

it is easy
assign tri_out =(enale)? 1'bZ : tri_in;
 

Usually, we use the tri-state pads in the pins of chip.
 

inside a chip
we dont use tri state
(maybe for FPGA is OK, but ASIC normally not)
In ASIC
only PAD use tri-state
so you should only use tri-state (gate) in behavior code
not RTL code
 

Status
Not open for further replies.

Part and Inventory Search

Welcome to EDABoard.com

Sponsor

Back
Top