OpenCores
URL https://opencores.org/ocsvn/hd63701/hd63701/trunk

Subversion Repositories hd63701

[/] [hd63701/] [trunk/] [HD63701_CORE.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 thasega
/***************************************************************************
2
       This file is part of "HD63701V0 Compatible Processor Core".
3
****************************************************************************/
4
`timescale 1ps / 1ps
5
`include "HD63701_defs.i"
6
 
7
module HD63701_Core
8
(
9
        input                                   CLKx2,
10
 
11
        input                                   RST,
12
        input                                   NMI,
13
        input                                   IRQ,
14
        input                                   IRQ2,
15
        input    [3:0]   IRQ2V,
16
 
17
        output                          RW,
18
        output  [15:0]   AD,
19
        output   [7:0]   DO,
20
        input     [7:0]  DI,
21
 
22
  // for DEBUG
23
        output                          CLKo,
24
        output    [5:0]  PH,
25
        output `mcwidth MC,
26
        output   [15:0]  REG_D,
27
        output   [15:0]  REG_X,
28
        output  [15:0]   REG_S,
29
        output   [5:0]   REG_C
30
);
31
 
32
reg CLK = 0;
33
always @( negedge CLKx2 ) CLK <= ~CLK;
34
assign CLKo = CLK;
35
 
36
wire `mcwidth mcode;
37
wire [7:0]         vect;
38
wire                      inte, fncu;
39
 
40
assign MC = mcode;
41
 
42
HD63701_SEQ   SEQ(.CLK(CLK),.RST(RST),
43
                                                .NMI(NMI),.IRQ(IRQ),.IRQ2(IRQ2),.IRQ2V(IRQ2V),
44
                                                .DI(DI),
45
                                                .mcout(mcode),.vect(vect),.inte(inte),.fncu(fncu),
46
                                                .PH(PH) );
47
 
48
HD63701_EXEC EXEC(.CLK(CLK),.RST(RST),.DI(DI),.AD(AD),.RW(RW),.DO(DO),
49
                                                .mcode(mcode),.vect(vect),.inte(inte),.fncu(fncu),
50
                                                .REG_D(REG_D),.REG_X(REG_X),.REG_S(REG_S),.REG_C(REG_C) );
51
 
52
endmodule
53
 
54
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.