Home Verilog Digital Design Digital Basics Python RF Basics

Legal Disclaimer

Chip Designing for ASIC/ FPGA Design engineers and Students
FULLCHIPDESIGN
Digital-logic Design...  Dream for many students… start learning front-end…
Custom Search

Feedback ? Send it to admin@fullchipdesign.com or join me at fullchip@gmail.com

Verilog Initial stmts IF-ELSE Case stms Readmemh Function Testbench Binary to Gray Clock Crossing Half-adder Full-adder Tristate buffer Adder tb Counter_enable Blocking Operators Shift LSR Random Nos Sync RAM Verilog Tutorial

Legal Disclaimer

Previous Next
Verilog Tutorial.
Tri-state buffer discussion
Verilog RTL example for tri-state buffer.

// Tristate Buffer

module tristate_buffer(input_x, enable, output_x);

input input_x;

input enable;

output output_x;

assign output_x = enable ? input_x : 'bz;

endmodule

---------------------

Tri-State Buffer

----------------------

input_x = 0, enable = 0, output_x = z

input_x = 1, enable = 0, output_x = z

input_x = 1, enable = 1, output_x = 1

input_x = 0, enable = 1, output_x = 0