⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 combi_ckt_tb.v

📁 一些自己编写的verilog代码
💻 V
字号:
// Testbench for "CombinationalCircuit" module
//
// Illustrates efficient way to exhaustively test
// a combinational circuit

module CombinationalCircuit_TB;
	reg a,b,d,c;
	wire y;

	// Instantiate the device-under-test
	CombinationalCircuit DUT (
		.a(a),
		.b(b),
		.c(c),
		.d(d),
		.y(y)
	);

	// Declare loop index variable
	integer k;

	// Apply input stimulus
	initial begin
		{a,b,c,d} = 0;

		for (k=0; k<=16; k=k+1)
			#5 {a,b,c,d} = k;

	#20	$finish;
	end

endmodule

⌨️ 快捷键说明

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