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

Subversion Repositories riscv_vhdl

[/] [riscv_vhdl/] [trunk/] [debugger/] [targets/] [functional_sim_gui.json] - Blame information for rev 2

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

Line No. Rev Author Line
1 2 sergeykhbr
{
2
  'GlobalSettings':{
3
    'SimEnable':true,
4
    'GUI':true,
5
    'ScriptFile':'',
6
    'Description':'This configuration instantiates functional RISC-V model'
7
  },
8
  'Services':[
9
    {'Class':'GuiPluginClass','Instances':[
10
                {'Name':'gui0','Attr':[
11
                ['LogLevel',4],
12
                ['WidgetsConfig',{
13
                  'Serial':'port1',
14
                  'AutoComplete':'autocmd0',
15
                  'SocInfo':'info0',
16
                  'PollingMs':250
17
                }],
18
                ['SocInfo','info0'],
19
                ['CommandExecutor','cmdexec0']
20
                ]}]},
21
    {'Class':'EdclServiceClass','Instances':[
22
          {'Name':'edcltap','Attr':[
23
                ['LogLevel',1],
24
                ['Transport','udpedcl'],
25
                ['seq_cnt',0]]}]},
26
    {'Class':'UdpServiceClass','Instances':[
27
          {'Name':'udpboard','Attr':[
28
                ['LogLevel',1],
29
                ['Timeout',0x190]]},
30
          {'Name':'udpedcl','Attr':[
31
                ['LogLevel',1],
32
                ['Timeout',0x3e8],
33
                ['HostIP','192.168.0.53'],
34
                ['BoardIP','192.168.0.51']]}]},
35
    {'Class':'ComPortServiceClass','Instances':[
36
          {'Name':'port1','Attr':[
37
                ['LogLevel',2],
38
                ['Enable',true],
39
                ['UartSim','uart0'],
40
                ['ComPortName','COM3'],
41
                ['ComPortSpeed',115200]]}]},
42
    {'Class':'ElfReaderServiceClass','Instances':[
43
          {'Name':'loader0','Attr':[
44
                ['LogLevel',4]]}]},
45
    {'Class':'ConsoleServiceClass','Instances':[
46
          {'Name':'console0','Attr':[
47
                ['LogLevel',4],
48
                ['Enable',true],
49
                ['StepQueue','core0'],
50
                ['AutoComplete','autocmd0'],
51
                ['CommandExecutor','cmdexec0'],
52
                ['DefaultLogFile','default.log'],
53
                ['Signals','gpio0'],
54
                ['InputPort','port1']]}]},
55
    {'Class':'AutoCompleterClass','Instances':[
56
          {'Name':'autocmd0','Attr':[
57
                ['LogLevel',4],
58
                ['SocInfo','info0']
59
                ['HistorySize',64],
60
                ['History',[
61
                     'csr MCPUID',
62
                     'csr MTIME',
63
                     'read 0xfffff004 128',
64
                     'loadelf helloworld',
65
                     'loadelf zephyr.elf nocode',
66
                     'loadelf gnssfw nocode',
67
                     ]]
68
                ]}]},
69
    {'Class':'CmdExecutorClass','Instances':[
70
          {'Name':'cmdexec0','Attr':[
71
                ['LogLevel',4],
72
                ['Tap','edcltap'],
73
                ['SocInfo','info0']
74
                ]}]},
75
    {'Class':'SocInfoClass','Instances':[
76
          {'Name':'info0','Attr':[
77
                ['LogLevel',4],
78
                ['PnpBaseAddress',0xFFFFF000],
79
                ['GpioBaseAddress',0x80000000],
80
                ['DsuBaseAddress',0x80080000],
81
                ['ListRegs',[['zero',8,0],['ra',8,1],['sp',8,2],['gp',8,3],
82
                            ['tp',8,4],['t0',8,5],['t1',8,6],['t2',8,7],
83
                            ['s0',8,8],['s1',8,9],['a0',8,10],['a1',8,11],
84
                            ['a2',8,12],['a3',8,13],['a4',8,14],['a5',8,15],
85
                            ['a6',8,16],['a7',8,17],['s2',8,18],['s3',8,19],
86
                            ['s4',8,20],['s5',8,21],['s6',8,22],['s7',8,23],
87
                            ['s8',8,24],['s9',8,25],['s10',8,26],['s11',8,27],
88
                            ['t3',8,28],['t4',8,29],['t5',8,30],['t6',8,31],
89
                            ['pc',8,32,'Instruction Pointer'],
90
                            ['npc',8,33,'Next IP']]],
91
                ['ListCSR',[
92
                    ['MISA',8,0xf10,'Architecture and supported set of instructions'],
93
                    ['MVENDORID',8,0xf11,'Vecndor ID'],
94
                    ['MARCHID',8,0xf12,'Architecture ID'],
95
                    ['MIMPLEMENTATIONID',8,0xf13,'Implementation ID'],
96
                    ['MHARTID',8,0xf14,'Thread ID'],
97
                    ['MTIME',8,0x701,'Machine wall-clock time.'],
98
                    ['MSTATUS',8,0x300,'Machine mode status register.'],
99
                    ['MIE',8,0x304,'Machine interrupt enable register.'],
100
                    ['MTVEC',8,0x305,'Machine mode trap vector register.'],
101
                    ['MSCRATCH',8,0x340,'Machine mode scratch register.'],
102
                    ['MEPC',8,0x341,'Machine exception program counter'],
103
                    ['MCAUSE',8,0x342,'Machine cause trap register'],
104
                    ['MBADADDR',8,0x343,'Machine mode bad address register'],
105
                    ['MIP',8,0x344,'Machine mode interrupt pending bits register']
106
                    ]]]}]},
107
    {'Class':'SimplePluginClass','Instances':[
108
          {'Name':'example0','Attr':[
109
                ['LogLevel',4],
110
                ['attr1','This is test attr value']]}]},
111
    {'Class':'SourceServiceClass','Instances':[
112
          {'Name':'src0','Attr':[
113
                ['LogLevel',4]]}]},
114
    {'Class':'GrethClass','Instances':[
115
          {'Name':'greth0','Attr':[
116
                ['LogLevel',1],
117
                ['BaseAddress',0x80040000],
118
                ['Length',0x40000],
119
                ['IrqLine',2],
120
                ['IrqControl','irqctrl0'],
121
                ['IP',0x55667788],
122
                ['MAC',0xfeedface00],
123
                ['Bus','axi0'],
124
                ['Transport','udpboard']
125
                ]}]},
126
    {'Class':'CpuRiscV_FunctionalClass','Instances':[
127
          {'Name':'core0','Attr':[
128
                ['Enable',true],
129
                ['LogLevel',4],
130
                ['Bus','axi0'],
131
                ['ListExtISA',['I','M','A']],
132
                ['FreqHz',60000000],
133
                ['GenerateRegTraceFile',false,'Generate Registers modification file to compare with SystemC'],
134
                ['GenerateMemTraceFile',false,'Generate Memory access file to compare with SystemC'],
135
                ['ResetVector',0x1000,'Initial intruction pointer value (config parameter)'],
136
                ]}]},
137
    {'Class':'MemorySimClass','Instances':[
138
          {'Name':'bootrom0','Attr':[
139
                ['LogLevel',1],
140
                ['InitFile','../../../rocket_soc/fw_images/bootimage.hex'],
141
                ['ReadOnly',true],
142
                ['BaseAddress',0x0],
143
                ['Length',8192]
144
                ]}]},
145
    {'Class':'MemorySimClass','Instances':[
146
          {'Name':'fwimage0','Attr':[
147
                ['LogLevel',1],
148
                ['InitFile','../../../rocket_soc/fw_images/gnssfw.hex'],
149
                ['ReadOnly',true],
150
                ['BaseAddress',0x00100000],
151
                ['Length',0x40000]
152
                ]}]},
153
    {'Class':'MemorySimClass','Instances':[
154
          {'Name':'sram0','Attr':[
155
                ['LogLevel',1],
156
                ['InitFile','../../../rocket_soc/fw_images/gnssfw.hex'],
157
                ['ReadOnly',false],
158
                ['BaseAddress',0x10000000],
159
                ['Length',0x80000]
160
                ]}]},
161
    {'Class':'GPIOClass','Instances':[
162
          {'Name':'gpio0','Attr':[
163
                ['LogLevel',3],
164
                ['BaseAddress',0x80000000],
165
                ['Length',4096],
166
                ['DIP',0x1]
167
                ]}]},
168
    {'Class':'UARTClass','Instances':[
169
          {'Name':'uart0','Attr':[
170
                ['LogLevel',1],
171
                ['BaseAddress',0x80001000],
172
                ['Length',4096],
173
                ['IrqLine',1],
174
                ['IrqControl','irqctrl0']
175
                ]}]},
176
    {'Class':'IrqControllerClass','Instances':[
177
          {'Name':'irqctrl0','Attr':[
178
                ['LogLevel',1],
179
                ['BaseAddress',0x80002000],
180
                ['Length',4096],
181
                ['CPU','core0'],
182
                ['IrqTotal',4],
183
                ['CSR_MIPI',0x783]
184
                ]}]},
185
    {'Class':'DSUClass','Instances':[
186
          {'Name':'dsu0','Attr':[
187
                ['LogLevel',1],
188
                ['BaseAddress',0x80080000],
189
                ['Length',0x20000],
190
                ['CPU','core0'],
191
                ['Bus','axi0']
192
                ]}]},
193
    {'Class':'GNSSStubClass','Instances':[
194
          {'Name':'gnss0','Attr':[
195
                ['LogLevel',1],
196
                ['BaseAddress',0x80003000],
197
                ['Length',4096],
198
                ['IrqLine',5],
199
                ['IrqControl','irqctrl0'],
200
                ['ClkSource','core0']
201
                ]}]},
202
    {'Class':'RfControllerClass','Instances':[
203
          {'Name':'rfctrl0','Attr':[
204
                ['LogLevel',1],
205
                ['BaseAddress',0x80004000],
206
                ['Length',4096]
207
                ]}]},
208
    {'Class':'GPTimersClass','Instances':[
209
          {'Name':'gptmr0','Attr':[
210
                ['LogLevel',1],
211
                ['BaseAddress',0x80005000],
212
                ['Length',4096],
213
                ['IrqLine',3],
214
                ['IrqControl','irqctrl0'],
215
                ['ClkSource','core0']
216
                ]}]},
217
    {'Class':'FseV2Class','Instances':[
218
          {'Name':'fsegps0','Attr':[
219
                ['LogLevel',1],
220
                ['BaseAddress',0x80008000],
221
                ['Length',4096]
222
                ]}]},
223
    {'Class':'PNPClass','Instances':[
224
          {'Name':'pnp0','Attr':[
225
                ['LogLevel',4],
226
                ['BaseAddress',0xfffff000],
227
                ['Length',4096],
228
                ['Tech',0],
229
                ['AdcDetector',0xff]
230
                ]}]},
231
    {'Class':'BusClass','Instances':[
232
          {'Name':'axi0','Attr':[
233
                ['LogLevel',3],
234
                ['MapList',['bootrom0','fwimage0','sram0','gpio0',
235
                        'uart0','irqctrl0','gnss0','gptmr0',
236
                        'pnp0','dsu0','greth0','rfctrl0','fsegps0']]
237
                ]}]},
238
    {'Class':'BoardSimClass','Instances':[
239
          {'Name':'boardsim','Attr':[
240
                ['LogLevel',1]
241
                ]}]}
242
  ]
243
}

powered by: WebSVN 2.1.0

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