summaryrefslogtreecommitdiffstats
path: root/utils/regtools/desc/regs-vsoc1000.xml
blob: d909d85b533cfd14216836afe9f079b41f615214 (plain)
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
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
<?xml version="1.0"?>
<soc version="2">
    <name>vsoc1000</name>
    <title>Virtual SOC 1000</title>
    <desc>Virtual SoC 1000 is a nice chip. Its dual-core architecture makes it super powerful.</desc>
    <author>Amaury Pouly</author>
    <isa>ARM</isa>
    <version>0.5</version>
    <node>
        <name>int</name>
        <title>Interrupt Collector</title>
        <desc>The interrupt collector controls the routing of the interrupts to the processors. It has 32 interrupts sources, which can be routed as FIQ or IRQ to the main processor or the coprocessor.</desc>
        <instance>
            <name>ICOLL</name>
            <title>Interrupt collector</title>
            <address>0x80000000</address>
        </instance>
        <node>
            <name>ctrl</name>
            <title>Control register</title>
            <instance>
                <name>CTRL</name>
                <address>0x0</address>
            </instance>
            <register>
                <width>8</width>
                <field>
                    <name>CLKGATE</name>
                    <desc>Clock gating control</desc>
                    <position>7</position>
                </field>
                <field>
                    <name>SFTRST</name>
                    <desc>Soft reset, the bit will automatically reset to 0 when reset is completed</desc>
                    <position>6</position>
                </field>
                <variant>
                    <type>set</type>
                    <offset>4</offset>
                </variant>
                <variant>
                    <type>clr</type>
                    <offset>8</offset>
                </variant>
            </register>
        </node>
        <node>
            <name>status</name>
            <title>Interrupt status register</title>
            <instance>
                <name>STATUS</name>
                <address>0x10</address>
            </instance>
            <register>
                <field>
                    <name>STATUS</name>
                    <desc>Bit is set to 1 is the interrupt is pending, write a 1 to the clear variant to clear it</desc>
                    <position>0</position>
                    <width>32</width>
                </field>
                <variant>
                    <type>clr</type>
                    <offset>8</offset>
                </variant>
            </register>
        </node>
        <node>
            <name>enable</name>
            <title>Interrupt enable register</title>
            <instance>
                <name>ENABLE</name>
                <range>
                    <first>0</first>
                    <count>32</count>
                    <base>0x20</base>
                    <stride>0x10</stride>
                </range>
            </instance>
            <register>
                <width>16</width>
                <desc>This register controls the routing of the interrupt</desc>
                <field>
                    <name>COP_PRIO</name>
                    <desc>Coprocessor priority</desc>
                    <position>5</position>
                    <width>2</width>
                    <enum>
                        <name>MASKED</name>
                        <desc>Interrupt is masked</desc>
                        <value>0x0</value>
                    </enum>
                    <enum>
                        <name>LOW</name>
                        <value>0x1</value>
                    </enum>
                    <enum>
                        <name>HIGH</name>
                        <value>0x2</value>
                    </enum>
                    <enum>
                        <name>NMI</name>
                        <desc>Interrupt is non maskable</desc>
                        <value>0x3</value>
                    </enum>
                </field>
                <field>
                    <name>COP_TYPE</name>
                    <desc>Interrupt type</desc>
                    <position>4</position>
                    <enum>
                        <name>IRQ</name>
                        <value>0x0</value>
                    </enum>
                    <enum>
                        <name>FIQ</name>
                        <value>0x1</value>
                    </enum>
                </field>
                <field>
                    <name>CPU_PRIO</name>
                    <desc>CPU priority</desc>
                    <position>2</position>
                    <width>2</width>
                    <enum>
                        <name>MASKED</name>
                        <desc>Interrupt will never be sent to the CPU</desc>
                        <value>0x0</value>
                    </enum>
                    <enum>
                        <name>LOW</name>
                        <value>0x1</value>
                    </enum>
                    <enum>
                        <name>HIGH</name>
                        <value>0x2</value>
                    </enum>
                    <enum>
                        <name>NMI</name>
                        <desc>Interrupt is non maskable</desc>
                        <value>0x3</value>
                    </enum>
                </field>
                <field>
                    <name>CPU_TYPE</name>
                    <desc>Interrupt type</desc>
                    <position>1</position>
                    <enum>
                        <name>IRQ</name>
                        <value>0x0</value>
                    </enum>
                    <enum>
                        <name>FIQ</name>
                        <value>0x1</value>
                    </enum>
                </field>
                <field>
                    <name>ENABLE</name>
                    <position>0</position>
                </field>
                <variant>
                    <type>set</type>
                    <offset>4</offset>
                </variant>
                <variant>
                    <type>clr</type>
                    <offset>8</offset>
                </variant>
            </register>
        </node>
    </node>
    <node>
        <name>gpio</name>
        <title>GPIO controller</title>
        <desc>A GPIO controller manages several ports</desc>
        <instance>
            <name>CPU_GPIO</name>
            <title>CPU GPIO controller 1 through 3</title>
            <range>
                <first>1</first>
                <count>3</count>
                <formula variable="n">0x80001000+(n-1)*0x1000</formula>
            </range>
        </instance>
        <instance>
            <name>COP_GPIO</name>
            <title>Companion processor GPIO controller</title>
            <desc>Although the companion processor GPIO controller is accessible from the CPU, it incurs an extra penalty on the bus</desc>
            <address>0x90000000</address>
        </instance>
        <node>
            <name>port</name>
            <title>GPIO port</title>
            <instance>
                <name>PORT</name>
                <range>
                    <first>0</first>
                    <count>2</count>
                    <base>0x0</base>
                    <stride>0x100</stride>
                </range>
            </instance>
            <node>
                <name>input</name>
                <title>Input register</title>
                <instance>
                    <name>IN</name>
                    <address>0x0</address>
                </instance>
                <register>
                    <width>8</width>
                    <field>
                        <name>VALUE</name>
                        <position>0</position>
                        <width>8</width>
                    </field>
                </register>
            </node>
            <node>
                <name>output_enable</name>
                <title>Output enable register</title>
                <instance>
                    <name>OE</name>
                    <address>0x10</address>
                </instance>
                <register>
                    <width>8</width>
                    <field>
                        <name>ENABLE</name>
                        <position>0</position>
                        <width>8</width>
                    </field>
                    <variant>
                        <type>set</type>
                        <offset>4</offset>
                    </variant>
                    <variant>
                        <type>clr</type>
                        <offset>8</offset>
                    </variant>
                    <variant>
                        <type>mask</type>
                        <offset>12</offset>
                    </variant>
                </register>
            </node>
        </node>
    </node>
</soc>