blob: 23004b471c842f2ffda1149718779e3672111569 (
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
|
;;-------------------------------------------------------------------------
;; Declarations of SFR registers and bits, interrupt/exception vectors,
;; interrupt control registers, memory map information, and additional
;; configurations for a generic (non-existent) RISC-V device.
;;
;; This declaration file can be used by all flavors of the IAR C-SPY
;; Debugger for RISC-V (simulator and emulators).
;;
;; Copyright 2019 IAR Systems AB.
;;-------------------------------------------------------------------------
;;-------------------------------------------------------------------------
;; SFR declaration file
;;
;; Syntax: File = Filename
;;
;; Filename Name of SFR declaration file
;;-------------------------------------------------------------------------
;; CSR
#include weak "csr.sfr"
[SfrInclude]
File = ioriscv.sfr
;;-------------------------------------------------------------------------
;; Memory information
;;
;; Syntax: Memory[NN] = Name Zone StartAdr EndAdr AccType
;;
;; NN Optional counter
;; Name Name of address space (legal characters: A-Z, a-z, 0-9, _)
;; Zone Must be Memory
;; StartAdr Start address of memory address space
;; EndAdr End address of memory address space
;; AccType Type of access, read-only (R) or read-write (RW)
;; (W - noncached) for SFR areas and areas that are shared,
;; implemented as different core-specific physical memories
;; in a multicore device.
;;
;; Used to define named memory address spaces within the 'Memory' zone.
;;
;;-------------------------------------------------------------------------
;; Name Zone StartAdr EndAdr AccType
;;-------------------------------------------------------------------------
[Memory]
Memory = Peripherals Memory 0x02000000 0x1FFFFFFF W
Memory = Flash Memory 0x20000000 0x3FFFFFFF R
Memory = RAM Memory 0x80000000 0x8003FFFF RW
TrustedRanges = true
;;-------------------------------------------------------------------------
;; Device file
;;
;; Syntax: File = Filename
;;
;; Filename Name of device file
;;-------------------------------------------------------------------------
[DeviceFile]
File = <Undefined>
;;-------------------------------------------------------------------------
;; Device information
;;
;; Syntax: Item = Value
;;
;; Item Name of item
;; Value Value of item
;;-------------------------------------------------------------------------
[DeviceInfo]
DataFlash = YES
FlashSize = 0032
FlashType = CS Fixed2
StartAddress = 0x02000000
EndAddress = 0x80003FFF
BusSize = 00
IDCodeBitLength = 128
CodeFlashIDCode = NO
DataFlashIDCode = NO
CoreNumbers = 1
;;-------------------------------------------------------------------------
;; Interrupt declarations
;;
;; Syntax: InterruptNN = Id Vector Type
;;
;; NN Counter
;; Id Unique Interrupt 'name'
;; Vector Exception Code
;; Controller SiFive1
;; Core Core Number
;; Enable Enable bit
;; Pending Pending bit
;; Priority Priority level
;; UserLvl (M)achine/(S)upervisor/(U)ser
;; Trap '0' exception
;; '1' interrupt
;; Maskable '0' Non Maskable
;; '1' Maskable
;;-------------------------------------------------------------------------
[InterruptList]
Interrupt7 = TIMER 0x07 SiFive1 0x00 mie.mtie mip.mtip 0x00 M 0x01 0x00
;;-------------------------------------------------------------------------
;; End of file
;;-------------------------------------------------------------------------
|