Added AND gate module
This commit is contained in:
1 parent
9eec4cdc76
commit
81cdf3c62b
1 file changed
+9
@@ -12,6 +12,15 @@ module adder_1bit(
|
||||
|
||||
endmodule
|
||||
|
||||
module and_gate(
|
||||
input wire A,
|
||||
input wire B,
|
||||
output wire C);
|
||||
|
||||
assign C = A & B;
|
||||
|
||||
endmodule
|
||||
|
||||
module gen_clock();
|
||||
|
||||
reg clk;
|
||||
|
||||
Reference in new issue
Block a user