📄 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 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; wire NextCard;wire OK;wire Fail; wire [4:0] Total; wire NewCard; wire NewGame; wire [3:0] Card; wire BJ_clock; wire BJ_reset;wire Ace; \veri_test.BJsource i_BJsource (.NextCard(NextCard)// BJsource i_BJsource (.NextCard(NextCard) , .OK(OK) , .Fail(Fail) , .NewCard(NewCard) , .NewGame(NewGame) , .Card(Card) , .BJ_clock(BJ_clock) , .reset(BJ_reset));\veri_test.BJkernel i_BJkernel (.NewCard(NewCard)// BJkernel i_BJkernel (.NewCard(NewCard) , .NewGame(NewGame) , .Card(Card) , .BJ_clock(BJ_clock) , .reset(BJ_reset) , .NextCard(NextCard) , .OK(OK) , .Fail(Fail) , .Total(Total) , .Ace(Ace));// instantiation CPU and program rom CPU i_cpu(clock,reset,VMA,R_W,data,addr);pram i_pram(clock,VMA,R_W,addr,data);// initialization and runinitial begin $fsdbDumpvars; #12500 $finish; end// stimulus// system resetinitial begin clock = 0; reset = 1; #(CYCLE/2) reset = 0; #(CYCLE*4) 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 + -