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

📄 test_cpu.v

📁 精通verilog HDL语言编程的一个不错的cpu 代码
💻 V
字号:
	`timescale 1ns/10ps	module test_cpu;		reg	nrst,clk;	wire	load,iowen;	wire[7:0] ioaddr,iodata;	wire	ATPG;		always #5 clk=~clk;	initial	 begin	     clk=0;	     nrst=0;	     #100  nrst=1;	     	 end    		CPU CPU(//input		.nrst	(nrst),		.clk	(clk),		//IO interface		.load	(load),				.iowen	(iowen),		.ioaddr	(ioaddr),		.iodata	(iodata),		//test mode		.ATPG	(ATPG));	IO IO(//input			.nrst	(nrst),		.clk	(clk),		//output		.load	(load),				.iowen	(iowen),		.addr	(ioaddr),		.dout	(iodata) );	initial	begin//	 `ifdef test1//	    $dumpfile("./vcd/test.1.vcd");//	 `endif	 `ifdef test2	    $dumpfile("./vcd/test.2.vcd");	 `endif//	$fsdbDumpvars(0,top);	end	endmodule

⌨️ 快捷键说明

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