📄 system.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: system.v description: This file is used to initalize the target system and set up the stimulus for the simulation*/`timescale 1 ns / 1nsmodule system;parameter CYCLE = 50;reg clock;reg reset;wire [7:0] addr;wire [7:0] data; // instantiation CPU and program rom CPU i_cpu(clock,reset,VMA,R_W,data,addr);pram i_pram(clock,VMA,R_W,addr,data);event reset_event; // declare reset_event // initialization and runinitial begin $fsdbDumpvars; #12600 $finish; end// stimulus// system resetinitial begin clock = 0; reset = 1; #(CYCLE/2) ->reset_event; // tirgger the event called reset_event reset = 0; #(CYCLE*4) ->reset_event; // tirgger the event called reset_event reset = 1; end// system clockalways begin #(CYCLE*5) clock = 0; forever #CYCLE clock = ~clock; end endmodule
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -