sap_1_tb.v

来自「這是用verilog寫的一個簡單的處理器」· Verilog 代码 · 共 45 行

V
45
字号
//* This automatically generated file is a part of Verilog testbench.
//*   This file was generated by Active-HDL 4.1 (TB_verilog v.1.1).
//*   Copyright (C) ALDEC Inc.
//* This Verilog file contains the main Test Bench module
//* and is a part of Verilog Testbench for module "SAP_1"
//* This file was generated on: Wed Jun  1 17:54:05 2005

`timescale 1ns / 100ps
module SAP_1_tb;
	
	
	//Internal signals declarations:
	reg asy_rst;
	reg clk;
	wire [7:0]Oreg;
	reg go;
	
	
	
	// Unit Under Test port map
	SAP_1 UUT (
		.asy_rst(asy_rst),
		.clk(clk),
		.Oreg(Oreg),
		.go(go));
	
	initial
		begin
			asy_rst=1;
			go=0 ;
			#1000
			asy_rst=0;
			#100
			go=1;
			#100
			go=0;
		end
	always
		begin
			#20	clk=0;
			#20	clk=1;
		end
	
endmodule

⌨️ 快捷键说明

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