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 | // TOP Earlgrey configuration |
| 6 | { name: "earlgrey", |
| 7 | type: "top", |
| 8 | |
Michael Schaffner | 7b0807d | 2020-10-27 19:54:52 -0700 | [diff] [blame] | 9 | ///////////////////////////////////////////////////////////// |
| 10 | // Seed for compile-time random constants // |
| 11 | // NOTE: REPLACE THIS WITH A NEW VALUE BEFORE THE TAPEOUT // |
| 12 | ///////////////////////////////////////////////////////////// |
| 13 | rnd_cnst_seed: 4881560218908238235 |
| 14 | |
| 15 | // 32-bit datawidth |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 16 | datawidth: "32", |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 17 | |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 18 | // Power information for the design |
| 19 | power: { |
| 20 | // Power domains supported by the design |
| 21 | // Aon represents domain aon |
| 22 | // 0 represents domain 0 |
| 23 | domains: ["Aon", "0"], |
| 24 | |
| 25 | // Default power domain used for the design |
| 26 | default: "0" |
| 27 | }, |
| 28 | |
Michael Schaffner | 7b0807d | 2020-10-27 19:54:52 -0700 | [diff] [blame] | 29 | // This is the clock data structure of the design. |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 30 | // The hier path refers to the clock reference path (struct / port) |
| 31 | // - The top/ext desgination follows the same scheme as inter-module |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 32 | // The src key indicates the raw clock sources in the design |
| 33 | // The groups key indicates the various clock groupings in the design |
| 34 | clocks: { |
| 35 | |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 36 | hier_paths: { |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 37 | top: "clkmgr_aon_clocks.", // top level is a struct |
| 38 | ext: "", // ext is a port of the clock name |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 39 | }, |
| 40 | |
Timothy Chen | 33b3b9d | 2020-05-08 10:14:17 -0700 | [diff] [blame] | 41 | // Clock Source attributes |
| 42 | // name: Name of group. |
| 43 | // aon: Whether the clock is free running all the time. |
| 44 | // If it is, the clock is not hanlded by clkmgr. |
| 45 | // freq: Absolute frequency of clk in Hz |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 46 | srcs: [ |
Timothy Chen | 33b3b9d | 2020-05-08 10:14:17 -0700 | [diff] [blame] | 47 | { name: "main", aon: "no", freq: "100000000" } |
Timothy Chen | ced60b2 | 2020-08-20 10:35:00 -0700 | [diff] [blame] | 48 | { name: "io", aon: "no", freq: "96000000" } |
Timothy Chen | 33b3b9d | 2020-05-08 10:14:17 -0700 | [diff] [blame] | 49 | { name: "usb", aon: "no", freq: "48000000" } |
| 50 | { name: "aon", aon: "yes", freq: "200000" } |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 51 | ], |
| 52 | |
Timothy Chen | 79972ad | 2020-06-30 17:13:49 -0700 | [diff] [blame] | 53 | // Derived clock source attributes |
| 54 | // name: Name of group. |
| 55 | // aon: Whether the clock is free running all the time. |
| 56 | // If it is, the clock is not hanlded by clkmgr. |
| 57 | // freq: Absolute frequency of clk in Hz |
| 58 | // src: From which clock source is the clock derived |
| 59 | // div: Ratio between derived clock and source clock |
| 60 | derived_srcs: [ |
Timothy Chen | ced60b2 | 2020-08-20 10:35:00 -0700 | [diff] [blame] | 61 | { name: "io_div2", aon: "no", div: 2, src: "io", freq: "48000000" } |
| 62 | { name: "io_div4", aon: "no", div: 4, src: "io", freq: "24000000" } |
Timothy Chen | 79972ad | 2020-06-30 17:13:49 -0700 | [diff] [blame] | 63 | ], |
| 64 | |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 65 | // Clock Group attributes |
| 66 | // name: name of group. |
| 67 | // |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 68 | // src: The hierarchical source of the clock |
| 69 | // "ext" - clock is supplied from a port of the top module |
| 70 | // "top" - clock is supplied from a net inside the top module |
| 71 | // |
Rupert Swarbrick | cba33a2 | 2020-07-02 16:46:38 +0100 | [diff] [blame] | 72 | // sw_cg: whether software is allowed to gate the clock |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 73 | // "no" - software is not allowed to gate clocks |
| 74 | // "yes" - software is allowed to gate clocks |
| 75 | // "hint" - software can provide a hint, and hw controls the rest |
| 76 | // |
| 77 | // unique: whether each module in the group can be separately gated |
Rupert Swarbrick | cba33a2 | 2020-07-02 16:46:38 +0100 | [diff] [blame] | 78 | // if sw_cg is "no", this field has no meaning |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 79 | // "yes" - each clock is individually controlled |
| 80 | // "no" - the group is controlled as one single unit |
| 81 | // |
| 82 | // The powerup and proc groups are unique. |
Timothy Chen | 33b3b9d | 2020-05-08 10:14:17 -0700 | [diff] [blame] | 83 | // The powerup group of clocks do not feed through the clock |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 84 | // controller as they manage clock controller behavior |
Michael Schaffner | be5cb9c | 2020-11-19 19:53:47 -0800 | [diff] [blame] | 85 | // The proc group is not peripheral, and directly hardwired |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 86 | |
| 87 | groups: [ |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 88 | // the powerup group is used exclusively by clk/pwr/rstmgr/pinmux |
Timothy Chen | 79972ad | 2020-06-30 17:13:49 -0700 | [diff] [blame] | 89 | { name: "powerup", src:"top", sw_cg: "no" } |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 90 | { name: "trans", src:"top", sw_cg: "hint", unique: "yes", } |
| 91 | { name: "infra", src:"top", sw_cg: "no", } |
| 92 | { name: "secure", src:"top", sw_cg: "no" } |
| 93 | { name: "peri", src:"top", sw_cg: "yes", unique: "no" } |
| 94 | { name: "timers", src:"top", sw_cg: "no" } |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 95 | { name: "proc", |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 96 | src: "no", |
| 97 | sw_cg: "no", |
| 98 | unique: "no", |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 99 | clocks: { |
| 100 | clk_proc_main: main |
| 101 | } |
| 102 | } |
| 103 | ], |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 104 | }, |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 105 | |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 106 | // This is the reset data strcture of the design. |
| 107 | // The hier path refers to the reset reference path (struct / port) |
| 108 | // - The top/ext desgination follows the same scheme as inter-module |
| 109 | // The node key represents all the known resets in the design |
| 110 | resets: { |
| 111 | |
| 112 | hier_paths: { |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 113 | top: "rstmgr_aon_resets.", // top level is a struct |
| 114 | ext: "", // ext is a port of the clock name |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 115 | }, |
| 116 | |
| 117 | // Reset node attributes |
| 118 | // name: name of reset. |
| 119 | // |
| 120 | // gen: whether the reset is generated |
| 121 | // true: it is a generated reset inside rstmgr |
| 122 | // false: it is a hardwired design reset inside rstmgr (roots and por) |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 123 | // For non-generated resets, the parent / domain definitions have no meaning. |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 124 | // |
| 125 | // type: the reset type [ext, top] |
| 126 | // ext: the reset is coming in from the ports, external to earlgrey |
| 127 | // int: the reset is only used inside rstmgr |
| 128 | // top: the reset is output from rstmgr to top level struct |
| 129 | // |
| 130 | // parent: The parent reset |
| 131 | // If type is "ext", there is no root, since it is external |
| 132 | // |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 133 | // domains: The power domains of a particular reset |
| 134 | // This is a list of of the supported power domains. |
| 135 | // Valid values are Aon and (power domain)0 ~ (power domain)1. |
| 136 | // If no value is supplied, the default is only the Aon version. |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 137 | // |
| 138 | // clk: related clock domain for synchronous release |
| 139 | // If type is "por", there is not related clock, since it is |
| 140 | // likely external or generated from a voltage comparator |
| 141 | // |
| 142 | nodes: [ |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 143 | { name: "rst_ni", gen: false, type: "ext", } |
| 144 | { name: "por_aon", gen: false, type: "top", domains: ["Aon" ], clk: "aon" } |
| 145 | { name: "lc_src", gen: false, type: "int", domains: ["Aon", "0"], clk: "io_div4" } |
| 146 | { name: "sys_src", gen: false, type: "int", domains: ["Aon", "0"], clk: "io_div4" } |
| 147 | { name: "por", gen: true, type: "top", domains: ["Aon" ], parent: "por_aon", clk: "main" } |
| 148 | { name: "por_io", gen: true, type: "top", domains: ["Aon", ], parent: "por_aon", clk: "io" } |
| 149 | { name: "por_io_div2", gen: true, type: "top", domains: ["Aon", ], parent: "por_aon", clk: "io_div2" } |
| 150 | { name: "por_io_div4", gen: true , type: "top", domains: ["Aon", ], parent: "por_aon", clk: "io_div4" } |
| 151 | { name: "por_usb", gen: true, type: "top", domains: ["Aon", ], parent: "por_aon", clk: "usb" } |
| 152 | { name: "lc", gen: true, type: "top", domains: [ "0"], parent: "lc_src", clk: "main" } |
Michael Schaffner | 0f861f8 | 2021-07-12 14:22:15 -0700 | [diff] [blame] | 153 | { name: "lc_io_div4", gen: true, type: "top", domains: ["Aon", "0"], parent: "lc_src", clk: "io_div4" } |
Timothy Chen | ac6af87 | 2021-02-22 17:17:52 -0800 | [diff] [blame] | 154 | { name: "sys", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "main" } |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 155 | { name: "sys_io_div4", gen: true, type: "top", domains: ["Aon", "0"], parent: "sys_src", clk: "io_div4" } |
Timothy Chen | c2b279a | 2021-01-14 18:53:34 -0800 | [diff] [blame] | 156 | { name: "sys_aon", gen: true, type: "top", domains: ["Aon", "0"], parent: "sys_src", clk: "aon" } |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 157 | { name: "spi_device", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io_div2", sw: 1 } |
Timothy Chen | c1c1675 | 2021-04-28 14:03:02 -0700 | [diff] [blame] | 158 | { name: "spi_host0", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io", sw: 1 } |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 159 | { name: "spi_host1", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io_div2", sw: 1 } |
Timothy Chen | c2b279a | 2021-01-14 18:53:34 -0800 | [diff] [blame] | 160 | { name: "usb", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "usb", sw: 1 } |
Timothy Chen | b0f5577 | 2021-02-01 15:43:47 -0800 | [diff] [blame] | 161 | { name: "i2c0", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io_div2", sw: 1 }, |
| 162 | { name: "i2c1", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io_div2", sw: 1 }, |
| 163 | { name: "i2c2", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io_div2", sw: 1 }, |
Timothy Chen | c623393 | 2020-08-19 15:34:07 -0700 | [diff] [blame] | 164 | ] |
| 165 | } |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 166 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 167 | // Number of cores: used in rv_plic and timer |
| 168 | num_cores: "1", |
| 169 | |
Timothy Chen | e4e857d | 2020-12-16 18:00:01 -0800 | [diff] [blame] | 170 | |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 171 | // `host` defines the host only components in the system |
| 172 | // This function is deprecated and will be removed as a separate PR. |
Timothy Chen | e4e857d | 2020-12-16 18:00:01 -0800 | [diff] [blame] | 173 | host: [ |
Timothy Chen | e4e857d | 2020-12-16 18:00:01 -0800 | [diff] [blame] | 174 | ] |
| 175 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 176 | // `module` defines the peripherals. |
| 177 | // Details are coming from each modules' config file `ip.hjson` |
| 178 | // TODO: Define parameter here |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 179 | // attr: There are a few types of modules supported |
| 180 | // normal(default): Normal, non-templated modules that will be instantiated |
| 181 | // templated: These modules are templated and must be run through topgen |
| 182 | // reggen_top: These modules are not templated, but need to have reggen run |
| 183 | // because they live exclusively in hw/top_* instead of hw/ip_*. |
| 184 | // These modules are also instantiated in the top level. |
| 185 | // reggen_only: Similar to reggen_top, but are not instantiated in the top level. |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 186 | module: [ |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 187 | { name: "uart0", // instance name |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 188 | type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted) |
| 189 | // and `hw/ip/{type}` |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 190 | |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 191 | // clock connections defines the port to top level clock connection |
| 192 | // the ip.hjson will declare the clock port names |
| 193 | // If none are defined at ip.hjson, clk_i is used by default |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 194 | clock_srcs: {clk_i: "io_div4"}, |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 195 | |
| 196 | // reset connections defines the port to top level reset connection |
| 197 | // the ip.hjson will declare the reset port names |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 198 | // If none are defined at ip.hjson, rst_ni is used by default |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 199 | reset_connections: {rst_ni: "sys_io_div4"}, |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 200 | base_addr: "0x40000000", |
| 201 | }, |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 202 | { name: "uart1", // instance name |
| 203 | type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted) |
| 204 | // and `hw/ip/{type}` |
| 205 | |
| 206 | // clock connections defines the port to top level clock connection |
| 207 | // the ip.hjson will declare the clock port names |
| 208 | // If none are defined at ip.hjson, clk_i is used by default |
| 209 | clock_srcs: {clk_i: "io_div4"}, |
| 210 | |
| 211 | // reset connections defines the port to top level reset connection |
| 212 | // the ip.hjson will declare the reset port names |
| 213 | // If none are defined at ip.hjson, rst_ni is used by default |
| 214 | reset_connections: {rst_ni: "sys_io_div4"}, |
| 215 | base_addr: "0x40010000", |
| 216 | }, |
| 217 | { name: "uart2", // instance name |
| 218 | type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted) |
| 219 | // and `hw/ip/{type}` |
| 220 | |
| 221 | // clock connections defines the port to top level clock connection |
| 222 | // the ip.hjson will declare the clock port names |
| 223 | // If none are defined at ip.hjson, clk_i is used by default |
| 224 | clock_srcs: {clk_i: "io_div4"}, |
| 225 | |
| 226 | // reset connections defines the port to top level reset connection |
| 227 | // the ip.hjson will declare the reset port names |
| 228 | // If none are defined at ip.hjson, rst_ni is used by default |
| 229 | reset_connections: {rst_ni: "sys_io_div4"}, |
| 230 | base_addr: "0x40020000", |
| 231 | }, |
| 232 | { name: "uart3", // instance name |
| 233 | type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted) |
| 234 | // and `hw/ip/{type}` |
| 235 | |
| 236 | // clock connections defines the port to top level clock connection |
| 237 | // the ip.hjson will declare the clock port names |
| 238 | // If none are defined at ip.hjson, clk_i is used by default |
| 239 | clock_srcs: {clk_i: "io_div4"}, |
| 240 | |
| 241 | // reset connections defines the port to top level reset connection |
| 242 | // the ip.hjson will declare the reset port names |
| 243 | // If none are defined at ip.hjson, rst_ni is used by default |
| 244 | reset_connections: {rst_ni: "sys_io_div4"}, |
| 245 | base_addr: "0x40030000", |
| 246 | }, |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 247 | { name: "gpio", |
| 248 | type: "gpio", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 249 | clock_srcs: {clk_i: "io_div4"}, |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 250 | clock_group: "peri", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 251 | reset_connections: {rst_ni: "sys_io_div4"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 252 | base_addr: "0x40040000", |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 253 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 254 | { name: "spi_device", |
| 255 | type: "spi_device", |
Timothy Chen | 04192e0 | 2021-02-19 16:16:25 -0800 | [diff] [blame] | 256 | clock_srcs: {clk_i: "io_div4", scan_clk_i: "io_div2"}, |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 257 | clock_group: "peri", |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 258 | reset_connections: {rst_ni: "spi_device"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 259 | base_addr: "0x40050000", |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 260 | }, |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 261 | { name: "spi_host0", |
| 262 | type: "spi_host", |
Timothy Chen | c1c1675 | 2021-04-28 14:03:02 -0700 | [diff] [blame] | 263 | clock_srcs: {clk_i: "io_div4", clk_core_i: "io"}, |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 264 | clock_group: "peri", |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 265 | reset_connections: {rst_ni: "spi_host0", rst_core_ni: "spi_host0"}, |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 266 | base_addr: "0x40060000", |
| 267 | }, |
| 268 | { name: "spi_host1", |
| 269 | type: "spi_host", |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 270 | clock_srcs: {clk_i: "io_div4", clk_core_i: "io_div2"}, |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 271 | clock_group: "peri", |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 272 | reset_connections: {rst_ni: "spi_host1", rst_core_ni: "spi_host1"}, |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 273 | base_addr: "0x40070000", |
| 274 | }, |
Timothy Chen | b0f5577 | 2021-02-01 15:43:47 -0800 | [diff] [blame] | 275 | { name: "i2c0", |
| 276 | type: "i2c", |
| 277 | clock_srcs: {clk_i: "io_div4"}, |
| 278 | clock_group: "peri", |
| 279 | reset_connections: {rst_ni: "i2c0"}, |
| 280 | base_addr: "0x40080000", |
| 281 | }, |
| 282 | { name: "i2c1", |
| 283 | type: "i2c", |
| 284 | clock_srcs: {clk_i: "io_div4"}, |
| 285 | clock_group: "peri", |
| 286 | reset_connections: {rst_ni: "i2c1"}, |
| 287 | base_addr: "0x40090000", |
| 288 | }, |
| 289 | { name: "i2c2", |
| 290 | type: "i2c", |
| 291 | clock_srcs: {clk_i: "io_div4"}, |
| 292 | clock_group: "peri", |
| 293 | reset_connections: {rst_ni: "i2c2"}, |
| 294 | base_addr: "0x400A0000", |
| 295 | }, |
| 296 | { name: "pattgen", |
| 297 | type: "pattgen", |
| 298 | clock_srcs: {clk_i: "io_div4"}, |
| 299 | clock_group: "peri", |
| 300 | reset_connections: {rst_ni: "sys_io_div4"}, |
| 301 | base_addr: "0x400E0000", |
| 302 | }, |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 303 | { name: "rv_timer", |
| 304 | type: "rv_timer", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 305 | clock_srcs: {clk_i: "io_div4"}, |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 306 | clock_group: "timers", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 307 | reset_connections: {rst_ni: "sys_io_div4"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 308 | base_addr: "0x40100000", |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 309 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 310 | { name: "usbdev", |
| 311 | type: "usbdev", |
| 312 | clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon", clk_usb_48mhz_i: "usb"}, |
| 313 | clock_group: "peri", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 314 | clock_reset_export: ["ast"], |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 315 | reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon", rst_usb_48mhz_ni: "usb"}, |
Pirmin Vogel | d453438 | 2019-10-17 13:18:31 +0100 | [diff] [blame] | 316 | base_addr: "0x40110000", |
| 317 | }, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 318 | { name: "otp_ctrl", |
| 319 | type: "otp_ctrl", |
Michael Schaffner | 3c7892d | 2020-12-28 16:25:46 -0800 | [diff] [blame] | 320 | clock_srcs: {clk_i: "io_div4", clk_edn_i: "main"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 321 | clock_group: "timers", |
Michael Schaffner | 3c7892d | 2020-12-28 16:25:46 -0800 | [diff] [blame] | 322 | reset_connections: {rst_ni: "lc_io_div4", rst_edn_ni: "sys"}, |
Michael Schaffner | 8b0b5b1 | 2021-07-08 12:28:10 -0700 | [diff] [blame] | 323 | base_addrs: {core: "0x40130000", prim: "0x40132000"} |
Timothy Chen | 65e1667 | 2020-12-05 09:17:14 -0800 | [diff] [blame] | 324 | }, |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 325 | { name: "lc_ctrl", |
| 326 | type: "lc_ctrl", |
Michael Schaffner | 5fb9ea6 | 2021-05-19 12:56:29 -0700 | [diff] [blame] | 327 | clock_srcs: {clk_i: "io_div4", clk_kmac_i: "main"}, |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 328 | clock_group: "timers", |
Michael Schaffner | 5fb9ea6 | 2021-05-19 12:56:29 -0700 | [diff] [blame] | 329 | reset_connections: {rst_ni: "lc_io_div4", rst_kmac_ni: "sys"}, |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 330 | base_addr: "0x40140000", |
| 331 | }, |
Michael Schaffner | be5cb9c | 2020-11-19 19:53:47 -0800 | [diff] [blame] | 332 | { name: "alert_handler", |
| 333 | type: "alert_handler", |
Timothy Chen | f1006bd | 2021-02-05 13:05:43 -0800 | [diff] [blame] | 334 | clock_srcs: {clk_i: "io_div4", clk_edn_i: "main"}, |
Michael Schaffner | be5cb9c | 2020-11-19 19:53:47 -0800 | [diff] [blame] | 335 | clock_group: "timers", |
Timothy Chen | f1006bd | 2021-02-05 13:05:43 -0800 | [diff] [blame] | 336 | reset_connections: {rst_ni: "sys_io_div4", rst_edn_ni: "sys"}, |
Michael Schaffner | be5cb9c | 2020-11-19 19:53:47 -0800 | [diff] [blame] | 337 | base_addr: "0x40150000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 338 | attr: "templated", |
Michael Schaffner | be5cb9c | 2020-11-19 19:53:47 -0800 | [diff] [blame] | 339 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 340 | { name: "pwrmgr_aon", |
Timothy Chen | 163050b | 2020-04-13 23:29:29 -0700 | [diff] [blame] | 341 | type: "pwrmgr", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 342 | clock_srcs: {clk_i: "io_div4", clk_slow_i: "aon"}, |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 343 | clock_group: "powerup", |
Timothy Chen | a4cc10d | 2020-05-08 16:06:20 -0700 | [diff] [blame] | 344 | reset_connections: {rst_ni: "por", rst_slow_ni: "por_aon"}, |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 345 | domain: "Aon", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 346 | base_addr: "0x40400000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 347 | attr: "templated", |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 348 | |
Timothy Chen | 163050b | 2020-04-13 23:29:29 -0700 | [diff] [blame] | 349 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 350 | { name: "rstmgr_aon", |
Timothy Chen | c59f701 | 2020-04-16 19:11:42 -0700 | [diff] [blame] | 351 | type: "rstmgr", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 352 | clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon", clk_main_i: "main", clk_io_i: "io", clk_usb_i: "usb", |
Timothy Chen | 0f3c175 | 2020-08-26 12:47:17 -0700 | [diff] [blame] | 353 | clk_io_div2_i: "io_div2", clk_io_div4_i: "io_div4"}, |
Timothy Chen | c59f701 | 2020-04-16 19:11:42 -0700 | [diff] [blame] | 354 | clock_group: "powerup", |
| 355 | reset_connections: {rst_ni: "rst_ni"}, |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 356 | domain: "Aon", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 357 | base_addr: "0x40410000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 358 | attr: "templated", |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 359 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 360 | { name: "clkmgr_aon", |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 361 | type: "clkmgr", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 362 | clock_srcs: {clk_i: "io_div4"}, |
Timothy Chen | f56c1b5 | 2020-04-28 17:00:43 -0700 | [diff] [blame] | 363 | clock_group: "powerup", |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 364 | reset_connections: {rst_ni: "por_io_div4", rst_main_ni: "por", rst_io_ni: "por_io", rst_usb_ni: "por_usb" |
Timothy Chen | ced60b2 | 2020-08-20 10:35:00 -0700 | [diff] [blame] | 365 | rst_io_div2_ni: "por_io_div2", rst_io_div4_ni: "por_io_div4"}, |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 366 | domain: "Aon", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 367 | base_addr: "0x40420000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 368 | attr: "templated", |
Timothy Chen | c59f701 | 2020-04-16 19:11:42 -0700 | [diff] [blame] | 369 | }, |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 370 | { name: "sysrst_ctrl_aon", |
| 371 | type: "sysrst_ctrl", |
| 372 | clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"}, |
| 373 | clock_group: "secure", |
| 374 | reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon"}, |
| 375 | domain: "Aon", |
| 376 | base_addr: "0x40430000" |
| 377 | }, |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 378 | { name: "adc_ctrl_aon", |
Eric Shiu | 5f1d304 | 2021-03-17 17:24:11 -0700 | [diff] [blame] | 379 | type: "adc_ctrl", |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 380 | clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"}, |
| 381 | clock_group: "peri", |
| 382 | reset_connections: {rst_ni: "sys_io_div4", rst_slow_ni: "sys_aon"}, |
| 383 | clock_reset_export: ["ast"], |
| 384 | domain: "Aon", |
| 385 | base_addr: "0x40440000" |
Michael Schaffner | d13f442 | 2021-04-20 10:27:48 -0700 | [diff] [blame] | 386 | }, |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 387 | { name: "pwm_aon", |
| 388 | type: "pwm", |
| 389 | clock_srcs: {clk_i: "io_div4", clk_core_i: "aon"}, |
| 390 | clock_group: "powerup", |
| 391 | reset_connections: {rst_ni: "sys_io_div4", rst_core_ni: "sys_aon"}, |
| 392 | domain: "Aon", |
| 393 | base_addr: "0x40450000", |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 394 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 395 | { name: "pinmux_aon", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 396 | type: "pinmux", |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 397 | clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"}, |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 398 | clock_group: "powerup", |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 399 | reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 400 | domain: "Aon", |
| 401 | base_addr: "0x40460000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 402 | attr: "templated", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 403 | }, |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 404 | { name: "aon_timer_aon", |
| 405 | type: "aon_timer", |
| 406 | clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"}, |
| 407 | clock_group: "timers", |
| 408 | reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon"}, |
| 409 | domain: "Aon", |
| 410 | base_addr: "0x40470000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 411 | attr: "templated", |
| 412 | }, |
| 413 | { name: "ast", |
| 414 | type: "ast", |
| 415 | clock_srcs: {clk_i: "io_div4"}, |
| 416 | clock_group: "secure", |
| 417 | clock_reset_export: ["ast"], |
| 418 | reset_connections: {rst_ni: "sys_io_div4"}, |
| 419 | base_addr: "0x40480000", |
| 420 | attr: "reggen_only", |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 421 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 422 | { name: "sensor_ctrl_aon", |
| 423 | type: "sensor_ctrl", |
| 424 | clock_srcs: {clk_i: "io_div4"}, |
| 425 | clock_group: "secure", |
Timothy Chen | 4c8905e | 2020-08-26 10:34:33 -0700 | [diff] [blame] | 426 | clock_reset_export: ["ast"], |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 427 | reset_connections: {rst_ni: "sys_io_div4"}, |
| 428 | domain: "Aon", |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 429 | base_addr: "0x40490000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 430 | attr: "reggen_top", |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 431 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 432 | { name: "sram_ctrl_ret_aon", |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 433 | type: "sram_ctrl", |
| 434 | clock_srcs: {clk_i: "io_div4", clk_otp_i: "io_div4"}, |
Michael Schaffner | 0f861f8 | 2021-07-12 14:22:15 -0700 | [diff] [blame] | 435 | clock_group: "infra", |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 436 | reset_connections: {rst_ni: "sys_io_div4", rst_otp_ni: "lc_io_div4"}, |
| 437 | domain: "Aon", |
Timothy Chen | 9d4ed87 | 2021-07-15 16:51:10 -0700 | [diff] [blame] | 438 | param_decl: { |
| 439 | InstrExec: "0", |
| 440 | } |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 441 | base_addr: "0x40500000" |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 442 | }, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 443 | { name: "flash_ctrl", |
| 444 | type: "flash_ctrl", |
Timothy Chen | f52a461 | 2020-12-04 20:37:49 -0800 | [diff] [blame] | 445 | clock_srcs: {clk_i: "main", clk_otp_i: "io_div4"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 446 | clock_group: "infra", |
Timothy Chen | f52a461 | 2020-12-04 20:37:49 -0800 | [diff] [blame] | 447 | reset_connections: {rst_ni: "lc", rst_otp_ni: "lc_io_div4"}, |
Timothy Chen | 8adb20d | 2021-03-25 16:49:04 -0700 | [diff] [blame] | 448 | base_addrs: {core: "0x41000000", prim: "0x41008000"} |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 449 | attr: "templated", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 450 | }, |
Michael Schaffner | 690d732 | 2021-06-24 14:37:22 -0700 | [diff] [blame] | 451 | { name: "rv_dm", |
| 452 | type: "rv_dm", |
| 453 | clock_srcs: {clk_i: "main"}, |
| 454 | clock_group: "infra", |
| 455 | reset_connections: {rst_ni: "lc"}, |
| 456 | // Note that this module also contains a bus host. |
| 457 | base_addrs: {rom: "0x00010000", regs: "0x41200000"} |
| 458 | }, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 459 | { name: "rv_plic", |
| 460 | type: "rv_plic", |
| 461 | clock_srcs: {clk_i: "main"}, |
Timothy Chen | dde6805 | 2020-08-05 16:29:35 -0700 | [diff] [blame] | 462 | clock_group: "secure", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 463 | reset_connections: {rst_ni: "sys"}, |
| 464 | base_addr: "0x41010000", |
Timothy Chen | 9443221 | 2021-03-01 22:29:18 -0800 | [diff] [blame] | 465 | attr: "templated", |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 466 | }, |
| 467 | { name: "aes", |
| 468 | type: "aes", |
Pirmin Vogel | 95cea45 | 2021-03-02 08:54:01 +0100 | [diff] [blame] | 469 | clock_srcs: {clk_i: "main", clk_edn_i: "main"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 470 | clock_group: "trans", |
Pirmin Vogel | 95cea45 | 2021-03-02 08:54:01 +0100 | [diff] [blame] | 471 | reset_connections: {rst_ni: "sys", rst_edn_ni: "sys"}, |
Timothy Chen | 9d4ed87 | 2021-07-15 16:51:10 -0700 | [diff] [blame] | 472 | param_decl: { |
| 473 | Masking: "1", |
| 474 | SBoxImpl: "aes_pkg::SBoxImplDom", |
| 475 | SecStartTriggerDelay: "0", |
| 476 | SecAllowForcingMasks: "1'b0", |
| 477 | |
| 478 | } |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 479 | base_addr: "0x41100000", |
| 480 | }, |
| 481 | { name: "hmac", |
| 482 | type: "hmac", |
| 483 | clock_srcs: {clk_i: "main"}, |
| 484 | clock_group: "trans", |
| 485 | reset_connections: {rst_ni: "sys"}, |
| 486 | base_addr: "0x41110000", |
| 487 | }, |
Timothy Chen | 664916d | 2021-07-09 14:34:06 -0700 | [diff] [blame] | 488 | { name: "kmac", |
| 489 | type: "kmac", |
Timothy Chen | 9d4ed87 | 2021-07-15 16:51:10 -0700 | [diff] [blame] | 490 | param_decl: { |
| 491 | EnMasking: "1", |
| 492 | ReuseShare: "0" |
| 493 | } |
Eunchan Kim | 6baeda4 | 2021-01-07 12:32:16 -0800 | [diff] [blame] | 494 | clock_srcs: {clk_i: "main", clk_edn_i: "main"} |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 495 | clock_group: "trans" |
Eunchan Kim | 6baeda4 | 2021-01-07 12:32:16 -0800 | [diff] [blame] | 496 | reset_connections: {rst_ni: "sys", rst_edn_ni: "sys"} |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 497 | base_addr: "0x41120000" |
Timothy Chen | dde6805 | 2020-08-05 16:29:35 -0700 | [diff] [blame] | 498 | }, |
Timothy Chen | 3c3f348 | 2020-09-09 18:45:41 -0700 | [diff] [blame] | 499 | { name: "keymgr", |
| 500 | type: "keymgr", |
Timothy Chen | d5820b0 | 2020-12-05 17:19:06 -0800 | [diff] [blame] | 501 | clock_srcs: {clk_i: "main", clk_edn_i: "main"}, |
Timothy Chen | 3c3f348 | 2020-09-09 18:45:41 -0700 | [diff] [blame] | 502 | clock_group: "secure", |
Timothy Chen | d5820b0 | 2020-12-05 17:19:06 -0800 | [diff] [blame] | 503 | reset_connections: {rst_ni: "sys", rst_edn_ni: "sys"}, |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 504 | base_addr: "0x41130000", |
Michael Schaffner | 5ae4a23 | 2020-10-06 19:03:43 -0700 | [diff] [blame] | 505 | }, |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 506 | { name: "csrng", |
| 507 | type: "csrng", |
| 508 | clock_srcs: {clk_i: "main"}, |
| 509 | clock_group: "secure", |
| 510 | reset_connections: {rst_ni: "sys"}, |
| 511 | base_addr: "0x41150000", |
| 512 | }, |
| 513 | { name: "entropy_src", |
| 514 | type: "entropy_src", |
| 515 | clock_srcs: {clk_i: "main"}, |
| 516 | clock_group: "secure", |
| 517 | reset_connections: {rst_ni: "sys"}, |
Timothy Chen | ea59ad3 | 2021-02-03 17:51:38 -0800 | [diff] [blame] | 518 | clock_reset_export: ["ast"], |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 519 | base_addr: "0x41160000", |
| 520 | }, |
| 521 | { name: "edn0", |
| 522 | type: "edn", |
| 523 | clock_srcs: {clk_i: "main"}, |
| 524 | clock_group: "secure", |
| 525 | reset_connections: {rst_ni: "sys"}, |
Timothy Chen | ea59ad3 | 2021-02-03 17:51:38 -0800 | [diff] [blame] | 526 | clock_reset_export: ["ast"], |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 527 | base_addr: "0x41170000", |
| 528 | }, |
| 529 | { name: "edn1", |
| 530 | type: "edn", |
| 531 | clock_srcs: {clk_i: "main"}, |
| 532 | clock_group: "secure", |
| 533 | reset_connections: {rst_ni: "sys"}, |
| 534 | base_addr: "0x41180000", |
| 535 | }, |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 536 | { name: "sram_ctrl_main", |
| 537 | type: "sram_ctrl", |
| 538 | clock_srcs: {clk_i: "main", clk_otp_i: "io_div4"}, |
| 539 | clock_group: "secure", |
| 540 | reset_connections: {rst_ni: "sys", rst_otp_ni: "lc_io_div4"}, |
Timothy Chen | 9d4ed87 | 2021-07-15 16:51:10 -0700 | [diff] [blame] | 541 | param_decl: { |
| 542 | InstrExec: "1", |
| 543 | } |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 544 | base_addr: "0x411C0000", |
| 545 | }, |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 546 | { name: "otbn", |
| 547 | type: "otbn", |
Greg Chadwick | 5e8ce9d | 2021-06-16 17:25:27 +0100 | [diff] [blame] | 548 | clock_srcs: {clk_i: "main", clk_edn_i: "main", clk_otp_i: "io_div4"}, |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 549 | clock_group: "trans", |
Greg Chadwick | 5e8ce9d | 2021-06-16 17:25:27 +0100 | [diff] [blame] | 550 | reset_connections: {rst_ni: "sys", rst_edn_ni: "sys", rst_otp_ni: "lc_io_div4"}, |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 551 | base_addr: "0x411D0000", |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 552 | }, |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 553 | { name: "rom_ctrl", |
| 554 | type: "rom_ctrl", |
| 555 | clock_srcs: {clk_i: "main"}, |
| 556 | clock_group: "infra", |
| 557 | reset_connections: {rst_ni: "sys"}, |
| 558 | base_addrs: {rom: "0x00008000", regs: "0x411e0000"} |
Michael Schaffner | 02e982f | 2021-07-09 17:40:34 -0700 | [diff] [blame] | 559 | memory: { |
| 560 | rom: { |
| 561 | label: "rom", |
| 562 | swaccess: "rx", |
| 563 | size: "0x4000" |
| 564 | } |
Rupert Swarbrick | cd469d2 | 2021-07-16 11:17:07 +0100 | [diff] [blame] | 565 | }, |
| 566 | param_decl: { |
| 567 | SecDisableScrambling: "1'b0" |
Michael Schaffner | 02e982f | 2021-07-09 17:40:34 -0700 | [diff] [blame] | 568 | } |
Timothy Chen | 3e3cb48 | 2021-06-24 13:00:54 -0700 | [diff] [blame] | 569 | }, |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 570 | { name: "rv_core_ibex", |
| 571 | type: "rv_core_ibex", |
| 572 | param_decl: {PMPEnable: "1", |
| 573 | PMPGranularity: "0", |
| 574 | PMPNumRegions: "16", |
| 575 | MHPMCounterNum: "10", |
| 576 | MHPMCounterWidth: "32", |
| 577 | RV32E: "0", |
| 578 | RV32M: "ibex_pkg::RV32MSingleCycle", |
| 579 | RV32B: "ibex_pkg::RV32BNone", |
| 580 | RegFile: "ibex_pkg::RegFileFF", |
| 581 | BranchTargetALU: "1", |
| 582 | WritebackStage: "1", |
| 583 | ICache: "1", |
| 584 | ICacheECC: "1", |
| 585 | BranchPredictor: "0", |
| 586 | DbgTriggerEn: "1", |
| 587 | SecureIbex: "1", |
| 588 | DmHaltAddr: "tl_main_pkg::ADDR_SPACE_RV_DM__ROM + dm::HaltAddress[31:0]", |
| 589 | DmExceptionAddr: "tl_main_pkg::ADDR_SPACE_RV_DM__ROM + dm::ExceptionAddress[31:0]", |
| 590 | PipeLine: "0" |
| 591 | } |
| 592 | clock_srcs: {clk_i: "main", clk_esc_i: "io_div4"}, |
Timothy Chen | 3e3cb48 | 2021-06-24 13:00:54 -0700 | [diff] [blame] | 593 | clock_group: "infra", |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 594 | reset_connections: {rst_ni: "sys", rst_esc_ni: "lc_io_div4"}, |
Timothy Chen | 3e3cb48 | 2021-06-24 13:00:54 -0700 | [diff] [blame] | 595 | base_addr: "0x411F0000", |
| 596 | }, |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 597 | ] |
| 598 | |
| 599 | // Memories (ROM, RAM, eFlash) are defined at the top. |
| 600 | // It utilizes the primitive cells but configurable |
| 601 | memory: [ |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 602 | { name: "ram_main", |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 603 | clock_srcs: {clk_i: "main"}, |
| 604 | clock_group: "infra", |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 605 | reset_connections: {rst_ni: "sys"}, |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 606 | type: "ram_1p_scr", |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 607 | base_addr: "0x10000000", |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 608 | size: "0x20000", |
Weicai Yang | 2ac0dee | 2020-12-08 12:19:18 -0800 | [diff] [blame] | 609 | byte_write: "true", |
Timothy Chen | 466585e | 2021-03-01 15:06:01 -0800 | [diff] [blame] | 610 | // data integrity width |
| 611 | integ_width: 7, |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 612 | exec: "1", |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 613 | inter_signal_list: [ |
| 614 | { struct: "tl" |
| 615 | package: "tlul_pkg" |
| 616 | type: "req_rsp" |
| 617 | act: "rsp" |
| 618 | name: "tl" |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 619 | }, |
| 620 | // Interface to SRAM controller |
| 621 | { struct: "sram_scr", |
| 622 | package: "sram_ctrl_pkg" |
| 623 | type: "req_rsp", |
| 624 | name: "sram_scr", |
| 625 | act: "rsp", |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 626 | }, |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 627 | { struct: "sram_scr_init", |
| 628 | package: "sram_ctrl_pkg" |
| 629 | type: "req_rsp", |
| 630 | name: "sram_scr_init", |
| 631 | act: "rsp", |
| 632 | }, |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 633 | { struct: "tl_instr_en", |
| 634 | package: "tlul_pkg" |
| 635 | type: "uni", |
| 636 | name: "en_ifetch", |
| 637 | act: "rcv", |
| 638 | }, |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 639 | { struct: "logic", |
| 640 | package: "" |
| 641 | type: "uni", |
| 642 | name: "intg_error", |
| 643 | act: "req", |
| 644 | }, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 645 | // Interface to memory configuration |
| 646 | { struct: "ram_1p_cfg", |
| 647 | package: "prim_ram_1p_pkg", |
| 648 | type: "uni", |
| 649 | name: "cfg", |
| 650 | act: "rcv" |
| 651 | } |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 652 | ] |
| 653 | }, |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 654 | { name: "ram_ret_aon", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 655 | clock_srcs: {clk_i: "io_div4"}, |
Timothy Chen | 2c9e1a9 | 2020-06-29 15:03:25 -0700 | [diff] [blame] | 656 | clock_group: "infra", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 657 | reset_connections: {rst_ni: "sys_io_div4"}, |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 658 | domain: "Aon", |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 659 | type: "ram_1p_scr", |
Silvestrs Timofejevs | af2b5c2 | 2021-02-05 10:33:18 +0000 | [diff] [blame] | 660 | base_addr: "0x40600000", |
Timothy Chen | 7f8cc8e | 2020-11-11 13:15:57 -0800 | [diff] [blame] | 661 | size: "0x1000", |
Weicai Yang | 2ac0dee | 2020-12-08 12:19:18 -0800 | [diff] [blame] | 662 | byte_write: "true", |
Timothy Chen | 466585e | 2021-03-01 15:06:01 -0800 | [diff] [blame] | 663 | // data integrity width |
| 664 | integ_width: 7, |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 665 | exec: "0", |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 666 | inter_signal_list: [ |
| 667 | { struct: "tl" |
| 668 | package: "tlul_pkg" |
| 669 | type: "req_rsp" |
| 670 | act: "rsp" |
| 671 | name: "tl" |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 672 | }, |
| 673 | // Interface to SRAM controller |
| 674 | { struct: "sram_scr", |
| 675 | package: "sram_ctrl_pkg" |
| 676 | type: "req_rsp", |
| 677 | name: "sram_scr", |
| 678 | act: "rsp", |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 679 | }, |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 680 | { struct: "sram_scr_init", |
| 681 | package: "sram_ctrl_pkg" |
| 682 | type: "req_rsp", |
| 683 | name: "sram_scr_init", |
| 684 | act: "rsp", |
| 685 | }, |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 686 | { struct: "tl_instr_en", |
| 687 | package: "tlul_pkg" |
| 688 | type: "uni", |
| 689 | name: "en_ifetch", |
| 690 | act: "rcv", |
| 691 | }, |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 692 | { struct: "logic", |
| 693 | package: "" |
| 694 | type: "uni", |
| 695 | name: "intg_error", |
| 696 | act: "req", |
| 697 | }, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 698 | // Interface to memory configuration |
| 699 | { struct: "ram_1p_cfg", |
| 700 | package: "prim_ram_1p_pkg", |
| 701 | type: "uni", |
| 702 | name: "cfg", |
| 703 | act: "rcv" |
| 704 | } |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 705 | ] |
| 706 | }, |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 707 | { name: "eflash", |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 708 | clock_srcs: {clk_i: "main"}, |
| 709 | clock_group: "infra", |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 710 | reset_connections: {rst_ni: "lc"}, |
| 711 | type: "eflash", |
| 712 | base_addr: "0x20000000", |
Timothy Chen | 1daf582 | 2020-10-26 17:28:15 -0700 | [diff] [blame] | 713 | banks: 2, |
Timothy Chen | 4367c48 | 2021-01-22 00:18:45 -0800 | [diff] [blame] | 714 | pages_per_bank: 256, |
Timothy Chen | e97e0b8 | 2020-12-11 17:18:43 -0800 | [diff] [blame] | 715 | program_resolution: 8, // maximum number of flash words allowed to program at one time |
Weicai Yang | 55b2cdf | 2020-04-10 15:40:30 -0700 | [diff] [blame] | 716 | swaccess: "ro", |
Eunchan Kim | e4a8507 | 2020-02-05 16:00:00 -0800 | [diff] [blame] | 717 | inter_signal_list: [ |
| 718 | { struct: "flash", // flash_req_t, flash_rsp_t |
| 719 | type: "req_rsp", |
| 720 | name: "flash_ctrl", // flash_ctrl_i (req), flash_ctrl_o (rsp) |
Eunchan Kim | 40098a9 | 2020-04-17 12:22:36 -0700 | [diff] [blame] | 721 | act: "rsp", |
Timothy Chen | ac62065 | 2020-06-25 13:48:50 -0700 | [diff] [blame] | 722 | }, |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 723 | { struct: "tl" |
| 724 | package: "tlul_pkg" |
| 725 | type: "req_rsp" |
| 726 | act: "rsp" |
| 727 | name: "tl" |
Timothy Chen | d2c9ff4 | 2020-11-19 16:03:54 -0800 | [diff] [blame] | 728 | }, |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 729 | { struct: "lc_tx", |
| 730 | package: "lc_ctrl_pkg", |
| 731 | type: "uni" |
| 732 | act: "rcv" |
Timothy Chen | b1ba59b | 2021-01-07 12:18:11 -0800 | [diff] [blame] | 733 | name: "lc_nvm_debug_en" |
| 734 | }, |
Timothy Chen | 1674110 | 2021-01-15 17:32:13 -0800 | [diff] [blame] | 735 | { struct: "lc_tx" |
| 736 | package: "lc_ctrl_pkg" |
Timothy Chen | b1ba59b | 2021-01-07 12:18:11 -0800 | [diff] [blame] | 737 | type: "uni" |
| 738 | act: "rcv" |
| 739 | name: "flash_bist_enable" |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 740 | }, |
Timothy Chen | d2c9ff4 | 2020-11-19 16:03:54 -0800 | [diff] [blame] | 741 | { struct: "logic" |
| 742 | package: "" |
| 743 | type: "uni" |
| 744 | act: "rcv" |
| 745 | name: "flash_power_down_h" |
| 746 | }, |
| 747 | { struct: "logic" |
| 748 | package: "" |
| 749 | type: "uni" |
| 750 | act: "rcv" |
| 751 | name: "flash_power_ready_h" |
| 752 | }, |
| 753 | { struct: "logic", |
| 754 | package: "", |
Michael Schaffner | 9c3d6a8 | 2021-02-02 17:05:31 -0800 | [diff] [blame] | 755 | width: "4", |
Timothy Chen | d2c9ff4 | 2020-11-19 16:03:54 -0800 | [diff] [blame] | 756 | type: "uni" |
| 757 | act: "rcv" |
| 758 | name: "flash_test_mode_a" |
| 759 | }, |
| 760 | { struct: "logic", |
| 761 | package: "", |
| 762 | type: "uni" |
| 763 | act: "rcv" |
| 764 | name: "flash_test_voltage_h" |
| 765 | }, |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 766 | { struct: "ast_dif", |
| 767 | package: "ast_pkg", |
| 768 | type: "uni" |
| 769 | act: "req" |
| 770 | name: "flash_alert" |
| 771 | }, |
Eunchan Kim | e4a8507 | 2020-02-05 16:00:00 -0800 | [diff] [blame] | 772 | ], |
| 773 | }, |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 774 | ], |
| 775 | |
Timothy Chen | 075ed37 | 2021-02-04 14:42:29 -0800 | [diff] [blame] | 776 | // The port data structure is not something that should be used liberally. |
| 777 | // It is used specifically to assign special attributes to specific ports. |
| 778 | // For example, this allows us to designate a port as part of inter-module |
| 779 | // connections. |
| 780 | port: [ |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 781 | { name: "ast", |
Timothy Chen | 075ed37 | 2021-02-04 14:42:29 -0800 | [diff] [blame] | 782 | inter_signal_list: [ |
| 783 | { struct: "edn", |
| 784 | type: "req_rsp", |
| 785 | name: "edn", |
| 786 | // The activity direction for a port inter-signal is "opposite" of |
| 787 | // what the external module actually needs. |
| 788 | act: "rsp", |
| 789 | package: "edn_pkg", |
| 790 | }, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 791 | |
| 792 | { struct: "lc_tx", |
| 793 | type: "uni", |
| 794 | name: "lc_dft_en", |
| 795 | // The activity direction for a port inter-signal is "opposite" of |
| 796 | // what the external module actually needs. |
| 797 | act: "req", |
| 798 | package: "lc_ctrl_pkg", |
| 799 | }, |
| 800 | |
| 801 | { struct: "ram_1p_cfg", |
| 802 | package: "prim_ram_1p_pkg", |
| 803 | type: "uni", |
| 804 | name: "ram_1p_cfg", |
| 805 | // The activity direction for a port inter-signal is "opposite" of |
| 806 | // what the external module actually needs. |
| 807 | act: "rcv" |
| 808 | }, |
| 809 | |
| 810 | { struct: "ram_2p_cfg", |
| 811 | package: "prim_ram_2p_pkg", |
| 812 | type: "uni", |
| 813 | name: "ram_2p_cfg", |
| 814 | // The activity direction for a port inter-signal is "opposite" of |
| 815 | // what the external module actually needs. |
| 816 | act: "rcv" |
| 817 | }, |
| 818 | |
| 819 | { struct: "rom_cfg", |
| 820 | package: "prim_rom_pkg", |
| 821 | type: "uni", |
| 822 | name: "rom_cfg", |
| 823 | // The activity direction for a port inter-signal is "opposite" of |
| 824 | // what the external module actually needs. |
| 825 | act: "rcv" |
| 826 | } |
Timothy Chen | 075ed37 | 2021-02-04 14:42:29 -0800 | [diff] [blame] | 827 | ] |
| 828 | }, |
| 829 | ] |
| 830 | |
Eunchan Kim | e4a8507 | 2020-02-05 16:00:00 -0800 | [diff] [blame] | 831 | // Inter-module Connection. |
| 832 | // format: |
| 833 | // requester: [ resp1, resp2, ... ], |
| 834 | // |
Eunchan Kim | 40098a9 | 2020-04-17 12:22:36 -0700 | [diff] [blame] | 835 | // the field and value should be module_inst.port_name |
Eunchan Kim | e4a8507 | 2020-02-05 16:00:00 -0800 | [diff] [blame] | 836 | // e.g flash_ctrl0.flash: [flash_phy0.flash_ctrl] |
| 837 | inter_module: { |
Eunchan Kim | 40098a9 | 2020-04-17 12:22:36 -0700 | [diff] [blame] | 838 | 'connect': { |
Michael Schaffner | 9bb75e9 | 2021-03-12 15:13:31 -0800 | [diff] [blame] | 839 | 'ast.ram_1p_cfg' : ['otbn.ram_cfg', 'ram_main.cfg', 'ram_ret_aon.cfg', 'rv_core_ibex.ram_cfg'], |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 840 | 'ast.ram_2p_cfg' : ['spi_device.ram_cfg', 'usbdev.ram_cfg'], |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 841 | 'ast.rom_cfg' : ['rom_ctrl.rom_cfg'], |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 842 | 'alert_handler.crashdump' : ['rstmgr_aon.alert_dump'], |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 843 | 'alert_handler.esc_rx' : ['rv_core_ibex.esc_rx', |
Michael Schaffner | 547baf1 | 2021-06-16 18:52:06 -0700 | [diff] [blame] | 844 | 'lc_ctrl.esc_scrap_state0_rx', |
| 845 | 'lc_ctrl.esc_scrap_state1_rx' |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 846 | 'pwrmgr_aon.esc_rst_rx'], |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 847 | 'alert_handler.esc_tx' : ['rv_core_ibex.esc_tx', |
Michael Schaffner | 547baf1 | 2021-06-16 18:52:06 -0700 | [diff] [blame] | 848 | 'lc_ctrl.esc_scrap_state0_tx', |
| 849 | 'lc_ctrl.esc_scrap_state1_tx', |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 850 | 'pwrmgr_aon.esc_rst_tx'], |
Timothy Chen | e4e857d | 2020-12-16 18:00:01 -0800 | [diff] [blame] | 851 | 'csrng.csrng_cmd' : ['edn0.csrng_cmd', 'edn1.csrng_cmd'], |
Timothy Chen | f52a461 | 2020-12-04 20:37:49 -0800 | [diff] [blame] | 852 | 'csrng.entropy_src_hw_if' : ['entropy_src.entropy_src_hw_if'], |
Mark Branstad | de7eba3 | 2021-03-22 14:18:38 -0700 | [diff] [blame] | 853 | 'csrng.cs_aes_halt' : ['entropy_src.cs_aes_halt'], |
Timothy Chen | d39402a | 2020-12-15 20:34:09 -0800 | [diff] [blame] | 854 | 'flash_ctrl.flash' : ['eflash.flash_ctrl'], |
| 855 | 'flash_ctrl.keymgr' : ['keymgr.flash'], |
| 856 | 'flash_ctrl.otp' : ['otp_ctrl.flash_otp_key'], |
| 857 | 'flash_ctrl.rma_req' : ['lc_ctrl.lc_flash_rma_req'], |
| 858 | 'flash_ctrl.rma_ack' : ['lc_ctrl.lc_flash_rma_ack'], |
| 859 | 'flash_ctrl.rma_seed' : ['lc_ctrl.lc_flash_rma_seed'], |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 860 | 'sram_ctrl_main.sram_scr' : ['ram_main.sram_scr'], |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 861 | 'sram_ctrl_main.sram_scr_init' : ['ram_main.sram_scr_init'], |
| 862 | 'sram_ctrl_ret_aon.sram_scr' : ['ram_ret_aon.sram_scr'], |
| 863 | 'sram_ctrl_ret_aon.sram_scr_init' : ['ram_ret_aon.sram_scr_init'], |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 864 | 'sram_ctrl_main.en_ifetch' : ['ram_main.en_ifetch'], |
| 865 | 'sram_ctrl_ret_aon.en_ifetch' : ['ram_ret_aon.en_ifetch'], |
| 866 | 'ram_main.intg_error' : ['sram_ctrl_main.intg_error'], |
| 867 | 'ram_ret_aon.intg_error' : ['sram_ctrl_ret_aon.intg_error'], |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 868 | 'otp_ctrl.sram_otp_key' : ['sram_ctrl_main.sram_otp_key', |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 869 | 'sram_ctrl_ret_aon.sram_otp_key'] |
| 870 | 'pwrmgr_aon.pwr_flash' : ['flash_ctrl.pwrmgr'], |
| 871 | 'pwrmgr_aon.pwr_rst' : ['rstmgr_aon.pwr'], |
| 872 | 'pwrmgr_aon.pwr_clk' : ['clkmgr_aon.pwr'], |
| 873 | 'pwrmgr_aon.pwr_otp' : ['otp_ctrl.pwr_otp'], |
| 874 | 'pwrmgr_aon.pwr_lc' : ['lc_ctrl.pwr_lc'], |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 875 | 'pwrmgr_aon.strap' : ['pinmux_aon.strap_en'], |
Michael Schaffner | 52bce9f | 2021-07-13 15:08:08 -0700 | [diff] [blame] | 876 | 'pwrmgr_aon.low_power' : ['pinmux_aon.sleep_en', |
| 877 | 'aon_timer_aon.sleep_mode'], |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 878 | 'pwrmgr_aon.fetch_en' : ['rv_core_ibex.pwrmgr_cpu_en'], |
Timothy Chen | b2abc98 | 2021-04-20 10:56:23 -0700 | [diff] [blame] | 879 | 'rom_ctrl.pwrmgr_data' : ['pwrmgr_aon.rom_ctrl'], |
Timothy Chen | f625b0d | 2021-04-20 17:54:24 -0700 | [diff] [blame] | 880 | 'rom_ctrl.keymgr_data' : ['keymgr.rom_digest'], |
Timothy Chen | d39402a | 2020-12-15 20:34:09 -0800 | [diff] [blame] | 881 | 'flash_ctrl.keymgr' : ['keymgr.flash'], |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 882 | 'alert_handler.crashdump' : ['rstmgr_aon.alert_dump'], |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 883 | 'csrng.entropy_src_hw_if' : ['entropy_src.entropy_src_hw_if'], |
Timothy Chen | c2b279a | 2021-01-14 18:53:34 -0800 | [diff] [blame] | 884 | |
| 885 | // usbdev connection to pinmux |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 886 | 'usbdev.usb_out_of_rst' : ['pinmux_aon.usb_out_of_rst'], |
| 887 | 'usbdev.usb_aon_wake_en' : ['pinmux_aon.usb_aon_wake_en'], |
| 888 | 'usbdev.usb_aon_wake_ack' : ['pinmux_aon.usb_aon_wake_ack'], |
| 889 | 'usbdev.usb_suspend' : ['pinmux_aon.usb_suspend'], |
| 890 | 'pinmux_aon.usb_state_debug' : ['usbdev.usb_state_debug'], |
Timothy Chen | c2b279a | 2021-01-14 18:53:34 -0800 | [diff] [blame] | 891 | |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 892 | // Edn connections |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 893 | 'edn0.edn' : ['keymgr.edn', 'otp_ctrl.edn', 'ast.edn', 'kmac.entropy', |
Greg Chadwick | cc0dd2a | 2021-03-10 15:55:58 +0000 | [diff] [blame] | 894 | 'alert_handler.edn', 'aes.edn', 'otbn.edn_urnd'], |
| 895 | 'edn1.edn' : ['otbn.edn_rnd'], |
Timothy Chen | d5820b0 | 2020-12-05 17:19:06 -0800 | [diff] [blame] | 896 | |
Greg Chadwick | 5e8ce9d | 2021-06-16 17:25:27 +0100 | [diff] [blame] | 897 | // OTBN OTP scramble key |
| 898 | 'otp_ctrl.otbn_otp_key' : ['otbn.otbn_otp_key'], |
| 899 | |
Eunchan Kim | 97be1d0 | 2020-11-03 14:33:52 -0800 | [diff] [blame] | 900 | // KeyMgr Sideload & KDF function |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 901 | 'otp_ctrl.otp_keymgr_key' : ['keymgr.otp_key'], |
| 902 | 'keymgr.kmac_key' : ['kmac.keymgr_key'] |
Eunchan Kim | 02eaac7 | 2021-03-23 10:54:25 -0700 | [diff] [blame] | 903 | |
| 904 | // KMAC Application Interface |
Michael Schaffner | 5fb9ea6 | 2021-05-19 12:56:29 -0700 | [diff] [blame] | 905 | 'kmac.app' : ['keymgr.kmac_data', // Keymgr needs to be at index 0 |
| 906 | 'lc_ctrl.kmac_data', // LC needs to be at index 1 |
| 907 | 'rom_ctrl.kmac_data'], // ROM needs to be at index 2 |
Eunchan Kim | 02eaac7 | 2021-03-23 10:54:25 -0700 | [diff] [blame] | 908 | |
Timothy Chen | 455afcb | 2020-10-01 11:46:35 -0700 | [diff] [blame] | 909 | // The idle connection is automatically connected through topgen. |
| 910 | // The user does not need to explicitly declare anything other than |
| 911 | // an empty list. |
Timothy Chen | 92b526e | 2021-02-01 21:23:42 -0800 | [diff] [blame] | 912 | 'clkmgr_aon.idle' : [], |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 913 | |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 914 | // Pinmux JTAG signals |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 915 | 'pinmux_aon.lc_jtag' : ['lc_ctrl.jtag'], |
Michael Schaffner | 5f54587 | 2021-03-05 17:54:28 -0800 | [diff] [blame] | 916 | 'pinmux_aon.rv_jtag' : ['rv_dm.jtag'], |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 917 | |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 918 | // OTP LC interface |
| 919 | 'otp_ctrl.otp_lc_data' : ['lc_ctrl.otp_lc_data'], |
| 920 | 'lc_ctrl.lc_otp_program' : ['otp_ctrl.lc_otp_program'], |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 921 | |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 922 | // Diversification constant coming from life cycle |
Timothy Chen | 0a12094 | 2020-12-14 17:20:51 -0800 | [diff] [blame] | 923 | 'lc_ctrl.lc_keymgr_div' : ['keymgr.lc_keymgr_div'], |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 924 | |
| 925 | // LC function control signal broadcast |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 926 | 'lc_ctrl.lc_dft_en' : ['otp_ctrl.lc_dft_en', |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 927 | 'pinmux_aon.lc_dft_en', |
Michael Schaffner | 9d8eb9b | 2021-05-14 19:48:25 -0700 | [diff] [blame] | 928 | 'ast.lc_dft_en', |
| 929 | 'clkmgr_aon.lc_dft_en' |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 930 | ], |
Timothy Chen | b1ba59b | 2021-01-07 12:18:11 -0800 | [diff] [blame] | 931 | 'lc_ctrl.lc_nvm_debug_en' : ['eflash.lc_nvm_debug_en'], |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 932 | 'lc_ctrl.lc_hw_debug_en' : ['sram_ctrl_main.lc_hw_debug_en', |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 933 | 'sram_ctrl_ret_aon.lc_hw_debug_en', |
Michael Schaffner | 991524f | 2021-06-01 10:19:00 -0700 | [diff] [blame] | 934 | 'pinmux_aon.lc_hw_debug_en', |
Michael Schaffner | 690d732 | 2021-06-24 14:37:22 -0700 | [diff] [blame] | 935 | 'csrng.lc_hw_debug_en', |
| 936 | 'rv_dm.lc_hw_debug_en'], |
Michael Schaffner | 475c711 | 2021-05-12 14:25:43 -0700 | [diff] [blame] | 937 | 'lc_ctrl.lc_cpu_en' : ['rv_core_ibex.lc_cpu_en'], |
Michael Schaffner | dc0c1e9 | 2021-03-02 14:41:31 -0800 | [diff] [blame] | 938 | 'lc_ctrl.lc_keymgr_en' : ['keymgr.lc_keymgr_en'], |
Pirmin Vogel | 144ca84 | 2021-02-26 15:46:43 +0100 | [diff] [blame] | 939 | 'lc_ctrl.lc_escalate_en' : ['aes.lc_escalate_en', |
Philipp Wagner | 7c9a60c | 2021-07-12 16:47:26 +0100 | [diff] [blame] | 940 | 'otbn.lc_escalate_en', |
Pirmin Vogel | 144ca84 | 2021-02-26 15:46:43 +0100 | [diff] [blame] | 941 | 'otp_ctrl.lc_escalate_en', |
Michael Schaffner | bd9a354 | 2020-12-21 13:08:32 -0800 | [diff] [blame] | 942 | 'sram_ctrl_main.lc_escalate_en', |
Michael Schaffner | 69844f5 | 2021-06-01 10:19:40 -0700 | [diff] [blame] | 943 | 'sram_ctrl_ret_aon.lc_escalate_en', |
Timothy Chen | ef5b076 | 2021-06-17 18:19:35 -0700 | [diff] [blame] | 944 | 'aon_timer_aon.lc_escalate_en', |
| 945 | 'flash_ctrl.lc_escalate_en'], |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 946 | |
Michael Schaffner | c506dc5 | 2020-12-22 21:07:17 -0800 | [diff] [blame] | 947 | 'lc_ctrl.lc_check_byp_en' : ['otp_ctrl.lc_check_byp_en'], |
Timothy Chen | fa60a60 | 2021-03-23 14:29:40 -0700 | [diff] [blame] | 948 | 'lc_ctrl.lc_clk_byp_req' : ['clkmgr_aon.lc_clk_byp_req'], |
| 949 | 'lc_ctrl.lc_clk_byp_ack' : ['clkmgr_aon.lc_clk_byp_ack'], |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 950 | |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 951 | // LC access control signal broadcast |
| 952 | 'lc_ctrl.lc_creator_seed_sw_rw_en' : ['otp_ctrl.lc_creator_seed_sw_rw_en', |
Timothy Chen | 0a12094 | 2020-12-14 17:20:51 -0800 | [diff] [blame] | 953 | 'flash_ctrl.lc_creator_seed_sw_rw_en'], |
Michael Schaffner | 60aa10e | 2020-12-07 19:39:08 -0800 | [diff] [blame] | 954 | 'lc_ctrl.lc_owner_seed_sw_rw_en' : ['flash_ctrl.lc_owner_seed_sw_rw_en'], |
| 955 | 'lc_ctrl.lc_iso_part_sw_rd_en' : ['flash_ctrl.lc_iso_part_sw_rd_en'], |
| 956 | 'lc_ctrl.lc_iso_part_sw_wr_en' : ['flash_ctrl.lc_iso_part_sw_wr_en'], |
| 957 | 'lc_ctrl.lc_seed_hw_rd_en' : ['otp_ctrl.lc_seed_hw_rd_en', |
| 958 | 'flash_ctrl.lc_seed_hw_rd_en'], |
Eunchan Kim | 5009c8a | 2021-03-30 15:34:22 -0700 | [diff] [blame] | 959 | |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 960 | // rv_plic connections |
| 961 | 'rv_plic.msip' : ['rv_core_ibex.irq_software'], |
| 962 | 'rv_plic.irq' : ['rv_core_ibex.irq_external'], |
Michael Schaffner | 690d732 | 2021-06-24 14:37:22 -0700 | [diff] [blame] | 963 | |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 964 | // rv_dm connections |
| 965 | 'rv_dm.debug_req': ['rv_core_ibex.debug_req'], |
| 966 | |
| 967 | // rv_timer connections |
| 968 | |
| 969 | |
| 970 | // rv core ibex connections |
| 971 | 'rv_core_ibex.rst_cpu_n' : ['rstmgr_aon.rst_cpu_n'], |
| 972 | 'rv_core_ibex.crash_dump' : ['rstmgr_aon.cpu_dump'], |
| 973 | 'rv_core_ibex.pwrmgr' : ['pwrmgr_aon.pwr_cpu'], |
Timothy Chen | 3e3cb48 | 2021-06-24 13:00:54 -0700 | [diff] [blame] | 974 | |
| 975 | // spi passthrough connection |
Martin Lueker-Boden | 553aece | 2021-04-23 17:00:45 -0700 | [diff] [blame] | 976 | 'spi_device.passthrough' : ['spi_host0.passthrough'] |
Michael Schaffner | 690d732 | 2021-06-24 14:37:22 -0700 | [diff] [blame] | 977 | |
| 978 | // Debug module reset request to reset manager |
| 979 | 'rv_dm.ndmreset_req' : ['rstmgr_aon.ndmreset_req'] |
Eunchan Kim | 40098a9 | 2020-04-17 12:22:36 -0700 | [diff] [blame] | 980 | } |
| 981 | |
| 982 | // top is to connect to top net/struct. |
| 983 | // It defines the signal in the top and connect from the module, |
| 984 | // use of the signal is up to top template |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 985 | 'top': [ |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 986 | // reset and clock connections |
| 987 | 'rstmgr_aon.resets', 'clkmgr_aon.clocks', |
Michael Schaffner | 690d732 | 2021-06-24 14:37:22 -0700 | [diff] [blame] | 988 | |
Timothy Chen | 1d8b960 | 2021-07-08 19:58:08 -0700 | [diff] [blame] | 989 | // dedicated timer interrupt |
| 990 | 'rv_core_ibex.irq_timer', |
| 991 | |
| 992 | // hardwired connections |
| 993 | 'rv_core_ibex.hart_id', 'rv_core_ibex.boot_addr', |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 994 | |
| 995 | // Xbars |
Michael Schaffner | fca4382 | 2021-05-20 13:35:56 -0700 | [diff] [blame] | 996 | |
| 997 | // Pinmux JTAG signals for the tool-inserted DFT TAP |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 998 | 'pinmux_aon.dft_jtag', |
Michael Schaffner | fca4382 | 2021-05-20 13:35:56 -0700 | [diff] [blame] | 999 | |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 1000 | // OTP HW_CFG Broadcast signals. |
| 1001 | // TODO(#6713): The actual struct breakout and mapping currently needs to |
| 1002 | // be performed by hand in the toplevel template. |
| 1003 | 'otp_ctrl.otp_hw_cfg', |
| 1004 | 'csrng.otp_en_csrng_sw_app_read', |
| 1005 | 'entropy_src.otp_en_entropy_src_fw_read', |
Michael Schaffner | d59fd18 | 2021-06-03 19:36:44 -0700 | [diff] [blame] | 1006 | 'entropy_src.otp_en_entropy_src_fw_over', |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 1007 | 'lc_ctrl.otp_device_id', |
| 1008 | 'keymgr.otp_device_id', |
| 1009 | 'sram_ctrl_main.otp_en_sram_ifetch', |
| 1010 | 'sram_ctrl_ret_aon.otp_en_sram_ifetch' |
Eunchan Kim | e0d37fe | 2020-08-03 12:05:21 -0700 | [diff] [blame] | 1011 | ], |
Eunchan Kim | 40098a9 | 2020-04-17 12:22:36 -0700 | [diff] [blame] | 1012 | |
| 1013 | // ext is to create port in the top. |
Eunchan Kim | 57071c0 | 2020-08-07 13:59:05 -0700 | [diff] [blame] | 1014 | 'external': { |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 1015 | 'adc_ctrl_aon.adc' : 'adc' |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1016 | 'ast.edn' : '', |
| 1017 | 'ast.lc_dft_en' : '', |
| 1018 | 'ast.ram_1p_cfg' : 'ram_1p_cfg', |
| 1019 | 'ast.ram_2p_cfg' : 'ram_2p_cfg', |
| 1020 | 'ast.rom_cfg' : 'rom_cfg', |
| 1021 | 'clkmgr_aon.clk_main' : 'clk_main', // clock inputs |
Timothy Chen | ea59ad3 | 2021-02-03 17:51:38 -0800 | [diff] [blame] | 1022 | 'clkmgr_aon.clk_io' : 'clk_io', // clock inputs |
| 1023 | 'clkmgr_aon.clk_usb' : 'clk_usb', // clock inputs |
| 1024 | 'clkmgr_aon.clk_aon' : 'clk_aon', // clock inputs |
Timothy Chen | 5649c2a | 2021-02-08 18:32:22 -0800 | [diff] [blame] | 1025 | 'clkmgr_aon.jitter_en' : 'clk_main_jitter_en', |
Timothy Chen | fa60a60 | 2021-03-23 14:29:40 -0700 | [diff] [blame] | 1026 | 'clkmgr_aon.ast_clk_byp_req' : 'ast_clk_byp_req', |
| 1027 | 'clkmgr_aon.ast_clk_byp_ack' : 'ast_clk_byp_ack', |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 1028 | 'eflash.flash_alert' : 'flash_alert', |
Timothy Chen | ea59ad3 | 2021-02-03 17:51:38 -0800 | [diff] [blame] | 1029 | 'eflash.flash_bist_enable' : 'flash_bist_enable', |
| 1030 | 'eflash.flash_power_down_h' : 'flash_power_down_h', |
| 1031 | 'eflash.flash_power_ready_h' : 'flash_power_ready_h', |
Timothy Chen | ea59ad3 | 2021-02-03 17:51:38 -0800 | [diff] [blame] | 1032 | 'entropy_src.entropy_src_rng' : 'es_rng', |
Timothy Chen | 5270b7c | 2021-03-17 17:38:30 -0700 | [diff] [blame] | 1033 | 'entropy_src.rng_fips' : 'es_rng_fips', |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1034 | 'peri.tl_ast' : 'ast_tl', |
| 1035 | 'pinmux_aon.dft_strap_test' : 'dft_strap_test' |
Timothy Chen | 1b5f81b | 2021-04-28 14:44:48 -0700 | [diff] [blame] | 1036 | 'pinmux_aon.dft_hold_tap_sel' : 'dft_hold_tap_sel', |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1037 | 'pwrmgr_aon.pwr_ast' : 'pwrmgr_ast', |
| 1038 | 'otp_ctrl.otp_ast_pwr_seq' : '', |
| 1039 | 'otp_ctrl.otp_ast_pwr_seq_h' : '', |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 1040 | 'otp_ctrl.otp_alert' : 'otp_alert', |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1041 | 'sensor_ctrl_aon.ast_alert' : 'sensor_ctrl_ast_alert', |
| 1042 | 'sensor_ctrl_aon.ast_status' : 'sensor_ctrl_ast_status', |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1043 | 'sensor_ctrl_aon.ast2pinmux' : 'ast2pinmux', |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 1044 | 'sensor_ctrl_aon.ast_init_done': 'ast_init_done', |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1045 | 'usbdev.usb_ref_val' : '', |
| 1046 | 'usbdev.usb_ref_pulse' : '', |
Eunchan Kim | 57071c0 | 2020-08-07 13:59:05 -0700 | [diff] [blame] | 1047 | }, |
Eunchan Kim | e4a8507 | 2020-02-05 16:00:00 -0800 | [diff] [blame] | 1048 | }, |
| 1049 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1050 | // Crossbars: having a top level crossbar |
| 1051 | // This version assumes all crossbars are instantiated at the top. |
| 1052 | // Assume xbar.hjson is located in the same directory of top.hjson |
| 1053 | xbar: [ |
| 1054 | { name: "main", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 1055 | clock_srcs: {clk_main_i: "main", clk_fixed_i: "io_div4"}, |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 1056 | clock_group: "infra", |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 1057 | reset: "sys", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 1058 | reset_connections: {rst_main_ni: "sys", rst_fixed_ni: "sys_io_div4"} |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1059 | }, |
Eunchan Kim | 0523f6b | 2019-12-17 13:53:11 -0800 | [diff] [blame] | 1060 | { name: "peri", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 1061 | clock_srcs: {clk_peri_i: "io_div4"}, |
Timothy Chen | 0550d69 | 2020-04-20 17:19:35 -0700 | [diff] [blame] | 1062 | clock_group: "infra", |
Timothy Chen | 6b70fd2 | 2020-08-20 14:01:26 -0700 | [diff] [blame] | 1063 | reset: "sys_io_div4", |
| 1064 | reset_connections: {rst_peri_ni: "sys_io_div4"}, |
Eunchan Kim | 0523f6b | 2019-12-17 13:53:11 -0800 | [diff] [blame] | 1065 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1066 | ], |
| 1067 | |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1068 | // ===== PINMUX & PINOUT ====================================================== |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 1069 | |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1070 | pinout: { |
| 1071 | // IO power bank declaration. |
| 1072 | // This list defines the IO bank power domains on the ASIC. |
| 1073 | // Each individual pad must be in one of the declared power domains. |
| 1074 | banks: ['VCC', 'AVCC', 'VIOA', 'VIOB'], |
| 1075 | // Pad declaration. |
| 1076 | // Each entry must have the following four keys: |
| 1077 | // |
| 1078 | // - name: Name of the pad (this will be exposed at the chiplevel). |
| 1079 | // |
| 1080 | // - type: Pad type (this maps to the pad types defined in prim_pad_wrapper_pkg.sv) |
| 1081 | // |
| 1082 | // - bank: Specifies in which of the IO power banks this pad lives. |
| 1083 | // |
| 1084 | // - connection: Can have either of the following values: |
| 1085 | // |
| 1086 | // 1) 'direct': This is a dedicated IO Pad that is directly connected to a peripheral. |
| 1087 | // |
| 1088 | // 2) 'manual': This is a dedicated IO signal that is not directly connected to a |
| 1089 | // peripheral. It needs to be manually wired up in the template. |
| 1090 | // |
| 1091 | // 3) 'muxed': This is a muxed IO pad that will be connected to the pinmux. |
| 1092 | // |
| 1093 | // Optionally, each pad can also have a 'desc' field for further description. |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 1094 | pads: [ |
Michael Schaffner | 6c5f7a7 | 2021-04-09 11:51:10 -0700 | [diff] [blame] | 1095 | // Special manually connected pads |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1096 | { name: 'POR_N' , type: 'InputStd', bank: 'VCC' , connection: 'manual', desc: 'System reset'}, |
Michael Schaffner | 6c5f7a7 | 2021-04-09 11:51:10 -0700 | [diff] [blame] | 1097 | { name: 'USB_P' , type: 'BidirTol', bank: 'VCC' , connection: 'manual', desc: 'USB P signal'}, |
| 1098 | { name: 'USB_N' , type: 'BidirTol', bank: 'VCC' , connection: 'manual', desc: 'USB N signal'}, |
| 1099 | { name: 'CC1' , type: 'InputStd', bank: 'AVCC', connection: 'manual', desc: 'ADC input 1'}, |
| 1100 | { name: 'CC2' , type: 'InputStd', bank: 'AVCC', connection: 'manual', desc: 'ADC input 2'}, |
| 1101 | { name: 'FLASH_TEST_VOLT' , type: 'AnalogIn0',bank: 'VCC' , connection: 'manual', desc: 'Flash test voltage input'}, |
| 1102 | { name: 'FLASH_TEST_MODE0', type: 'InputStd', bank: 'VCC' , connection: 'manual', desc: 'Flash test mode signal'}, |
| 1103 | { name: 'FLASH_TEST_MODE1', type: 'InputStd', bank: 'VCC' , connection: 'manual', desc: 'Flash test mode signal'}, |
Arnon Sharlin | e48c001 | 2021-05-09 13:26:38 +0300 | [diff] [blame] | 1104 | { name: 'OTP_EXT_VOLT' , type: 'AnalogIn1',bank: 'VCC' , connection: 'manual', desc: 'OTP external voltage input'}, |
Michael Schaffner | 6c5f7a7 | 2021-04-09 11:51:10 -0700 | [diff] [blame] | 1105 | // Dedicated IOs |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1106 | { name: 'SPI_HOST_D0' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'}, |
| 1107 | { name: 'SPI_HOST_D1' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'}, |
| 1108 | { name: 'SPI_HOST_D2' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'}, |
| 1109 | { name: 'SPI_HOST_D3' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'}, |
| 1110 | { name: 'SPI_HOST_CLK' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host clock'}, |
| 1111 | { name: 'SPI_HOST_CS_L' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host chip select'}, |
| 1112 | { name: 'SPI_DEV_D0' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'}, |
| 1113 | { name: 'SPI_DEV_D1' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'}, |
| 1114 | { name: 'SPI_DEV_D2' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'}, |
| 1115 | { name: 'SPI_DEV_D3' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'}, |
| 1116 | { name: 'SPI_DEV_CLK' , type: 'InputStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device clock'}, |
| 1117 | { name: 'SPI_DEV_CS_L' , type: 'InputStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device chip select'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1118 | // IOA |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1119 | { name: 'IOA0' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1120 | { name: 'IOA1' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1121 | { name: 'IOA2' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1122 | { name: 'IOA3' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1123 | { name: 'IOA4' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1124 | { name: 'IOA5' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1125 | { name: 'IOA6' , type: 'BidirOd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1126 | { name: 'IOA7' , type: 'BidirOd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1127 | { name: 'IOA8' , type: 'BidirOd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1128 | // IOB |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1129 | { name: 'IOB0' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1130 | { name: 'IOB1' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1131 | { name: 'IOB2' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1132 | { name: 'IOB3' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1133 | { name: 'IOB4' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1134 | { name: 'IOB5' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1135 | { name: 'IOB6' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1136 | { name: 'IOB7' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1137 | { name: 'IOB8' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1138 | { name: 'IOB9' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1139 | { name: 'IOB10' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1140 | { name: 'IOB11' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1141 | { name: 'IOB12' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1142 | // IOC |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1143 | { name: 'IOC0' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1144 | { name: 'IOC1' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1145 | { name: 'IOC2' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1146 | { name: 'IOC3' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1147 | { name: 'IOC4' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1148 | { name: 'IOC5' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1149 | { name: 'IOC6' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1150 | { name: 'IOC7' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1151 | { name: 'IOC8' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1152 | { name: 'IOC9' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1153 | { name: 'IOC10' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1154 | { name: 'IOC11' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1155 | { name: 'IOC12' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1156 | // IOR |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1157 | { name: 'IOR0' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1158 | { name: 'IOR1' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1159 | { name: 'IOR2' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1160 | { name: 'IOR3' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1161 | { name: 'IOR4' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1162 | { name: 'IOR5' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1163 | { name: 'IOR6' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1164 | { name: 'IOR7' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1165 | { name: 'IOR8' , type: 'BidirOd' , bank: 'VCC' , connection: 'direct', desc: 'Dedicated sysrst_ctrl output (ec_rst_l)'}, |
| 1166 | { name: 'IOR9' , type: 'BidirOd' , bank: 'VCC' , connection: 'direct', desc: 'Dedicated sysrst_ctrl output (pwrb_out)'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1167 | { name: 'IOR10' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1168 | { name: 'IOR11' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1169 | { name: 'IOR12' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
| 1170 | { name: 'IOR13' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'}, |
Eunchan Kim | 632c6f7 | 2019-09-30 11:11:51 -0700 | [diff] [blame] | 1171 | ] |
| 1172 | } |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1173 | |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1174 | pinmux: { |
| 1175 | // Signal to pinmux/pad mapping. |
| 1176 | // Each entry in the list below must have the following two mandatory keys: |
| 1177 | // |
| 1178 | // - instance: This is the comportable IO instance name where the IO signal comes from. |
| 1179 | // |
| 1180 | // - connection: This key is similar to the connection key in the pinout/pad configuration and |
| 1181 | // can have either of the following values: |
| 1182 | // |
| 1183 | // 1) 'direct': This is a dedicated IO signal that is directly connected to a pad. |
| 1184 | // Such an IO signal must also specify the 'port' and 'pad' keys |
| 1185 | // (see further below). |
| 1186 | // |
| 1187 | // 2) 'manual': This is a dedicated IO signal that is not directly connected to a pad. |
| 1188 | // It needs to be manually wired up in the template. |
| 1189 | // Such an IO signal may have a 'port' key, but no 'pad' key. |
| 1190 | // |
| 1191 | // 3) 'muxed': This is a muxed IO signal that will be connected to the pinmux. |
| 1192 | // Such an IO signal may have a 'port' key, but no 'pad' key. |
| 1193 | // |
| 1194 | // Depending on the connection type specified, each entry may have the following optional keys: |
| 1195 | // |
| 1196 | // - port: Name of the available IO signal of the instance. |
| 1197 | // This is required for 'direct' connections, but optional for the others. |
| 1198 | // Individual signals of a bus IO signal must be indexed with square brackets, e.g. mybus[1]. |
| 1199 | // Not specifying this key or setting it to an empty string acts as a wild card |
| 1200 | // and includes all available IOs of this instance. |
| 1201 | // |
| 1202 | // - pad: Name of the pad the 'direct' connection should connect to. |
| 1203 | // This is not required for 'muxed' and 'manual' connections. |
| 1204 | // |
| 1205 | // - desc: Optional description field. |
Michael Schaffner | c7dc533 | 2021-04-09 16:30:26 -0700 | [diff] [blame] | 1206 | // |
| 1207 | // - attr: Manual direct IOs may specify an additional pad attr field. |
| 1208 | // This is used to create the correct pad attribute CSR for that DIO channel (since the |
| 1209 | // DIO is manual, there is no way to automatically infer the corresponding pad type). |
| 1210 | // |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1211 | signals: [ |
| 1212 | // SPI Host0 |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 1213 | { instance: 'spi_host0', port: 'sck', connection: 'direct', pad: 'SPI_HOST_CLK' , desc: ''}, |
| 1214 | { instance: 'spi_host0', port: 'csb', connection: 'direct', pad: 'SPI_HOST_CS_L', desc: ''}, |
| 1215 | { instance: 'spi_host0', port: 'sd[0]', connection: 'direct', pad: 'SPI_HOST_D0' , desc: ''}, |
| 1216 | { instance: 'spi_host0', port: 'sd[1]', connection: 'direct', pad: 'SPI_HOST_D1' , desc: ''}, |
| 1217 | { instance: 'spi_host0', port: 'sd[2]', connection: 'direct', pad: 'SPI_HOST_D2' , desc: ''}, |
| 1218 | { instance: 'spi_host0', port: 'sd[3]', connection: 'direct', pad: 'SPI_HOST_D3' , desc: ''}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1219 | // SPI Device |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 1220 | { instance: 'spi_device', port: 'sck', connection: 'direct', pad: 'SPI_DEV_CLK' , desc: ''}, |
| 1221 | { instance: 'spi_device', port: 'csb', connection: 'direct', pad: 'SPI_DEV_CS_L' , desc: ''}, |
| 1222 | { instance: 'spi_device', port: 'sd[0]', connection: 'direct', pad: 'SPI_DEV_D0' , desc: ''}, |
| 1223 | { instance: 'spi_device', port: 'sd[1]', connection: 'direct', pad: 'SPI_DEV_D1' , desc: ''}, |
| 1224 | { instance: 'spi_device', port: 'sd[2]', connection: 'direct', pad: 'SPI_DEV_D2' , desc: ''}, |
| 1225 | { instance: 'spi_device', port: 'sd[3]', connection: 'direct', pad: 'SPI_DEV_D3' , desc: ''}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1226 | // USBDEV |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 1227 | // TODO: #6043 |
| 1228 | { instance: 'usbdev', port: 'd', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1229 | { instance: 'usbdev', port: 'dp', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1230 | { instance: 'usbdev', port: 'dn', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1231 | { instance: 'usbdev', port: 'sense', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1232 | { instance: 'usbdev', port: 'se0', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1233 | { instance: 'usbdev', port: 'dp_pullup', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1234 | { instance: 'usbdev', port: 'dn_pullup', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1235 | { instance: 'usbdev', port: 'tx_mode_se', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1236 | { instance: 'usbdev', port: 'suspend', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
| 1237 | { instance: 'usbdev', port: 'rx_enable', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1238 | // MIOs |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 1239 | { instance: "gpio", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1240 | { instance: "uart0", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1241 | { instance: "uart1", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1242 | { instance: "uart2", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1243 | { instance: "uart3", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1244 | { instance: "i2c0", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1245 | { instance: "i2c1", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1246 | { instance: "i2c2", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1247 | { instance: "pattgen", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1248 | { instance: "spi_host1", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1249 | { instance: "flash_ctrl", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
| 1250 | { instance: "sensor_ctrl_aon", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 1251 | { instance: "pwm_aon", port: '', connection: 'muxed' , pad: '' , desc: ''}, |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 1252 | // Sysrst ctrl has both muxed and dedicated IOs |
| 1253 | { instance: "sysrst_ctrl_aon", port: 'ac_present', connection: 'muxed' , pad: '' , desc: ''}, |
| 1254 | { instance: "sysrst_ctrl_aon", port: 'ec_rst_in_l', connection: 'muxed' , pad: '' , desc: ''}, |
| 1255 | { instance: "sysrst_ctrl_aon", port: 'key0_in', connection: 'muxed' , pad: '' , desc: ''}, |
| 1256 | { instance: "sysrst_ctrl_aon", port: 'key1_in', connection: 'muxed' , pad: '' , desc: ''}, |
| 1257 | { instance: "sysrst_ctrl_aon", port: 'key2_in', connection: 'muxed' , pad: '' , desc: ''}, |
| 1258 | { instance: "sysrst_ctrl_aon", port: 'pwrb_in', connection: 'muxed' , pad: '' , desc: ''}, |
| 1259 | { instance: "sysrst_ctrl_aon", port: 'bat_disable', connection: 'muxed' , pad: '' , desc: ''}, |
| 1260 | { instance: "sysrst_ctrl_aon", port: 'ec_rst_out_l', connection: 'direct', pad: 'IOR8' , desc: ''}, |
| 1261 | { instance: "sysrst_ctrl_aon", port: 'key0_out', connection: 'muxed' , pad: '' , desc: ''}, |
| 1262 | { instance: "sysrst_ctrl_aon", port: 'key1_out', connection: 'muxed' , pad: '' , desc: ''}, |
| 1263 | { instance: "sysrst_ctrl_aon", port: 'key2_out', connection: 'muxed' , pad: '' , desc: ''}, |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1264 | { instance: "sysrst_ctrl_aon", port: 'pwrb_out', connection: 'direct', pad: 'IOR9' , desc: ''}, |
Eric Shiu | 3b1e4fd | 2021-04-22 11:38:23 -0700 | [diff] [blame] | 1265 | { instance: "sysrst_ctrl_aon", port: 'lid_open', connection: 'muxed' , pad: '' , desc: ''}, |
| 1266 | { instance: "sysrst_ctrl_aon", port: 'z3_wakeup', connection: 'muxed' , pad: '' , desc: ''}, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1267 | ], |
| 1268 | |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1269 | num_wkup_detect: 8 |
| 1270 | wkup_cnt_width: 8 |
| 1271 | } |
| 1272 | |
| 1273 | // Implementation targets. |
| 1274 | // This defines the configuration of the target-specific chip-levels to |
| 1275 | // generate from the shared template. Each target uses the same base |
| 1276 | // configuration for the pinmux and pinout as defined above, and the |
| 1277 | // generated software constants for the pinmux DIF do not change among the |
| 1278 | // implementation targets. However, in order to accommodate slight |
| 1279 | // differences among the ASIC, FPGA emulation and simulation environments, |
| 1280 | // it is possible to make very limited pinout changes below. In particular, |
| 1281 | // it is possible to remove and tie-off specific pads, or add more 'manual' |
| 1282 | // pads that need to be manually connected in the template. It is also possible |
| 1283 | // to override the JTAG and strap locations indices, since the testing and DFT |
| 1284 | // setups may differ among the targets. |
| 1285 | targets: [ |
| 1286 | { name: 'asic', |
| 1287 | |
| 1288 | // Pinout Changes. |
| 1289 | pinout: { |
| 1290 | // This is a list of pad names to remove from the base pinout defined |
| 1291 | // above. Removed pads will be stubbed off such that their inputs |
| 1292 | // signals are driven with zero. Output signals and output enables |
| 1293 | // will be left unconnected. If no changes are needed, this list can |
| 1294 | // be left empty. |
| 1295 | remove_pads: [], |
| 1296 | |
| 1297 | // This is a list of additional "manual" pads to add to the pinout. |
| 1298 | // The pad entries have the same format as the pad entries in the pinout |
| 1299 | // configuration above. However, the 'connection' key must always be set |
| 1300 | // to 'manual' as it is not possible to connect these additional pads |
| 1301 | // to the pinmux or peripherals. |
| 1302 | add_pads: [], |
| 1303 | }, |
| 1304 | |
| 1305 | pinmux: { |
| 1306 | // Special signal positions. Each entry in the list below creates a |
| 1307 | // target-specific pad position parameter in the chiplevel hierarchy |
| 1308 | // that can be used to parameterize certain IPs like the pinmux or |
| 1309 | // padring. This is mainly used to define the pad positions of special |
| 1310 | // test and DFT signals such as the JTAG signals and the TAP and DFT |
| 1311 | // straps. Straps in this context are special pads that get sampled at |
| 1312 | // boot time during certain life cycle states in order to determine |
| 1313 | // DFT modes and the TAP mux selection index (the JTAG signals can be |
| 1314 | // muxed to either the lifecycle TAP, DFT TAP or RISC-V processor |
| 1315 | // TAP). TODO: add more documentation to https://docs.opentitan.org/hw/ip/pinmux/doc/index.html |
| 1316 | // Each entry must have the following two keys: |
| 1317 | // |
| 1318 | // - name: Basename for the SV parameter. |
| 1319 | // |
| 1320 | // - pad: The pad name that this special signal maps to. The generated |
| 1321 | // parameter will be assigned the corresponding pad index. |
| 1322 | // |
| 1323 | // Each entry may have an optional 'desc' key for further description. |
| 1324 | special_signals: [ |
| 1325 | // Straps |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1326 | { name: 'tap0', pad: 'IOC8', desc: 'TAP strap signal.' }, |
| 1327 | { name: 'tap1', pad: 'IOC5', desc: 'TAP strap signal.' }, |
| 1328 | { name: 'dft0', pad: 'IOC3', desc: 'DFT strap signal.' }, |
| 1329 | { name: 'dft1', pad: 'IOC4', desc: 'DFT strap signal.' }, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1330 | // JTAG |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1331 | { name: 'tck', pad: 'IOR3', desc: 'JTAG tck signal.' }, |
| 1332 | { name: 'tms', pad: 'IOR0', desc: 'JTAG tms signal.' }, |
| 1333 | { name: 'trst_n', pad: 'IOR4', desc: 'JTAG trst_n signal.' }, |
| 1334 | { name: 'tdi', pad: 'IOR2', desc: 'JTAG tdi signal.' }, |
| 1335 | { name: 'tdo', pad: 'IOR1', desc: 'JTAG tdo signal.' }, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1336 | ], |
| 1337 | } |
| 1338 | }, |
Pirmin Vogel | 95c7678 | 2021-05-17 13:30:38 +0200 | [diff] [blame] | 1339 | { name: 'cw310', |
| 1340 | |
| 1341 | pinout: { |
| 1342 | remove_pads: [ |
| 1343 | 'CC1', 'CC2', |
| 1344 | 'SPI_DEV_D2', 'SPI_DEV_D3' |
| 1345 | 'SPI_HOST_CLK', 'SPI_HOST_CS_L', |
| 1346 | 'SPI_HOST_D0', 'SPI_HOST_D1', 'SPI_HOST_D2', 'SPI_HOST_D3', |
| 1347 | 'FLASH_TEST_VOLT', 'OTP_EXT_VOLT' |
| 1348 | 'FLASH_TEST_MODE0', 'FLASH_TEST_MODE1', |
| 1349 | 'IOB10', 'IOB11', 'IOB12', |
| 1350 | 'IOC0', 'IOC1', 'IOC12', |
| 1351 | 'IOR0', 'IOR1', 'IOR2', 'IOR3', 'IOR4', 'IOR5', 'IOR6', 'IOR7', 'IOR8', 'IOR9', 'IOR10', 'IOR11', 'IOR12', 'IOR13' |
| 1352 | ], |
| 1353 | |
| 1354 | add_pads: [ |
| 1355 | // Additional infrastucture pads |
| 1356 | { name: 'IO_CLK', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Extra clock input for FPGA target'} |
| 1357 | { name: 'IO_JSRST_N', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Dedicated JTAG system reset input'} |
| 1358 | // Custom USB pads |
| 1359 | { name: 'IO_USB_SENSE0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'} |
| 1360 | { name: 'IO_USB_DNPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'} |
| 1361 | { name: 'IO_USB_DPPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'} |
| 1362 | { name: 'IO_UPHY_DP_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1363 | { name: 'IO_UPHY_DN_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1364 | { name: 'IO_UPHY_DP_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1365 | { name: 'IO_UPHY_DN_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1366 | { name: 'IO_UPHY_D_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1367 | { name: 'IO_UPHY_OE_N', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1368 | { name: 'IO_UPHY_SENSE', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1369 | { name: 'IO_UPHY_DPPULLUP', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1370 | ], |
| 1371 | }, |
| 1372 | |
| 1373 | pinmux: { |
| 1374 | special_signals: [ |
| 1375 | // Straps |
| 1376 | { name: 'tap0', pad: 'IOC0' , desc: 'TAP strap signal, maps to a stubbed-off MIO.' }, |
| 1377 | { name: 'tap1', pad: 'IOB7', desc: 'TAP strap signal, maps to MIO pad 16.' }, |
| 1378 | { name: 'dft0', pad: 'IOC1' , desc: 'DFT strap signal, maps to a stubbed-off MIO.' }, |
| 1379 | { name: 'dft1', pad: 'IOC12', desc: 'DFT strap signal, maps to a stubbed-off MIO.' }, |
| 1380 | // JTAG |
| 1381 | { name: 'tck', pad: 'SPI_DEV_CLK' , desc: 'JTAG tck signal, overlaid on SPI_DEV.' }, |
| 1382 | { name: 'tms', pad: 'SPI_DEV_CS_L', desc: 'JTAG tms signal, overlaid on SPI_DEV.' }, |
| 1383 | { name: 'trst_n', pad: 'IOB9' , desc: 'JTAG trst_n signal, maps to MIO pad 18.' }, |
| 1384 | { name: 'tdi', pad: 'SPI_DEV_D0' , desc: 'JTAG tdi signal, overlaid on SPI_DEV.' }, |
| 1385 | { name: 'tdo', pad: 'SPI_DEV_D1' , desc: 'JTAG tdo signal, overlaid on SPI_DEV.' }, |
| 1386 | ], |
| 1387 | } |
| 1388 | } |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1389 | { name: 'nexysvideo', |
| 1390 | |
| 1391 | pinout: { |
| 1392 | remove_pads: [ |
| 1393 | 'CC1', 'CC2', |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1394 | 'SPI_DEV_D2', 'SPI_DEV_D3' |
| 1395 | 'SPI_HOST_CLK', 'SPI_HOST_CS_L', |
| 1396 | 'SPI_HOST_D0', 'SPI_HOST_D1', 'SPI_HOST_D2', 'SPI_HOST_D3', |
Michael Schaffner | d13f442 | 2021-04-20 10:27:48 -0700 | [diff] [blame] | 1397 | 'FLASH_TEST_VOLT', 'OTP_EXT_VOLT' |
Michael Schaffner | 6c5f7a7 | 2021-04-09 11:51:10 -0700 | [diff] [blame] | 1398 | 'FLASH_TEST_MODE0', 'FLASH_TEST_MODE1', |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1399 | 'IOB10', 'IOB11', 'IOB12', |
| 1400 | 'IOC0', 'IOC1', 'IOC12', |
| 1401 | 'IOR0', 'IOR1', 'IOR2', 'IOR3', 'IOR4', 'IOR5', 'IOR6', 'IOR7', 'IOR8', 'IOR9', 'IOR10', 'IOR11', 'IOR12', 'IOR13' |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1402 | ], |
| 1403 | |
| 1404 | add_pads: [ |
| 1405 | // Additional infrastucture pads |
| 1406 | { name: 'IO_CLK', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Extra clock input for FPGA target'} |
| 1407 | { name: 'IO_JSRST_N', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Dedicated JTAG system reset input'} |
| 1408 | // Custom USB pads |
| 1409 | { name: 'IO_USB_SENSE0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'} |
| 1410 | { name: 'IO_USB_DNPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'} |
| 1411 | { name: 'IO_USB_DPPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'} |
| 1412 | { name: 'IO_UPHY_DP_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1413 | { name: 'IO_UPHY_DN_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1414 | { name: 'IO_UPHY_DP_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1415 | { name: 'IO_UPHY_DN_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1416 | { name: 'IO_UPHY_D_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1417 | { name: 'IO_UPHY_OE_N', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1418 | { name: 'IO_UPHY_SENSE', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1419 | { name: 'IO_UPHY_DPPULLUP', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'} |
| 1420 | ], |
| 1421 | }, |
| 1422 | |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1423 | pinmux: { |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1424 | special_signals: [ |
| 1425 | // Straps |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1426 | { name: 'tap0', pad: 'IOC0' , desc: 'TAP strap signal, maps to a stubbed-off MIO.' }, |
| 1427 | { name: 'tap1', pad: 'IOB7', desc: 'TAP strap signal, maps to MIO pad 16.' }, |
| 1428 | { name: 'dft0', pad: 'IOC1' , desc: 'DFT strap signal, maps to a stubbed-off MIO.' }, |
| 1429 | { name: 'dft1', pad: 'IOC12', desc: 'DFT strap signal, maps to a stubbed-off MIO.' }, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1430 | // JTAG |
| 1431 | { name: 'tck', pad: 'SPI_DEV_CLK' , desc: 'JTAG tck signal, overlaid on SPI_DEV.' }, |
| 1432 | { name: 'tms', pad: 'SPI_DEV_CS_L', desc: 'JTAG tms signal, overlaid on SPI_DEV.' }, |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 1433 | { name: 'trst_n', pad: 'IOB9' , desc: 'JTAG trst_n signal, maps to MIO pad 18.' }, |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1434 | { name: 'tdi', pad: 'SPI_DEV_D0' , desc: 'JTAG tdi signal, overlaid on SPI_DEV.' }, |
| 1435 | { name: 'tdo', pad: 'SPI_DEV_D1' , desc: 'JTAG tdo signal, overlaid on SPI_DEV.' }, |
| 1436 | ], |
| 1437 | } |
| 1438 | } |
| 1439 | ] |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1440 | } |