diff options
Diffstat (limited to 'tests/arch/efinix/tribuf.v')
-rw-r--r-- | tests/arch/efinix/tribuf.v | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/arch/efinix/tribuf.v b/tests/arch/efinix/tribuf.v new file mode 100644 index 000000000..c64468253 --- /dev/null +++ b/tests/arch/efinix/tribuf.v @@ -0,0 +1,8 @@ +module tristate (en, i, o); + input en; + input i; + output reg o; + + always @(en or i) + o <= (en)? i : 1'bZ; +endmodule |