aboutsummaryrefslogtreecommitdiffstats
path: root/tests/anlogic/tribuf.v
diff options
context:
space:
mode:
Diffstat (limited to 'tests/anlogic/tribuf.v')
-rw-r--r--tests/anlogic/tribuf.v8
1 files changed, 8 insertions, 0 deletions
diff --git a/tests/anlogic/tribuf.v b/tests/anlogic/tribuf.v
new file mode 100644
index 000000000..90dd314e4
--- /dev/null
+++ b/tests/anlogic/tribuf.v
@@ -0,0 +1,8 @@
+module tristate (en, i, o);
+ input en;
+ input i;
+ output o;
+
+ assign o = en ? i : 1'bz;
+
+endmodule