wire&gnd&nor&another gate

题目如图:

代码如下:

module top_module (
    input in,
    output out);
	assign out=in;
endmodule

题目如图:

代码如下:

module top_module (
    output out);
	assign out=1'b0;
endmodule

题目如图:

代码如下:

module top_module (
    input in1,
    input in2,
    output out);
    assign out=~(in1|in2);
endmodule

题目如图:

代码如下:

module top_module (
    input in1,
    input in2,
    output out);
    assign out=in1&(!in2);
endmodule
posted @ 2024-03-07 14:41  江左子固  阅读(5)  评论(0)    收藏  举报