Skip to content

Commit 3b0fe00

Browse files
authored
Merge branch 'main' into install-deps
2 parents 6dea617 + b0e4cc7 commit 3b0fe00

15 files changed

Lines changed: 2881 additions & 86 deletions

configs/core-peripherals/Nested_Vectored_Interrupt_Controller.scvd

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,9 @@
6464
<read name="NVIC_IPR_values" type="uint32_t" size="60" offset="0xE000E400"/>
6565
<read name="Vectors" type="Vector_t" offset="0xE000E004"/>
6666
<var name="Count" type="uint32_t" value="0"/>
67+
<var name="irqPresent" type="uint32_t" value="0"/>
68+
<var name="irqCore" type="uint32_t" value="0"/>
69+
<var name="irqExt" type="uint32_t" value="0"/>
6770
<list name="Count" start="0" limit="Vectors.INTLINESNUM*32">
6871
<calc cond="1">
6972
Vectors.Index[Count]=Count;
@@ -168,9 +171,15 @@
168171
</item>
169172
<item property="Vector Handlers" value="">
170173
<list name="Count" start="0" limit="Vectors.INTLINESNUM*32">
171-
<item>
172-
<print property="%E[Vectors.Index[Count]]" value="%E[Vectors.Enable[Count]], %E[Vectors.Pending[Count]], %E[Vectors.Active[Count]]" cond="Vectors.Displayed[Count]==1 &amp;&amp; Count&lt;16"/>
173-
<print property="External Interrupt %d[Count-16] (EXTIRQ%d[Count-16])" value="%E[Vectors.Enable[Count]], %E[Vectors.Pending[Count]], %E[Vectors.Active[Count]]" cond="Vectors.Displayed[Count]==1 &amp;&amp; Count&gt;15"/>
174+
<calc>
175+
irqPresent = Vectors.Displayed[Count]==1;
176+
irqCore = Count&lt;16;
177+
irqExt = Count&gt;15;
178+
</calc>
179+
180+
<item cond="irqPresent" value="">
181+
<print property="%E[Vectors.Index[Count]]" cond="irqCore" value="%E[Vectors.Enable[Count]], %E[Vectors.Pending[Count]], %E[Vectors.Active[Count]]"/>
182+
<print property="%Q[Count]" cond="irqExt" value="%E[Vectors.Enable[Count]], %E[Vectors.Pending[Count]], %E[Vectors.Active[Count]]" />
174183
<item property="Index" value="%d[Vectors.Index[Count]]"/>
175184
<item property="Enable" value="%d[Vectors.Enable[Count]]"/>
176185
<item property="Pending" value="%d[Vectors.Pending[Count]]"/>

0 commit comments

Comments
 (0)