summaryrefslogtreecommitdiff
path: root/library/SubcircuitLibrary/sn54als29827/tristate_buff.v
diff options
context:
space:
mode:
Diffstat (limited to 'library/SubcircuitLibrary/sn54als29827/tristate_buff.v')
-rw-r--r--library/SubcircuitLibrary/sn54als29827/tristate_buff.v3
1 files changed, 3 insertions, 0 deletions
diff --git a/library/SubcircuitLibrary/sn54als29827/tristate_buff.v b/library/SubcircuitLibrary/sn54als29827/tristate_buff.v
new file mode 100644
index 00000000..3f3863a7
--- /dev/null
+++ b/library/SubcircuitLibrary/sn54als29827/tristate_buff.v
@@ -0,0 +1,3 @@
+module tristate_buff(input wire a, input wire enable, output wire y);
+assign y = (enable) ? a : 1'bz;
+endmodule \ No newline at end of file