Archived
1
0

created predefined gates in verilog

This commit is contained in:
Erick
2022-02-22 13:06:51 +01:00
parent 4cbdd294fb
commit 2fde4d5bf5
7 changed files with 84 additions and 0 deletions
+12
View File
@@ -0,0 +1,12 @@
module or_gate(a, b, y);
input a, b;
output y;
always @ (a or b)begin
if(a==0'b0 and b==0'b0)begin
y=0'b0;
end
else
y=1'b1;
end
endmodule