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

Subversion Repositories m32632

[/] [m32632/] [trunk/] [rtl/] [STEUERUNG.v] - Blame information for rev 22

Go to most recent revision | Details | Compare with Previous | View Log

Line No. Rev Author Line
1 9 ns32kum
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
2
//
3
// This file is part of the M32632 project
4
// http://opencores.org/project,m32632
5
//
6
// Filename: STEUERUNG.v
7
// Version:  1.0
8
// Date:     30 May 2015
9
//
10
// Copyright (C) 2015 Udo Moeller
11
// 
12
// This source file may be used and distributed without 
13
// restriction provided that this copyright statement is not 
14
// removed from the file and that any derivative work contains 
15
// the original copyright notice and the associated disclaimer.
16
// 
17
// This source file is free software; you can redistribute it 
18
// and/or modify it under the terms of the GNU Lesser General 
19
// Public License as published by the Free Software Foundation;
20
// either version 2.1 of the License, or (at your option) any 
21
// later version. 
22
// 
23
// This source is distributed in the hope that it will be 
24
// useful, but WITHOUT ANY WARRANTY; without even the implied 
25
// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR 
26
// PURPOSE. See the GNU Lesser General Public License for more 
27
// details. 
28
// 
29
// You should have received a copy of the GNU Lesser General 
30
// Public License along with this source; if not, download it 
31
// from http://www.opencores.org/lgpl.shtml 
32
// 
33
// +++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
34
//
35
//      Modules contained in this file:
36
//      STEUERUNG       The control logic of M32632
37
//
38 11 ns32kum
// ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
39 9 ns32kum
 
40 11 ns32kum
module STEUERUNG( BCLK, BRESET, DC_ACC_DONE, ACB_ZERO, DONE, INT_N, NMI_N, DC_ABORT, IC_INIT, DC_INIT, SAVE_PC, CFG,
41
                                  IACC_STAT, PROT_ERROR, IC_DIN, PC_NEW, PSR, STRING, TRAPS, IC_READ, DATA_HOLD, LD_DIN, LD_IMME,
42 9 ns32kum
                                  WREN, WR_REG, GENSTAT, ILO, COP_OP, IC_USER, ACC_FELD, DISP, IC_TEX, IMME_Q, INFO_AU, LD_OUT,
43 11 ns32kum
                                  DETOIP, MMU_UPDATE, OPER, PC_ARCHI, PC_ICACHE, RDAA, RDAB, START, WMASKE, WRADR, RWVAL, Y_INIT,
44 9 ns32kum
                                  ENA_HK, STOP_CINV );
45
 
46
input                   BCLK;
47
input                   BRESET;
48
input                   DC_ACC_DONE;
49
input                   ACB_ZERO;
50
input                   DONE;
51
input                   INT_N;
52
input                   NMI_N;
53
input                   DC_ABORT;
54
input                   IC_INIT;
55
input                   DC_INIT;
56
input                   SAVE_PC;
57
input                   Y_INIT;
58
input    [8:0]   CFG;
59
input    [3:0]   IACC_STAT;
60
input                   PROT_ERROR;
61
input   [31:0]   IC_DIN;
62
input   [31:0]   PC_NEW;
63
input   [11:0]   PSR;
64
input    [4:0]   STRING;
65
input    [5:0]   TRAPS;
66
input                   STOP_CINV;
67
 
68
output                  IC_READ;
69
output                  DATA_HOLD;
70
output                  LD_DIN;
71
output                  LD_IMME;
72
output                  WREN;
73
output                  WR_REG;
74
output   [2:0]   GENSTAT;
75
output                  IC_USER;
76
output  [14:0]   ACC_FELD;
77
output  [31:0]   DISP;
78
output   [2:0]   IC_TEX;
79
output  [31:0]   IMME_Q;
80
output   [6:0]   INFO_AU;
81
output   [1:0]   LD_OUT;
82
output  [12:0]   DETOIP;
83
output   [1:0]   MMU_UPDATE;
84
output  [10:0]   OPER;
85
output  [31:0]   PC_ARCHI;
86
output  [31:0]   PC_ICACHE;
87
output   [7:0]   RDAA;
88
output   [7:0]   RDAB;
89
output   [1:0]   START;
90
output   [1:0]   WMASKE;
91
output   [5:0]   WRADR;
92
output   [2:0]   RWVAL;
93
output                  ENA_HK;
94
output                  ILO;
95
output  [23:0]   COP_OP;
96
 
97
wire    [55:0]   OPREG;
98
wire                    IC_ABORT;
99
wire                    INIT_DONE;
100
wire                    UNDEF;
101
wire                    ILLEGAL;
102
wire     [2:0]   ANZ_VAL;
103
wire    [31:0]   PC_SAVE;
104
wire                    NEW;
105
wire                    RESTART;
106
wire                    STOP_IC;
107
wire     [1:0]   ALSB;
108
wire     [2:0]   USED;
109
wire                    NEXT_ADR;
110
wire                    NEW_PC;
111
wire                    NEXT_PCA;
112
wire                    LOAD_PC;
113
wire    [31:0]   DISP_BR;
114
 
115
DECODER BEFEHLS_DEC(
116
        .BCLK(BCLK),
117
        .BRESET(BRESET),
118
        .ACC_DONE(DC_ACC_DONE),
119
        .ACB_ZERO(ACB_ZERO),
120
        .DONE(DONE),
121
        .NMI_N(NMI_N),
122
        .INT_N(INT_N),
123
        .DC_ABORT(DC_ABORT),
124
        .IC_ABORT(IC_ABORT),
125
        .INIT_DONE(INIT_DONE),
126
        .UNDEF(UNDEF),
127
        .ILL(ILLEGAL),
128
        .IC_READ(IC_READ),
129
        .ANZ_VAL(ANZ_VAL),
130
        .CFG(CFG),
131
        .OPREG(OPREG),
132
        .PC_SAVE(PC_SAVE),
133
        .PSR(PSR),
134
        .STRING(STRING),
135
        .TRAPS(TRAPS),
136
        .NEW(NEW),
137
        .WREN(WREN),
138
        .LD_DIN(LD_DIN),
139
        .LD_IMME(LD_IMME),
140
        .NEXT_PCA(NEXT_PCA),
141
        .WR_REG(WR_REG),
142
        .LOAD_PC(LOAD_PC),
143
        .GENSTAT(GENSTAT),
144
        .RESTART(RESTART),
145
        .STOP_IC(STOP_IC),
146
        .ACC_FELD(ACC_FELD),
147
        .DISP(DISP),
148
        .DISP_BR(DISP_BR),
149
        .IMME_Q(IMME_Q),
150
        .INFO_AU(INFO_AU),
151
        .LD_OUT(LD_OUT),
152
        .DETOIP(DETOIP),
153
        .MMU_UPDATE(MMU_UPDATE),
154
        .OPER(OPER),
155
        .RDAA(RDAA),
156
        .RDAB(RDAB),
157
        .START(START),
158
        .USED(USED),
159
        .WMASKE(WMASKE),
160
        .WRADR(WRADR),
161
        .RWVAL(RWVAL),
162
        .ENA_HK(ENA_HK),
163
        .ILO(ILO),
164
        .COP_OP(COP_OP),
165
        .STOP_CINV(STOP_CINV) );
166
 
167
ILL_UNDEF       CHECKER(
168
        .USER(PSR[8]),
169
        .ANZ_VAL(ANZ_VAL),
170
        .CFG(CFG[3:1]),
171
        .OPREG(OPREG[23:0]),
172
        .ILL(ILLEGAL),
173
        .UNDEF(UNDEF));
174
 
175
OPDEC_REG       OPC_REG(
176
        .BCLK(BCLK),
177
        .BRESET(BRESET),
178
        .NEW(NEW),
179
        .DC_INIT(DC_INIT),
180
        .IC_INIT(IC_INIT),
181
        .Y_INIT(Y_INIT),
182
        .RESTART(RESTART),
183
        .STOP_IC(STOP_IC),
184
        .ACC_STAT(IACC_STAT),
185
        .PROT_ERROR(PROT_ERROR),
186
        .ALSB(ALSB),
187
        .IC_DIN(IC_DIN),
188
        .USED(USED),
189
        .IC_READ(IC_READ),
190
        .NEXT_ADR(NEXT_ADR),
191
        .DATA_HOLD(DATA_HOLD),
192
        .NEW_PC(NEW_PC),
193
        .ABORT(IC_ABORT),
194
        .INIT_DONE(INIT_DONE),
195
        .ANZ_VAL(ANZ_VAL),
196
        .IC_TEX(IC_TEX),
197
        .OPREG(OPREG));
198
 
199
PROG_COUNTER    PCS(
200
        .BCLK(BCLK),
201
        .BRESET(BRESET),
202
        .NEXT_ADR(NEXT_ADR),
203
        .NEW_PC(NEW_PC),
204
        .NEXT_PCA(NEXT_PCA),
205
        .NEW(NEW),
206
        .LOAD_PC(LOAD_PC),
207
        .USER(PSR[8]),
208
        .SAVE_PC(SAVE_PC),
209
        .FPU_TRAP(TRAPS[0]),
210
        .ADIVAR(INFO_AU[3]),
211
        .DISP(DISP_BR),
212
        .PC_NEW(PC_NEW),
213
        .USED(USED),
214
        .IC_USER(IC_USER),
215
        .ALSB(ALSB),
216
        .PC_ARCHI(PC_ARCHI),
217
        .PC_ICACHE(PC_ICACHE),
218
        .PC_SAVE(PC_SAVE));
219
 
220
endmodule

powered by: WebSVN 2.1.0

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