xor_tri.v

来自「with this rar file i am sending five sou」· Verilog 代码 · 共 29 行

V
29
字号
module xor_tri_state(x0,x1,y);
input x0,x1;
output y;
tri y;

notif1 n1(y,x0,x1);
bufif0 b1(y,x0,x1);

endmodule

module test;
reg x0,x1;
tri y;

xor_tri_state xo(x0,x1,y);

initial
	begin
		x0=1; x1=0;
		#1 x0=0;x1=0;
		#1 x0=0;x1=1;
		#1 x0=1;x1=1;
	end
initial 
begin
$monitor("x0=%b x1=%b y=%b",x0,x1,y);
end
endmodule	
	

⌨️ 快捷键说明

复制代码Ctrl + C
搜索代码Ctrl + F
全屏模式F11
增大字号Ctrl + =
减小字号Ctrl + -
显示快捷键?