yosys/tests/asicworld/code_verilog_tutorial_tri_b...

10 lines
126 B
Verilog
Raw Normal View History

2013-01-05 04:13:26 -06:00
module tri_buf (a,b,enable);
input a;
output b;
input enable;
wire b;
assign b = (enable) ? a : 1'bz;
endmodule