Commit 51eede8
committed
[otbn,rtl] Add helper types to efficiently access integrity and data bits of GPRs/CSR/WDR/WSRs
This adds two signal types to easily access the integrity or data bits of the base registers and
wide registers. The wide registers are constructed of 8 base registers (integrity is
computed per 32 bits).
The 3rd type allows an easy assignment of bits from URND to a WSR, especially useful for secure wipe
assignments.
Signed-off-by: Pascal Etterli <pascal.etterli@lowrisc.org>1 parent 4ad932d commit 51eede8
2 files changed
Lines changed: 40 additions & 36 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
82 | 82 | | |
83 | 83 | | |
84 | 84 | | |
85 | | - | |
86 | | - | |
87 | | - | |
88 | | - | |
89 | | - | |
90 | | - | |
91 | | - | |
92 | | - | |
93 | | - | |
94 | 85 | | |
95 | 86 | | |
96 | 87 | | |
| |||
117 | 108 | | |
118 | 109 | | |
119 | 110 | | |
120 | | - | |
121 | | - | |
122 | | - | |
123 | | - | |
124 | | - | |
125 | | - | |
126 | | - | |
127 | 111 | | |
128 | 112 | | |
129 | 113 | | |
| |||
137 | 121 | | |
138 | 122 | | |
139 | 123 | | |
140 | | - | |
141 | | - | |
142 | | - | |
| 124 | + | |
| 125 | + | |
| 126 | + | |
143 | 127 | | |
144 | 128 | | |
145 | 129 | | |
146 | 130 | | |
147 | 131 | | |
148 | 132 | | |
149 | 133 | | |
150 | | - | |
151 | | - | |
152 | | - | |
153 | | - | |
154 | | - | |
155 | | - | |
156 | | - | |
157 | | - | |
158 | | - | |
159 | | - | |
160 | | - | |
| 134 | + | |
| 135 | + | |
| 136 | + | |
| 137 | + | |
| 138 | + | |
| 139 | + | |
| 140 | + | |
| 141 | + | |
| 142 | + | |
| 143 | + | |
| 144 | + | |
161 | 145 | | |
162 | 146 | | |
163 | 147 | | |
| |||
199 | 183 | | |
200 | 184 | | |
201 | 185 | | |
202 | | - | |
203 | | - | |
204 | | - | |
205 | | - | |
206 | | - | |
207 | | - | |
| 186 | + | |
| 187 | + | |
| 188 | + | |
| 189 | + | |
| 190 | + | |
| 191 | + | |
208 | 192 | | |
209 | 193 | | |
210 | 194 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
| 27 | + | |
| 28 | + | |
| 29 | + | |
27 | 30 | | |
28 | 31 | | |
29 | 32 | | |
| |||
74 | 77 | | |
75 | 78 | | |
76 | 79 | | |
| 80 | + | |
| 81 | + | |
| 82 | + | |
| 83 | + | |
| 84 | + | |
| 85 | + | |
| 86 | + | |
| 87 | + | |
| 88 | + | |
| 89 | + | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
77 | 97 | | |
78 | 98 | | |
79 | 99 | | |
| |||
0 commit comments