Archived
1
0

verilog predefined gates (re)definition

This commit is contained in:
Erick
2022-02-28 23:53:53 +01:00
parent e6e955a3b1
commit 680094e4e8
8 changed files with 51 additions and 32 deletions
+2 -2
View File
@@ -1,9 +1,9 @@
module or_gate(a, b, y);
module or_gate(y, a, b);
input a, b;
output y;
always @ (a or b)begin
if(a==0'b0 and b==0'b0)begin
if(a==0'b0 & b==0'b0)begin
y=0'b0;
end
else