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 3

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

powered by: WebSVN 2.1.0

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