lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1 | // Copyright lowRISC contributors. |
| 2 | // Licensed under the Apache License, Version 2.0, see LICENSE for details. |
| 3 | // SPDX-License-Identifier: Apache-2.0 |
| 4 | // |
| 5 | // ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! -------------------// |
| 6 | // PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN AUTO-GENERATED WITH THE FOLLOWING COMMAND: |
| 7 | // util/topgen.py -t hw/top_earlgrey/doc/top_earlgrey.hjson --hjson-only -o hw/top_earlgrey/ |
| 8 | { |
| 9 | name: earlgrey |
| 10 | type: top |
| 11 | datawidth: "32" |
| 12 | clocks: |
| 13 | [ |
| 14 | { |
| 15 | name: main |
| 16 | freq: "100000000" |
| 17 | } |
| 18 | ] |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 19 | resets: |
| 20 | [ |
| 21 | { |
| 22 | name: lc |
| 23 | type: root |
| 24 | clk: main |
| 25 | } |
| 26 | { |
| 27 | name: sys |
| 28 | type: root |
| 29 | clk: main |
| 30 | } |
| 31 | { |
| 32 | name: spi_device |
| 33 | type: leaf |
| 34 | root: sys |
| 35 | clk: main |
| 36 | } |
| 37 | ] |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 38 | num_cores: "1" |
| 39 | module: |
| 40 | [ |
| 41 | { |
| 42 | name: uart |
| 43 | type: uart |
| 44 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 45 | reset_connections: |
| 46 | { |
| 47 | rst_ni: sys |
| 48 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 49 | base_addr: 0x40000000 |
| 50 | size: 0x1000 |
| 51 | ip_clock: main |
| 52 | bus_device: tlul |
| 53 | bus_host: none |
| 54 | available_input_list: |
| 55 | [ |
| 56 | { |
| 57 | name: rx |
| 58 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 59 | type: input |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 60 | } |
| 61 | ] |
| 62 | available_output_list: |
| 63 | [ |
| 64 | { |
| 65 | name: tx |
| 66 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 67 | type: output |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 68 | } |
| 69 | ] |
| 70 | available_inout_list: [] |
| 71 | interrupt_list: |
| 72 | [ |
| 73 | { |
| 74 | name: tx_watermark |
| 75 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 76 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 77 | } |
| 78 | { |
| 79 | name: rx_watermark |
| 80 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 81 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 82 | } |
| 83 | { |
| 84 | name: tx_overflow |
| 85 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 86 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 87 | } |
| 88 | { |
| 89 | name: rx_overflow |
| 90 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 91 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 92 | } |
| 93 | { |
| 94 | name: rx_frame_err |
| 95 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 96 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 97 | } |
| 98 | { |
| 99 | name: rx_break_err |
| 100 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 101 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 102 | } |
| 103 | { |
| 104 | name: rx_timeout |
| 105 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 106 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 107 | } |
| 108 | { |
| 109 | name: rx_parity_err |
| 110 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 111 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 112 | } |
| 113 | ] |
Eunchan Kim | 2cfadab | 2019-10-02 12:41:11 -0700 | [diff] [blame] | 114 | scan: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 115 | } |
| 116 | { |
| 117 | name: gpio |
| 118 | type: gpio |
| 119 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 120 | reset_connections: |
| 121 | { |
| 122 | rst_ni: sys |
| 123 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 124 | base_addr: 0x40010000 |
| 125 | size: 0x1000 |
| 126 | ip_clock: main |
| 127 | bus_device: tlul |
| 128 | bus_host: none |
| 129 | available_input_list: [] |
| 130 | available_output_list: [] |
| 131 | available_inout_list: |
| 132 | [ |
| 133 | { |
| 134 | name: gpio |
| 135 | width: 32 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 136 | type: inout |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 137 | } |
| 138 | ] |
| 139 | interrupt_list: |
| 140 | [ |
| 141 | { |
| 142 | name: gpio |
| 143 | width: 32 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 144 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 145 | } |
| 146 | ] |
Eunchan Kim | 2cfadab | 2019-10-02 12:41:11 -0700 | [diff] [blame] | 147 | scan: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 148 | } |
| 149 | { |
| 150 | name: spi_device |
| 151 | type: spi_device |
| 152 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 153 | reset_connections: |
| 154 | { |
| 155 | rst_ni: spi_device |
| 156 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 157 | base_addr: 0x40020000 |
| 158 | size: 0x1000 |
| 159 | ip_clock: main |
| 160 | bus_device: tlul |
| 161 | bus_host: none |
| 162 | available_input_list: |
| 163 | [ |
| 164 | { |
| 165 | name: sck |
| 166 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 167 | type: input |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 168 | } |
| 169 | { |
| 170 | name: csb |
| 171 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 172 | type: input |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 173 | } |
| 174 | { |
| 175 | name: mosi |
| 176 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 177 | type: input |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 178 | } |
| 179 | ] |
| 180 | available_output_list: |
| 181 | [ |
| 182 | { |
| 183 | name: miso |
| 184 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 185 | type: output |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 186 | } |
| 187 | ] |
| 188 | available_inout_list: [] |
| 189 | interrupt_list: |
| 190 | [ |
| 191 | { |
Eunchan Kim | 8c57fe3 | 2019-09-02 21:14:24 -0700 | [diff] [blame] | 192 | name: rxf |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 193 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 194 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 195 | } |
| 196 | { |
| 197 | name: rxlvl |
| 198 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 199 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 200 | } |
| 201 | { |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 202 | name: txlvl |
| 203 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 204 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 205 | } |
| 206 | { |
| 207 | name: rxerr |
| 208 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 209 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 210 | } |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 211 | { |
| 212 | name: rxoverflow |
| 213 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 214 | type: interrupt |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 215 | } |
| 216 | { |
| 217 | name: txunderflow |
| 218 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 219 | type: interrupt |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 220 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 221 | ] |
Eunchan Kim | 2cfadab | 2019-10-02 12:41:11 -0700 | [diff] [blame] | 222 | scan: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 223 | } |
| 224 | { |
| 225 | name: flash_ctrl |
| 226 | type: flash_ctrl |
| 227 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 228 | reset_connections: |
| 229 | { |
| 230 | rst_ni: lc |
| 231 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 232 | base_addr: 0x40030000 |
| 233 | size: 0x1000 |
| 234 | ip_clock: main |
| 235 | bus_device: tlul |
| 236 | bus_host: none |
| 237 | available_input_list: [] |
| 238 | available_output_list: [] |
| 239 | available_inout_list: [] |
| 240 | interrupt_list: |
| 241 | [ |
| 242 | { |
| 243 | name: prog_empty |
| 244 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 245 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 246 | } |
| 247 | { |
| 248 | name: prog_lvl |
| 249 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 250 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 251 | } |
| 252 | { |
| 253 | name: rd_full |
| 254 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 255 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 256 | } |
| 257 | { |
| 258 | name: rd_lvl |
| 259 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 260 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 261 | } |
| 262 | { |
| 263 | name: op_done |
| 264 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 265 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 266 | } |
| 267 | { |
| 268 | name: op_error |
| 269 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 270 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 271 | } |
| 272 | ] |
Eunchan Kim | 2cfadab | 2019-10-02 12:41:11 -0700 | [diff] [blame] | 273 | scan: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 274 | } |
| 275 | { |
| 276 | name: rv_timer |
| 277 | type: rv_timer |
| 278 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 279 | reset_connections: |
| 280 | { |
| 281 | rst_ni: sys |
| 282 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 283 | base_addr: 0x40080000 |
| 284 | size: 0x1000 |
| 285 | ip_clock: main |
| 286 | bus_device: tlul |
| 287 | bus_host: none |
| 288 | available_input_list: [] |
| 289 | available_output_list: [] |
| 290 | available_inout_list: [] |
| 291 | interrupt_list: |
| 292 | [ |
| 293 | { |
| 294 | name: timer_expired_0_0 |
| 295 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 296 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 297 | } |
| 298 | ] |
Eunchan Kim | 2cfadab | 2019-10-02 12:41:11 -0700 | [diff] [blame] | 299 | scan: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 300 | } |
| 301 | { |
| 302 | name: hmac |
| 303 | type: hmac |
| 304 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 305 | reset_connections: |
| 306 | { |
| 307 | rst_ni: sys |
| 308 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 309 | base_addr: 0x40120000 |
| 310 | size: 0x1000 |
| 311 | ip_clock: main |
| 312 | bus_device: tlul |
| 313 | bus_host: none |
| 314 | available_input_list: [] |
| 315 | available_output_list: [] |
| 316 | available_inout_list: [] |
| 317 | interrupt_list: |
| 318 | [ |
| 319 | { |
| 320 | name: hmac_done |
| 321 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 322 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 323 | } |
| 324 | { |
| 325 | name: fifo_full |
| 326 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 327 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 328 | } |
| 329 | ] |
Eunchan Kim | 2cfadab | 2019-10-02 12:41:11 -0700 | [diff] [blame] | 330 | scan: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 331 | } |
| 332 | { |
| 333 | name: rv_plic |
| 334 | type: rv_plic |
| 335 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 336 | reset_connections: |
| 337 | { |
| 338 | rst_ni: sys |
| 339 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 340 | base_addr: 0x40090000 |
| 341 | generated: "true" |
| 342 | parameter: |
| 343 | { |
| 344 | FIND_MAX: MATRIX |
| 345 | } |
| 346 | size: 0x1000 |
| 347 | ip_clock: main |
| 348 | bus_device: tlul |
| 349 | bus_host: none |
| 350 | available_input_list: [] |
| 351 | available_output_list: [] |
| 352 | available_inout_list: [] |
| 353 | interrupt_list: [] |
Eunchan Kim | 2cfadab | 2019-10-02 12:41:11 -0700 | [diff] [blame] | 354 | scan: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 355 | } |
| 356 | ] |
| 357 | memory: |
| 358 | [ |
| 359 | { |
| 360 | name: rom |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 361 | reset_connections: |
| 362 | { |
| 363 | rst_ni: sys |
| 364 | } |
Timothy Chen | 4446103 | 2019-09-20 15:35:20 -0700 | [diff] [blame] | 365 | type: rom |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 366 | base_addr: 0x00008000 |
| 367 | size: 0x2000 |
| 368 | } |
| 369 | { |
| 370 | name: ram_main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 371 | reset_connections: |
| 372 | { |
| 373 | rst_ni: sys |
| 374 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 375 | type: ram_1p |
| 376 | base_addr: 0x10000000 |
| 377 | size: 0x10000 |
| 378 | } |
| 379 | { |
| 380 | name: eflash |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 381 | reset_connections: |
| 382 | { |
| 383 | rst_ni: lc |
| 384 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 385 | type: eflash |
| 386 | base_addr: 0x20000000 |
| 387 | size: 0x80000 |
| 388 | } |
| 389 | ] |
| 390 | xbar: |
| 391 | [ |
| 392 | { |
| 393 | name: main |
| 394 | clock: main |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame^] | 395 | reset: sys |
| 396 | reset_connections: |
| 397 | { |
| 398 | rst_main_ni: sys |
| 399 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 400 | connections: |
| 401 | { |
| 402 | corei: |
| 403 | [ |
| 404 | rom |
| 405 | debug_mem |
| 406 | ram_main |
| 407 | eflash |
| 408 | ] |
| 409 | cored: |
| 410 | [ |
| 411 | rom |
| 412 | debug_mem |
| 413 | ram_main |
| 414 | eflash |
| 415 | uart |
| 416 | gpio |
| 417 | spi_device |
| 418 | flash_ctrl |
| 419 | rv_timer |
| 420 | hmac |
| 421 | rv_plic |
| 422 | ] |
| 423 | dm_sba: |
| 424 | [ |
| 425 | rom |
| 426 | ram_main |
| 427 | eflash |
| 428 | uart |
| 429 | gpio |
| 430 | spi_device |
| 431 | flash_ctrl |
| 432 | rv_timer |
| 433 | hmac |
| 434 | rv_plic |
| 435 | ] |
| 436 | } |
| 437 | nodes: |
| 438 | [ |
| 439 | { |
| 440 | name: corei |
| 441 | type: host |
| 442 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 443 | pipeline: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 444 | inst_type: rv_core_ibex |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 445 | pipeline_byp: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 446 | } |
| 447 | { |
| 448 | name: cored |
| 449 | type: host |
| 450 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 451 | pipeline: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 452 | inst_type: rv_core_ibex |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 453 | pipeline_byp: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 454 | } |
| 455 | { |
| 456 | name: dm_sba |
| 457 | type: host |
| 458 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 459 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 460 | inst_type: rv_dm |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 461 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 462 | } |
| 463 | { |
| 464 | name: rom |
| 465 | type: device |
| 466 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 467 | pipeline: "false" |
Timothy Chen | 4446103 | 2019-09-20 15:35:20 -0700 | [diff] [blame] | 468 | inst_type: rom |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 469 | base_addr: 0x00008000 |
| 470 | size_byte: 0x2000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 471 | pipeline_byp: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 472 | } |
| 473 | { |
| 474 | name: debug_mem |
| 475 | type: device |
| 476 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 477 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 478 | inst_type: rv_dm |
| 479 | base_addr: 0x1A110000 |
| 480 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 481 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 482 | } |
| 483 | { |
| 484 | name: ram_main |
| 485 | type: device |
| 486 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 487 | pipeline: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 488 | inst_type: ram_1p |
| 489 | base_addr: 0x10000000 |
| 490 | size_byte: 0x10000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 491 | pipeline_byp: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 492 | } |
| 493 | { |
| 494 | name: eflash |
| 495 | type: device |
| 496 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 497 | pipeline: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 498 | inst_type: eflash |
| 499 | base_addr: 0x20000000 |
| 500 | size_byte: 0x80000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 501 | pipeline_byp: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 502 | } |
| 503 | { |
| 504 | name: uart |
| 505 | type: device |
| 506 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 507 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 508 | inst_type: uart |
| 509 | base_addr: 0x40000000 |
| 510 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 511 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 512 | } |
| 513 | { |
| 514 | name: gpio |
| 515 | type: device |
| 516 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 517 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 518 | inst_type: gpio |
| 519 | base_addr: 0x40010000 |
| 520 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 521 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 522 | } |
| 523 | { |
| 524 | name: spi_device |
| 525 | type: device |
| 526 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 527 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 528 | inst_type: spi_device |
| 529 | base_addr: 0x40020000 |
| 530 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 531 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 532 | } |
| 533 | { |
| 534 | name: flash_ctrl |
| 535 | type: device |
| 536 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 537 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 538 | inst_type: flash_ctrl |
| 539 | base_addr: 0x40030000 |
| 540 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 541 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 542 | } |
| 543 | { |
| 544 | name: rv_timer |
| 545 | type: device |
| 546 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 547 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 548 | inst_type: rv_timer |
| 549 | base_addr: 0x40080000 |
| 550 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 551 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 552 | } |
| 553 | { |
| 554 | name: hmac |
| 555 | type: device |
| 556 | clock: main |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 557 | pipeline_byp: "false" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 558 | inst_type: hmac |
| 559 | base_addr: 0x40120000 |
| 560 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 561 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 562 | } |
| 563 | { |
| 564 | name: rv_plic |
| 565 | type: device |
| 566 | clock: main |
| 567 | inst_type: rv_plic |
| 568 | base_addr: 0x40090000 |
| 569 | size_byte: 0x1000 |
Timothy Chen | 61e25e8 | 2019-09-13 14:04:10 -0700 | [diff] [blame] | 570 | pipeline_byp: "false" |
| 571 | pipeline: "true" |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 572 | } |
| 573 | ] |
| 574 | } |
| 575 | ] |
| 576 | interrupt_module: |
| 577 | [ |
| 578 | gpio |
| 579 | uart |
| 580 | spi_device |
| 581 | flash_ctrl |
| 582 | hmac |
| 583 | ] |
| 584 | interrupt: |
| 585 | [ |
| 586 | { |
| 587 | name: gpio_gpio |
| 588 | width: 32 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 589 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 590 | } |
| 591 | { |
| 592 | name: uart_tx_watermark |
| 593 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 594 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 595 | } |
| 596 | { |
| 597 | name: uart_rx_watermark |
| 598 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 599 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 600 | } |
| 601 | { |
| 602 | name: uart_tx_overflow |
| 603 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 604 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 605 | } |
| 606 | { |
| 607 | name: uart_rx_overflow |
| 608 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 609 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 610 | } |
| 611 | { |
| 612 | name: uart_rx_frame_err |
| 613 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 614 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 615 | } |
| 616 | { |
| 617 | name: uart_rx_break_err |
| 618 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 619 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 620 | } |
| 621 | { |
| 622 | name: uart_rx_timeout |
| 623 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 624 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 625 | } |
| 626 | { |
| 627 | name: uart_rx_parity_err |
| 628 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 629 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 630 | } |
| 631 | { |
Eunchan Kim | 8c57fe3 | 2019-09-02 21:14:24 -0700 | [diff] [blame] | 632 | name: spi_device_rxf |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 633 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 634 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 635 | } |
| 636 | { |
| 637 | name: spi_device_rxlvl |
| 638 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 639 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 640 | } |
| 641 | { |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 642 | name: spi_device_txlvl |
| 643 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 644 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 645 | } |
| 646 | { |
| 647 | name: spi_device_rxerr |
| 648 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 649 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 650 | } |
| 651 | { |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 652 | name: spi_device_rxoverflow |
| 653 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 654 | type: interrupt |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 655 | } |
| 656 | { |
| 657 | name: spi_device_txunderflow |
| 658 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 659 | type: interrupt |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 660 | } |
| 661 | { |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 662 | name: flash_ctrl_prog_empty |
| 663 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 664 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 665 | } |
| 666 | { |
| 667 | name: flash_ctrl_prog_lvl |
| 668 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 669 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 670 | } |
| 671 | { |
| 672 | name: flash_ctrl_rd_full |
| 673 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 674 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 675 | } |
| 676 | { |
| 677 | name: flash_ctrl_rd_lvl |
| 678 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 679 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 680 | } |
| 681 | { |
| 682 | name: flash_ctrl_op_done |
| 683 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 684 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 685 | } |
| 686 | { |
| 687 | name: flash_ctrl_op_error |
| 688 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 689 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 690 | } |
| 691 | { |
| 692 | name: hmac_hmac_done |
| 693 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 694 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 695 | } |
| 696 | { |
| 697 | name: hmac_fifo_full |
| 698 | width: 1 |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 699 | type: interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 700 | } |
| 701 | ] |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 702 | pinmux: |
| 703 | { |
| 704 | dio_modules: |
| 705 | [ |
| 706 | { |
| 707 | name: spi_device |
| 708 | pad: |
| 709 | [ |
| 710 | ChB[0..3] |
| 711 | ] |
| 712 | } |
| 713 | { |
| 714 | name: uart.tx |
| 715 | pad: |
| 716 | [ |
| 717 | ChA[0] |
| 718 | ] |
| 719 | } |
| 720 | ] |
| 721 | mio_modules: |
| 722 | [ |
| 723 | uart |
| 724 | gpio |
| 725 | ] |
| 726 | nc_modules: |
| 727 | [ |
| 728 | rv_timer |
| 729 | hmac |
| 730 | ] |
| 731 | dio: |
| 732 | [ |
| 733 | { |
| 734 | name: spi_device_sck |
| 735 | width: 1 |
| 736 | type: input |
| 737 | pad: |
| 738 | [ |
| 739 | { |
| 740 | name: ChB |
| 741 | index: 0 |
| 742 | } |
| 743 | ] |
| 744 | } |
| 745 | { |
| 746 | name: spi_device_csb |
| 747 | width: 1 |
| 748 | type: input |
| 749 | pad: |
| 750 | [ |
| 751 | { |
| 752 | name: ChB |
| 753 | index: 1 |
| 754 | } |
| 755 | ] |
| 756 | } |
| 757 | { |
| 758 | name: spi_device_mosi |
| 759 | width: 1 |
| 760 | type: input |
| 761 | pad: |
| 762 | [ |
| 763 | { |
| 764 | name: ChB |
| 765 | index: 2 |
| 766 | } |
| 767 | ] |
| 768 | } |
| 769 | { |
| 770 | name: spi_device_miso |
| 771 | width: 1 |
| 772 | type: output |
| 773 | pad: |
| 774 | [ |
| 775 | { |
| 776 | name: ChB |
| 777 | index: 3 |
| 778 | } |
| 779 | ] |
| 780 | } |
| 781 | { |
| 782 | name: uart_tx |
| 783 | width: 1 |
| 784 | type: output |
| 785 | pad: |
| 786 | [ |
| 787 | { |
| 788 | name: ChA |
| 789 | index: 0 |
| 790 | } |
| 791 | ] |
| 792 | } |
| 793 | ] |
| 794 | inputs: |
| 795 | [ |
| 796 | { |
| 797 | name: uart_rx |
| 798 | width: 1 |
| 799 | type: input |
| 800 | } |
| 801 | ] |
| 802 | outputs: [] |
| 803 | inouts: |
| 804 | [ |
| 805 | { |
| 806 | name: gpio_gpio |
| 807 | width: 32 |
| 808 | type: inout |
| 809 | } |
| 810 | ] |
| 811 | } |
| 812 | padctrl: |
| 813 | { |
| 814 | attr_default: |
| 815 | [ |
| 816 | STRONG |
| 817 | ] |
| 818 | pads: |
| 819 | [ |
| 820 | { |
| 821 | name: ChA |
| 822 | type: IO_33V |
| 823 | count: 32 |
| 824 | } |
| 825 | { |
| 826 | name: ChB |
| 827 | type: IO_33V |
| 828 | count: 4 |
| 829 | attr: |
| 830 | [ |
| 831 | KEEP |
| 832 | WEAK |
| 833 | ] |
| 834 | } |
| 835 | ] |
| 836 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 837 | } |