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

Subversion Repositories or1200_hp

[/] [or1200_hp/] [trunk/] [rtl/] [rtl_cm2/] [verilog/] [or1200_top.v] - Blame information for rev 2

Details | Compare with Previous | View Log

Line No. Rev Author Line
1 2 tobil
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  OR1200 Top Level                                            ////
4
////                                                              ////
5
////  This file is part of the OpenRISC 1200 project              ////
6
////  http://www.opencores.org/cores/or1k/                        ////
7
////                                                              ////
8
////  Description                                                 ////
9
////  OR1200 Top Level                                            ////
10
////                                                              ////
11
////  To Do:                                                      ////
12
////   - make it smaller and faster                               ////
13
////                                                              ////
14
////  Author(s):                                                  ////
15
////      - Damjan Lampret, lampret@opencores.org                 ////
16
////                                                              ////
17
//////////////////////////////////////////////////////////////////////
18
////                                                              ////
19
//// Copyright (C) 2000 Authors and OPENCORES.ORG                 ////
20
////                                                              ////
21
//// This source file may be used and distributed without         ////
22
//// restriction provided that this copyright statement is not    ////
23
//// removed from the file and that any derivative work contains  ////
24
//// the original copyright notice and the associated disclaimer. ////
25
////                                                              ////
26
//// This source file is free software; you can redistribute it   ////
27
//// and/or modify it under the terms of the GNU Lesser General   ////
28
//// Public License as published by the Free Software Foundation; ////
29
//// either version 2.1 of the License, or (at your option) any   ////
30
//// later version.                                               ////
31
////                                                              ////
32
//// This source is distributed in the hope that it will be       ////
33
//// useful, but WITHOUT ANY WARRANTY; without even the implied   ////
34
//// warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR      ////
35
//// PURPOSE.  See the GNU Lesser General Public License for more ////
36
//// details.                                                     ////
37
////                                                              ////
38
//// You should have received a copy of the GNU Lesser General    ////
39
//// Public License along with this source; if not, download it   ////
40
//// from http://www.opencores.org/lgpl.shtml                     ////
41
////                                                              ////
42
//////////////////////////////////////////////////////////////////////
43
//
44
// CVS Revision History
45
//
46
// $Log: not supported by cvs2svn $
47
// Revision 1.12  2004/04/05 08:29:57  lampret
48
// Merged branch_qmem into main tree.
49
//
50
// Revision 1.10.4.9  2004/02/11 01:40:11  lampret
51
// preliminary HW breakpoints support in debug unit (by default disabled). To enable define OR1200_DU_HWBKPTS.
52
//
53
// Revision 1.10.4.8  2004/01/17 21:14:14  simons
54
// Errors fixed.
55
//
56
// Revision 1.10.4.7  2004/01/17 19:06:38  simons
57
// Error fixed.
58
//
59
// Revision 1.10.4.6  2004/01/17 18:39:48  simons
60
// Error fixed.
61
//
62
// Revision 1.10.4.5  2004/01/15 06:46:38  markom
63
// interface to debug changed; no more opselect; stb-ack protocol
64
//
65
// Revision 1.10.4.4  2003/12/09 11:46:49  simons
66
// Mbist nameing changed, Artisan ram instance signal names fixed, some synthesis waning fixed.
67
//
68
// Revision 1.10.4.3  2003/12/05 00:08:44  lampret
69
// Fixed instantiation name.
70
//
71
// Revision 1.10.4.2  2003/07/11 01:10:35  lampret
72
// Added three missing wire declarations. No functional changes.
73
//
74
// Revision 1.10.4.1  2003/07/08 15:36:37  lampret
75
// Added embedded memory QMEM.
76
//
77
// Revision 1.10  2002/12/08 08:57:56  lampret
78
// Added optional support for WB B3 specification (xwb_cti_o, xwb_bte_o). Made xwb_cab_o optional.
79
//
80
// Revision 1.9  2002/10/17 20:04:41  lampret
81
// Added BIST scan. Special VS RAMs need to be used to implement BIST.
82
//
83
// Revision 1.8  2002/08/18 19:54:22  lampret
84
// Added store buffer.
85
//
86
// Revision 1.7  2002/07/14 22:17:17  lampret
87
// Added simple trace buffer [only for Xilinx Virtex target]. Fixed instruction fetch abort when new exception is recognized.
88
//
89
// Revision 1.6  2002/03/29 15:16:56  lampret
90
// Some of the warnings fixed.
91
//
92
// Revision 1.5  2002/02/11 04:33:17  lampret
93
// Speed optimizations (removed duplicate _cyc_ and _stb_). Fixed D/IMMU cache-inhibit attr.
94
//
95
// Revision 1.4  2002/02/01 19:56:55  lampret
96
// Fixed combinational loops.
97
//
98
// Revision 1.3  2002/01/28 01:16:00  lampret
99
// Changed 'void' nop-ops instead of insn[0] to use insn[16]. Debug unit stalls the tick timer. Prepared new flag generation for add and and insns. Blocked DC/IC while they are turned off. Fixed I/D MMU SPRs layout except WAYs. TODO: smart IC invalidate, l.j 2 and TLB ways.
100
//
101
// Revision 1.2  2002/01/18 07:56:00  lampret
102
// No more low/high priority interrupts (PICPR removed). Added tick timer exception. Added exception prefix (SR[EPH]). Fixed single-step bug whenreading NPC.
103
//
104
// Revision 1.1  2002/01/03 08:16:15  lampret
105
// New prefixes for RTL files, prefixed module names. Updated cache controllers and MMUs.
106
//
107
// Revision 1.13  2001/11/23 08:38:51  lampret
108
// Changed DSR/DRR behavior and exception detection.
109
//
110
// Revision 1.12  2001/11/20 00:57:22  lampret
111
// Fixed width of du_except.
112
//
113
// Revision 1.11  2001/11/18 08:36:28  lampret
114
// For GDB changed single stepping and disabled trap exception.
115
//
116
// Revision 1.10  2001/10/21 17:57:16  lampret
117
// Removed params from generic_XX.v. Added translate_off/on in sprs.v and id.v. Removed spr_addr from dc.v and ic.v. Fixed CR+LF.
118
//
119
// Revision 1.9  2001/10/14 13:12:10  lampret
120
// MP3 version.
121
//
122
// Revision 1.1.1.1  2001/10/06 10:18:35  igorm
123
// no message
124
//
125
// Revision 1.4  2001/08/13 03:36:20  lampret
126
// Added cfg regs. Moved all defines into one defines.v file. More cleanup.
127
//
128
// Revision 1.3  2001/08/09 13:39:33  lampret
129
// Major clean-up.
130
//
131
// Revision 1.2  2001/07/22 03:31:54  lampret
132
// Fixed RAM's oen bug. Cache bypass under development.
133
//
134
// Revision 1.1  2001/07/20 00:46:21  lampret
135
// Development version of RTL. Libraries are missing.
136
//
137
//
138
 
139
// synopsys translate_off
140
`include "timescale.v"
141
// synopsys translate_on
142
`include "or1200_defines.v"
143
 
144
module or1200_top_cm2(
145
                clk_i_cml_1,
146
                cmls,
147
 
148
        // System
149
        clk_i, rst_i, pic_ints_i, clmode_i,
150
 
151
        // Instruction WISHBONE INTERFACE
152
        //iwb_clk_i, iwb_rst_i, 
153
        iwb_ack_i, iwb_err_i, iwb_rty_i, iwb_dat_i,
154
        iwb_cyc_o, iwb_adr_o, iwb_stb_o, iwb_we_o, iwb_sel_o, iwb_dat_o,
155
`ifdef OR1200_WB_CAB
156
        iwb_cab_o,
157
`endif
158
`ifdef OR1200_WB_B3
159
        iwb_cti_o, iwb_bte_o,
160
`endif
161
        // Data WISHBONE INTERFACE
162
        //dwb_clk_i, dwb_rst_i, 
163
        dwb_ack_i, dwb_err_i, dwb_rty_i, dwb_dat_i,
164
        dwb_cyc_o, dwb_adr_o, dwb_stb_o, dwb_we_o, dwb_sel_o, dwb_dat_o,
165
`ifdef OR1200_WB_CAB
166
        dwb_cab_o,
167
`endif
168
`ifdef OR1200_WB_B3
169
        dwb_cti_o, dwb_bte_o,
170
`endif
171
 
172
        // External Debug Interface
173
        dbg_stall_i, dbg_ewt_i, dbg_lss_o, dbg_is_o, dbg_wp_o, dbg_bp_o,
174
        dbg_stb_i, dbg_we_i, dbg_adr_i, dbg_dat_i, dbg_dat_o, dbg_ack_o,
175
 
176
`ifdef OR1200_BIST
177
        // RAM BIST
178
        mbist_si_i, mbist_so_o, mbist_ctrl_i,
179
`endif
180
        // Power Management
181
        pm_cpustall_i,
182
        pm_clksd_o, pm_dc_gate_o, pm_ic_gate_o, pm_dmmu_gate_o,
183
        pm_immu_gate_o, pm_tt_gate_o, pm_cpu_gate_o, pm_wakeup_o, pm_lvolt_o
184
 
185
);
186
 
187
 
188
input clk_i_cml_1;
189
input cmls;
190
reg  iwb_cyc_o_cml_1;
191
reg [ 32 - 1 : 0 ] iwb_adr_o_cml_1;
192
reg  iwb_stb_o_cml_1;
193
reg  iwb_we_o_cml_1;
194
reg [ 3 : 0 ] iwb_sel_o_cml_1;
195
reg [ 32 - 1 : 0 ] iwb_dat_o_cml_1;
196
reg  iwb_cab_o_cml_1;
197
reg  dwb_cyc_o_cml_1;
198
reg [ 32 - 1 : 0 ] dwb_adr_o_cml_1;
199
reg  dwb_stb_o_cml_1;
200
reg  dwb_we_o_cml_1;
201
reg [ 3 : 0 ] dwb_sel_o_cml_1;
202
reg [ 32 - 1 : 0 ] dwb_dat_o_cml_1;
203
reg  dwb_cab_o_cml_1;
204
reg [ 1 : 0 ] dbg_is_o_cml_1;
205
reg  dbg_ack_o_cml_1;
206
reg [ 31 : 0 ] spr_cs_cml_1;
207
 
208
 
209
 
210
parameter dw = `OR1200_OPERAND_WIDTH;
211
parameter aw = `OR1200_OPERAND_WIDTH;
212
parameter ppic_ints = `OR1200_PIC_INTS;
213
 
214
//
215
// I/O
216
//
217
 
218
//
219
// System
220
//
221
input                   clk_i;
222
input                   rst_i;
223
input   [1:0]            clmode_i;       // 00 WB=RISC, 01 WB=RISC/2, 10 N/A, 11 WB=RISC/4
224
input   [ppic_ints-1:0]  pic_ints_i;
225
 
226
//
227
// Instruction WISHBONE interface
228
//
229
//input                 iwb_clk_i;      // clock input
230
//input                 iwb_rst_i;      // reset input
231
wire iwb_clk_i = clk_i;
232
wire iwb_rst_i = rst_i;
233
 
234
input                   iwb_ack_i;      // normal termination
235
input                   iwb_err_i;      // termination w/ error
236
input                   iwb_rty_i;      // termination w/ retry
237
input   [dw-1:0] iwb_dat_i;      // input data bus
238
output                  iwb_cyc_o;      // cycle valid output
239
output  [aw-1:0] iwb_adr_o;      // address bus outputs
240
output                  iwb_stb_o;      // strobe output
241
output                  iwb_we_o;       // indicates write transfer
242
output  [3:0]            iwb_sel_o;      // byte select outputs
243
output  [dw-1:0] iwb_dat_o;      // output data bus
244
`ifdef OR1200_WB_CAB
245
output                  iwb_cab_o;      // indicates consecutive address burst
246
`endif
247
`ifdef OR1200_WB_B3
248
output  [2:0]            iwb_cti_o;      // cycle type identifier
249
output  [1:0]            iwb_bte_o;      // burst type extension
250
`endif
251
 
252
//
253
// Data WISHBONE interface
254
//
255
//input                 dwb_clk_i;      // clock input
256
//input                 dwb_rst_i;      // reset input
257
wire dwb_clk_i = clk_i;
258
wire dwb_rst_i = rst_i;
259
 
260
input                   dwb_ack_i;      // normal termination
261
input                   dwb_err_i;      // termination w/ error
262
input                   dwb_rty_i;      // termination w/ retry
263
input   [dw-1:0] dwb_dat_i;      // input data bus
264
output                  dwb_cyc_o;      // cycle valid output
265
output  [aw-1:0] dwb_adr_o;      // address bus outputs
266
output                  dwb_stb_o;      // strobe output
267
output                  dwb_we_o;       // indicates write transfer
268
output  [3:0]            dwb_sel_o;      // byte select outputs
269
output  [dw-1:0] dwb_dat_o;      // output data bus
270
`ifdef OR1200_WB_CAB
271
output                  dwb_cab_o;      // indicates consecutive address burst
272
`endif
273
`ifdef OR1200_WB_B3
274
output  [2:0]            dwb_cti_o;      // cycle type identifier
275
output  [1:0]            dwb_bte_o;      // burst type extension
276
`endif
277
 
278
//
279
// External Debug Interface
280
//
281
input                   dbg_stall_i;    // External Stall Input
282
input                   dbg_ewt_i;      // External Watchpoint Trigger Input
283
output  [3:0]            dbg_lss_o;      // External Load/Store Unit Status
284
output  [1:0]            dbg_is_o;       // External Insn Fetch Status
285
output  [10:0]           dbg_wp_o;       // Watchpoints Outputs
286
output                  dbg_bp_o;       // Breakpoint Output
287
input                   dbg_stb_i;      // External Address/Data Strobe
288
input                   dbg_we_i;       // External Write Enable
289
input   [aw-1:0] dbg_adr_i;      // External Address Input
290
input   [dw-1:0] dbg_dat_i;      // External Data Input
291
output  [dw-1:0] dbg_dat_o;      // External Data Output
292
output                  dbg_ack_o;      // External Data Acknowledge (not WB compatible)
293
 
294
`ifdef OR1200_BIST
295
//
296
// RAM BIST
297
//
298
input mbist_si_i;
299
input [`OR1200_MBIST_CTRL_WIDTH - 1:0] mbist_ctrl_i;
300
output mbist_so_o;
301
`endif
302
 
303
//
304
// Power Management
305
//
306
input                   pm_cpustall_i;
307
output  [3:0]            pm_clksd_o;
308
output                  pm_dc_gate_o;
309
output                  pm_ic_gate_o;
310
output                  pm_dmmu_gate_o;
311
output                  pm_immu_gate_o;
312
output                  pm_tt_gate_o;
313
output                  pm_cpu_gate_o;
314
output                  pm_wakeup_o;
315
output                  pm_lvolt_o;
316
 
317
 
318
//
319
// Internal wires and regs
320
//
321
 
322
//
323
// DC to SB
324
//
325
wire    [dw-1:0] dcsb_dat_dc;
326
wire    [aw-1:0] dcsb_adr_dc;
327
wire                    dcsb_cyc_dc;
328
wire                    dcsb_stb_dc;
329
wire                    dcsb_we_dc;
330
wire    [3:0]            dcsb_sel_dc;
331
wire                    dcsb_cab_dc;
332
wire    [dw-1:0] dcsb_dat_sb;
333
wire                    dcsb_ack_sb;
334
wire                    dcsb_err_sb;
335
 
336
//
337
// SB to BIU
338
//
339
wire    [dw-1:0] sbbiu_dat_sb;
340
wire    [aw-1:0] sbbiu_adr_sb;
341
wire                    sbbiu_cyc_sb;
342
wire                    sbbiu_stb_sb;
343
wire                    sbbiu_we_sb;
344
wire    [3:0]            sbbiu_sel_sb;
345
wire                    sbbiu_cab_sb;
346
wire    [dw-1:0] sbbiu_dat_biu;
347
wire                    sbbiu_ack_biu;
348
wire                    sbbiu_err_biu;
349
 
350
//
351
// IC to BIU
352
//
353
wire    [dw-1:0] icbiu_dat_ic;
354
wire    [aw-1:0] icbiu_adr_ic;
355
wire                    icbiu_cyc_ic;
356
wire                    icbiu_stb_ic;
357
wire                    icbiu_we_ic;
358
wire    [3:0]            icbiu_sel_ic;
359
wire    [3:0]            icbiu_tag_ic;
360
wire                    icbiu_cab_ic;
361
wire    [dw-1:0] icbiu_dat_biu;
362
wire                    icbiu_ack_biu;
363
wire                    icbiu_err_biu;
364
wire    [3:0]            icbiu_tag_biu;
365
 
366
//
367
// CPU's SPR access to various RISC units (shared wires)
368
//
369
wire                    supv;
370
wire    [aw-1:0] spr_addr;
371
wire    [dw-1:0] spr_dat_cpu;
372
wire    [31:0]           spr_cs;
373
wire                    spr_we;
374
 
375
//
376
// DMMU and CPU
377
//
378
wire                    dmmu_en;
379
wire    [31:0]           spr_dat_dmmu;
380
 
381
//
382
// DMMU and QMEM
383
//
384
wire                    qmemdmmu_err_qmem;
385
wire    [3:0]            qmemdmmu_tag_qmem;
386
wire    [aw-1:0] qmemdmmu_adr_dmmu;
387
wire                    qmemdmmu_cycstb_dmmu;
388
wire                    qmemdmmu_ci_dmmu;
389
 
390
//
391
// CPU and data memory subsystem
392
//
393
wire                    dc_en;
394
wire    [31:0]           dcpu_adr_cpu;
395
wire                    dcpu_cycstb_cpu;
396
wire                    dcpu_we_cpu;
397
wire    [3:0]            dcpu_sel_cpu;
398
wire    [3:0]            dcpu_tag_cpu;
399
wire    [31:0]           dcpu_dat_cpu;
400
wire    [31:0]           dcpu_dat_qmem;
401
wire                    dcpu_ack_qmem;
402
wire                    dcpu_rty_qmem;
403
wire                    dcpu_err_dmmu;
404
wire    [3:0]            dcpu_tag_dmmu;
405
 
406
//
407
// IMMU and CPU
408
//
409
wire                    immu_en;
410
wire    [31:0]           spr_dat_immu;
411
 
412
//
413
// CPU and insn memory subsystem
414
//
415
wire                    ic_en;
416
wire    [31:0]           icpu_adr_cpu;
417
wire                    icpu_cycstb_cpu;
418
wire    [3:0]            icpu_sel_cpu;
419
wire    [3:0]            icpu_tag_cpu;
420
wire    [31:0]           icpu_dat_qmem;
421
wire                    icpu_ack_qmem;
422
wire    [31:0]           icpu_adr_immu;
423
wire                    icpu_err_immu;
424
wire    [3:0]            icpu_tag_immu;
425
wire                    icpu_rty_immu;
426
 
427
//
428
// IMMU and QMEM
429
//
430
wire    [aw-1:0] qmemimmu_adr_immu;
431
wire                    qmemimmu_rty_qmem;
432
wire                    qmemimmu_err_qmem;
433
wire    [3:0]            qmemimmu_tag_qmem;
434
wire                    qmemimmu_cycstb_immu;
435
wire                    qmemimmu_ci_immu;
436
 
437
//
438
// QMEM and IC
439
//
440
wire    [aw-1:0] icqmem_adr_qmem;
441
wire                    icqmem_rty_ic;
442
wire                    icqmem_err_ic;
443
wire    [3:0]            icqmem_tag_ic;
444
wire                    icqmem_cycstb_qmem;
445
wire                    icqmem_ci_qmem;
446
wire    [31:0]           icqmem_dat_ic;
447
wire                    icqmem_ack_ic;
448
 
449
//
450
// QMEM and DC
451
//
452
wire    [aw-1:0] dcqmem_adr_qmem;
453
wire                    dcqmem_rty_dc;
454
wire                    dcqmem_err_dc;
455
wire    [3:0]            dcqmem_tag_dc;
456
wire                    dcqmem_cycstb_qmem;
457
wire                    dcqmem_ci_qmem;
458
wire    [31:0]           dcqmem_dat_dc;
459
wire    [31:0]           dcqmem_dat_qmem;
460
wire                    dcqmem_we_qmem;
461
wire    [3:0]            dcqmem_sel_qmem;
462
wire                    dcqmem_ack_dc;
463
 
464
//
465
// Connection between CPU and PIC
466
//
467
wire    [dw-1:0] spr_dat_pic;
468
wire                    pic_wakeup;
469
wire                    sig_int;
470
 
471
//
472
// Connection between CPU and PM
473
//
474
wire    [dw-1:0] spr_dat_pm;
475
 
476
//
477
// CPU and TT
478
//
479
wire    [dw-1:0] spr_dat_tt;
480
wire                    sig_tick;
481
 
482
//
483
// Debug port and caches/MMUs
484
//
485
wire    [dw-1:0] spr_dat_du;
486
wire                    du_stall;
487
wire    [dw-1:0] du_addr;
488
wire    [dw-1:0] du_dat_du;
489
wire                    du_read;
490
wire                    du_write;
491
wire    [12:0]           du_except;
492
wire    [`OR1200_DU_DSR_WIDTH-1:0]     du_dsr;
493
wire    [dw-1:0] du_dat_cpu;
494
wire                    du_hwbkpt;
495
 
496
wire                    ex_freeze;
497
wire    [31:0]           ex_insn;
498
wire    [31:0]           id_pc;
499
wire    [`OR1200_BRANCHOP_WIDTH-1:0]     branch_op;
500
wire    [31:0]           spr_dat_npc;
501
wire    [31:0]           rf_dataw;
502
 
503
`ifdef OR1200_BIST
504
//
505
// RAM BIST
506
//
507
wire                    mbist_immu_so;
508
wire                    mbist_ic_so;
509
wire                    mbist_dmmu_so;
510
wire                    mbist_dc_so;
511
wire      mbist_qmem_so;
512
wire                    mbist_immu_si = mbist_si_i;
513
wire                    mbist_ic_si = mbist_immu_so;
514
wire                    mbist_qmem_si = mbist_ic_so;
515
wire                    mbist_dmmu_si = mbist_qmem_so;
516
wire                    mbist_dc_si = mbist_dmmu_so;
517
assign                  mbist_so_o = mbist_dc_so;
518
`endif
519
 
520
wire  [3:0] icqmem_sel_qmem;
521
wire  [3:0] icqmem_tag_qmem;
522
wire  [3:0] dcqmem_tag_qmem;
523
 
524
//
525
// Instantiation of Instruction WISHBONE BIU
526
//
527
or1200_iwb_biu_cm2 iwb_biu(
528
                .clk_i_cml_1(clk_i_cml_1),
529
        // RISC clk, rst and clock control
530
        .clk(clk_i),
531
        .rst(rst_i),
532
        .clmode(clmode_i),
533
 
534
        // WISHBONE interface
535
        .wb_clk_i(iwb_clk_i),
536
        .wb_rst_i(iwb_rst_i),
537
        .wb_ack_i(iwb_ack_i),
538
        .wb_err_i(iwb_err_i),
539
        .wb_rty_i(iwb_rty_i),
540
        .wb_dat_i(iwb_dat_i),
541
        .wb_cyc_o(iwb_cyc_o),
542
        .wb_adr_o(iwb_adr_o),
543
        .wb_stb_o(iwb_stb_o),
544
        .wb_we_o(iwb_we_o),
545
        .wb_sel_o(iwb_sel_o),
546
        .wb_dat_o(iwb_dat_o),
547
`ifdef OR1200_WB_CAB
548
        .wb_cab_o(iwb_cab_o),
549
`endif
550
`ifdef OR1200_WB_B3
551
        .wb_cti_o(iwb_cti_o),
552
        .wb_bte_o(iwb_bte_o),
553
`endif
554
 
555
        // Internal RISC bus
556
        .biu_dat_i(icbiu_dat_ic),
557
        .biu_adr_i(icbiu_adr_ic),
558
        .biu_cyc_i(icbiu_cyc_ic),
559
        .biu_stb_i(icbiu_stb_ic),
560
        .biu_we_i(icbiu_we_ic),
561
        .biu_sel_i(icbiu_sel_ic),
562
        .biu_cab_i(icbiu_cab_ic),
563
        .biu_dat_o(icbiu_dat_biu),
564
        .biu_ack_o(icbiu_ack_biu),
565
        .biu_err_o(icbiu_err_biu)
566
);
567
 
568
//
569
// Instantiation of Data WISHBONE BIU
570
//
571
or1200_wb_biu_cm2 dwb_biu(
572
                .clk_i_cml_1(clk_i_cml_1),
573
        // RISC clk, rst and clock control
574
        .clk(clk_i),
575
        .rst(rst_i),
576
        .clmode(clmode_i),
577
 
578
        // WISHBONE interface
579
        .wb_clk_i(dwb_clk_i),
580
        .wb_rst_i(dwb_rst_i),
581
        .wb_ack_i(dwb_ack_i),
582
        .wb_err_i(dwb_err_i),
583
        .wb_rty_i(dwb_rty_i),
584
        .wb_dat_i(dwb_dat_i),
585
        .wb_cyc_o(dwb_cyc_o),
586
        .wb_adr_o(dwb_adr_o),
587
        .wb_stb_o(dwb_stb_o),
588
        .wb_we_o(dwb_we_o),
589
        .wb_sel_o(dwb_sel_o),
590
        .wb_dat_o(dwb_dat_o),
591
`ifdef OR1200_WB_CAB
592
        .wb_cab_o(dwb_cab_o),
593
`endif
594
`ifdef OR1200_WB_B3
595
        .wb_cti_o(dwb_cti_o),
596
        .wb_bte_o(dwb_bte_o),
597
`endif
598
 
599
        // Internal RISC bus
600
        .biu_dat_i(sbbiu_dat_sb),
601
        .biu_adr_i(sbbiu_adr_sb),
602
        .biu_cyc_i(sbbiu_cyc_sb),
603
        .biu_stb_i(sbbiu_stb_sb),
604
        .biu_we_i(sbbiu_we_sb),
605
        .biu_sel_i(sbbiu_sel_sb),
606
        .biu_cab_i(sbbiu_cab_sb),
607
        .biu_dat_o(sbbiu_dat_biu),
608
        .biu_ack_o(sbbiu_ack_biu),
609
        .biu_err_o(sbbiu_err_biu)
610
);
611
 
612
//
613
// Instantiation of IMMU
614
//
615
wire spr_cs_group_immu;
616
assign spr_cs_group_immu = spr_cs[`OR1200_SPR_GROUP_IMMU];
617
or1200_immu_top_cm2 or1200_immu_top(
618
                .clk_i_cml_1(clk_i_cml_1),
619
                .cmls(cmls),
620
        // Rst and clk
621
        .clk(clk_i),
622
        .rst(rst_i),
623
 
624
`ifdef OR1200_BIST
625
        // RAM BIST
626
        .mbist_si_i(mbist_immu_si),
627
        .mbist_so_o(mbist_immu_so),
628
        .mbist_ctrl_i(mbist_ctrl_i),
629
`endif
630
 
631
        // CPU and IMMU
632
        .ic_en(ic_en),
633
        .immu_en(immu_en),
634
        .supv(supv),
635
        .icpu_adr_i(icpu_adr_cpu),
636
        .icpu_cycstb_i(icpu_cycstb_cpu),
637
        .icpu_adr_o(icpu_adr_immu),
638
        .icpu_tag_o(icpu_tag_immu),
639
        .icpu_rty_o(icpu_rty_immu),
640
        .icpu_err_o(icpu_err_immu),
641
 
642
        // SPR access
643
        .spr_cs(spr_cs_group_immu),
644
        .spr_write(spr_we),
645
        .spr_addr(spr_addr),
646
        .spr_dat_i(spr_dat_cpu),
647
        .spr_dat_o(spr_dat_immu),
648
 
649
        // QMEM and IMMU
650
        .qmemimmu_rty_i(qmemimmu_rty_qmem),
651
        .qmemimmu_err_i(qmemimmu_err_qmem),
652
        .qmemimmu_tag_i(qmemimmu_tag_qmem),
653
        .qmemimmu_adr_o(qmemimmu_adr_immu),
654
        .qmemimmu_cycstb_o(qmemimmu_cycstb_immu),
655
        .qmemimmu_ci_o(qmemimmu_ci_immu)
656
);
657
 
658
//
659
// Instantiation of Instruction Cache
660
//
661
wire spr_cs_group_ic;
662
 
663
// SynEDA CoreMultiplier
664
// assignment(s): spr_cs_group_ic
665
// replace(s): spr_cs
666
assign spr_cs_group_ic = spr_cs_cml_1[`OR1200_SPR_GROUP_IC];
667
or1200_ic_top_cm2 or1200_ic_top(
668
                .clk_i_cml_1(clk_i_cml_1),
669
                .cmls(cmls),
670
        .clk(clk_i),
671
        .rst(rst_i),
672
 
673
`ifdef OR1200_BIST
674
        // RAM BIST
675
        .mbist_si_i(mbist_ic_si),
676
        .mbist_so_o(mbist_ic_so),
677
        .mbist_ctrl_i(mbist_ctrl_i),
678
`endif
679
 
680
        // IC and QMEM
681
        .ic_en(ic_en),
682
        .icqmem_adr_i(icqmem_adr_qmem),
683
        .icqmem_cycstb_i(icqmem_cycstb_qmem),
684
        .icqmem_ci_i(icqmem_ci_qmem),
685
        .icqmem_sel_i(icqmem_sel_qmem),
686
        .icqmem_tag_i(icqmem_tag_qmem),
687
        .icqmem_dat_o(icqmem_dat_ic),
688
        .icqmem_ack_o(icqmem_ack_ic),
689
        .icqmem_rty_o(icqmem_rty_ic),
690
        .icqmem_err_o(icqmem_err_ic),
691
        .icqmem_tag_o(icqmem_tag_ic),
692
 
693
        // SPR access
694
        .spr_cs(spr_cs_group_ic),
695
        .spr_write(spr_we),
696
        .spr_dat_i(spr_dat_cpu),
697
 
698
        // IC and BIU
699
        .icbiu_dat_o(icbiu_dat_ic),
700
        .icbiu_adr_o(icbiu_adr_ic),
701
        .icbiu_cyc_o(icbiu_cyc_ic),
702
        .icbiu_stb_o(icbiu_stb_ic),
703
        .icbiu_we_o(icbiu_we_ic),
704
        .icbiu_sel_o(icbiu_sel_ic),
705
        .icbiu_cab_o(icbiu_cab_ic),
706
        .icbiu_dat_i(icbiu_dat_biu),
707
        .icbiu_ack_i(icbiu_ack_biu),
708
        .icbiu_err_i(icbiu_err_biu)
709
);
710
 
711
//
712
// Instantiation of Instruction Cache
713
//
714
or1200_cpu_cm2 or1200_cpu(
715
                .clk_i_cml_1(clk_i_cml_1),
716
                .cmls(cmls),
717
        .clk(clk_i),
718
        .rst(rst_i),
719
 
720
        // Connection QMEM and IFETCHER inside CPU
721
        .ic_en(ic_en),
722
        .icpu_adr_o(icpu_adr_cpu),
723
        .icpu_cycstb_o(icpu_cycstb_cpu),
724
        .icpu_sel_o(icpu_sel_cpu),
725
        .icpu_tag_o(icpu_tag_cpu),
726
        .icpu_dat_i(icpu_dat_qmem),
727
        .icpu_ack_i(icpu_ack_qmem),
728
        .icpu_rty_i(icpu_rty_immu),
729
        .icpu_adr_i(icpu_adr_immu),
730
        .icpu_err_i(icpu_err_immu),
731
        .icpu_tag_i(icpu_tag_immu),
732
 
733
        // Connection CPU to external Debug port
734
        .ex_freeze(ex_freeze),
735
        .ex_insn(ex_insn),
736
        .id_pc(id_pc),
737
        .branch_op(branch_op),
738
        .du_stall(du_stall),
739
        .du_addr(du_addr),
740
        .du_dat_du(du_dat_du),
741
        .du_read(du_read),
742
        .du_write(du_write),
743
        .du_dsr(du_dsr),
744
        .du_except(du_except),
745
        .du_dat_cpu(du_dat_cpu),
746
        .du_hwbkpt(du_hwbkpt),
747
        .rf_dataw(rf_dataw),
748
 
749
 
750
        // Connection IMMU and CPU internally
751
        .immu_en(immu_en),
752
 
753
        // Connection QMEM and CPU
754
        .dc_en(dc_en),
755
        .dcpu_adr_o(dcpu_adr_cpu),
756
        .dcpu_cycstb_o(dcpu_cycstb_cpu),
757
        .dcpu_we_o(dcpu_we_cpu),
758
        .dcpu_sel_o(dcpu_sel_cpu),
759
        .dcpu_tag_o(dcpu_tag_cpu),
760
        .dcpu_dat_o(dcpu_dat_cpu),
761
        .dcpu_dat_i(dcpu_dat_qmem),
762
        .dcpu_ack_i(dcpu_ack_qmem),
763
        .dcpu_rty_i(dcpu_rty_qmem),
764
        .dcpu_err_i(dcpu_err_dmmu),
765
        .dcpu_tag_i(dcpu_tag_dmmu),
766
 
767
        // Connection DMMU and CPU internally
768
        .dmmu_en(dmmu_en),
769
 
770
        // Connection PIC and CPU's EXCEPT
771
        .sig_int(sig_int),
772
        .sig_tick(sig_tick),
773
 
774
        // SPRs
775
        .supv(supv),
776
        .spr_addr(spr_addr),
777
        .spr_dat_cpu(spr_dat_cpu),
778
        .spr_dat_pic(spr_dat_pic),
779
        .spr_dat_tt(spr_dat_tt),
780
        .spr_dat_pm(spr_dat_pm),
781
        .spr_dat_dmmu(spr_dat_dmmu),
782
        .spr_dat_immu(spr_dat_immu),
783
        .spr_dat_du(spr_dat_du),
784
        .spr_dat_npc(spr_dat_npc),
785
        .spr_cs(spr_cs),
786
        .spr_we(spr_we)
787
);
788
 
789
//
790
// Instantiation of DMMU
791
//
792
wire spr_cs_group_dmmu;
793
assign spr_cs_group_dmmu = spr_cs[`OR1200_SPR_GROUP_DMMU];
794
or1200_dmmu_top_cm2 or1200_dmmu_top(
795
                .clk_i_cml_1(clk_i_cml_1),
796
                .cmls(cmls),
797
        // Rst and clk
798
        .clk(clk_i),
799
        .rst(rst_i),
800
 
801
`ifdef OR1200_BIST
802
        // RAM BIST
803
        .mbist_si_i(mbist_dmmu_si),
804
        .mbist_so_o(mbist_dmmu_so),
805
        .mbist_ctrl_i(mbist_ctrl_i),
806
`endif
807
 
808
        // CPU i/f
809
        .dc_en(dc_en),
810
        .dmmu_en(dmmu_en),
811
        .supv(supv),
812
        .dcpu_adr_i(dcpu_adr_cpu),
813
        .dcpu_cycstb_i(dcpu_cycstb_cpu),
814
        .dcpu_we_i(dcpu_we_cpu),
815
        .dcpu_tag_o(dcpu_tag_dmmu),
816
        .dcpu_err_o(dcpu_err_dmmu),
817
 
818
        // SPR access
819
        .spr_cs(spr_cs_group_dmmu),
820
        .spr_write(spr_we),
821
        .spr_addr(spr_addr),
822
        .spr_dat_i(spr_dat_cpu),
823
        .spr_dat_o(spr_dat_dmmu),
824
 
825
        // QMEM and DMMU
826
        .qmemdmmu_err_i(qmemdmmu_err_qmem),
827
        .qmemdmmu_tag_i(qmemdmmu_tag_qmem),
828
        .qmemdmmu_adr_o(qmemdmmu_adr_dmmu),
829
        .qmemdmmu_cycstb_o(qmemdmmu_cycstb_dmmu),
830
        .qmemdmmu_ci_o(qmemdmmu_ci_dmmu)
831
);
832
 
833
//
834
// Instantiation of Data Cache
835
//
836
wire spr_cs_group_dc;
837
 
838
// SynEDA CoreMultiplier
839
// assignment(s): spr_cs_group_dc
840
// replace(s): spr_cs
841
assign spr_cs_group_dc = spr_cs_cml_1[`OR1200_SPR_GROUP_DC];
842
or1200_dc_top_cm2 or1200_dc_top(
843
                .clk_i_cml_1(clk_i_cml_1),
844
                .cmls(cmls),
845
        .clk(clk_i),
846
        .rst(rst_i),
847
 
848
`ifdef OR1200_BIST
849
        // RAM BIST
850
        .mbist_si_i(mbist_dc_si),
851
        .mbist_so_o(mbist_dc_so),
852
        .mbist_ctrl_i(mbist_ctrl_i),
853
`endif
854
 
855
        // DC and QMEM
856
        .dc_en(dc_en),
857
        .dcqmem_adr_i(dcqmem_adr_qmem),
858
        .dcqmem_cycstb_i(dcqmem_cycstb_qmem),
859
        .dcqmem_ci_i(dcqmem_ci_qmem),
860
        .dcqmem_we_i(dcqmem_we_qmem),
861
        .dcqmem_sel_i(dcqmem_sel_qmem),
862
        .dcqmem_tag_i(dcqmem_tag_qmem),
863
        .dcqmem_dat_i(dcqmem_dat_qmem),
864
        .dcqmem_dat_o(dcqmem_dat_dc),
865
        .dcqmem_ack_o(dcqmem_ack_dc),
866
        .dcqmem_rty_o(dcqmem_rty_dc),
867
        .dcqmem_err_o(dcqmem_err_dc),
868
        .dcqmem_tag_o(dcqmem_tag_dc),
869
 
870
        // SPR access
871
        .spr_cs(spr_cs_group_dc),
872
        .spr_write(spr_we),
873
        .spr_dat_i(spr_dat_cpu),
874
 
875
        // DC and BIU
876
        .dcsb_dat_o(dcsb_dat_dc),
877
        .dcsb_adr_o(dcsb_adr_dc),
878
        .dcsb_cyc_o(dcsb_cyc_dc),
879
        .dcsb_stb_o(dcsb_stb_dc),
880
        .dcsb_we_o(dcsb_we_dc),
881
        .dcsb_sel_o(dcsb_sel_dc),
882
        .dcsb_cab_o(dcsb_cab_dc),
883
        .dcsb_dat_i(dcsb_dat_sb),
884
        .dcsb_ack_i(dcsb_ack_sb),
885
        .dcsb_err_i(dcsb_err_sb)
886
);
887
 
888
//
889
// Instantiation of embedded memory - qmem
890
//
891
or1200_qmem_top_cm2 or1200_qmem_top(
892
                .clk_i_cml_1(clk_i_cml_1),
893
        .clk(clk_i),
894
        .rst(rst_i),
895
 
896
`ifdef OR1200_BIST
897
        // RAM BIST
898
        .mbist_si_i(mbist_qmem_si),
899
        .mbist_so_o(mbist_qmem_so),
900
        .mbist_ctrl_i(mbist_ctrl_i),
901
`endif
902
 
903
        // QMEM and CPU/IMMU
904
        .qmemimmu_adr_i(qmemimmu_adr_immu),
905
        .qmemimmu_cycstb_i(qmemimmu_cycstb_immu),
906
        .qmemimmu_ci_i(qmemimmu_ci_immu),
907
        .qmemicpu_sel_i(icpu_sel_cpu),
908
        .qmemicpu_tag_i(icpu_tag_cpu),
909
        .qmemicpu_dat_o(icpu_dat_qmem),
910
        .qmemicpu_ack_o(icpu_ack_qmem),
911
        .qmemimmu_rty_o(qmemimmu_rty_qmem),
912
        .qmemimmu_err_o(qmemimmu_err_qmem),
913
        .qmemimmu_tag_o(qmemimmu_tag_qmem),
914
 
915
        // QMEM and IC
916
        .icqmem_adr_o(icqmem_adr_qmem),
917
        .icqmem_cycstb_o(icqmem_cycstb_qmem),
918
        .icqmem_ci_o(icqmem_ci_qmem),
919
        .icqmem_sel_o(icqmem_sel_qmem),
920
        .icqmem_tag_o(icqmem_tag_qmem),
921
        .icqmem_dat_i(icqmem_dat_ic),
922
        .icqmem_ack_i(icqmem_ack_ic),
923
        .icqmem_rty_i(icqmem_rty_ic),
924
        .icqmem_err_i(icqmem_err_ic),
925
        .icqmem_tag_i(icqmem_tag_ic),
926
 
927
        // QMEM and CPU/DMMU
928
        .qmemdmmu_adr_i(qmemdmmu_adr_dmmu),
929
        .qmemdmmu_cycstb_i(qmemdmmu_cycstb_dmmu),
930
        .qmemdmmu_ci_i(qmemdmmu_ci_dmmu),
931
        .qmemdcpu_we_i(dcpu_we_cpu),
932
        .qmemdcpu_sel_i(dcpu_sel_cpu),
933
        .qmemdcpu_tag_i(dcpu_tag_cpu),
934
        .qmemdcpu_dat_i(dcpu_dat_cpu),
935
        .qmemdcpu_dat_o(dcpu_dat_qmem),
936
        .qmemdcpu_ack_o(dcpu_ack_qmem),
937
        .qmemdcpu_rty_o(dcpu_rty_qmem),
938
        .qmemdmmu_err_o(qmemdmmu_err_qmem),
939
        .qmemdmmu_tag_o(qmemdmmu_tag_qmem),
940
 
941
        // QMEM and DC
942
        .dcqmem_adr_o(dcqmem_adr_qmem),
943
        .dcqmem_cycstb_o(dcqmem_cycstb_qmem),
944
        .dcqmem_ci_o(dcqmem_ci_qmem),
945
        .dcqmem_we_o(dcqmem_we_qmem),
946
        .dcqmem_sel_o(dcqmem_sel_qmem),
947
        .dcqmem_tag_o(dcqmem_tag_qmem),
948
        .dcqmem_dat_o(dcqmem_dat_qmem),
949
        .dcqmem_dat_i(dcqmem_dat_dc),
950
        .dcqmem_ack_i(dcqmem_ack_dc),
951
        .dcqmem_rty_i(dcqmem_rty_dc),
952
        .dcqmem_err_i(dcqmem_err_dc),
953
        .dcqmem_tag_i(dcqmem_tag_dc)
954
);
955
 
956
//
957
// Instantiation of Store Buffer
958
//
959
or1200_sb_cm2 or1200_sb(
960
        // RISC clock, reset
961
        .clk(clk_i),
962
        .rst(rst_i),
963
 
964
        // Internal RISC bus (DC<->SB)
965
        .dcsb_dat_i(dcsb_dat_dc),
966
        .dcsb_adr_i(dcsb_adr_dc),
967
        .dcsb_cyc_i(dcsb_cyc_dc),
968
        .dcsb_stb_i(dcsb_stb_dc),
969
        .dcsb_we_i(dcsb_we_dc),
970
        .dcsb_sel_i(dcsb_sel_dc),
971
        .dcsb_cab_i(dcsb_cab_dc),
972
        .dcsb_dat_o(dcsb_dat_sb),
973
        .dcsb_ack_o(dcsb_ack_sb),
974
        .dcsb_err_o(dcsb_err_sb),
975
 
976
        // SB and BIU
977
        .sbbiu_dat_o(sbbiu_dat_sb),
978
        .sbbiu_adr_o(sbbiu_adr_sb),
979
        .sbbiu_cyc_o(sbbiu_cyc_sb),
980
        .sbbiu_stb_o(sbbiu_stb_sb),
981
        .sbbiu_we_o(sbbiu_we_sb),
982
        .sbbiu_sel_o(sbbiu_sel_sb),
983
        .sbbiu_cab_o(sbbiu_cab_sb),
984
        .sbbiu_dat_i(sbbiu_dat_biu),
985
        .sbbiu_ack_i(sbbiu_ack_biu),
986
        .sbbiu_err_i(sbbiu_err_biu)
987
);
988
 
989
//
990
// Instantiation of Debug Unit
991
//
992
wire spr_cs_group_du;
993
 
994
// SynEDA CoreMultiplier
995
// assignment(s): spr_cs_group_du
996
// replace(s): spr_cs
997
assign spr_cs_group_du = spr_cs_cml_1[`OR1200_SPR_GROUP_DU];
998
or1200_du_cm2 or1200_du(
999
                .clk_i_cml_1(clk_i_cml_1),
1000
        // RISC Internal Interface
1001
        .clk(clk_i),
1002
        .rst(rst_i),
1003
        .dcpu_cycstb_i(dcpu_cycstb_cpu),
1004
        .dcpu_we_i(dcpu_we_cpu),
1005
        .dcpu_adr_i(dcpu_adr_cpu),
1006
        .dcpu_dat_lsu(dcpu_dat_cpu),
1007
        .dcpu_dat_dc(dcpu_dat_qmem),
1008
        .icpu_cycstb_i(icpu_cycstb_cpu),
1009
        .ex_freeze(ex_freeze),
1010
        .branch_op(branch_op),
1011
        .ex_insn(ex_insn),
1012
        .id_pc(id_pc),
1013
        .du_dsr(du_dsr),
1014
 
1015
        // For Trace buffer
1016
        .spr_dat_npc(spr_dat_npc),
1017
        .rf_dataw(rf_dataw),
1018
 
1019
        // DU's access to SPR unit
1020
        .du_stall(du_stall),
1021
        .du_addr(du_addr),
1022
        .du_dat_i(du_dat_cpu),
1023
        .du_dat_o(du_dat_du),
1024
        .du_read(du_read),
1025
        .du_write(du_write),
1026
        .du_except(du_except),
1027
        .du_hwbkpt(du_hwbkpt),
1028
 
1029
        // Access to DU's SPRs
1030
        .spr_cs(spr_cs_group_du),
1031
        .spr_write(spr_we),
1032
        .spr_addr(spr_addr),
1033
        .spr_dat_i(spr_dat_cpu),
1034
        .spr_dat_o(spr_dat_du),
1035
 
1036
        // External Debug Interface
1037
        .dbg_stall_i(dbg_stall_i),
1038
        .dbg_ewt_i(dbg_ewt_i),
1039
        .dbg_lss_o(dbg_lss_o),
1040
        .dbg_is_o(dbg_is_o),
1041
        .dbg_wp_o(dbg_wp_o),
1042
        .dbg_bp_o(dbg_bp_o),
1043
        .dbg_stb_i(dbg_stb_i),
1044
        .dbg_we_i(dbg_we_i),
1045
        .dbg_adr_i(dbg_adr_i),
1046
        .dbg_dat_i(dbg_dat_i),
1047
        .dbg_dat_o(dbg_dat_o),
1048
        .dbg_ack_o(dbg_ack_o)
1049
);
1050
 
1051
//
1052
// Programmable interrupt controller
1053
//
1054
wire spr_cs_group_pic;
1055
 
1056
// SynEDA CoreMultiplier
1057
// assignment(s): spr_cs_group_pic
1058
// replace(s): spr_cs
1059
assign spr_cs_group_pic = spr_cs_cml_1[`OR1200_SPR_GROUP_PIC];
1060
or1200_pic_cm2 or1200_pic(
1061
                .clk_i_cml_1(clk_i_cml_1),
1062
        // RISC Internal Interface
1063
        .clk(clk_i),
1064
        .rst(rst_i),
1065
        .spr_cs(spr_cs_group_pic),
1066
        .spr_write(spr_we),
1067
        .spr_addr(spr_addr),
1068
        .spr_dat_i(spr_dat_cpu),
1069
        .spr_dat_o(spr_dat_pic),
1070
        .pic_wakeup(pic_wakeup),
1071
        .intr(sig_int),
1072
 
1073
        // PIC Interface
1074
        .pic_int(pic_ints_i)
1075
);
1076
 
1077
//
1078
// Instantiation of Tick timer
1079
//
1080
wire spr_cs_group_tt;
1081
 
1082
// SynEDA CoreMultiplier
1083
// assignment(s): spr_cs_group_tt
1084
// replace(s): spr_cs
1085
assign spr_cs_group_tt = spr_cs_cml_1[`OR1200_SPR_GROUP_TT];
1086
or1200_tt_cm2 or1200_tt(
1087
                .clk_i_cml_1(clk_i_cml_1),
1088
        // RISC Internal Interface
1089
        .clk(clk_i),
1090
        .rst(rst_i),
1091
        .du_stall(du_stall),
1092
        .spr_cs(spr_cs_group_tt),
1093
        .spr_write(spr_we),
1094
        .spr_addr(spr_addr),
1095
        .spr_dat_i(spr_dat_cpu),
1096
        .spr_dat_o(spr_dat_tt),
1097
        .intr(sig_tick)
1098
);
1099
 
1100
//
1101
// Instantiation of Power Management
1102
//
1103
or1200_pm_cm2 or1200_pm(
1104
                .clk_i_cml_1(clk_i_cml_1),
1105
        // RISC Internal Interface
1106
        .clk(clk_i),
1107
        .rst(rst_i),
1108
        .pic_wakeup(pic_wakeup),
1109
        .spr_write(spr_we),
1110
        .spr_addr(spr_addr),
1111
        .spr_dat_i(spr_dat_cpu),
1112
        .spr_dat_o(spr_dat_pm),
1113
 
1114
        // Power Management Interface
1115
        .pm_cpustall(pm_cpustall_i),
1116
        .pm_clksd(pm_clksd_o),
1117
        .pm_dc_gate(pm_dc_gate_o),
1118
        .pm_ic_gate(pm_ic_gate_o),
1119
        .pm_dmmu_gate(pm_dmmu_gate_o),
1120
        .pm_immu_gate(pm_immu_gate_o),
1121
        .pm_tt_gate(pm_tt_gate_o),
1122
        .pm_cpu_gate(pm_cpu_gate_o),
1123
        .pm_wakeup(pm_wakeup_o),
1124
        .pm_lvolt(pm_lvolt_o)
1125
);
1126
 
1127
 
1128
 
1129
always @ (posedge clk_i_cml_1) begin
1130
iwb_cyc_o_cml_1 <= iwb_cyc_o;
1131
iwb_adr_o_cml_1 <= iwb_adr_o;
1132
iwb_stb_o_cml_1 <= iwb_stb_o;
1133
iwb_we_o_cml_1 <= iwb_we_o;
1134
iwb_sel_o_cml_1 <= iwb_sel_o;
1135
iwb_dat_o_cml_1 <= iwb_dat_o;
1136
iwb_cab_o_cml_1 <= iwb_cab_o;
1137
dwb_cyc_o_cml_1 <= dwb_cyc_o;
1138
dwb_adr_o_cml_1 <= dwb_adr_o;
1139
dwb_stb_o_cml_1 <= dwb_stb_o;
1140
dwb_we_o_cml_1 <= dwb_we_o;
1141
dwb_sel_o_cml_1 <= dwb_sel_o;
1142
dwb_dat_o_cml_1 <= dwb_dat_o;
1143
dwb_cab_o_cml_1 <= dwb_cab_o;
1144
dbg_is_o_cml_1 <= dbg_is_o;
1145
dbg_ack_o_cml_1 <= dbg_ack_o;
1146
spr_cs_cml_1 <= spr_cs;
1147
end
1148
endmodule
1149
 

powered by: WebSVN 2.1.0

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