yosys/tests/asicworld/code_verilog_tutorial_tri_b...

10 lines
118 B
Verilog
Raw Permalink Normal View History

2013-01-05 11:13:26 +01:00
module tri_buf (a,b,enable);
input a;
output b;
input enable;
wire b;
2026-06-23 07:24:59 +02:00
2013-01-05 11:13:26 +01:00
assign b = (enable) ? a : 1'bz;
2026-06-23 07:24:59 +02:00
2013-01-05 11:13:26 +01:00
endmodule