Added AND gate module
This commit is contained in:
@@ -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