📄 microrom.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 Novas Software Inc. *// * All rights reserved *// * *// ************************************************************************/* Debussy tutorial case: A simplified microprogramming-based CPU file name: microrom.v description: This part modelize the microprogram rom addr: 8-bits address bus data: 8-bits data bus addr_error: address out of range*/`timescale 1 ns / 1 nsmodule mprom(addr, dout, addr_error);input [7:0] addr;output [21:0] dout;output addr_error;reg [21:0] microrom [255:0]; assign dout = microrom[addr]; assign addr_error = ((addr>255) || (addr<0)) ? 1 : 0 ; initialbegin $readmemh("../verilog/memory/microrom.dat",microrom,0,255);endendmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -