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

📄 pram.v

📁 这是著名的硬件调试工具debussy的教学说明
💻 V
字号:
// ************************************************************************// *  NOVAS SOFTWARE CONFIDENTIAL PROPRIETARY NOTE                        *// *                                                                      *// *  This software contains information confidential and proprietary     *// *  to Novas Software Inc. It shall not be reproduced in whole          *// *  or in part or transferred to other documents, or disclosed          *// *  to third parties, or used for any purpose other than that           *// *  for which it was obtained, without the prior written consent        *// *  of Novas Software Inc.                                              *// *  (c) 1996, 1997, 1998 Novas Software Inc.                            *// *  All rights reserved                                                 *// *                                                                      *// ************************************************************************/* Debussy tutorial case: A simplified microprogramming-based CPU   file name: pram.v   description: This part modelize the program memory for the system operation		clock: system clock		VMA: valid memory address where read/write can be performed		R_W: memory read or memory write		addr: 8-bits address bus		data: 8-bits data bus*/module pram(clock,VMA,R_W,addr,data);input clock;input VMA;input R_W;input [7:0] addr;inout [7:0] data;reg [7:0] macroram [255:0];reg [7:0] dataout;assign data = R_W ? dataout : 8'hz;always @(posedge (clock & VMA))begin  	$fsdbDumpMem(macroram, 0, 256);	if (R_W == 1) dataout=macroram[addr];	else macroram[addr]=data;endinitial   begin        $readmemb("../memory/pram.dat",macroram);    endendmodule

⌨️ 快捷键说明

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