New Hardware Git
This commit is contained in:
16
Verilog/test/test0/test0.v
Normal file
16
Verilog/test/test0/test0.v
Normal file
@@ -0,0 +1,16 @@
|
||||
/*
|
||||
module test0(
|
||||
input a;
|
||||
input b;
|
||||
output c;
|
||||
);
|
||||
|
||||
endmodule
|
||||
*/
|
||||
module and_gate (
|
||||
input a, // 输入a
|
||||
input b, // 输入b
|
||||
output y // 输出y = a & b
|
||||
);
|
||||
assign y = a & b; // 与操作
|
||||
endmodule
|
||||
Reference in New Issue
Block a user