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

Subversion Repositories or1k

[/] [or1k/] [tags/] [rel_26/] [or1200/] [rtl/] [verilog/] [or1200_defines.v] - Blame information for rev 1207

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

Line No. Rev Author Line
1 504 lampret
//////////////////////////////////////////////////////////////////////
2
////                                                              ////
3
////  OR1200's definitions                                        ////
4
////                                                              ////
5
////  This file is part of the OpenRISC 1200 project              ////
6
////  http://www.opencores.org/cores/or1k/                        ////
7
////                                                              ////
8
////  Description                                                 ////
9
////  Parameters of the OR1200 core                               ////
10
////                                                              ////
11
////  To Do:                                                      ////
12
////   - add parameters that are missing                          ////
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 1207 lampret
// Revision 1.35.4.1  2003/07/08 15:36:37  lampret
48
// Added embedded memory QMEM.
49
//
50 1171 lampret
// Revision 1.35  2003/04/24 00:16:07  lampret
51
// No functional changes. Added defines to disable implementation of multiplier/MAC
52
//
53 1159 lampret
// Revision 1.34  2003/04/20 22:23:57  lampret
54
// No functional change. Only added customization for exception vectors.
55
//
56 1155 lampret
// Revision 1.33  2003/04/07 20:56:07  lampret
57
// Fixed OR1200_CLKDIV_x_SUPPORTED defines. Better description.
58
//
59 1139 lampret
// Revision 1.32  2003/04/07 01:26:57  lampret
60
// RFRAM defines comments updated. Altera LPM option added.
61
//
62 1132 lampret
// Revision 1.31  2002/12/08 08:57:56  lampret
63
// Added optional support for WB B3 specification (xwb_cti_o, xwb_bte_o). Made xwb_cab_o optional.
64
//
65 1104 lampret
// Revision 1.30  2002/10/28 15:09:22  mohor
66
// Previous check-in was done by mistake.
67
//
68 1078 mohor
// Revision 1.29  2002/10/28 15:03:50  mohor
69
// Signal scanb_sen renamed to scanb_en.
70 1077 mohor
//
71
// Revision 1.28  2002/10/17 20:04:40  lampret
72
// Added BIST scan. Special VS RAMs need to be used to implement BIST.
73
//
74 1063 lampret
// Revision 1.27  2002/09/16 03:13:23  lampret
75
// Removed obsolete comment.
76
//
77 1055 lampret
// Revision 1.26  2002/09/08 05:52:16  lampret
78
// Added optional l.div/l.divu insns. By default they are disabled.
79
//
80 1035 lampret
// Revision 1.25  2002/09/07 19:16:10  lampret
81
// If SR[CY] implemented with OR1200_IMPL_ADDC enabled, l.add/l.addi also set SR[CY].
82
//
83 1033 lampret
// Revision 1.24  2002/09/07 05:42:02  lampret
84
// Added optional SR[CY]. Added define to enable additional (compare) flag modifiers. Defines are OR1200_IMPL_ADDC and OR1200_ADDITIONAL_FLAG_MODIFIERS.
85
//
86 1032 lampret
// Revision 1.23  2002/09/04 00:50:34  lampret
87
// Now most of the configuration registers are updatded automatically based on defines in or1200_defines.v.
88
//
89 1023 lampret
// Revision 1.22  2002/09/03 22:28:21  lampret
90
// As per Taylor Su suggestion all case blocks are full case by default and optionally (OR1200_CASE_DEFAULT) can be disabled to increase clock frequncy.
91
//
92 1022 lampret
// Revision 1.21  2002/08/22 02:18:55  lampret
93
// Store buffer has been tested and it works. BY default it is still disabled until uClinux confirms correct operation on FPGA board.
94
//
95 994 lampret
// Revision 1.20  2002/08/18 21:59:45  lampret
96
// Disable SB until it is tested
97
//
98 984 lampret
// Revision 1.19  2002/08/18 19:53:08  lampret
99
// Added store buffer.
100
//
101 977 lampret
// Revision 1.18  2002/08/15 06:04:11  lampret
102
// Fixed Xilinx trace buffer address. REported by Taylor Su.
103
//
104 962 lampret
// Revision 1.17  2002/08/12 05:31:44  lampret
105
// Added OR1200_WB_RETRY. Moved WB registered outsputs / samples inputs into lower section.
106
//
107 944 lampret
// Revision 1.16  2002/07/14 22:17:17  lampret
108
// Added simple trace buffer [only for Xilinx Virtex target]. Fixed instruction fetch abort when new exception is recognized.
109
//
110 895 lampret
// Revision 1.15  2002/06/08 16:20:21  lampret
111
// Added defines for enabling generic FF based memory macro for register file.
112
//
113 870 lampret
// Revision 1.14  2002/03/29 16:24:06  lampret
114
// Changed comment about synopsys to _synopsys_ because synthesis was complaining about unknown directives
115
//
116 790 lampret
// Revision 1.13  2002/03/29 15:16:55  lampret
117
// Some of the warnings fixed.
118
//
119 788 lampret
// Revision 1.12  2002/03/28 19:25:42  lampret
120
// Added second type of Virtual Silicon two-port SRAM (for register file). Changed defines for VS STP RAMs.
121
//
122 778 lampret
// Revision 1.11  2002/03/28 19:13:17  lampret
123
// Updated defines.
124
//
125 776 lampret
// Revision 1.10  2002/03/14 00:30:24  lampret
126
// Added alternative for critical path in DU.
127
//
128 737 lampret
// Revision 1.9  2002/03/11 01:26:26  lampret
129
// Fixed async loop. Changed multiplier type for ASIC.
130
//
131 735 lampret
// Revision 1.8  2002/02/11 04:33:17  lampret
132
// Speed optimizations (removed duplicate _cyc_ and _stb_). Fixed D/IMMU cache-inhibit attr.
133
//
134 660 lampret
// Revision 1.7  2002/02/01 19:56:54  lampret
135
// Fixed combinational loops.
136
//
137 636 lampret
// Revision 1.6  2002/01/19 14:10:22  lampret
138
// Fixed OR1200_XILINX_RAM32X1D.
139
//
140 597 lampret
// Revision 1.5  2002/01/18 07:56:00  lampret
141
// No more low/high priority interrupts (PICPR removed). Added tick timer exception. Added exception prefix (SR[EPH]). Fixed single-step bug whenreading NPC.
142
//
143 589 lampret
// Revision 1.4  2002/01/14 09:44:12  lampret
144
// Default ASIC configuration does not sample WB inputs.
145
//
146 569 lampret
// Revision 1.3  2002/01/08 00:51:08  lampret
147
// Fixed typo. OR1200_REGISTERED_OUTPUTS was not defined. Should be.
148
//
149 536 lampret
// Revision 1.2  2002/01/03 21:23:03  lampret
150
// Uncommented OR1200_REGISTERED_OUTPUTS for FPGA target.
151
//
152 512 lampret
// Revision 1.1  2002/01/03 08:16:15  lampret
153
// New prefixes for RTL files, prefixed module names. Updated cache controllers and MMUs.
154
//
155 504 lampret
// Revision 1.20  2001/12/04 05:02:36  lampret
156
// Added OR1200_GENERIC_MULTP2_32X32 and OR1200_ASIC_MULTP2_32X32
157
//
158
// Revision 1.19  2001/11/27 19:46:57  lampret
159
// Now FPGA and ASIC target are separate.
160
//
161
// Revision 1.18  2001/11/23 21:42:31  simons
162
// Program counter divided to PPC and NPC.
163
//
164
// Revision 1.17  2001/11/23 08:38:51  lampret
165
// Changed DSR/DRR behavior and exception detection.
166
//
167
// Revision 1.16  2001/11/20 21:30:38  lampret
168
// Added OR1200_REGISTERED_INPUTS.
169
//
170
// Revision 1.15  2001/11/19 14:29:48  simons
171
// Cashes disabled.
172
//
173
// Revision 1.14  2001/11/13 10:02:21  lampret
174
// Added 'setpc'. Renamed some signals (except_flushpipe into flushpipe etc)
175
//
176
// Revision 1.13  2001/11/12 01:45:40  lampret
177
// Moved flag bit into SR. Changed RF enable from constant enable to dynamic enable for read ports.
178
//
179
// Revision 1.12  2001/11/10 03:43:57  lampret
180
// Fixed exceptions.
181
//
182
// Revision 1.11  2001/11/02 18:57:14  lampret
183
// Modified virtual silicon instantiations.
184
//
185
// Revision 1.10  2001/10/21 17:57:16  lampret
186
// 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.
187
//
188
// Revision 1.9  2001/10/19 23:28:46  lampret
189
// Fixed some synthesis warnings. Configured with caches and MMUs.
190
//
191
// Revision 1.8  2001/10/14 13:12:09  lampret
192
// MP3 version.
193
//
194
// Revision 1.1.1.1  2001/10/06 10:18:36  igorm
195
// no message
196
//
197
// Revision 1.3  2001/08/17 08:01:19  lampret
198
// IC enable/disable.
199
//
200
// Revision 1.2  2001/08/13 03:36:20  lampret
201
// Added cfg regs. Moved all defines into one defines.v file. More cleanup.
202
//
203
// Revision 1.1  2001/08/09 13:39:33  lampret
204
// Major clean-up.
205
//
206
// Revision 1.2  2001/07/22 03:31:54  lampret
207
// Fixed RAM's oen bug. Cache bypass under development.
208
//
209
// Revision 1.1  2001/07/20 00:46:03  lampret
210
// Development version of RTL. Libraries are missing.
211
//
212
//
213
 
214
//
215
// Dump VCD
216
//
217
//`define OR1200_VCD_DUMP
218
 
219
//
220
// Generate debug messages during simulation
221
//
222
//`define OR1200_VERBOSE
223
 
224 1078 mohor
//  `define OR1200_ASIC
225 504 lampret
////////////////////////////////////////////////////////
226
//
227
// Typical configuration for an ASIC
228
//
229
`ifdef OR1200_ASIC
230
 
231
//
232
// Target ASIC memories
233
//
234
//`define OR1200_ARTISAN_SSP
235
//`define OR1200_ARTISAN_SDP
236
//`define OR1200_ARTISAN_STP
237
`define OR1200_VIRTUALSILICON_SSP
238 1077 mohor
//`define OR1200_VIRTUALSILICON_STP_T1
239 778 lampret
//`define OR1200_VIRTUALSILICON_STP_T2
240 504 lampret
 
241
//
242
// Do not implement Data cache
243
//
244
//`define OR1200_NO_DC
245
 
246
//
247
// Do not implement Insn cache
248
//
249
//`define OR1200_NO_IC
250
 
251
//
252
// Do not implement Data MMU
253
//
254
//`define OR1200_NO_DMMU
255
 
256
//
257
// Do not implement Insn MMU
258
//
259
//`define OR1200_NO_IMMU
260
 
261
//
262 944 lampret
// Select between ASIC optimized and generic multiplier
263 504 lampret
//
264 735 lampret
//`define OR1200_ASIC_MULTP2_32X32
265
`define OR1200_GENERIC_MULTP2_32X32
266 504 lampret
 
267
//
268
// Size/type of insn/data cache if implemented
269
//
270
// `define OR1200_IC_1W_4KB
271
`define OR1200_IC_1W_8KB
272
// `define OR1200_DC_1W_4KB
273
`define OR1200_DC_1W_8KB
274
 
275
`else
276
 
277
 
278
/////////////////////////////////////////////////////////
279
//
280
// Typical configuration for an FPGA
281
//
282
 
283
//
284
// Target FPGA memories
285
//
286 1132 lampret
//`define OR1200_ALTERA_LPM
287 504 lampret
`define OR1200_XILINX_RAMB4
288 776 lampret
//`define OR1200_XILINX_RAM32X1D
289 895 lampret
//`define OR1200_USE_RAM16X1D_FOR_RAM32X1D
290 504 lampret
 
291
//
292
// Do not implement Data cache
293
//
294
//`define OR1200_NO_DC
295
 
296
//
297
// Do not implement Insn cache
298
//
299
//`define OR1200_NO_IC
300
 
301
//
302
// Do not implement Data MMU
303
//
304
//`define OR1200_NO_DMMU
305
 
306
//
307
// Do not implement Insn MMU
308
//
309
//`define OR1200_NO_IMMU
310
 
311
//
312 944 lampret
// Select between ASIC and generic multiplier
313 504 lampret
//
314 944 lampret
// (Generic seems to trigger a bug in the Cadence Ncsim simulator)
315 504 lampret
//
316
//`define OR1200_ASIC_MULTP2_32X32
317
`define OR1200_GENERIC_MULTP2_32X32
318
 
319
//
320
// Size/type of insn/data cache if implemented
321
// (consider available FPGA memory resources)
322
//
323
`define OR1200_IC_1W_4KB
324
//`define OR1200_IC_1W_8KB
325
`define OR1200_DC_1W_4KB
326
//`define OR1200_DC_1W_8KB
327
 
328
`endif
329
 
330
 
331
//////////////////////////////////////////////////////////
332
//
333
// Do not change below unless you know what you are doing
334
//
335
 
336 788 lampret
//
337 1063 lampret
// Enable RAM BIST
338
//
339
// At the moment this only works for Virtual Silicon
340
// single port RAMs. For other RAMs it has not effect.
341
// Special wrapper for VS RAMs needs to be provided
342
// with scan flops to facilitate bist scan.
343
//
344 1078 mohor
//`define OR1200_BIST
345 1063 lampret
 
346
//
347 944 lampret
// Register OR1200 WISHBONE outputs
348
// (must be defined/enabled)
349
//
350
`define OR1200_REGISTERED_OUTPUTS
351
 
352
//
353
// Register OR1200 WISHBONE inputs
354
//
355
// (must be undefined/disabled)
356
//
357
//`define OR1200_REGISTERED_INPUTS
358
 
359
//
360 895 lampret
// Disable bursts if they are not supported by the
361
// memory subsystem (only affect cache line fill)
362
//
363
//`define OR1200_NO_BURSTS
364
//
365
 
366
//
367 944 lampret
// WISHBONE retry counter range
368
//
369
// 2^value range for retry counter. Retry counter
370
// is activated whenever *wb_rty_i is asserted and
371
// until retry counter expires, corresponding
372
// WISHBONE interface is deactivated.
373
//
374
// To disable retry counters and *wb_rty_i all together,
375
// undefine this macro.
376
//
377
//`define OR1200_WB_RETRY 7
378
 
379
//
380 1104 lampret
// WISHBONE Consecutive Address Burst
381
//
382
// This was used prior to WISHBONE B3 specification
383
// to identify bursts. It is no longer needed but
384
// remains enabled for compatibility with old designs.
385
//
386
// To remove *wb_cab_o ports undefine this macro.
387
//
388
`define OR1200_WB_CAB
389
 
390
//
391
// WISHBONE B3 compatible interface
392
//
393
// This follows the WISHBONE B3 specification.
394
// It is not enabled by default because most
395
// designs still don't use WB b3.
396
//
397
// To enable *wb_cti_o/*wb_bte_o ports,
398
// define this macro.
399
//
400
//`define OR1200_WB_B3
401
 
402
//
403 788 lampret
// Enable additional synthesis directives if using
404 790 lampret
// _Synopsys_ synthesis tool
405 788 lampret
//
406
//`define OR1200_ADDITIONAL_SYNOPSYS_DIRECTIVES
407
 
408
//
409 1022 lampret
// Enables default statement in some case blocks
410
// and disables Synopsys synthesis directive full_case
411
//
412
// By default it is enabled. When disabled it
413
// can increase clock frequency.
414
//
415
`define OR1200_CASE_DEFAULT
416
 
417
//
418 504 lampret
// Operand width / register file address width
419 788 lampret
//
420
// (DO NOT CHANGE)
421
//
422 504 lampret
`define OR1200_OPERAND_WIDTH            32
423
`define OR1200_REGFILE_ADDR_WIDTH       5
424
 
425
//
426 1032 lampret
// l.add/l.addi/l.and and optional l.addc/l.addic
427
// also set (compare) flag when result of their
428
// operation equals zero
429
//
430
// At the time of writing this, default or32
431
// C/C++ compiler doesn't generate code that
432
// would benefit from this optimization.
433
//
434
// By default this optimization is disabled to
435
// save area.
436
//
437
//`define OR1200_ADDITIONAL_FLAG_MODIFIERS
438
 
439
//
440
// Implement l.addc/l.addic instructions and SR[CY]
441
//
442
// At the time of writing this, or32
443
// C/C++ compiler doesn't generate l.addc/l.addic
444
// instructions. However or32 assembler
445
// can assemble code that uses l.addc/l.addic insns.
446
//
447
// By default implementation of l.addc/l.addic
448
// instructions and SR[CY] is disabled to save
449
// area.
450
//
451 1033 lampret
// [Because this define controles implementation
452
//  of SR[CY] write enable, if it is not enabled,
453
//  l.add/l.addi also don't set SR[CY].]
454
//
455 1032 lampret
//`define OR1200_IMPL_ADDC
456
 
457
//
458 1035 lampret
// Implement optional l.div/l.divu instructions
459
//
460
// By default divide instructions are not implemented
461
// to save area and increase clock frequency. or32 C/C++
462
// compiler can use soft library for division.
463
//
464 1159 lampret
// To implement divide, multiplier needs to be implemented.
465
//
466 1035 lampret
//`define OR1200_IMPL_DIV
467
 
468
//
469 504 lampret
// Implement rotate in the ALU
470
//
471 1032 lampret
// At the time of writing this, or32
472
// C/C++ compiler doesn't generate rotate
473
// instructions. However or32 assembler
474
// can assemble code that uses rotate insn.
475
// This means that rotate instructions
476
// must be used manually inserted.
477
//
478
// By default implementation of rotate
479
// is disabled to save area and increase
480
// clock frequency.
481
//
482 504 lampret
//`define OR1200_IMPL_ALU_ROTATE
483
 
484
//
485
// Type of ALU compare to implement
486
//
487 1032 lampret
// Try either one to find what yields
488
// higher clock frequencyin your case.
489
//
490 504 lampret
//`define OR1200_IMPL_ALU_COMP1
491
`define OR1200_IMPL_ALU_COMP2
492
 
493
//
494 1159 lampret
// Implement multiplier
495 504 lampret
//
496 1159 lampret
// By default multiplier is implemented
497
//
498
`define OR1200_MULT_IMPLEMENTED
499
 
500
//
501
// Implement multiply-and-accumulate
502
//
503
// By default MAC is implemented. To
504
// implement MAC, multiplier needs to be
505
// implemented.
506
//
507
`define OR1200_MAC_IMPLEMENTED
508
 
509
//
510
// Low power, slower multiplier
511
//
512
// Select between low-power (larger) multiplier
513
// and faster multiplier. The actual difference
514
// is only AND logic that prevents distribution
515
// of operands into the multiplier when instruction
516
// in execution is not multiply instruction
517
//
518 776 lampret
//`define OR1200_LOWPWR_MULT
519 504 lampret
 
520
//
521 1139 lampret
// Clock ratio RISC clock versus WB clock
522 504 lampret
//
523 1139 lampret
// If you plan to run WB:RISC clock fixed to 1:1, disable
524
// both defines
525 504 lampret
//
526 1139 lampret
// For WB:RISC 1:2 or 1:1, enable OR1200_CLKDIV_2_SUPPORTED
527
// and use clmode to set ratio
528
//
529
// For WB:RISC 1:4, 1:2 or 1:1, enable both defines and use
530
// clmode to set ratio
531
//
532 504 lampret
`define OR1200_CLKDIV_2_SUPPORTED
533 776 lampret
//`define OR1200_CLKDIV_4_SUPPORTED
534 504 lampret
 
535
//
536
// Type of register file RAM
537
//
538 1132 lampret
// Memory macro w/ two ports (see or1200_tpram_32x32.v)
539 504 lampret
// `define OR1200_RFRAM_TWOPORT
540 870 lampret
//
541 1132 lampret
// Memory macro dual port (see or1200_dpram_32x32.v)
542 870 lampret
`define OR1200_RFRAM_DUALPORT
543
//
544 1132 lampret
// Generic (flip-flop based) register file (see or1200_rfram_generic.v)
545
//`define OR1200_RFRAM_GENERIC
546 504 lampret
 
547
//
548 776 lampret
// Type of mem2reg aligner to implement.
549 504 lampret
//
550 776 lampret
// Once OR1200_IMPL_MEM2REG2 yielded faster
551
// circuit, however with today tools it will
552
// most probably give you slower circuit.
553
//
554
`define OR1200_IMPL_MEM2REG1
555
//`define OR1200_IMPL_MEM2REG2
556 504 lampret
 
557
//
558
// ALUOPs
559
//
560
`define OR1200_ALUOP_WIDTH      4
561 636 lampret
`define OR1200_ALUOP_NOP        4'd4
562 504 lampret
/* Order defined by arith insns that have two source operands both in regs
563
   (see binutils/include/opcode/or32.h) */
564
`define OR1200_ALUOP_ADD        4'd0
565
`define OR1200_ALUOP_ADDC       4'd1
566
`define OR1200_ALUOP_SUB        4'd2
567
`define OR1200_ALUOP_AND        4'd3
568 636 lampret
`define OR1200_ALUOP_OR         4'd4
569 504 lampret
`define OR1200_ALUOP_XOR        4'd5
570
`define OR1200_ALUOP_MUL        4'd6
571
`define OR1200_ALUOP_SHROT      4'd8
572
`define OR1200_ALUOP_DIV        4'd9
573
`define OR1200_ALUOP_DIVU       4'd10
574
/* Order not specifically defined. */
575
`define OR1200_ALUOP_IMM        4'd11
576
`define OR1200_ALUOP_MOVHI      4'd12
577
`define OR1200_ALUOP_COMP       4'd13
578
`define OR1200_ALUOP_MTSR       4'd14
579
`define OR1200_ALUOP_MFSR       4'd15
580
 
581
//
582
// MACOPs
583
//
584
`define OR1200_MACOP_WIDTH      2
585
`define OR1200_MACOP_NOP        2'b00
586
`define OR1200_MACOP_MAC        2'b01
587
`define OR1200_MACOP_MSB        2'b10
588
 
589
//
590
// Shift/rotate ops
591
//
592
`define OR1200_SHROTOP_WIDTH    2
593
`define OR1200_SHROTOP_NOP      2'd0
594
`define OR1200_SHROTOP_SLL      2'd0
595
`define OR1200_SHROTOP_SRL      2'd1
596
`define OR1200_SHROTOP_SRA      2'd2
597
`define OR1200_SHROTOP_ROR      2'd3
598
 
599
// Execution cycles per instruction
600
`define OR1200_MULTICYCLE_WIDTH 2
601
`define OR1200_ONE_CYCLE                2'd0
602
`define OR1200_TWO_CYCLES               2'd1
603
 
604
// Operand MUX selects
605
`define OR1200_SEL_WIDTH                2
606
`define OR1200_SEL_RF                   2'd0
607
`define OR1200_SEL_IMM                  2'd1
608
`define OR1200_SEL_EX_FORW              2'd2
609
`define OR1200_SEL_WB_FORW              2'd3
610
 
611
//
612
// BRANCHOPs
613
//
614
`define OR1200_BRANCHOP_WIDTH           3
615
`define OR1200_BRANCHOP_NOP             3'd0
616
`define OR1200_BRANCHOP_J               3'd1
617
`define OR1200_BRANCHOP_JR              3'd2
618
`define OR1200_BRANCHOP_BAL             3'd3
619
`define OR1200_BRANCHOP_BF              3'd4
620
`define OR1200_BRANCHOP_BNF             3'd5
621
`define OR1200_BRANCHOP_RFE             3'd6
622
 
623
//
624
// LSUOPs
625
//
626
// Bit 0: sign extend
627
// Bits 1-2: 00 doubleword, 01 byte, 10 halfword, 11 singleword
628
// Bit 3: 0 load, 1 store
629
`define OR1200_LSUOP_WIDTH              4
630
`define OR1200_LSUOP_NOP                4'b0000
631
`define OR1200_LSUOP_LBZ                4'b0010
632
`define OR1200_LSUOP_LBS                4'b0011
633
`define OR1200_LSUOP_LHZ                4'b0100
634
`define OR1200_LSUOP_LHS                4'b0101
635
`define OR1200_LSUOP_LWZ                4'b0110
636
`define OR1200_LSUOP_LWS                4'b0111
637
`define OR1200_LSUOP_LD         4'b0001
638
`define OR1200_LSUOP_SD         4'b1000
639
`define OR1200_LSUOP_SB         4'b1010
640
`define OR1200_LSUOP_SH         4'b1100
641
`define OR1200_LSUOP_SW         4'b1110
642
 
643
// FETCHOPs
644
`define OR1200_FETCHOP_WIDTH            1
645
`define OR1200_FETCHOP_NOP              1'b0
646
`define OR1200_FETCHOP_LW               1'b1
647
 
648
//
649
// Register File Write-Back OPs
650
//
651
// Bit 0: register file write enable
652
// Bits 2-1: write-back mux selects
653
`define OR1200_RFWBOP_WIDTH             3
654
`define OR1200_RFWBOP_NOP               3'b000
655
`define OR1200_RFWBOP_ALU               3'b001
656
`define OR1200_RFWBOP_LSU               3'b011
657
`define OR1200_RFWBOP_SPRS              3'b101
658
`define OR1200_RFWBOP_LR                3'b111
659
 
660
// Compare instructions
661
`define OR1200_COP_SFEQ       3'b000
662
`define OR1200_COP_SFNE       3'b001
663
`define OR1200_COP_SFGT       3'b010
664
`define OR1200_COP_SFGE       3'b011
665
`define OR1200_COP_SFLT       3'b100
666
`define OR1200_COP_SFLE       3'b101
667
`define OR1200_COP_X          3'b111
668
`define OR1200_SIGNED_COMPARE 'd3
669
`define OR1200_COMPOP_WIDTH     4
670
 
671
//
672
// TAGs for instruction bus
673
//
674
`define OR1200_ITAG_IDLE        4'h0    // idle bus
675
`define OR1200_ITAG_NI          4'h1    // normal insn
676
`define OR1200_ITAG_BE          4'hb    // Bus error exception
677
`define OR1200_ITAG_PE          4'hc    // Page fault exception
678
`define OR1200_ITAG_TE          4'hd    // TLB miss exception
679
 
680
//
681
// TAGs for data bus
682
//
683
`define OR1200_DTAG_IDLE        4'h0    // idle bus
684
`define OR1200_DTAG_ND          4'h1    // normal data
685
`define OR1200_DTAG_AE          4'ha    // Alignment exception
686
`define OR1200_DTAG_BE          4'hb    // Bus error exception
687
`define OR1200_DTAG_PE          4'hc    // Page fault exception
688
`define OR1200_DTAG_TE          4'hd    // TLB miss exception
689
 
690
 
691
//////////////////////////////////////////////
692
//
693
// ORBIS32 ISA specifics
694
//
695
 
696
// SHROT_OP position in machine word
697
`define OR1200_SHROTOP_POS              7:6
698
 
699
// ALU instructions multicycle field in machine word
700
`define OR1200_ALUMCYC_POS              9:8
701
 
702
//
703
// Instruction opcode groups (basic)
704
//
705
`define OR1200_OR32_J                 6'b000000
706
`define OR1200_OR32_JAL               6'b000001
707
`define OR1200_OR32_BNF               6'b000011
708
`define OR1200_OR32_BF                6'b000100
709
`define OR1200_OR32_NOP               6'b000101
710
`define OR1200_OR32_MOVHI             6'b000110
711
`define OR1200_OR32_XSYNC             6'b001000
712
`define OR1200_OR32_RFE               6'b001001
713
/* */
714
`define OR1200_OR32_JR                6'b010001
715
`define OR1200_OR32_JALR              6'b010010
716
`define OR1200_OR32_MACI              6'b010011
717
/* */
718
`define OR1200_OR32_LWZ               6'b100001
719
`define OR1200_OR32_LBZ               6'b100011
720
`define OR1200_OR32_LBS               6'b100100
721
`define OR1200_OR32_LHZ               6'b100101
722
`define OR1200_OR32_LHS               6'b100110
723
`define OR1200_OR32_ADDI              6'b100111
724
`define OR1200_OR32_ADDIC             6'b101000
725
`define OR1200_OR32_ANDI              6'b101001
726
`define OR1200_OR32_ORI               6'b101010
727
`define OR1200_OR32_XORI              6'b101011
728
`define OR1200_OR32_MULI              6'b101100
729
`define OR1200_OR32_MFSPR             6'b101101
730
`define OR1200_OR32_SH_ROTI           6'b101110
731
`define OR1200_OR32_SFXXI             6'b101111
732
/* */
733
`define OR1200_OR32_MTSPR             6'b110000
734
`define OR1200_OR32_MACMSB            6'b110001
735
/* */
736
`define OR1200_OR32_SW                6'b110101
737
`define OR1200_OR32_SB                6'b110110
738
`define OR1200_OR32_SH                6'b110111
739
`define OR1200_OR32_ALU               6'b111000
740
`define OR1200_OR32_SFXX              6'b111001
741
 
742
 
743
/////////////////////////////////////////////////////
744
//
745
// Exceptions
746
//
747 1155 lampret
 
748
//
749
// Exception vectors per OR1K architecture:
750
// 0xP0000100 - reset
751
// 0xP0000200 - bus error
752
// ... etc
753
// where P represents exception prefix.
754
//
755
// Exception vectors can be customized as per
756
// the following formula:
757
// 0xPMMMMNVV - exception N
758
//
759
// P represents exception prefix
760
// MMMM represents middle part that is usually 16 bits
761
//   wide and starts with all bits zero
762
// N represents exception N
763
// VV represents length of the individual vector space,
764
//   usually it is 8 bits wide and starts with all bits zero
765
//
766
 
767
//
768
// MMMM and VV parts
769
//
770
// Sum of these two defines needs to be 24
771
// (assuming N and P width are each 4 bits)
772
//
773
`define OR1200_EXCEPT_MMMM              16'h0000
774
`define OR1200_EXCEPT_VV                8'h00
775
 
776
//
777
// N part width
778
//
779 504 lampret
`define OR1200_EXCEPT_WIDTH 4
780 1155 lampret
 
781
//
782
// Definition of exception vectors
783
//
784
// To avoid implementation of a certain exception,
785
// simply comment out corresponding line
786
//
787 504 lampret
`define OR1200_EXCEPT_UNUSED            `OR1200_EXCEPT_WIDTH'hf
788
`define OR1200_EXCEPT_TRAP              `OR1200_EXCEPT_WIDTH'he
789
`define OR1200_EXCEPT_BREAK             `OR1200_EXCEPT_WIDTH'hd
790
`define OR1200_EXCEPT_SYSCALL           `OR1200_EXCEPT_WIDTH'hc
791
`define OR1200_EXCEPT_RANGE             `OR1200_EXCEPT_WIDTH'hb
792
`define OR1200_EXCEPT_ITLBMISS          `OR1200_EXCEPT_WIDTH'ha
793
`define OR1200_EXCEPT_DTLBMISS          `OR1200_EXCEPT_WIDTH'h9
794 589 lampret
`define OR1200_EXCEPT_INT               `OR1200_EXCEPT_WIDTH'h8
795 504 lampret
`define OR1200_EXCEPT_ILLEGAL           `OR1200_EXCEPT_WIDTH'h7
796
`define OR1200_EXCEPT_ALIGN             `OR1200_EXCEPT_WIDTH'h6
797 589 lampret
`define OR1200_EXCEPT_TICK              `OR1200_EXCEPT_WIDTH'h5
798 504 lampret
`define OR1200_EXCEPT_IPF               `OR1200_EXCEPT_WIDTH'h4
799
`define OR1200_EXCEPT_DPF               `OR1200_EXCEPT_WIDTH'h3
800
`define OR1200_EXCEPT_BUSERR            `OR1200_EXCEPT_WIDTH'h2
801
`define OR1200_EXCEPT_RESET             `OR1200_EXCEPT_WIDTH'h1
802
`define OR1200_EXCEPT_NONE              `OR1200_EXCEPT_WIDTH'h0
803
 
804
 
805
/////////////////////////////////////////////////////
806
//
807
// SPR groups
808
//
809
 
810
// Bits that define the group
811
`define OR1200_SPR_GROUP_BITS   15:11
812
 
813
// Width of the group bits
814
`define OR1200_SPR_GROUP_WIDTH  5
815
 
816
// Bits that define offset inside the group
817
`define OR1200_SPR_OFS_BITS 10:0
818
 
819
// List of groups
820
`define OR1200_SPR_GROUP_SYS    5'd00
821
`define OR1200_SPR_GROUP_DMMU   5'd01
822
`define OR1200_SPR_GROUP_IMMU   5'd02
823
`define OR1200_SPR_GROUP_DC     5'd03
824
`define OR1200_SPR_GROUP_IC     5'd04
825
`define OR1200_SPR_GROUP_MAC    5'd05
826
`define OR1200_SPR_GROUP_DU     5'd06
827
`define OR1200_SPR_GROUP_PM     5'd08
828
`define OR1200_SPR_GROUP_PIC    5'd09
829
`define OR1200_SPR_GROUP_TT     5'd10
830
 
831
 
832
/////////////////////////////////////////////////////
833
//
834
// System group
835
//
836
 
837
//
838
// System registers
839
//
840
`define OR1200_SPR_CFGR         7'd0
841
`define OR1200_SPR_RF           6'd32   // 1024 >> 5
842
`define OR1200_SPR_NPC          11'd16
843
`define OR1200_SPR_SR           11'd17
844
`define OR1200_SPR_PPC          11'd18
845
`define OR1200_SPR_EPCR         11'd32
846
`define OR1200_SPR_EEAR         11'd48
847
`define OR1200_SPR_ESR          11'd64
848
 
849
//
850
// SR bits
851
//
852 589 lampret
`define OR1200_SR_WIDTH 16
853
`define OR1200_SR_SM   0
854
`define OR1200_SR_TEE  1
855
`define OR1200_SR_IEE  2
856 504 lampret
`define OR1200_SR_DCE  3
857
`define OR1200_SR_ICE  4
858
`define OR1200_SR_DME  5
859
`define OR1200_SR_IME  6
860
`define OR1200_SR_LEE  7
861
`define OR1200_SR_CE   8
862
`define OR1200_SR_F    9
863 589 lampret
`define OR1200_SR_CY   10       // Unused
864
`define OR1200_SR_OV   11       // Unused
865
`define OR1200_SR_OVE  12       // Unused
866
`define OR1200_SR_DSX  13       // Unused
867
`define OR1200_SR_EPH  14
868
`define OR1200_SR_FO   15
869
`define OR1200_SR_CID  31:28    // Unimplemented
870 504 lampret
 
871 1207 lampret
//
872 504 lampret
// Bits that define offset inside the group
873 1207 lampret
//
874 504 lampret
`define OR1200_SPROFS_BITS 10:0
875
 
876 1207 lampret
//
877
// Default Exception Prefix
878
//
879
// 1'b0 - 0x0000_0000
880
// 1'b1 - 0xF000_0000
881
//
882
`define OR1200_SR_EPH_DEF       1'b0
883 504 lampret
 
884
/////////////////////////////////////////////////////
885
//
886
// Power Management (PM)
887
//
888
 
889
// Define it if you want PM implemented
890
`define OR1200_PM_IMPLEMENTED
891
 
892
// Bit positions inside PMR (don't change)
893
`define OR1200_PM_PMR_SDF 3:0
894
`define OR1200_PM_PMR_DME 4
895
`define OR1200_PM_PMR_SME 5
896
`define OR1200_PM_PMR_DCGE 6
897
`define OR1200_PM_PMR_UNUSED 31:7
898
 
899
// PMR offset inside PM group of registers
900
`define OR1200_PM_OFS_PMR 11'b0
901
 
902
// PM group
903
`define OR1200_SPRGRP_PM 5'd8
904
 
905
// Define if PMR can be read/written at any address inside PM group
906
`define OR1200_PM_PARTIAL_DECODING
907
 
908
// Define if reading PMR is allowed
909
`define OR1200_PM_READREGS
910
 
911
// Define if unused PMR bits should be zero
912
`define OR1200_PM_UNUSED_ZERO
913
 
914
 
915
/////////////////////////////////////////////////////
916
//
917
// Debug Unit (DU)
918
//
919
 
920
// Define it if you want DU implemented
921
`define OR1200_DU_IMPLEMENTED
922
 
923 895 lampret
// Define if you want trace buffer
924
// (for now only available for Xilinx Virtex FPGAs)
925 962 lampret
`ifdef OR1200_ASIC
926
`else
927 895 lampret
`define OR1200_DU_TB_IMPLEMENTED
928 962 lampret
`endif
929 895 lampret
 
930 504 lampret
// Address offsets of DU registers inside DU group
931 895 lampret
`define OR1200_DU_OFS_DMR1 11'd16
932
`define OR1200_DU_OFS_DMR2 11'd17
933
`define OR1200_DU_OFS_DSR 11'd20
934
`define OR1200_DU_OFS_DRR 11'd21
935 962 lampret
`define OR1200_DU_OFS_TBADR 11'h0ff
936
`define OR1200_DU_OFS_TBIA 11'h1xx
937
`define OR1200_DU_OFS_TBIM 11'h2xx
938
`define OR1200_DU_OFS_TBAR 11'h3xx
939
`define OR1200_DU_OFS_TBTS 11'h4xx
940 504 lampret
 
941
// Position of offset bits inside SPR address
942 895 lampret
`define OR1200_DUOFS_BITS 10:0
943 504 lampret
 
944
// Define if you want these DU registers to be implemented
945
`define OR1200_DU_DMR1
946
`define OR1200_DU_DMR2
947
`define OR1200_DU_DSR
948
`define OR1200_DU_DRR
949
 
950
// DMR1 bits
951
`define OR1200_DU_DMR1_ST 22
952
 
953
// DSR bits
954
`define OR1200_DU_DSR_WIDTH     14
955
`define OR1200_DU_DSR_RSTE      0
956
`define OR1200_DU_DSR_BUSEE     1
957
`define OR1200_DU_DSR_DPFE      2
958
`define OR1200_DU_DSR_IPFE      3
959 589 lampret
`define OR1200_DU_DSR_TTE       4
960 504 lampret
`define OR1200_DU_DSR_AE        5
961
`define OR1200_DU_DSR_IIE       6
962 589 lampret
`define OR1200_DU_DSR_IE        7
963 504 lampret
`define OR1200_DU_DSR_DME       8
964
`define OR1200_DU_DSR_IME       9
965
`define OR1200_DU_DSR_RE        10
966
`define OR1200_DU_DSR_SCE       11
967
`define OR1200_DU_DSR_BE        12
968
`define OR1200_DU_DSR_TE        13
969
 
970
// DRR bits
971
`define OR1200_DU_DRR_RSTE      0
972
`define OR1200_DU_DRR_BUSEE     1
973
`define OR1200_DU_DRR_DPFE      2
974
`define OR1200_DU_DRR_IPFE      3
975 589 lampret
`define OR1200_DU_DRR_TTE       4
976 504 lampret
`define OR1200_DU_DRR_AE        5
977
`define OR1200_DU_DRR_IIE       6
978 589 lampret
`define OR1200_DU_DRR_IE        7
979 504 lampret
`define OR1200_DU_DRR_DME       8
980
`define OR1200_DU_DRR_IME       9
981
`define OR1200_DU_DRR_RE        10
982
`define OR1200_DU_DRR_SCE       11
983
`define OR1200_DU_DRR_BE        12
984
`define OR1200_DU_DRR_TE        13
985
 
986
// Define if reading DU regs is allowed
987
`define OR1200_DU_READREGS
988
 
989
// Define if unused DU registers bits should be zero
990
`define OR1200_DU_UNUSED_ZERO
991
 
992
// DU operation commands
993
`define OR1200_DU_OP_READSPR    3'd4
994
`define OR1200_DU_OP_WRITESPR   3'd5
995
 
996 737 lampret
// Define if IF/LSU status is not needed by devel i/f
997
`define OR1200_DU_STATUS_UNIMPLEMENTED
998 504 lampret
 
999
/////////////////////////////////////////////////////
1000
//
1001
// Programmable Interrupt Controller (PIC)
1002
//
1003
 
1004
// Define it if you want PIC implemented
1005
`define OR1200_PIC_IMPLEMENTED
1006
 
1007
// Define number of interrupt inputs (2-31)
1008
`define OR1200_PIC_INTS 20
1009
 
1010
// Address offsets of PIC registers inside PIC group
1011
`define OR1200_PIC_OFS_PICMR 2'd0
1012
`define OR1200_PIC_OFS_PICSR 2'd2
1013
 
1014
// Position of offset bits inside SPR address
1015
`define OR1200_PICOFS_BITS 1:0
1016
 
1017
// Define if you want these PIC registers to be implemented
1018
`define OR1200_PIC_PICMR
1019
`define OR1200_PIC_PICSR
1020
 
1021
// Define if reading PIC registers is allowed
1022
`define OR1200_PIC_READREGS
1023
 
1024
// Define if unused PIC register bits should be zero
1025
`define OR1200_PIC_UNUSED_ZERO
1026
 
1027
 
1028
/////////////////////////////////////////////////////
1029
//
1030
// Tick Timer (TT)
1031
//
1032
 
1033
// Define it if you want TT implemented
1034
`define OR1200_TT_IMPLEMENTED
1035
 
1036
// Address offsets of TT registers inside TT group
1037
`define OR1200_TT_OFS_TTMR 1'd0
1038
`define OR1200_TT_OFS_TTCR 1'd1
1039
 
1040
// Position of offset bits inside SPR group
1041
`define OR1200_TTOFS_BITS 0
1042
 
1043
// Define if you want these TT registers to be implemented
1044
`define OR1200_TT_TTMR
1045
`define OR1200_TT_TTCR
1046
 
1047
// TTMR bits
1048
`define OR1200_TT_TTMR_TP 27:0
1049
`define OR1200_TT_TTMR_IP 28
1050
`define OR1200_TT_TTMR_IE 29
1051
`define OR1200_TT_TTMR_M 31:30
1052
 
1053
// Define if reading TT registers is allowed
1054
`define OR1200_TT_READREGS
1055
 
1056
 
1057
//////////////////////////////////////////////
1058
//
1059
// MAC
1060
//
1061
`define OR1200_MAC_ADDR         0        // MACLO 0xxxxxxxx1, MACHI 0xxxxxxxx0
1062
`define OR1200_MAC_SPR_WE               // Define if MACLO/MACHI are SPR writable
1063
 
1064
 
1065
//////////////////////////////////////////////
1066
//
1067
// Data MMU (DMMU)
1068
//
1069
 
1070
//
1071
// Address that selects between TLB TR and MR
1072
//
1073 660 lampret
`define OR1200_DTLB_TM_ADDR     7
1074 504 lampret
 
1075
//
1076
// DTLBMR fields
1077
//
1078
`define OR1200_DTLBMR_V_BITS    0
1079
`define OR1200_DTLBMR_CID_BITS  4:1
1080
`define OR1200_DTLBMR_RES_BITS  11:5
1081
`define OR1200_DTLBMR_VPN_BITS  31:13
1082
 
1083
//
1084
// DTLBTR fields
1085
//
1086
`define OR1200_DTLBTR_CC_BITS   0
1087
`define OR1200_DTLBTR_CI_BITS   1
1088
`define OR1200_DTLBTR_WBC_BITS  2
1089
`define OR1200_DTLBTR_WOM_BITS  3
1090
`define OR1200_DTLBTR_A_BITS    4
1091
`define OR1200_DTLBTR_D_BITS    5
1092
`define OR1200_DTLBTR_URE_BITS  6
1093
`define OR1200_DTLBTR_UWE_BITS  7
1094
`define OR1200_DTLBTR_SRE_BITS  8
1095
`define OR1200_DTLBTR_SWE_BITS  9
1096
`define OR1200_DTLBTR_RES_BITS  11:10
1097
`define OR1200_DTLBTR_PPN_BITS  31:13
1098
 
1099
//
1100
// DTLB configuration
1101
//
1102
`define OR1200_DMMU_PS          13                                      // 13 for 8KB page size
1103
`define OR1200_DTLB_INDXW       6                                       // 6 for 64 entry DTLB  7 for 128 entries
1104
`define OR1200_DTLB_INDXL       `OR1200_DMMU_PS                         // 13                   13
1105
`define OR1200_DTLB_INDXH       `OR1200_DMMU_PS+`OR1200_DTLB_INDXW-1    // 18                   19
1106
`define OR1200_DTLB_INDX        `OR1200_DTLB_INDXH:`OR1200_DTLB_INDXL   // 18:13                19:13
1107
`define OR1200_DTLB_TAGW        32-`OR1200_DTLB_INDXW-`OR1200_DMMU_PS   // 13                   12
1108
`define OR1200_DTLB_TAGL        `OR1200_DTLB_INDXH+1                    // 19                   20
1109
`define OR1200_DTLB_TAG         31:`OR1200_DTLB_TAGL                    // 31:19                31:20
1110
`define OR1200_DTLBMRW          `OR1200_DTLB_TAGW+1                     // +1 because of V bit
1111
`define OR1200_DTLBTRW          32-`OR1200_DMMU_PS+5                    // +5 because of protection bits and CI
1112
 
1113 660 lampret
//
1114
// Cache inhibit while DMMU is not enabled/implemented
1115
//
1116
// cache inhibited 0GB-4GB              1'b1
1117 735 lampret
// cache inhibited 0GB-2GB              !dcpu_adr_i[31]
1118
// cache inhibited 0GB-1GB 2GB-3GB      !dcpu_adr_i[30]
1119
// cache inhibited 1GB-2GB 3GB-4GB      dcpu_adr_i[30]
1120
// cache inhibited 2GB-4GB (default)    dcpu_adr_i[31]
1121 660 lampret
// cached 0GB-4GB                       1'b0
1122
//
1123
`define OR1200_DMMU_CI                  dcpu_adr_i[31]
1124 504 lampret
 
1125 660 lampret
 
1126 504 lampret
//////////////////////////////////////////////
1127
//
1128
// Insn MMU (IMMU)
1129
//
1130
 
1131
//
1132
// Address that selects between TLB TR and MR
1133
//
1134 660 lampret
`define OR1200_ITLB_TM_ADDR     7
1135 504 lampret
 
1136
//
1137
// ITLBMR fields
1138
//
1139
`define OR1200_ITLBMR_V_BITS    0
1140
`define OR1200_ITLBMR_CID_BITS  4:1
1141
`define OR1200_ITLBMR_RES_BITS  11:5
1142
`define OR1200_ITLBMR_VPN_BITS  31:13
1143
 
1144
//
1145
// ITLBTR fields
1146
//
1147
`define OR1200_ITLBTR_CC_BITS   0
1148
`define OR1200_ITLBTR_CI_BITS   1
1149
`define OR1200_ITLBTR_WBC_BITS  2
1150
`define OR1200_ITLBTR_WOM_BITS  3
1151
`define OR1200_ITLBTR_A_BITS    4
1152
`define OR1200_ITLBTR_D_BITS    5
1153
`define OR1200_ITLBTR_SXE_BITS  6
1154
`define OR1200_ITLBTR_UXE_BITS  7
1155
`define OR1200_ITLBTR_RES_BITS  11:8
1156
`define OR1200_ITLBTR_PPN_BITS  31:13
1157
 
1158
//
1159
// ITLB configuration
1160
//
1161
`define OR1200_IMMU_PS          13                                      // 13 for 8KB page size
1162
`define OR1200_ITLB_INDXW       6                                       // 6 for 64 entry ITLB  7 for 128 entries
1163
`define OR1200_ITLB_INDXL       `OR1200_IMMU_PS                         // 13                   13
1164
`define OR1200_ITLB_INDXH       `OR1200_IMMU_PS+`OR1200_ITLB_INDXW-1    // 18                   19
1165
`define OR1200_ITLB_INDX        `OR1200_ITLB_INDXH:`OR1200_ITLB_INDXL   // 18:13                19:13
1166
`define OR1200_ITLB_TAGW        32-`OR1200_ITLB_INDXW-`OR1200_IMMU_PS   // 13                   12
1167
`define OR1200_ITLB_TAGL        `OR1200_ITLB_INDXH+1                    // 19                   20
1168
`define OR1200_ITLB_TAG         31:`OR1200_ITLB_TAGL                    // 31:19                31:20
1169
`define OR1200_ITLBMRW          `OR1200_ITLB_TAGW+1                     // +1 because of V bit
1170
`define OR1200_ITLBTRW          32-`OR1200_IMMU_PS+3                    // +3 because of protection bits and CI
1171
 
1172 660 lampret
//
1173
// Cache inhibit while IMMU is not enabled/implemented
1174 735 lampret
// Note: all combinations that use icpu_adr_i cause async loop
1175 660 lampret
//
1176
// cache inhibited 0GB-4GB              1'b1
1177 735 lampret
// cache inhibited 0GB-2GB              !icpu_adr_i[31]
1178
// cache inhibited 0GB-1GB 2GB-3GB      !icpu_adr_i[30]
1179
// cache inhibited 1GB-2GB 3GB-4GB      icpu_adr_i[30]
1180
// cache inhibited 2GB-4GB (default)    icpu_adr_i[31]
1181 660 lampret
// cached 0GB-4GB                       1'b0
1182
//
1183 735 lampret
`define OR1200_IMMU_CI                  1'b0
1184 504 lampret
 
1185 660 lampret
 
1186 504 lampret
/////////////////////////////////////////////////
1187
//
1188
// Insn cache (IC)
1189
//
1190
 
1191
// 3 for 8 bytes, 4 for 16 bytes etc
1192
`define OR1200_ICLS             4
1193
 
1194
//
1195
// IC configurations
1196
//
1197
`ifdef OR1200_IC_1W_4KB
1198
`define OR1200_ICSIZE                   12                      // 4096
1199
`define OR1200_ICINDX                   `OR1200_ICSIZE-2        // 10
1200
`define OR1200_ICINDXH                  `OR1200_ICSIZE-1        // 11
1201
`define OR1200_ICTAGL                   `OR1200_ICINDXH+1       // 12
1202
`define OR1200_ICTAG                    `OR1200_ICSIZE-`OR1200_ICLS     // 8
1203
`define OR1200_ICTAG_W                  21
1204
`endif
1205
`ifdef OR1200_IC_1W_8KB
1206
`define OR1200_ICSIZE                   13                      // 8192
1207
`define OR1200_ICINDX                   `OR1200_ICSIZE-2        // 11
1208
`define OR1200_ICINDXH                  `OR1200_ICSIZE-1        // 12
1209
`define OR1200_ICTAGL                   `OR1200_ICINDXH+1       // 13
1210
`define OR1200_ICTAG                    `OR1200_ICSIZE-`OR1200_ICLS     // 9
1211
`define OR1200_ICTAG_W                  20
1212
`endif
1213
 
1214
 
1215
/////////////////////////////////////////////////
1216
//
1217
// Data cache (DC)
1218
//
1219
 
1220
// 3 for 8 bytes, 4 for 16 bytes etc
1221
`define OR1200_DCLS             4
1222
 
1223 636 lampret
// Define to perform store refill (potential performance penalty)
1224
// `define OR1200_DC_STORE_REFILL
1225
 
1226 504 lampret
//
1227
// DC configurations
1228
//
1229
`ifdef OR1200_DC_1W_4KB
1230
`define OR1200_DCSIZE                   12                      // 4096
1231
`define OR1200_DCINDX                   `OR1200_DCSIZE-2        // 10
1232
`define OR1200_DCINDXH                  `OR1200_DCSIZE-1        // 11
1233
`define OR1200_DCTAGL                   `OR1200_DCINDXH+1       // 12
1234
`define OR1200_DCTAG                    `OR1200_DCSIZE-`OR1200_DCLS     // 8
1235
`define OR1200_DCTAG_W                  21
1236
`endif
1237
`ifdef OR1200_DC_1W_8KB
1238
`define OR1200_DCSIZE                   13                      // 8192
1239
`define OR1200_DCINDX                   `OR1200_DCSIZE-2        // 11
1240
`define OR1200_DCINDXH                  `OR1200_DCSIZE-1        // 12
1241
`define OR1200_DCTAGL                   `OR1200_DCINDXH+1       // 13
1242
`define OR1200_DCTAG                    `OR1200_DCSIZE-`OR1200_DCLS     // 9
1243
`define OR1200_DCTAG_W                  20
1244
`endif
1245 994 lampret
 
1246
/////////////////////////////////////////////////
1247
//
1248
// Store buffer (SB)
1249
//
1250
 
1251
//
1252
// Store buffer
1253
//
1254
// It will improve performance by "caching" CPU stores
1255
// using store buffer. This is most important for function
1256
// prologues because DC can only work in write though mode
1257
// and all stores would have to complete external WB writes
1258
// to memory.
1259
// Store buffer is between DC and data BIU.
1260
// All stores will be stored into store buffer and immediately
1261
// completed by the CPU, even though actual external writes
1262
// will be performed later. As a consequence store buffer masks
1263
// all data bus errors related to stores (data bus errors
1264
// related to loads are delivered normally).
1265
// All pending CPU loads will wait until store buffer is empty to
1266
// ensure strict memory model. Right now this is necessary because
1267
// we don't make destinction between cached and cache inhibited
1268
// address space, so we simply empty store buffer until loads
1269
// can begin.
1270
//
1271
// It makes design a bit bigger, depending what is the number of
1272
// entries in SB FIFO. Number of entries can be changed further
1273
// down.
1274
//
1275
//`define OR1200_SB_IMPLEMENTED
1276
 
1277
//
1278
// Number of store buffer entries
1279
//
1280
// Verified number of entries are 4 and 8 entries
1281
// (2 and 3 for OR1200_SB_LOG). OR1200_SB_ENTRIES must
1282
// always match 2**OR1200_SB_LOG.
1283
// To disable store buffer, undefine
1284
// OR1200_SB_IMPLEMENTED.
1285
//
1286
`define OR1200_SB_LOG           2       // 2 or 3
1287
`define OR1200_SB_ENTRIES       4       // 4 or 8
1288 1023 lampret
 
1289
 
1290 1171 lampret
/////////////////////////////////////////////////
1291
//
1292
// Quick Embedded Memory (QMEM)
1293
//
1294
 
1295
//
1296
// Quick Embedded Memory
1297
//
1298
// Instantiation of dedicated insn/data memory (RAM or ROM).
1299
// Insn fetch has effective throughput 1insn / clock cycle.
1300
// Data load takes two clock cycles / access, data store
1301
// takes 1 clock cycle / access (if there is no insn fetch)).
1302
// Memory instantiation is shared between insn and data,
1303
// meaning if insn fetch are performed, data load/store
1304
// performance will be lower.
1305
//
1306
// Main reason for QMEM is to put some time critical functions
1307
// into this memory and to have predictable and fast access
1308
// to these functions. (soft fpu, context switch, exception
1309
// handlers, stack, etc)
1310
//
1311
// It makes design a bit bigger and slower. QMEM sits behind
1312
// IMMU/DMMU so all addresses are physical (so the MMUs can be
1313
// used with QMEM and QMEM is seen by the CPU just like any other
1314
// memory in the system). IC/DC are sitting behind QMEM so the
1315
// whole design timing might be worse with QMEM implemented.
1316
//
1317 1207 lampret
`define OR1200_QMEM_IMPLEMENTED
1318 1171 lampret
 
1319
//
1320
// Base address and mask of QMEM
1321
//
1322
// Base address defines first address of QMEM. Mask defines
1323
// QMEM range in address space. Actual size of QMEM is however
1324
// determined with instantiated RAM/ROM. However bigger
1325
// mask will reserve more address space for QMEM, but also
1326
// make design faster, while more tight mask will take
1327
// less address space but also make design slower. If
1328
// instantiated RAM/ROM is smaller than space reserved with
1329
// the mask, instatiated RAM/ROM will also be shadowed
1330
// at higher addresses in reserved space.
1331
//
1332
`define OR1200_QMEM_ADDR        32'h0080_0000
1333
`define OR1200_QMEM_MASK        32'hfff0_0000   // Max QMEM size 1MB
1334
 
1335
 
1336 1023 lampret
/////////////////////////////////////////////////////
1337
//
1338
// VR, UPR and Configuration Registers
1339
//
1340
//
1341
// VR, UPR and configuration registers are optional. If 
1342
// implemented, operating system can automatically figure
1343
// out how to use the processor because it knows 
1344
// what units are available in the processor and how they
1345
// are configured.
1346
//
1347
// This section must be last in or1200_defines.v file so
1348
// that all units are already configured and thus
1349
// configuration registers are properly set.
1350
// 
1351
 
1352
// Define if you want configuration registers implemented
1353
`define OR1200_CFGR_IMPLEMENTED
1354
 
1355
// Define if you want full address decode inside SYS group
1356
`define OR1200_SYS_FULL_DECODE
1357
 
1358
// Offsets of VR, UPR and CFGR registers
1359
`define OR1200_SPRGRP_SYS_VR            4'h0
1360
`define OR1200_SPRGRP_SYS_UPR           4'h1
1361
`define OR1200_SPRGRP_SYS_CPUCFGR       4'h2
1362
`define OR1200_SPRGRP_SYS_DMMUCFGR      4'h3
1363
`define OR1200_SPRGRP_SYS_IMMUCFGR      4'h4
1364
`define OR1200_SPRGRP_SYS_DCCFGR        4'h5
1365
`define OR1200_SPRGRP_SYS_ICCFGR        4'h6
1366
`define OR1200_SPRGRP_SYS_DCFGR 4'h7
1367
 
1368
// VR fields
1369
`define OR1200_VR_REV_BITS              5:0
1370
`define OR1200_VR_RES1_BITS             15:6
1371
`define OR1200_VR_CFG_BITS              23:16
1372
`define OR1200_VR_VER_BITS              31:24
1373
 
1374
// VR values
1375
`define OR1200_VR_REV                   6'h00
1376
`define OR1200_VR_RES1                  10'h000
1377
`define OR1200_VR_CFG                   8'h00
1378
`define OR1200_VR_VER                   8'h12
1379
 
1380
// UPR fields
1381
`define OR1200_UPR_UP_BITS              0
1382
`define OR1200_UPR_DCP_BITS             1
1383
`define OR1200_UPR_ICP_BITS             2
1384
`define OR1200_UPR_DMP_BITS             3
1385
`define OR1200_UPR_IMP_BITS             4
1386
`define OR1200_UPR_MP_BITS              5
1387
`define OR1200_UPR_DUP_BITS             6
1388
`define OR1200_UPR_PCUP_BITS            7
1389
`define OR1200_UPR_PMP_BITS             8
1390
`define OR1200_UPR_PICP_BITS            9
1391
`define OR1200_UPR_TTP_BITS             10
1392
`define OR1200_UPR_RES1_BITS            23:11
1393
`define OR1200_UPR_CUP_BITS             31:24
1394
 
1395
// UPR values
1396
`define OR1200_UPR_UP                   1'b1
1397
`ifdef OR1200_NO_DC
1398
`define OR1200_UPR_DCP                  1'b0
1399
`else
1400
`define OR1200_UPR_DCP                  1'b1
1401
`endif
1402
`ifdef OR1200_NO_IC
1403
`define OR1200_UPR_ICP                  1'b0
1404
`else
1405
`define OR1200_UPR_ICP                  1'b1
1406
`endif
1407
`ifdef OR1200_NO_DMMU
1408
`define OR1200_UPR_DMP                  1'b0
1409
`else
1410
`define OR1200_UPR_DMP                  1'b1
1411
`endif
1412
`ifdef OR1200_NO_IMMU
1413
`define OR1200_UPR_IMP                  1'b0
1414
`else
1415
`define OR1200_UPR_IMP                  1'b1
1416
`endif
1417
`define OR1200_UPR_MP                   1'b1    // MAC always present
1418
`ifdef OR1200_DU_IMPLEMENTED
1419
`define OR1200_UPR_DUP                  1'b1
1420
`else
1421
`define OR1200_UPR_DUP                  1'b0
1422
`endif
1423
`define OR1200_UPR_PCUP                 1'b0    // Performance counters not present
1424
`ifdef OR1200_DU_IMPLEMENTED
1425
`define OR1200_UPR_PMP                  1'b1
1426
`else
1427
`define OR1200_UPR_PMP                  1'b0
1428
`endif
1429
`ifdef OR1200_DU_IMPLEMENTED
1430
`define OR1200_UPR_PICP                 1'b1
1431
`else
1432
`define OR1200_UPR_PICP                 1'b0
1433
`endif
1434
`ifdef OR1200_DU_IMPLEMENTED
1435
`define OR1200_UPR_TTP                  1'b1
1436
`else
1437
`define OR1200_UPR_TTP                  1'b0
1438
`endif
1439
`define OR1200_UPR_RES1                 13'h0000
1440
`define OR1200_UPR_CUP                  8'h00
1441
 
1442
// CPUCFGR fields
1443
`define OR1200_CPUCFGR_NSGF_BITS        3:0
1444
`define OR1200_CPUCFGR_HGF_BITS 4
1445
`define OR1200_CPUCFGR_OB32S_BITS       5
1446
`define OR1200_CPUCFGR_OB64S_BITS       6
1447
`define OR1200_CPUCFGR_OF32S_BITS       7
1448
`define OR1200_CPUCFGR_OF64S_BITS       8
1449
`define OR1200_CPUCFGR_OV64S_BITS       9
1450
`define OR1200_CPUCFGR_RES1_BITS        31:10
1451
 
1452
// CPUCFGR values
1453
`define OR1200_CPUCFGR_NSGF             4'h0
1454
`define OR1200_CPUCFGR_HGF              1'b0
1455
`define OR1200_CPUCFGR_OB32S            1'b1
1456
`define OR1200_CPUCFGR_OB64S            1'b0
1457
`define OR1200_CPUCFGR_OF32S            1'b0
1458
`define OR1200_CPUCFGR_OF64S            1'b0
1459
`define OR1200_CPUCFGR_OV64S            1'b0
1460
`define OR1200_CPUCFGR_RES1             22'h000000
1461
 
1462
// DMMUCFGR fields
1463
`define OR1200_DMMUCFGR_NTW_BITS        1:0
1464
`define OR1200_DMMUCFGR_NTS_BITS        4:2
1465
`define OR1200_DMMUCFGR_NAE_BITS        7:5
1466
`define OR1200_DMMUCFGR_CRI_BITS        8
1467
`define OR1200_DMMUCFGR_PRI_BITS        9
1468
`define OR1200_DMMUCFGR_TEIRI_BITS      10
1469
`define OR1200_DMMUCFGR_HTR_BITS        11
1470
`define OR1200_DMMUCFGR_RES1_BITS       31:12
1471
 
1472
// DMMUCFGR values
1473
`ifdef OR1200_NO_DMMU
1474
`define OR1200_DMMUCFGR_NTW             2'h0    // Irrelevant
1475
`define OR1200_DMMUCFGR_NTS             3'h0    // Irrelevant
1476
`define OR1200_DMMUCFGR_NAE             3'h0    // Irrelevant
1477
`define OR1200_DMMUCFGR_CRI             1'b0    // Irrelevant
1478
`define OR1200_DMMUCFGR_PRI             1'b0    // Irrelevant
1479
`define OR1200_DMMUCFGR_TEIRI           1'b0    // Irrelevant
1480
`define OR1200_DMMUCFGR_HTR             1'b0    // Irrelevant
1481
`define OR1200_DMMUCFGR_RES1            20'h00000
1482
`else
1483
`define OR1200_DMMUCFGR_NTW             2'h0    // 1 TLB way
1484
`define OR1200_DMMUCFGR_NTS 3'h`OR1200_DTLB_INDXW       // Num TLB sets
1485
`define OR1200_DMMUCFGR_NAE             3'h0    // No ATB entries
1486
`define OR1200_DMMUCFGR_CRI             1'b0    // No control register
1487
`define OR1200_DMMUCFGR_PRI             1'b0    // No protection reg
1488
`define OR1200_DMMUCFGR_TEIRI           1'b1    // TLB entry inv reg impl.
1489
`define OR1200_DMMUCFGR_HTR             1'b0    // No HW TLB reload
1490
`define OR1200_DMMUCFGR_RES1            20'h00000
1491
`endif
1492
 
1493
// IMMUCFGR fields
1494
`define OR1200_IMMUCFGR_NTW_BITS        1:0
1495
`define OR1200_IMMUCFGR_NTS_BITS        4:2
1496
`define OR1200_IMMUCFGR_NAE_BITS        7:5
1497
`define OR1200_IMMUCFGR_CRI_BITS        8
1498
`define OR1200_IMMUCFGR_PRI_BITS        9
1499
`define OR1200_IMMUCFGR_TEIRI_BITS      10
1500
`define OR1200_IMMUCFGR_HTR_BITS        11
1501
`define OR1200_IMMUCFGR_RES1_BITS       31:12
1502
 
1503
// IMMUCFGR values
1504
`ifdef OR1200_NO_IMMU
1505
`define OR1200_IMMUCFGR_NTW             2'h0    // Irrelevant
1506
`define OR1200_IMMUCFGR_NTS             3'h0    // Irrelevant
1507
`define OR1200_IMMUCFGR_NAE             3'h0    // Irrelevant
1508
`define OR1200_IMMUCFGR_CRI             1'b0    // Irrelevant
1509
`define OR1200_IMMUCFGR_PRI             1'b0    // Irrelevant
1510
`define OR1200_IMMUCFGR_TEIRI           1'b0    // Irrelevant
1511
`define OR1200_IMMUCFGR_HTR             1'b0    // Irrelevant
1512
`define OR1200_IMMUCFGR_RES1            20'h00000
1513
`else
1514
`define OR1200_IMMUCFGR_NTW             2'h0    // 1 TLB way
1515
`define OR1200_IMMUCFGR_NTS 3'h`OR1200_ITLB_INDXW       // Num TLB sets
1516
`define OR1200_IMMUCFGR_NAE             3'h0    // No ATB entry
1517
`define OR1200_IMMUCFGR_CRI             1'b0    // No control reg
1518
`define OR1200_IMMUCFGR_PRI             1'b0    // No protection reg
1519
`define OR1200_IMMUCFGR_TEIRI           1'b1    // TLB entry inv reg impl
1520
`define OR1200_IMMUCFGR_HTR             1'b0    // No HW TLB reload
1521
`define OR1200_IMMUCFGR_RES1            20'h00000
1522
`endif
1523
 
1524
// DCCFGR fields
1525
`define OR1200_DCCFGR_NCW_BITS          2:0
1526
`define OR1200_DCCFGR_NCS_BITS          6:3
1527
`define OR1200_DCCFGR_CBS_BITS          7
1528
`define OR1200_DCCFGR_CWS_BITS          8
1529
`define OR1200_DCCFGR_CCRI_BITS         9
1530
`define OR1200_DCCFGR_CBIRI_BITS        10
1531
`define OR1200_DCCFGR_CBPRI_BITS        11
1532
`define OR1200_DCCFGR_CBLRI_BITS        12
1533
`define OR1200_DCCFGR_CBFRI_BITS        13
1534
`define OR1200_DCCFGR_CBWBRI_BITS       14
1535
`define OR1200_DCCFGR_RES1_BITS 31:15
1536
 
1537
// DCCFGR values
1538
`ifdef OR1200_NO_DC
1539
`define OR1200_DCCFGR_NCW               3'h0    // Irrelevant
1540
`define OR1200_DCCFGR_NCS               4'h0    // Irrelevant
1541
`define OR1200_DCCFGR_CBS               1'b0    // Irrelevant
1542
`define OR1200_DCCFGR_CWS               1'b0    // Irrelevant
1543
`define OR1200_DCCFGR_CCRI              1'b1    // Irrelevant
1544
`define OR1200_DCCFGR_CBIRI             1'b1    // Irrelevant
1545
`define OR1200_DCCFGR_CBPRI             1'b0    // Irrelevant
1546
`define OR1200_DCCFGR_CBLRI             1'b0    // Irrelevant
1547
`define OR1200_DCCFGR_CBFRI             1'b1    // Irrelevant
1548
`define OR1200_DCCFGR_CBWBRI            1'b0    // Irrelevant
1549
`define OR1200_DCCFGR_RES1              17'h00000
1550
`else
1551
`define OR1200_DCCFGR_NCW               3'h0    // 1 cache way
1552
`define OR1200_DCCFGR_NCS (`OR1200_DCTAG)       // Num cache sets
1553
`define OR1200_DCCFGR_CBS (`OR1200_DCLS-4)      // 16 byte cache block
1554
`define OR1200_DCCFGR_CWS               1'b0    // Write-through strategy
1555
`define OR1200_DCCFGR_CCRI              1'b1    // Cache control reg impl.
1556
`define OR1200_DCCFGR_CBIRI             1'b1    // Cache block inv reg impl.
1557
`define OR1200_DCCFGR_CBPRI             1'b0    // Cache block prefetch reg not impl.
1558
`define OR1200_DCCFGR_CBLRI             1'b0    // Cache block lock reg not impl.
1559
`define OR1200_DCCFGR_CBFRI             1'b1    // Cache block flush reg impl.
1560
`define OR1200_DCCFGR_CBWBRI            1'b0    // Cache block WB reg not impl.
1561
`define OR1200_DCCFGR_RES1              17'h00000
1562
`endif
1563
 
1564
// ICCFGR fields
1565
`define OR1200_ICCFGR_NCW_BITS          2:0
1566
`define OR1200_ICCFGR_NCS_BITS          6:3
1567
`define OR1200_ICCFGR_CBS_BITS          7
1568
`define OR1200_ICCFGR_CWS_BITS          8
1569
`define OR1200_ICCFGR_CCRI_BITS         9
1570
`define OR1200_ICCFGR_CBIRI_BITS        10
1571
`define OR1200_ICCFGR_CBPRI_BITS        11
1572
`define OR1200_ICCFGR_CBLRI_BITS        12
1573
`define OR1200_ICCFGR_CBFRI_BITS        13
1574
`define OR1200_ICCFGR_CBWBRI_BITS       14
1575
`define OR1200_ICCFGR_RES1_BITS 31:15
1576
 
1577
// ICCFGR values
1578
`ifdef OR1200_NO_IC
1579
`define OR1200_ICCFGR_NCW               3'h0    // Irrelevant
1580
`define OR1200_ICCFGR_NCS               4'h0    // Irrelevant
1581
`define OR1200_ICCFGR_CBS               1'b0    // Irrelevant
1582
`define OR1200_ICCFGR_CWS               1'b0    // Irrelevant
1583
`define OR1200_ICCFGR_CCRI              1'b0    // Irrelevant
1584
`define OR1200_ICCFGR_CBIRI             1'b0    // Irrelevant
1585
`define OR1200_ICCFGR_CBPRI             1'b0    // Irrelevant
1586
`define OR1200_ICCFGR_CBLRI             1'b0    // Irrelevant
1587
`define OR1200_ICCFGR_CBFRI             1'b0    // Irrelevant
1588
`define OR1200_ICCFGR_CBWBRI            1'b0    // Irrelevant
1589
`define OR1200_ICCFGR_RES1              17'h00000
1590
`else
1591
`define OR1200_ICCFGR_NCW               3'h0    // 1 cache way
1592
`define OR1200_ICCFGR_NCS (`OR1200_ICTAG)       // Num cache sets
1593
`define OR1200_ICCFGR_CBS (`OR1200_ICLS-4)      // 16 byte cache block
1594
`define OR1200_ICCFGR_CWS               1'b0    // Irrelevant
1595
`define OR1200_ICCFGR_CCRI              1'b1    // Cache control reg impl.
1596
`define OR1200_ICCFGR_CBIRI             1'b1    // Cache block inv reg impl.
1597
`define OR1200_ICCFGR_CBPRI             1'b0    // Cache block prefetch reg not impl.
1598
`define OR1200_ICCFGR_CBLRI             1'b0    // Cache block lock reg not impl.
1599
`define OR1200_ICCFGR_CBFRI             1'b1    // Cache block flush reg impl.
1600
`define OR1200_ICCFGR_CBWBRI            1'b0    // Irrelevant
1601
`define OR1200_ICCFGR_RES1              17'h00000
1602
`endif
1603
 
1604
// DCFGR fields
1605
`define OR1200_DCFGR_NDP_BITS           2:0
1606
`define OR1200_DCFGR_WPCI_BITS          3
1607
`define OR1200_DCFGR_RES1_BITS          31:4
1608
 
1609
// DCFGR values
1610
`define OR1200_DCFGR_NDP                3'h0    // Zero DVR/DCR pairs
1611
`define OR1200_DCFGR_WPCI               1'b0    // WP counters not impl.
1612
`define OR1200_DCFGR_RES1               28'h0000000

powered by: WebSVN 2.1.0

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