浏览代码

and gate test

Vyacheslav Vinokurov 2 周之前
父节点
当前提交
0620bed88d
共有 1 个文件被更改,包括 7 次插入0 次删除
  1. 7 0
      cores/logic_gate_and.v

+ 7 - 0
cores/logic_gate_and.v

@@ -0,0 +1,7 @@
+module logic_and_gate(
+    input exp_p_tri_io[0]
+    input exp_p_tri_io[1]
+    output exp_n_tri_io[0]
+)
+    assign exp_n_tri_io[0] = exp_p_tri_io[0] & exp_p_tri_io[0]
+endmodule