-
Notifications
You must be signed in to change notification settings - Fork 147
/
mor1kx.core
200 lines (176 loc) · 6.35 KB
/
mor1kx.core
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
CAPI=2:
name : ::mor1kx:5.2
description : mor1kx - an OpenRISC processor IP core
filesets:
core:
files:
- rtl/verilog/mor1kx-defines.v : {is_include_file : true}
- rtl/verilog/mor1kx-sprs.v : {is_include_file : true}
- rtl/verilog/mor1kx_utils.vh : {is_include_file : true}
- rtl/verilog/mor1kx_branch_predictor_gshare.v
- rtl/verilog/mor1kx_branch_predictor_simple.v
- rtl/verilog/mor1kx_branch_predictor_saturation_counter.v
- rtl/verilog/mor1kx_branch_prediction.v
- rtl/verilog/mor1kx_bus_if_wb32.v
- rtl/verilog/mor1kx_cache_lru.v
- rtl/verilog/mor1kx_cfgrs.v
- rtl/verilog/mor1kx_cpu_cappuccino.v
- rtl/verilog/mor1kx_cpu_espresso.v
- rtl/verilog/mor1kx_cpu_prontoespresso.v
- rtl/verilog/mor1kx_cpu.v
- rtl/verilog/mor1kx_ctrl_cappuccino.v
- rtl/verilog/mor1kx_ctrl_espresso.v
- rtl/verilog/mor1kx_ctrl_prontoespresso.v
- rtl/verilog/mor1kx_dcache.v
- rtl/verilog/mor1kx_decode_execute_cappuccino.v
- rtl/verilog/mor1kx_decode.v
- rtl/verilog/mor1kx_dmmu.v
- rtl/verilog/mor1kx_execute_alu.v
- rtl/verilog/mor1kx_execute_ctrl_cappuccino.v
- rtl/verilog/mor1kx_fetch_cappuccino.v
- rtl/verilog/mor1kx_fetch_espresso.v
- rtl/verilog/mor1kx_fetch_prontoespresso.v
- rtl/verilog/mor1kx_fetch_tcm_prontoespresso.v
- rtl/verilog/mor1kx_icache.v
- rtl/verilog/mor1kx_immu.v
- rtl/verilog/mor1kx_lsu_cappuccino.v
- rtl/verilog/mor1kx_lsu_espresso.v
- rtl/verilog/mor1kx_pcu.v
- rtl/verilog/mor1kx_pic.v
- rtl/verilog/mor1kx_rf_cappuccino.v
- rtl/verilog/mor1kx_rf_espresso.v
- rtl/verilog/mor1kx_simple_dpram_sclk.v
- rtl/verilog/mor1kx_store_buffer.v
- rtl/verilog/mor1kx_ticktimer.v
- rtl/verilog/mor1kx_true_dpram_sclk.v
- rtl/verilog/mor1kx.v
- rtl/verilog/mor1kx_wb_mux_cappuccino.v
- rtl/verilog/mor1kx_wb_mux_espresso.v
file_type : verilogSource
fpu:
files:
- rtl/verilog/pfpu32/pfpu32_addsub.v
- rtl/verilog/pfpu32/pfpu32_cmp.v
- rtl/verilog/pfpu32/pfpu32_f2i.v
- rtl/verilog/pfpu32/pfpu32_i2f.v
- rtl/verilog/pfpu32/pfpu32_muldiv.v
- rtl/verilog/pfpu32/pfpu32_rnd.v
- rtl/verilog/pfpu32/pfpu32_top.v
file_type : verilogSource
monitor:
files : [bench/verilog/mor1kx_monitor.v]
file_type : verilogSource
parameters:
trace_enable:
datatype : bool
description : Enable mor1kx instruction trace
paramtype : plusarg
trace_to_screen:
datatype : bool
description : Output mor1kx instruction trace to screen
paramtype : plusarg
FEATURE_DATACACHE:
datatype : str
description: Enable the mor1kx data cache, use ENABLED, NONE. default NONE
paramtype : vlogparam
scope : private
FEATURE_DMMU:
datatype : str
description: Enable the mor1kx data bus mmu, use ENABLED, NONE. default NONE
paramtype : vlogparam
scope : private
FEATURE_INSTRUCTIONCACHE:
datatype : str
description: Enable the mor1kx instruction cache, use ENABLED, NONE. default NONE
paramtype : vlogparam
scope : private
FEATURE_IMMU:
datatype : str
description: Enable the mor1kx instruction bus mmu, use ENABLED, NONE. default NONE
paramtype : vlogparam
scope : private
FEATURE_FPU:
datatype : str
description: Enable the mor1kx floating point unit, use ENABLED, NONE. default NONE
paramtype : vlogparam
scope : private
FEATURE_ROR:
datatype : str
description: Enable the mor1kx rotate right instruction, use ENABLED, NONE. default NONE
paramtype : vlogparam
scope : private
FEATURE_EXT:
datatype : str
description: Enable the mor1kx sign extend instructions, use ENABLED, NONE. default NONE
paramtype : vlogparam
scope : private
OPTION_DCACHE_BLOCK_WIDTH:
datatype : int
description: Configure mor1kx d-cache block width in bits, controls block size. default 5
paramtype : vlogparam
scope : private
OPTION_DCACHE_LIMIT_WIDTH:
datatype : int
description: Configure mor1kx d-cache limit in bits. default 32
paramtype : vlogparam
scope : private
OPTION_DCACHE_SET_WIDTH:
datatype : int
description: Configure mor1kx d-cache set width in bits, controls numbers of sets. default 9
paramtype : vlogparam
scope : private
OPTION_DCACHE_WAYS:
datatype : int
description: Configure mor1kx d-cache ways, controls number of blocks per set. default 2
paramtype : vlogparam
scope : private
OPTION_ICACHE_BLOCK_WIDTH:
datatype : int
description: Configure mor1kx i-cache block width in bits, controls block size. default 5
paramtype : vlogparam
scope : private
OPTION_ICACHE_LIMIT_WIDTH:
datatype : int
description: Configure mor1kx i-cache limit in bits. default 32
paramtype : vlogparam
scope : private
OPTION_ICACHE_SET_WIDTH:
datatype : int
description: Configure mor1kx i-cache set width in bits, controls numbers of sets. default 9
paramtype : vlogparam
scope : private
OPTION_ICACHE_WAYS:
datatype : int
description: Configure mor1kx i-cache ways, controls number of blocks per set. default 2
paramtype : vlogparam
scope : private
OPTION_RF_NUM_SHADOW_GPR:
datatype : int
description: Configure mor1kx available shadow registers. default 0
paramtype : vlogparam
scope : private
targets:
default:
filesets:
- core
- fpu
- "tool_icarus? (monitor)"
- "tool_isim? (monitor)"
- "tool_modelsim? (monitor)"
- "tool_rivierapro? (monitor)"
- "tool_xsim? (monitor)"
parameters: [trace_enable, trace_to_screen]
synth:
default_tool : icestorm
filesets : [core , fpu]
tools:
icestorm:
arch: xilinx
pnr: none
toplevel : mor1kx
parameters: [FEATURE_DATACACHE, FEATURE_DMMU,
FEATURE_INSTRUCTIONCACHE, FEATURE_IMMU,
FEATURE_FPU, FEATURE_ROR, FEATURE_EXT,
OPTION_DCACHE_BLOCK_WIDTH, OPTION_DCACHE_LIMIT_WIDTH, OPTION_DCACHE_SET_WIDTH, OPTION_DCACHE_WAYS,
OPTION_ICACHE_BLOCK_WIDTH, OPTION_ICACHE_LIMIT_WIDTH, OPTION_ICACHE_SET_WIDTH, OPTION_ICACHE_WAYS,
OPTION_RF_NUM_SHADOW_GPR]