blob: 5ba2c58383138b215ab2a014c824d7f9b023abb6 [file] [log] [blame]
lowRISC Contributors802543a2019-08-31 12:12:56 +01001// 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 Schaffner7b0807d2020-10-27 19:54:52 -07009 /////////////////////////////////////////////////////////////
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 Chenc6233932020-08-19 15:34:07 -070016 datawidth: "32",
lowRISC Contributors802543a2019-08-31 12:12:56 +010017
Timothy Chen7f8cc8e2020-11-11 13:15:57 -080018 // 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 Schaffner7b0807d2020-10-27 19:54:52 -070029 // This is the clock data structure of the design.
Timothy Chenf56c1b52020-04-28 17:00:43 -070030 // The hier path refers to the clock reference path (struct / port)
31 // - The top/ext desgination follows the same scheme as inter-module
Timothy Chen0550d692020-04-20 17:19:35 -070032 // 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 Chenf56c1b52020-04-28 17:00:43 -070036 hier_paths: {
Timothy Chen92b526e2021-02-01 21:23:42 -080037 top: "clkmgr_aon_clocks.", // top level is a struct
38 ext: "", // ext is a port of the clock name
Timothy Chenf56c1b52020-04-28 17:00:43 -070039 },
40
Timothy Chen33b3b9d2020-05-08 10:14:17 -070041 // 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 Chen0550d692020-04-20 17:19:35 -070046 srcs: [
Timothy Chen33b3b9d2020-05-08 10:14:17 -070047 { name: "main", aon: "no", freq: "100000000" }
Timothy Chenced60b22020-08-20 10:35:00 -070048 { name: "io", aon: "no", freq: "96000000" }
Timothy Chen33b3b9d2020-05-08 10:14:17 -070049 { name: "usb", aon: "no", freq: "48000000" }
50 { name: "aon", aon: "yes", freq: "200000" }
Timothy Chen0550d692020-04-20 17:19:35 -070051 ],
52
Timothy Chen79972ad2020-06-30 17:13:49 -070053 // 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 Chenced60b22020-08-20 10:35:00 -070061 { name: "io_div2", aon: "no", div: 2, src: "io", freq: "48000000" }
62 { name: "io_div4", aon: "no", div: 4, src: "io", freq: "24000000" }
Timothy Chen79972ad2020-06-30 17:13:49 -070063 ],
64
Timothy Chen0550d692020-04-20 17:19:35 -070065 // Clock Group attributes
66 // name: name of group.
67 //
Timothy Chenf56c1b52020-04-28 17:00:43 -070068 // 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 Swarbrickcba33a22020-07-02 16:46:38 +010072 // sw_cg: whether software is allowed to gate the clock
Timothy Chen0550d692020-04-20 17:19:35 -070073 // "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 Swarbrickcba33a22020-07-02 16:46:38 +010078 // if sw_cg is "no", this field has no meaning
Timothy Chen0550d692020-04-20 17:19:35 -070079 // "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 Chen33b3b9d2020-05-08 10:14:17 -070083 // The powerup group of clocks do not feed through the clock
Timothy Chen0550d692020-04-20 17:19:35 -070084 // controller as they manage clock controller behavior
Michael Schaffnerbe5cb9c2020-11-19 19:53:47 -080085 // The proc group is not peripheral, and directly hardwired
Timothy Chen0550d692020-04-20 17:19:35 -070086
87 groups: [
Timothy Chen383afb82021-02-23 13:18:53 -080088 // the powerup group is used exclusively by clk/pwr/rstmgr/pinmux
Timothy Chen79972ad2020-06-30 17:13:49 -070089 { name: "powerup", src:"top", sw_cg: "no" }
Timothy Chenf56c1b52020-04-28 17:00:43 -070090 { 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 Chen0550d692020-04-20 17:19:35 -070095 { name: "proc",
Timothy Chenc6233932020-08-19 15:34:07 -070096 src: "no",
97 sw_cg: "no",
98 unique: "no",
Timothy Chen0550d692020-04-20 17:19:35 -070099 clocks: {
100 clk_proc_main: main
101 }
102 }
103 ],
Timothy Chenc6233932020-08-19 15:34:07 -0700104 },
lowRISC Contributors802543a2019-08-31 12:12:56 +0100105
Timothy Chenc6233932020-08-19 15:34:07 -0700106 // 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 Chen92b526e2021-02-01 21:23:42 -0800113 top: "rstmgr_aon_resets.", // top level is a struct
114 ext: "", // ext is a port of the clock name
Timothy Chenc6233932020-08-19 15:34:07 -0700115 },
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 Chen7f8cc8e2020-11-11 13:15:57 -0800123 // For non-generated resets, the parent / domain definitions have no meaning.
Timothy Chenc6233932020-08-19 15:34:07 -0700124 //
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 Chen7f8cc8e2020-11-11 13:15:57 -0800133 // 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 Chenc6233932020-08-19 15:34:07 -0700137 //
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 Chen7f8cc8e2020-11-11 13:15:57 -0800143 { 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" }
153 { name: "lc_io_div4", gen: true, type: "top", domains: [ "0"], parent: "lc_src", clk: "io_div4" }
Timothy Chenac6af872021-02-22 17:17:52 -0800154 { name: "sys", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "main" }
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800155 { name: "sys_io_div4", gen: true, type: "top", domains: ["Aon", "0"], parent: "sys_src", clk: "io_div4" }
Timothy Chenc2b279a2021-01-14 18:53:34 -0800156 { name: "sys_aon", gen: true, type: "top", domains: ["Aon", "0"], parent: "sys_src", clk: "aon" }
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800157 { name: "spi_device", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io_div2", sw: 1 }
Timothy Chenc1c16752021-04-28 14:03:02 -0700158 { name: "spi_host0", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io", sw: 1 }
Michael Schaffnerdbd087e2021-02-12 17:58:30 -0800159 { name: "spi_host1", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "io_div2", sw: 1 }
Timothy Chenc2b279a2021-01-14 18:53:34 -0800160 { name: "usb", gen: true, type: "top", domains: [ "0"], parent: "sys_src", clk: "usb", sw: 1 }
Timothy Chenb0f55772021-02-01 15:43:47 -0800161 { 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 Chenc6233932020-08-19 15:34:07 -0700164 ]
165 }
Timothy Chen3193b002019-10-04 16:56:05 -0700166
lowRISC Contributors802543a2019-08-31 12:12:56 +0100167 // Number of cores: used in rv_plic and timer
168 num_cores: "1",
169
Timothy Chene4e857d2020-12-16 18:00:01 -0800170
171 // `host` defines the host only components in the system (such as processor)
172 // This should eventually be used to cover more functionality, but for now,
173 // it is a temporary solution for top level connectivity
174 host: [
175 { name: "rv_core_ibex",
176 type: "rv_core_ibex",
177 inter_signal_list: [
178 { struct: "esc_tx",
179 type: "uni",
180 name: "esc_nmi_tx",
181 act: "rcv",
182 package: "prim_esc_pkg",
183 },
184
185 { struct: "esc_rx",
186 type: "uni",
187 name: "esc_nmi_rx",
188 act: "req",
189 package: "prim_esc_pkg",
190 },
Timothy Chenf524c212020-12-17 14:08:45 -0800191
Tom Robertsc88e97f2021-03-04 13:38:20 +0000192 { struct: "crash_dump",
Timothy Chenf524c212020-12-17 14:08:45 -0800193 type: "uni",
Tom Robertsc88e97f2021-03-04 13:38:20 +0000194 name: "crash_dump",
Timothy Chenf524c212020-12-17 14:08:45 -0800195 act: "req",
Tom Robertsc88e97f2021-03-04 13:38:20 +0000196 package: "ibex_pkg",
Timothy Chenf524c212020-12-17 14:08:45 -0800197 },
Michael Schaffnerdc0c1e92021-03-02 14:41:31 -0800198
199 { struct: "lc_tx_t",
200 type: "uni",
201 name: "lc_cpu_en",
202 act: "rcv",
203 package: "lc_ctrl_pkg",
204 },
Michael Schaffner9bb75e92021-03-12 15:13:31 -0800205
206 { struct: "ram_1p_cfg_t",
207 type: "uni",
208 name: "ram_cfg",
209 act: "rcv",
210 package: "prim_ram_1p_pkg"
211 }
Timothy Chene4e857d2020-12-16 18:00:01 -0800212 ],
213 }
Michael Schaffner5f545872021-03-05 17:54:28 -0800214 { name: "rv_dm",
215 type: "rv_dm",
216 inter_signal_list: [
217 { struct: "jtag",
218 type: "req_rsp",
219 name: "jtag",
220 act: "rsp",
221 package: "jtag_pkg",
222 },
223 ]
224 }
Timothy Chene4e857d2020-12-16 18:00:01 -0800225 ]
226
lowRISC Contributors802543a2019-08-31 12:12:56 +0100227 // `module` defines the peripherals.
228 // Details are coming from each modules' config file `ip.hjson`
229 // TODO: Define parameter here
Timothy Chen94432212021-03-01 22:29:18 -0800230 // attr: There are a few types of modules supported
231 // normal(default): Normal, non-templated modules that will be instantiated
232 // templated: These modules are templated and must be run through topgen
233 // reggen_top: These modules are not templated, but need to have reggen run
234 // because they live exclusively in hw/top_* instead of hw/ip_*.
235 // These modules are also instantiated in the top level.
236 // reggen_only: Similar to reggen_top, but are not instantiated in the top level.
lowRISC Contributors802543a2019-08-31 12:12:56 +0100237 module: [
Timothy Chen2971a1e2021-01-21 16:00:01 -0800238 { name: "uart0", // instance name
lowRISC Contributors802543a2019-08-31 12:12:56 +0100239 type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted)
240 // and `hw/ip/{type}`
Timothy Chen3193b002019-10-04 16:56:05 -0700241
Timothy Chen80bd8aa2019-10-04 15:57:11 -0700242 // clock connections defines the port to top level clock connection
243 // the ip.hjson will declare the clock port names
244 // If none are defined at ip.hjson, clk_i is used by default
Timothy Chen6b70fd22020-08-20 14:01:26 -0700245 clock_srcs: {clk_i: "io_div4"},
Timothy Chen3193b002019-10-04 16:56:05 -0700246
247 // reset connections defines the port to top level reset connection
248 // the ip.hjson will declare the reset port names
Timothy Chen80bd8aa2019-10-04 15:57:11 -0700249 // If none are defined at ip.hjson, rst_ni is used by default
Timothy Chen6b70fd22020-08-20 14:01:26 -0700250 reset_connections: {rst_ni: "sys_io_div4"},
lowRISC Contributors802543a2019-08-31 12:12:56 +0100251 base_addr: "0x40000000",
252 },
Timothy Chen2971a1e2021-01-21 16:00:01 -0800253 { name: "uart1", // instance name
254 type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted)
255 // and `hw/ip/{type}`
256
257 // clock connections defines the port to top level clock connection
258 // the ip.hjson will declare the clock port names
259 // If none are defined at ip.hjson, clk_i is used by default
260 clock_srcs: {clk_i: "io_div4"},
261
262 // reset connections defines the port to top level reset connection
263 // the ip.hjson will declare the reset port names
264 // If none are defined at ip.hjson, rst_ni is used by default
265 reset_connections: {rst_ni: "sys_io_div4"},
266 base_addr: "0x40010000",
267 },
268 { name: "uart2", // instance name
269 type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted)
270 // and `hw/ip/{type}`
271
272 // clock connections defines the port to top level clock connection
273 // the ip.hjson will declare the clock port names
274 // If none are defined at ip.hjson, clk_i is used by default
275 clock_srcs: {clk_i: "io_div4"},
276
277 // reset connections defines the port to top level reset connection
278 // the ip.hjson will declare the reset port names
279 // If none are defined at ip.hjson, rst_ni is used by default
280 reset_connections: {rst_ni: "sys_io_div4"},
281 base_addr: "0x40020000",
282 },
283 { name: "uart3", // instance name
284 type: "uart", // Must be matched to the ip name in `ip.hson` (_reg, _cfg permitted)
285 // and `hw/ip/{type}`
286
287 // clock connections defines the port to top level clock connection
288 // the ip.hjson will declare the clock port names
289 // If none are defined at ip.hjson, clk_i is used by default
290 clock_srcs: {clk_i: "io_div4"},
291
292 // reset connections defines the port to top level reset connection
293 // the ip.hjson will declare the reset port names
294 // If none are defined at ip.hjson, rst_ni is used by default
295 reset_connections: {rst_ni: "sys_io_div4"},
296 base_addr: "0x40030000",
297 },
lowRISC Contributors802543a2019-08-31 12:12:56 +0100298 { name: "gpio",
299 type: "gpio",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700300 clock_srcs: {clk_i: "io_div4"},
Timothy Chen0550d692020-04-20 17:19:35 -0700301 clock_group: "peri",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700302 reset_connections: {rst_ni: "sys_io_div4"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800303 base_addr: "0x40040000",
lowRISC Contributors802543a2019-08-31 12:12:56 +0100304 }
lowRISC Contributors802543a2019-08-31 12:12:56 +0100305 { name: "spi_device",
306 type: "spi_device",
Timothy Chen04192e02021-02-19 16:16:25 -0800307 clock_srcs: {clk_i: "io_div4", scan_clk_i: "io_div2"},
Timothy Chen0550d692020-04-20 17:19:35 -0700308 clock_group: "peri",
Timothy Chen3193b002019-10-04 16:56:05 -0700309 reset_connections: {rst_ni: "spi_device"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800310 base_addr: "0x40050000",
lowRISC Contributors802543a2019-08-31 12:12:56 +0100311 },
Michael Schaffnerdbd087e2021-02-12 17:58:30 -0800312 { name: "spi_host0",
313 type: "spi_host",
Timothy Chenc1c16752021-04-28 14:03:02 -0700314 clock_srcs: {clk_i: "io_div4", clk_core_i: "io"},
Michael Schaffnerdbd087e2021-02-12 17:58:30 -0800315 clock_group: "peri",
Martin Lueker-Bodeneb9498c2021-02-02 08:33:29 -0800316 reset_connections: {rst_ni: "spi_host0", rst_core_ni: "spi_host0"},
Michael Schaffnerdbd087e2021-02-12 17:58:30 -0800317 base_addr: "0x40060000",
318 },
319 { name: "spi_host1",
320 type: "spi_host",
Martin Lueker-Bodeneb9498c2021-02-02 08:33:29 -0800321 clock_srcs: {clk_i: "io_div4", clk_core_i: "io_div2"},
Michael Schaffnerdbd087e2021-02-12 17:58:30 -0800322 clock_group: "peri",
Martin Lueker-Bodeneb9498c2021-02-02 08:33:29 -0800323 reset_connections: {rst_ni: "spi_host1", rst_core_ni: "spi_host1"},
Michael Schaffnerdbd087e2021-02-12 17:58:30 -0800324 base_addr: "0x40070000",
325 },
Timothy Chenb0f55772021-02-01 15:43:47 -0800326 { name: "i2c0",
327 type: "i2c",
328 clock_srcs: {clk_i: "io_div4"},
329 clock_group: "peri",
330 reset_connections: {rst_ni: "i2c0"},
331 base_addr: "0x40080000",
332 },
333 { name: "i2c1",
334 type: "i2c",
335 clock_srcs: {clk_i: "io_div4"},
336 clock_group: "peri",
337 reset_connections: {rst_ni: "i2c1"},
338 base_addr: "0x40090000",
339 },
340 { name: "i2c2",
341 type: "i2c",
342 clock_srcs: {clk_i: "io_div4"},
343 clock_group: "peri",
344 reset_connections: {rst_ni: "i2c2"},
345 base_addr: "0x400A0000",
346 },
347 { name: "pattgen",
348 type: "pattgen",
349 clock_srcs: {clk_i: "io_div4"},
350 clock_group: "peri",
351 reset_connections: {rst_ni: "sys_io_div4"},
352 base_addr: "0x400E0000",
353 },
lowRISC Contributors802543a2019-08-31 12:12:56 +0100354 { name: "rv_timer",
355 type: "rv_timer",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700356 clock_srcs: {clk_i: "io_div4"},
Timothy Chen0550d692020-04-20 17:19:35 -0700357 clock_group: "timers",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700358 reset_connections: {rst_ni: "sys_io_div4"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800359 base_addr: "0x40100000",
lowRISC Contributors802543a2019-08-31 12:12:56 +0100360 },
Timothy Chen92b526e2021-02-01 21:23:42 -0800361 { name: "usbdev",
362 type: "usbdev",
363 clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon", clk_usb_48mhz_i: "usb"},
364 clock_group: "peri",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800365 clock_reset_export: ["ast"],
Timothy Chen92b526e2021-02-01 21:23:42 -0800366 reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon", rst_usb_48mhz_ni: "usb"},
Pirmin Vogeld4534382019-10-17 13:18:31 +0100367 base_addr: "0x40110000",
368 },
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800369 { name: "otp_ctrl",
370 type: "otp_ctrl",
Michael Schaffner3c7892d2020-12-28 16:25:46 -0800371 clock_srcs: {clk_i: "io_div4", clk_edn_i: "main"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800372 clock_group: "timers",
Michael Schaffner3c7892d2020-12-28 16:25:46 -0800373 reset_connections: {rst_ni: "lc_io_div4", rst_edn_ni: "sys"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800374 base_addr: "0x40130000",
Timothy Chen65e16672020-12-05 09:17:14 -0800375 },
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800376 { name: "lc_ctrl",
377 type: "lc_ctrl",
Michael Schaffner5fb9ea62021-05-19 12:56:29 -0700378 clock_srcs: {clk_i: "io_div4", clk_kmac_i: "main"},
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800379 clock_group: "timers",
Michael Schaffner5fb9ea62021-05-19 12:56:29 -0700380 reset_connections: {rst_ni: "lc_io_div4", rst_kmac_ni: "sys"},
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800381 base_addr: "0x40140000",
382 },
Michael Schaffnerbe5cb9c2020-11-19 19:53:47 -0800383 { name: "alert_handler",
384 type: "alert_handler",
Timothy Chenf1006bd2021-02-05 13:05:43 -0800385 clock_srcs: {clk_i: "io_div4", clk_edn_i: "main"},
Michael Schaffnerbe5cb9c2020-11-19 19:53:47 -0800386 clock_group: "timers",
Timothy Chenf1006bd2021-02-05 13:05:43 -0800387 reset_connections: {rst_ni: "sys_io_div4", rst_edn_ni: "sys"},
Michael Schaffnerbe5cb9c2020-11-19 19:53:47 -0800388 base_addr: "0x40150000",
Timothy Chen94432212021-03-01 22:29:18 -0800389 attr: "templated",
Michael Schaffnerbe5cb9c2020-11-19 19:53:47 -0800390 localparam: {
391 EscCntDw: 32,
392 AccuCntDw: 16,
393 LfsrSeed: "0x7FFFFFFF"
394 }
395 },
396 // dummy module to capture the alert handler escalation signals
397 // and test them by converting them into IRQs
Timothy Chen2b8ef762021-02-16 14:44:55 -0800398// { name: "nmi_gen",
399// type: "nmi_gen",
400// clock_srcs: {clk_i: "io_div4"},
401// clock_group: "timers",
402// reset_connections: {rst_ni: "sys_io_div4"},
403// base_addr: "0x40160000",
404// }
Timothy Chen92b526e2021-02-01 21:23:42 -0800405 { name: "pwrmgr_aon",
Timothy Chen163050b2020-04-13 23:29:29 -0700406 type: "pwrmgr",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700407 clock_srcs: {clk_i: "io_div4", clk_slow_i: "aon"},
Timothy Chen0550d692020-04-20 17:19:35 -0700408 clock_group: "powerup",
Timothy Chena4cc10d2020-05-08 16:06:20 -0700409 reset_connections: {rst_ni: "por", rst_slow_ni: "por_aon"},
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800410 domain: "Aon",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800411 base_addr: "0x40400000",
Timothy Chen94432212021-03-01 22:29:18 -0800412 attr: "templated",
Timothy Chenf56c1b52020-04-28 17:00:43 -0700413
Timothy Chen163050b2020-04-13 23:29:29 -0700414 },
Timothy Chen92b526e2021-02-01 21:23:42 -0800415 { name: "rstmgr_aon",
Timothy Chenc59f7012020-04-16 19:11:42 -0700416 type: "rstmgr",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700417 clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon", clk_main_i: "main", clk_io_i: "io", clk_usb_i: "usb",
Timothy Chen0f3c1752020-08-26 12:47:17 -0700418 clk_io_div2_i: "io_div2", clk_io_div4_i: "io_div4"},
Timothy Chenc59f7012020-04-16 19:11:42 -0700419 clock_group: "powerup",
420 reset_connections: {rst_ni: "rst_ni"},
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800421 domain: "Aon",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800422 base_addr: "0x40410000",
Timothy Chen94432212021-03-01 22:29:18 -0800423 attr: "templated",
Timothy Chenf56c1b52020-04-28 17:00:43 -0700424 },
Timothy Chen92b526e2021-02-01 21:23:42 -0800425 { name: "clkmgr_aon",
Timothy Chenf56c1b52020-04-28 17:00:43 -0700426 type: "clkmgr",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700427 clock_srcs: {clk_i: "io_div4"},
Timothy Chenf56c1b52020-04-28 17:00:43 -0700428 clock_group: "powerup",
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800429 reset_connections: {rst_ni: "por_io_div4", rst_main_ni: "por", rst_io_ni: "por_io", rst_usb_ni: "por_usb"
Timothy Chenced60b22020-08-20 10:35:00 -0700430 rst_io_div2_ni: "por_io_div2", rst_io_div4_ni: "por_io_div4"},
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800431 domain: "Aon",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800432 base_addr: "0x40420000",
Timothy Chen94432212021-03-01 22:29:18 -0800433 attr: "templated",
Timothy Chenc59f7012020-04-16 19:11:42 -0700434 },
Michael Schaffnere029a682021-04-06 16:21:30 -0700435 { name: "sysrst_ctrl_aon",
436 type: "sysrst_ctrl",
437 clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"},
438 clock_group: "secure",
439 reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon"},
440 domain: "Aon",
441 base_addr: "0x40430000"
442 },
Timothy Chen6f98f352021-03-10 16:27:29 -0800443 { name: "adc_ctrl_aon",
Eric Shiu5f1d3042021-03-17 17:24:11 -0700444 type: "adc_ctrl",
Timothy Chen6f98f352021-03-10 16:27:29 -0800445 clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"},
446 clock_group: "peri",
447 reset_connections: {rst_ni: "sys_io_div4", rst_slow_ni: "sys_aon"},
448 clock_reset_export: ["ast"],
449 domain: "Aon",
450 base_addr: "0x40440000"
Michael Schaffnerd13f4422021-04-20 10:27:48 -0700451 },
Martin Lueker-Boden0d63fe02021-03-10 17:30:37 -0800452 { name: "pwm_aon",
453 type: "pwm",
454 clock_srcs: {clk_i: "io_div4", clk_core_i: "aon"},
455 clock_group: "powerup",
456 reset_connections: {rst_ni: "sys_io_div4", rst_core_ni: "sys_aon"},
457 domain: "Aon",
458 base_addr: "0x40450000",
Timothy Chen6f98f352021-03-10 16:27:29 -0800459 },
Timothy Chen92b526e2021-02-01 21:23:42 -0800460 { name: "pinmux_aon",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800461 type: "pinmux",
Timothy Chen92b526e2021-02-01 21:23:42 -0800462 clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"},
Timothy Chen383afb82021-02-23 13:18:53 -0800463 clock_group: "powerup",
Timothy Chen92b526e2021-02-01 21:23:42 -0800464 reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800465 domain: "Aon",
466 base_addr: "0x40460000",
Timothy Chen94432212021-03-01 22:29:18 -0800467 attr: "templated",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800468 },
Timothy Chen2b8ef762021-02-16 14:44:55 -0800469 { name: "aon_timer_aon",
470 type: "aon_timer",
471 clock_srcs: {clk_i: "io_div4", clk_aon_i: "aon"},
472 clock_group: "timers",
473 reset_connections: {rst_ni: "sys_io_div4", rst_aon_ni: "sys_aon"},
474 domain: "Aon",
475 base_addr: "0x40470000",
Timothy Chen94432212021-03-01 22:29:18 -0800476 attr: "templated",
477 },
478 { name: "ast",
479 type: "ast",
480 clock_srcs: {clk_i: "io_div4"},
481 clock_group: "secure",
482 clock_reset_export: ["ast"],
483 reset_connections: {rst_ni: "sys_io_div4"},
484 base_addr: "0x40480000",
485 attr: "reggen_only",
Timothy Chen2b8ef762021-02-16 14:44:55 -0800486 },
Timothy Chen92b526e2021-02-01 21:23:42 -0800487 { name: "sensor_ctrl_aon",
488 type: "sensor_ctrl",
489 clock_srcs: {clk_i: "io_div4"},
490 clock_group: "secure",
Timothy Chen4c8905e2020-08-26 10:34:33 -0700491 clock_reset_export: ["ast"],
Timothy Chen92b526e2021-02-01 21:23:42 -0800492 reset_connections: {rst_ni: "sys_io_div4"},
493 domain: "Aon",
Timothy Chen2b8ef762021-02-16 14:44:55 -0800494 base_addr: "0x40490000",
Timothy Chen94432212021-03-01 22:29:18 -0800495 attr: "reggen_top",
Pirmin Vogelea91b302020-01-14 18:53:01 +0000496 },
Timothy Chen92b526e2021-02-01 21:23:42 -0800497 { name: "sram_ctrl_ret_aon",
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800498 type: "sram_ctrl",
499 clock_srcs: {clk_i: "io_div4", clk_otp_i: "io_div4"},
500 clock_group: "peri",
501 reset_connections: {rst_ni: "sys_io_div4", rst_otp_ni: "lc_io_div4"},
502 domain: "Aon",
Timothy Chen2b8ef762021-02-16 14:44:55 -0800503 base_addr: "0x40500000"
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800504 },
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800505 { name: "flash_ctrl",
506 type: "flash_ctrl",
Timothy Chenf52a4612020-12-04 20:37:49 -0800507 clock_srcs: {clk_i: "main", clk_otp_i: "io_div4"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800508 clock_group: "infra",
Timothy Chenf52a4612020-12-04 20:37:49 -0800509 reset_connections: {rst_ni: "lc", rst_otp_ni: "lc_io_div4"},
Timothy Chen8adb20d2021-03-25 16:49:04 -0700510 base_addrs: {core: "0x41000000", prim: "0x41008000"}
Timothy Chen94432212021-03-01 22:29:18 -0800511 attr: "templated",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800512 },
513 { name: "rv_plic",
514 type: "rv_plic",
515 clock_srcs: {clk_i: "main"},
Timothy Chendde68052020-08-05 16:29:35 -0700516 clock_group: "secure",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800517 reset_connections: {rst_ni: "sys"},
518 base_addr: "0x41010000",
Timothy Chen94432212021-03-01 22:29:18 -0800519 attr: "templated",
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800520 },
521 { name: "aes",
522 type: "aes",
Pirmin Vogel95cea452021-03-02 08:54:01 +0100523 clock_srcs: {clk_i: "main", clk_edn_i: "main"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800524 clock_group: "trans",
Pirmin Vogel95cea452021-03-02 08:54:01 +0100525 reset_connections: {rst_ni: "sys", rst_edn_ni: "sys"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800526 base_addr: "0x41100000",
527 },
528 { name: "hmac",
529 type: "hmac",
530 clock_srcs: {clk_i: "main"},
531 clock_group: "trans",
532 reset_connections: {rst_ni: "sys"},
533 base_addr: "0x41110000",
534 },
535 { name: "kmac"
536 type: "kmac"
Eunchan Kim6baeda42021-01-07 12:32:16 -0800537 clock_srcs: {clk_i: "main", clk_edn_i: "main"}
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800538 clock_group: "trans"
Eunchan Kim6baeda42021-01-07 12:32:16 -0800539 reset_connections: {rst_ni: "sys", rst_edn_ni: "sys"}
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800540 base_addr: "0x41120000"
Timothy Chendde68052020-08-05 16:29:35 -0700541 },
Timothy Chen3c3f3482020-09-09 18:45:41 -0700542 { name: "keymgr",
543 type: "keymgr",
Timothy Chend5820b02020-12-05 17:19:06 -0800544 clock_srcs: {clk_i: "main", clk_edn_i: "main"},
Timothy Chen3c3f3482020-09-09 18:45:41 -0700545 clock_group: "secure",
Timothy Chend5820b02020-12-05 17:19:06 -0800546 reset_connections: {rst_ni: "sys", rst_edn_ni: "sys"},
Martin Lueker-Bodend5a1e4b2020-11-11 19:46:33 -0800547 base_addr: "0x41130000",
Michael Schaffner5ae4a232020-10-06 19:03:43 -0700548 },
Mark Branstadff807362020-11-16 07:56:15 -0800549 { name: "csrng",
550 type: "csrng",
551 clock_srcs: {clk_i: "main"},
552 clock_group: "secure",
553 reset_connections: {rst_ni: "sys"},
554 base_addr: "0x41150000",
555 },
556 { name: "entropy_src",
557 type: "entropy_src",
558 clock_srcs: {clk_i: "main"},
559 clock_group: "secure",
560 reset_connections: {rst_ni: "sys"},
Timothy Chenea59ad32021-02-03 17:51:38 -0800561 clock_reset_export: ["ast"],
Mark Branstadff807362020-11-16 07:56:15 -0800562 base_addr: "0x41160000",
563 },
564 { name: "edn0",
565 type: "edn",
566 clock_srcs: {clk_i: "main"},
567 clock_group: "secure",
568 reset_connections: {rst_ni: "sys"},
Timothy Chenea59ad32021-02-03 17:51:38 -0800569 clock_reset_export: ["ast"],
Mark Branstadff807362020-11-16 07:56:15 -0800570 base_addr: "0x41170000",
571 },
572 { name: "edn1",
573 type: "edn",
574 clock_srcs: {clk_i: "main"},
575 clock_group: "secure",
576 reset_connections: {rst_ni: "sys"},
577 base_addr: "0x41180000",
578 },
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800579 { name: "sram_ctrl_main",
580 type: "sram_ctrl",
581 clock_srcs: {clk_i: "main", clk_otp_i: "io_div4"},
582 clock_group: "secure",
583 reset_connections: {rst_ni: "sys", rst_otp_ni: "lc_io_div4"},
584 base_addr: "0x411C0000",
585 },
Philipp Wagnera4a9e402020-06-22 12:06:56 +0100586 { name: "otbn",
587 type: "otbn",
Greg Chadwickc62e57b2021-02-18 11:30:06 +0000588 clock_srcs: {clk_i: "main", clk_edn_i: "main"},
Philipp Wagnera4a9e402020-06-22 12:06:56 +0100589 clock_group: "trans",
Greg Chadwickc62e57b2021-02-18 11:30:06 +0000590 reset_connections: {rst_ni: "sys", rst_edn_ni: "sys"},
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800591 base_addr: "0x411D0000",
Philipp Wagnera4a9e402020-06-22 12:06:56 +0100592 },
Rupert Swarbrick9855d4b2020-12-02 08:41:35 +0000593 { name: "rom_ctrl",
594 type: "rom_ctrl",
595 clock_srcs: {clk_i: "main"},
596 clock_group: "infra",
597 reset_connections: {rst_ni: "sys"},
598 base_addrs: {rom: "0x00008000", regs: "0x411e0000"}
599 }
lowRISC Contributors802543a2019-08-31 12:12:56 +0100600 ]
601
602 // Memories (ROM, RAM, eFlash) are defined at the top.
603 // It utilizes the primitive cells but configurable
604 memory: [
Timothy Chen80bd8aa2019-10-04 15:57:11 -0700605 { name: "ram_main",
Timothy Chen0550d692020-04-20 17:19:35 -0700606 clock_srcs: {clk_i: "main"},
607 clock_group: "infra",
Timothy Chen80bd8aa2019-10-04 15:57:11 -0700608 reset_connections: {rst_ni: "sys"},
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800609 type: "ram_1p_scr",
Timothy Chen80bd8aa2019-10-04 15:57:11 -0700610 base_addr: "0x10000000",
Timothy Chen15d98b72021-02-10 20:58:34 -0800611 size: "0x20000",
Weicai Yang2ac0dee2020-12-08 12:19:18 -0800612 byte_write: "true",
Timothy Chen466585e2021-03-01 15:06:01 -0800613 // data integrity width
614 integ_width: 7,
Timothy Chen15d98b72021-02-10 20:58:34 -0800615 exec: "1",
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700616 inter_signal_list: [
617 { struct: "tl"
618 package: "tlul_pkg"
619 type: "req_rsp"
620 act: "rsp"
621 name: "tl"
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800622 },
623 // Interface to SRAM controller
624 { struct: "sram_scr",
625 package: "sram_ctrl_pkg"
626 type: "req_rsp",
627 name: "sram_scr",
628 act: "rsp",
Timothy Chen15d98b72021-02-10 20:58:34 -0800629 },
Timothy Chen95d23d92021-03-11 17:44:59 -0800630 { struct: "sram_scr_init",
631 package: "sram_ctrl_pkg"
632 type: "req_rsp",
633 name: "sram_scr_init",
634 act: "rsp",
635 },
Timothy Chen15d98b72021-02-10 20:58:34 -0800636 { struct: "tl_instr_en",
637 package: "tlul_pkg"
638 type: "uni",
639 name: "en_ifetch",
640 act: "rcv",
641 },
Timothy Chen12cce142021-03-02 18:11:01 -0800642 { struct: "logic",
643 package: ""
644 type: "uni",
645 name: "intg_error",
646 act: "req",
647 },
Timothy Chen685d6492021-03-09 21:28:39 -0800648 // Interface to memory configuration
649 { struct: "ram_1p_cfg",
650 package: "prim_ram_1p_pkg",
651 type: "uni",
652 name: "cfg",
653 act: "rcv"
654 }
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700655 ]
656 },
Timothy Chen92b526e2021-02-01 21:23:42 -0800657 { name: "ram_ret_aon",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700658 clock_srcs: {clk_i: "io_div4"},
Timothy Chen2c9e1a92020-06-29 15:03:25 -0700659 clock_group: "infra",
Timothy Chen6b70fd22020-08-20 14:01:26 -0700660 reset_connections: {rst_ni: "sys_io_div4"},
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800661 domain: "Aon",
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800662 type: "ram_1p_scr",
Silvestrs Timofejevsaf2b5c22021-02-05 10:33:18 +0000663 base_addr: "0x40600000",
Timothy Chen7f8cc8e2020-11-11 13:15:57 -0800664 size: "0x1000",
Weicai Yang2ac0dee2020-12-08 12:19:18 -0800665 byte_write: "true",
Timothy Chen466585e2021-03-01 15:06:01 -0800666 // data integrity width
667 integ_width: 7,
Timothy Chen15d98b72021-02-10 20:58:34 -0800668 exec: "0",
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700669 inter_signal_list: [
670 { struct: "tl"
671 package: "tlul_pkg"
672 type: "req_rsp"
673 act: "rsp"
674 name: "tl"
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800675 },
676 // Interface to SRAM controller
677 { struct: "sram_scr",
678 package: "sram_ctrl_pkg"
679 type: "req_rsp",
680 name: "sram_scr",
681 act: "rsp",
Timothy Chen15d98b72021-02-10 20:58:34 -0800682 },
Timothy Chen95d23d92021-03-11 17:44:59 -0800683 { struct: "sram_scr_init",
684 package: "sram_ctrl_pkg"
685 type: "req_rsp",
686 name: "sram_scr_init",
687 act: "rsp",
688 },
Timothy Chen15d98b72021-02-10 20:58:34 -0800689 { struct: "tl_instr_en",
690 package: "tlul_pkg"
691 type: "uni",
692 name: "en_ifetch",
693 act: "rcv",
694 },
Timothy Chen12cce142021-03-02 18:11:01 -0800695 { struct: "logic",
696 package: ""
697 type: "uni",
698 name: "intg_error",
699 act: "req",
700 },
Timothy Chen685d6492021-03-09 21:28:39 -0800701 // Interface to memory configuration
702 { struct: "ram_1p_cfg",
703 package: "prim_ram_1p_pkg",
704 type: "uni",
705 name: "cfg",
706 act: "rcv"
707 }
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700708 ]
709 },
Timothy Chen80bd8aa2019-10-04 15:57:11 -0700710 { name: "eflash",
Timothy Chen0550d692020-04-20 17:19:35 -0700711 clock_srcs: {clk_i: "main"},
712 clock_group: "infra",
Timothy Chen80bd8aa2019-10-04 15:57:11 -0700713 reset_connections: {rst_ni: "lc"},
714 type: "eflash",
715 base_addr: "0x20000000",
Timothy Chen1daf5822020-10-26 17:28:15 -0700716 banks: 2,
Timothy Chen4367c482021-01-22 00:18:45 -0800717 pages_per_bank: 256,
Timothy Chene97e0b82020-12-11 17:18:43 -0800718 program_resolution: 8, // maximum number of flash words allowed to program at one time
Weicai Yang55b2cdf2020-04-10 15:40:30 -0700719 swaccess: "ro",
Eunchan Kime4a85072020-02-05 16:00:00 -0800720 inter_signal_list: [
721 { struct: "flash", // flash_req_t, flash_rsp_t
722 type: "req_rsp",
723 name: "flash_ctrl", // flash_ctrl_i (req), flash_ctrl_o (rsp)
Eunchan Kim40098a92020-04-17 12:22:36 -0700724 act: "rsp",
Timothy Chenac620652020-06-25 13:48:50 -0700725 },
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700726 { struct: "tl"
727 package: "tlul_pkg"
728 type: "req_rsp"
729 act: "rsp"
730 name: "tl"
Timothy Chend2c9ff42020-11-19 16:03:54 -0800731 },
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800732 { struct: "lc_tx",
733 package: "lc_ctrl_pkg",
734 type: "uni"
735 act: "rcv"
Timothy Chenb1ba59b2021-01-07 12:18:11 -0800736 name: "lc_nvm_debug_en"
737 },
Timothy Chen16741102021-01-15 17:32:13 -0800738 { struct: "lc_tx"
739 package: "lc_ctrl_pkg"
Timothy Chenb1ba59b2021-01-07 12:18:11 -0800740 type: "uni"
741 act: "rcv"
742 name: "flash_bist_enable"
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800743 },
Timothy Chend2c9ff42020-11-19 16:03:54 -0800744 { struct: "logic"
745 package: ""
746 type: "uni"
747 act: "rcv"
748 name: "flash_power_down_h"
749 },
750 { struct: "logic"
751 package: ""
752 type: "uni"
753 act: "rcv"
754 name: "flash_power_ready_h"
755 },
756 { struct: "logic",
757 package: "",
Michael Schaffner9c3d6a82021-02-02 17:05:31 -0800758 width: "4",
Timothy Chend2c9ff42020-11-19 16:03:54 -0800759 type: "uni"
760 act: "rcv"
761 name: "flash_test_mode_a"
762 },
763 { struct: "logic",
764 package: "",
765 type: "uni"
766 act: "rcv"
767 name: "flash_test_voltage_h"
768 },
Timothy Chen800136d2021-04-29 14:56:19 -0700769
770 { struct: "ast_dif",
771 package: "ast_pkg",
772 type: "uni"
773 act: "req"
774 name: "flash_alert"
775 },
Eunchan Kime4a85072020-02-05 16:00:00 -0800776 ],
777 },
lowRISC Contributors802543a2019-08-31 12:12:56 +0100778 ],
779
Timothy Chen075ed372021-02-04 14:42:29 -0800780 // The port data structure is not something that should be used liberally.
781 // It is used specifically to assign special attributes to specific ports.
782 // For example, this allows us to designate a port as part of inter-module
783 // connections.
784 port: [
Timothy Chen685d6492021-03-09 21:28:39 -0800785 { name: "ast",
Timothy Chen075ed372021-02-04 14:42:29 -0800786 inter_signal_list: [
787 { struct: "edn",
788 type: "req_rsp",
789 name: "edn",
790 // The activity direction for a port inter-signal is "opposite" of
791 // what the external module actually needs.
792 act: "rsp",
793 package: "edn_pkg",
794 },
Timothy Chen685d6492021-03-09 21:28:39 -0800795
796 { struct: "lc_tx",
797 type: "uni",
798 name: "lc_dft_en",
799 // The activity direction for a port inter-signal is "opposite" of
800 // what the external module actually needs.
801 act: "req",
802 package: "lc_ctrl_pkg",
803 },
804
805 { struct: "ram_1p_cfg",
806 package: "prim_ram_1p_pkg",
807 type: "uni",
808 name: "ram_1p_cfg",
809 // The activity direction for a port inter-signal is "opposite" of
810 // what the external module actually needs.
811 act: "rcv"
812 },
813
814 { struct: "ram_2p_cfg",
815 package: "prim_ram_2p_pkg",
816 type: "uni",
817 name: "ram_2p_cfg",
818 // The activity direction for a port inter-signal is "opposite" of
819 // what the external module actually needs.
820 act: "rcv"
821 },
822
823 { struct: "rom_cfg",
824 package: "prim_rom_pkg",
825 type: "uni",
826 name: "rom_cfg",
827 // The activity direction for a port inter-signal is "opposite" of
828 // what the external module actually needs.
829 act: "rcv"
830 }
Timothy Chen075ed372021-02-04 14:42:29 -0800831 ]
832 },
833 ]
834
Eunchan Kime4a85072020-02-05 16:00:00 -0800835 // Inter-module Connection.
836 // format:
837 // requester: [ resp1, resp2, ... ],
838 //
Eunchan Kim40098a92020-04-17 12:22:36 -0700839 // the field and value should be module_inst.port_name
Eunchan Kime4a85072020-02-05 16:00:00 -0800840 // e.g flash_ctrl0.flash: [flash_phy0.flash_ctrl]
841 inter_module: {
Eunchan Kim40098a92020-04-17 12:22:36 -0700842 'connect': {
Michael Schaffner9bb75e92021-03-12 15:13:31 -0800843 'ast.ram_1p_cfg' : ['otbn.ram_cfg', 'ram_main.cfg', 'ram_ret_aon.cfg', 'rv_core_ibex.ram_cfg'],
Timothy Chen685d6492021-03-09 21:28:39 -0800844 'ast.ram_2p_cfg' : ['spi_device.ram_cfg', 'usbdev.ram_cfg'],
Rupert Swarbrick9855d4b2020-12-02 08:41:35 +0000845 'ast.rom_cfg' : ['rom_ctrl.rom_cfg'],
Timothy Chen92b526e2021-02-01 21:23:42 -0800846 'alert_handler.crashdump' : ['rstmgr_aon.alert_dump'],
Timothy Chene4e857d2020-12-16 18:00:01 -0800847 'alert_handler.esc_rx' : ['rv_core_ibex.esc_nmi_rx',
848 'lc_ctrl.esc_wipe_secrets_rx',
849 'lc_ctrl.esc_scrap_state_rx'
Timothy Chen92b526e2021-02-01 21:23:42 -0800850 'pwrmgr_aon.esc_rst_rx'],
Timothy Chene4e857d2020-12-16 18:00:01 -0800851 'alert_handler.esc_tx' : ['rv_core_ibex.esc_nmi_tx',
852 'lc_ctrl.esc_wipe_secrets_tx',
853 'lc_ctrl.esc_scrap_state_tx',
Timothy Chen92b526e2021-02-01 21:23:42 -0800854 'pwrmgr_aon.esc_rst_tx'],
Timothy Chene4e857d2020-12-16 18:00:01 -0800855 'csrng.csrng_cmd' : ['edn0.csrng_cmd', 'edn1.csrng_cmd'],
Timothy Chenf52a4612020-12-04 20:37:49 -0800856 'csrng.entropy_src_hw_if' : ['entropy_src.entropy_src_hw_if'],
Mark Branstadde7eba32021-03-22 14:18:38 -0700857 'csrng.cs_aes_halt' : ['entropy_src.cs_aes_halt'],
Timothy Chend39402a2020-12-15 20:34:09 -0800858 'flash_ctrl.flash' : ['eflash.flash_ctrl'],
859 'flash_ctrl.keymgr' : ['keymgr.flash'],
860 'flash_ctrl.otp' : ['otp_ctrl.flash_otp_key'],
861 'flash_ctrl.rma_req' : ['lc_ctrl.lc_flash_rma_req'],
862 'flash_ctrl.rma_ack' : ['lc_ctrl.lc_flash_rma_ack'],
863 'flash_ctrl.rma_seed' : ['lc_ctrl.lc_flash_rma_seed'],
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800864 'sram_ctrl_main.sram_scr' : ['ram_main.sram_scr'],
Timothy Chen95d23d92021-03-11 17:44:59 -0800865 'sram_ctrl_main.sram_scr_init' : ['ram_main.sram_scr_init'],
866 'sram_ctrl_ret_aon.sram_scr' : ['ram_ret_aon.sram_scr'],
867 'sram_ctrl_ret_aon.sram_scr_init' : ['ram_ret_aon.sram_scr_init'],
Timothy Chen12cce142021-03-02 18:11:01 -0800868 'sram_ctrl_main.en_ifetch' : ['ram_main.en_ifetch'],
869 'sram_ctrl_ret_aon.en_ifetch' : ['ram_ret_aon.en_ifetch'],
870 'ram_main.intg_error' : ['sram_ctrl_main.intg_error'],
871 'ram_ret_aon.intg_error' : ['sram_ctrl_ret_aon.intg_error'],
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800872 'otp_ctrl.sram_otp_key' : ['sram_ctrl_main.sram_otp_key',
Timothy Chen92b526e2021-02-01 21:23:42 -0800873 'sram_ctrl_ret_aon.sram_otp_key']
874 'pwrmgr_aon.pwr_flash' : ['flash_ctrl.pwrmgr'],
875 'pwrmgr_aon.pwr_rst' : ['rstmgr_aon.pwr'],
876 'pwrmgr_aon.pwr_clk' : ['clkmgr_aon.pwr'],
877 'pwrmgr_aon.pwr_otp' : ['otp_ctrl.pwr_otp'],
878 'pwrmgr_aon.pwr_lc' : ['lc_ctrl.pwr_lc'],
Timothy Chen383afb82021-02-23 13:18:53 -0800879 'pwrmgr_aon.strap' : ['pinmux_aon.strap_en'],
880 'pwrmgr_aon.low_power' : ['pinmux_aon.sleep_en','aon_timer_aon.sleep_mode'],
Timothy Chenb2abc982021-04-20 10:56:23 -0700881 'rom_ctrl.pwrmgr_data' : ['pwrmgr_aon.rom_ctrl'],
Timothy Chenf625b0d2021-04-20 17:54:24 -0700882 'rom_ctrl.keymgr_data' : ['keymgr.rom_digest'],
Timothy Chend39402a2020-12-15 20:34:09 -0800883 'flash_ctrl.keymgr' : ['keymgr.flash'],
Timothy Chen92b526e2021-02-01 21:23:42 -0800884 'alert_handler.crashdump' : ['rstmgr_aon.alert_dump'],
Tom Robertsc88e97f2021-03-04 13:38:20 +0000885 'rv_core_ibex.crash_dump' : ['rstmgr_aon.cpu_dump'],
Mark Branstadff807362020-11-16 07:56:15 -0800886 'csrng.entropy_src_hw_if' : ['entropy_src.entropy_src_hw_if'],
Timothy Chenc2b279a2021-01-14 18:53:34 -0800887
888 // usbdev connection to pinmux
Timothy Chen92b526e2021-02-01 21:23:42 -0800889 'usbdev.usb_out_of_rst' : ['pinmux_aon.usb_out_of_rst'],
890 'usbdev.usb_aon_wake_en' : ['pinmux_aon.usb_aon_wake_en'],
891 'usbdev.usb_aon_wake_ack' : ['pinmux_aon.usb_aon_wake_ack'],
892 'usbdev.usb_suspend' : ['pinmux_aon.usb_suspend'],
893 'pinmux_aon.usb_state_debug' : ['usbdev.usb_state_debug'],
Timothy Chenc2b279a2021-01-14 18:53:34 -0800894
Timothy Chen72cb99c2021-03-08 15:58:44 -0800895 // Edn connections
Timothy Chen685d6492021-03-09 21:28:39 -0800896 'edn0.edn' : ['keymgr.edn', 'otp_ctrl.edn', 'ast.edn', 'kmac.entropy',
Greg Chadwickcc0dd2a2021-03-10 15:55:58 +0000897 'alert_handler.edn', 'aes.edn', 'otbn.edn_urnd'],
898 'edn1.edn' : ['otbn.edn_rnd'],
Timothy Chend5820b02020-12-05 17:19:06 -0800899
Eunchan Kim97be1d02020-11-03 14:33:52 -0800900 // KeyMgr Sideload & KDF function
Timothy Chen92b526e2021-02-01 21:23:42 -0800901 'otp_ctrl.otp_keymgr_key' : ['keymgr.otp_key'],
902 'keymgr.kmac_key' : ['kmac.keymgr_key']
Eunchan Kim02eaac72021-03-23 10:54:25 -0700903
904 // KMAC Application Interface
Michael Schaffner5fb9ea62021-05-19 12:56:29 -0700905 '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 Kim02eaac72021-03-23 10:54:25 -0700908
Timothy Chen455afcb2020-10-01 11:46:35 -0700909 // 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 Chen92b526e2021-02-01 21:23:42 -0800912 'clkmgr_aon.idle' : [],
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800913
Michael Schaffnera7063802021-02-18 18:06:03 -0800914 // Pinmux JTAG signals
Michael Schaffnera7063802021-02-18 18:06:03 -0800915 'pinmux_aon.lc_jtag' : ['lc_ctrl.jtag'],
Michael Schaffner5f545872021-03-05 17:54:28 -0800916 'pinmux_aon.rv_jtag' : ['rv_dm.jtag'],
Michael Schaffnera7063802021-02-18 18:06:03 -0800917
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800918 // 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 Schaffner60aa10e2020-12-07 19:39:08 -0800921
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800922 // Diversification constant coming from life cycle
Timothy Chen0a120942020-12-14 17:20:51 -0800923 'lc_ctrl.lc_keymgr_div' : ['keymgr.lc_keymgr_div'],
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800924
925 // LC function control signal broadcast
Michael Schaffnera7063802021-02-18 18:06:03 -0800926 'lc_ctrl.lc_dft_en' : ['otp_ctrl.lc_dft_en',
Timothy Chen685d6492021-03-09 21:28:39 -0800927 'pinmux_aon.lc_dft_en',
Michael Schaffner9d8eb9b2021-05-14 19:48:25 -0700928 'ast.lc_dft_en',
929 'clkmgr_aon.lc_dft_en'
Timothy Chen685d6492021-03-09 21:28:39 -0800930 ],
Timothy Chenb1ba59b2021-01-07 12:18:11 -0800931 'lc_ctrl.lc_nvm_debug_en' : ['eflash.lc_nvm_debug_en'],
Timothy Chen15d98b72021-02-10 20:58:34 -0800932 'lc_ctrl.lc_hw_debug_en' : ['sram_ctrl_main.lc_hw_debug_en',
Michael Schaffnera7063802021-02-18 18:06:03 -0800933 'sram_ctrl_ret_aon.lc_hw_debug_en',
Michael Schaffner991524f2021-06-01 10:19:00 -0700934 'pinmux_aon.lc_hw_debug_en',
935 'csrng.lc_hw_debug_en'],
Michael Schaffner475c7112021-05-12 14:25:43 -0700936 'lc_ctrl.lc_cpu_en' : ['rv_core_ibex.lc_cpu_en'],
Michael Schaffnerdc0c1e92021-03-02 14:41:31 -0800937 'lc_ctrl.lc_keymgr_en' : ['keymgr.lc_keymgr_en'],
Pirmin Vogel144ca842021-02-26 15:46:43 +0100938 'lc_ctrl.lc_escalate_en' : ['aes.lc_escalate_en',
939 'otp_ctrl.lc_escalate_en',
Michael Schaffnerbd9a3542020-12-21 13:08:32 -0800940 'sram_ctrl_main.lc_escalate_en',
Michael Schaffner69844f52021-06-01 10:19:40 -0700941 'sram_ctrl_ret_aon.lc_escalate_en',
942 'aon_timer_aon.lc_escalate_en'],
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800943
Michael Schaffnerc506dc52020-12-22 21:07:17 -0800944 'lc_ctrl.lc_check_byp_en' : ['otp_ctrl.lc_check_byp_en'],
Timothy Chenfa60a602021-03-23 14:29:40 -0700945 'lc_ctrl.lc_clk_byp_req' : ['clkmgr_aon.lc_clk_byp_req'],
946 'lc_ctrl.lc_clk_byp_ack' : ['clkmgr_aon.lc_clk_byp_ack'],
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800947
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800948 // LC access control signal broadcast
949 'lc_ctrl.lc_creator_seed_sw_rw_en' : ['otp_ctrl.lc_creator_seed_sw_rw_en',
Timothy Chen0a120942020-12-14 17:20:51 -0800950 'flash_ctrl.lc_creator_seed_sw_rw_en'],
Michael Schaffner60aa10e2020-12-07 19:39:08 -0800951 'lc_ctrl.lc_owner_seed_sw_rw_en' : ['flash_ctrl.lc_owner_seed_sw_rw_en'],
952 'lc_ctrl.lc_iso_part_sw_rd_en' : ['flash_ctrl.lc_iso_part_sw_rd_en'],
953 'lc_ctrl.lc_iso_part_sw_wr_en' : ['flash_ctrl.lc_iso_part_sw_wr_en'],
954 'lc_ctrl.lc_seed_hw_rd_en' : ['otp_ctrl.lc_seed_hw_rd_en',
955 'flash_ctrl.lc_seed_hw_rd_en'],
Eunchan Kim5009c8a2021-03-30 15:34:22 -0700956
Martin Lueker-Boden553aece2021-04-23 17:00:45 -0700957 'spi_device.passthrough' : ['spi_host0.passthrough']
Eunchan Kim40098a92020-04-17 12:22:36 -0700958 }
959
960 // top is to connect to top net/struct.
961 // It defines the signal in the top and connect from the module,
962 // use of the signal is up to top template
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700963 'top': [
Timothy Chen92b526e2021-02-01 21:23:42 -0800964 'rstmgr_aon.resets', 'rstmgr_aon.cpu', 'pwrmgr_aon.pwr_cpu', 'clkmgr_aon.clocks',
Timothy Chenb2abc982021-04-20 10:56:23 -0700965 'pwrmgr_aon.fetch_en',
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700966
967 // Xbars
Michael Schaffnerfca43822021-05-20 13:35:56 -0700968 'main.tl_corei', 'main.tl_cored', 'main.tl_dm_sba', 'main.tl_debug_mem',
969
970 // Pinmux JTAG signals for the tool-inserted DFT TAP
Michael Schaffner4d8199f2021-05-25 18:20:19 -0700971 'pinmux_aon.dft_jtag',
Michael Schaffnerfca43822021-05-20 13:35:56 -0700972
Michael Schaffner4d8199f2021-05-25 18:20:19 -0700973 // OTP HW_CFG Broadcast signals.
974 // TODO(#6713): The actual struct breakout and mapping currently needs to
975 // be performed by hand in the toplevel template.
976 'otp_ctrl.otp_hw_cfg',
977 'csrng.otp_en_csrng_sw_app_read',
978 'entropy_src.otp_en_entropy_src_fw_read',
979 'lc_ctrl.otp_device_id',
980 'keymgr.otp_device_id',
981 'sram_ctrl_main.otp_en_sram_ifetch',
982 'sram_ctrl_ret_aon.otp_en_sram_ifetch'
Eunchan Kime0d37fe2020-08-03 12:05:21 -0700983 ],
Eunchan Kim40098a92020-04-17 12:22:36 -0700984
985 // ext is to create port in the top.
Eunchan Kim57071c02020-08-07 13:59:05 -0700986 'external': {
Timothy Chen6f98f352021-03-10 16:27:29 -0800987 'adc_ctrl_aon.adc' : 'adc'
Timothy Chen685d6492021-03-09 21:28:39 -0800988 'ast.edn' : '',
989 'ast.lc_dft_en' : '',
990 'ast.ram_1p_cfg' : 'ram_1p_cfg',
991 'ast.ram_2p_cfg' : 'ram_2p_cfg',
992 'ast.rom_cfg' : 'rom_cfg',
993 'clkmgr_aon.clk_main' : 'clk_main', // clock inputs
Timothy Chenea59ad32021-02-03 17:51:38 -0800994 'clkmgr_aon.clk_io' : 'clk_io', // clock inputs
995 'clkmgr_aon.clk_usb' : 'clk_usb', // clock inputs
996 'clkmgr_aon.clk_aon' : 'clk_aon', // clock inputs
Timothy Chen5649c2a2021-02-08 18:32:22 -0800997 'clkmgr_aon.jitter_en' : 'clk_main_jitter_en',
Timothy Chenfa60a602021-03-23 14:29:40 -0700998 'clkmgr_aon.ast_clk_byp_req' : 'ast_clk_byp_req',
999 'clkmgr_aon.ast_clk_byp_ack' : 'ast_clk_byp_ack',
Timothy Chen800136d2021-04-29 14:56:19 -07001000 'eflash.flash_alert' : 'flash_alert',
Timothy Chenea59ad32021-02-03 17:51:38 -08001001 'eflash.flash_bist_enable' : 'flash_bist_enable',
1002 'eflash.flash_power_down_h' : 'flash_power_down_h',
1003 'eflash.flash_power_ready_h' : 'flash_power_ready_h',
Timothy Chenea59ad32021-02-03 17:51:38 -08001004 'entropy_src.entropy_src_rng' : 'es_rng',
Timothy Chen5270b7c2021-03-17 17:38:30 -07001005 'entropy_src.rng_fips' : 'es_rng_fips',
Timothy Chen685d6492021-03-09 21:28:39 -08001006 'peri.tl_ast' : 'ast_tl',
1007 'pinmux_aon.dft_strap_test' : 'dft_strap_test'
Timothy Chen1b5f81b2021-04-28 14:44:48 -07001008 'pinmux_aon.dft_hold_tap_sel' : 'dft_hold_tap_sel',
Timothy Chen685d6492021-03-09 21:28:39 -08001009 'pwrmgr_aon.pwr_ast' : 'pwrmgr_ast',
1010 'otp_ctrl.otp_ast_pwr_seq' : '',
1011 'otp_ctrl.otp_ast_pwr_seq_h' : '',
Timothy Chen800136d2021-04-29 14:56:19 -07001012 'otp_ctrl.otp_alert' : 'otp_alert',
Timothy Chen685d6492021-03-09 21:28:39 -08001013 'sensor_ctrl_aon.ast_alert' : 'sensor_ctrl_ast_alert',
1014 'sensor_ctrl_aon.ast_status' : 'sensor_ctrl_ast_status',
Timothy Chen685d6492021-03-09 21:28:39 -08001015 'sensor_ctrl_aon.ast2pinmux' : 'ast2pinmux',
Timothy Chen800136d2021-04-29 14:56:19 -07001016 'sensor_ctrl_aon.ast_init_done': 'ast_init_done',
Timothy Chen685d6492021-03-09 21:28:39 -08001017 'usbdev.usb_ref_val' : '',
1018 'usbdev.usb_ref_pulse' : '',
Eunchan Kim57071c02020-08-07 13:59:05 -07001019 },
Eunchan Kime4a85072020-02-05 16:00:00 -08001020 },
1021
lowRISC Contributors802543a2019-08-31 12:12:56 +01001022 debug_mem_base_addr: "0x1A110000",
1023
1024 // Crossbars: having a top level crossbar
1025 // This version assumes all crossbars are instantiated at the top.
1026 // Assume xbar.hjson is located in the same directory of top.hjson
1027 xbar: [
1028 { name: "main",
Timothy Chen6b70fd22020-08-20 14:01:26 -07001029 clock_srcs: {clk_main_i: "main", clk_fixed_i: "io_div4"},
Timothy Chen0550d692020-04-20 17:19:35 -07001030 clock_group: "infra",
Timothy Chen3193b002019-10-04 16:56:05 -07001031 reset: "sys",
Timothy Chen6b70fd22020-08-20 14:01:26 -07001032 reset_connections: {rst_main_ni: "sys", rst_fixed_ni: "sys_io_div4"}
lowRISC Contributors802543a2019-08-31 12:12:56 +01001033 },
Eunchan Kim0523f6b2019-12-17 13:53:11 -08001034 { name: "peri",
Timothy Chen6b70fd22020-08-20 14:01:26 -07001035 clock_srcs: {clk_peri_i: "io_div4"},
Timothy Chen0550d692020-04-20 17:19:35 -07001036 clock_group: "infra",
Timothy Chen6b70fd22020-08-20 14:01:26 -07001037 reset: "sys_io_div4",
1038 reset_connections: {rst_peri_ni: "sys_io_div4"},
Eunchan Kim0523f6b2019-12-17 13:53:11 -08001039 }
lowRISC Contributors802543a2019-08-31 12:12:56 +01001040 ],
1041
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001042 // ===== PINMUX & PINOUT ======================================================
Timothy Chen6f98f352021-03-10 16:27:29 -08001043
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001044 pinout: {
1045 // IO power bank declaration.
1046 // This list defines the IO bank power domains on the ASIC.
1047 // Each individual pad must be in one of the declared power domains.
1048 banks: ['VCC', 'AVCC', 'VIOA', 'VIOB'],
1049 // Pad declaration.
1050 // Each entry must have the following four keys:
1051 //
1052 // - name: Name of the pad (this will be exposed at the chiplevel).
1053 //
1054 // - type: Pad type (this maps to the pad types defined in prim_pad_wrapper_pkg.sv)
1055 //
1056 // - bank: Specifies in which of the IO power banks this pad lives.
1057 //
1058 // - connection: Can have either of the following values:
1059 //
1060 // 1) 'direct': This is a dedicated IO Pad that is directly connected to a peripheral.
1061 //
1062 // 2) 'manual': This is a dedicated IO signal that is not directly connected to a
1063 // peripheral. It needs to be manually wired up in the template.
1064 //
1065 // 3) 'muxed': This is a muxed IO pad that will be connected to the pinmux.
1066 //
1067 // Optionally, each pad can also have a 'desc' field for further description.
Eunchan Kim632c6f72019-09-30 11:11:51 -07001068 pads: [
Michael Schaffner6c5f7a72021-04-09 11:51:10 -07001069 // Special manually connected pads
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001070 { name: 'POR_N' , type: 'InputStd', bank: 'VCC' , connection: 'manual', desc: 'System reset'},
Michael Schaffner6c5f7a72021-04-09 11:51:10 -07001071 { name: 'USB_P' , type: 'BidirTol', bank: 'VCC' , connection: 'manual', desc: 'USB P signal'},
1072 { name: 'USB_N' , type: 'BidirTol', bank: 'VCC' , connection: 'manual', desc: 'USB N signal'},
1073 { name: 'CC1' , type: 'InputStd', bank: 'AVCC', connection: 'manual', desc: 'ADC input 1'},
1074 { name: 'CC2' , type: 'InputStd', bank: 'AVCC', connection: 'manual', desc: 'ADC input 2'},
1075 { name: 'FLASH_TEST_VOLT' , type: 'AnalogIn0',bank: 'VCC' , connection: 'manual', desc: 'Flash test voltage input'},
1076 { name: 'FLASH_TEST_MODE0', type: 'InputStd', bank: 'VCC' , connection: 'manual', desc: 'Flash test mode signal'},
1077 { name: 'FLASH_TEST_MODE1', type: 'InputStd', bank: 'VCC' , connection: 'manual', desc: 'Flash test mode signal'},
Arnon Sharline48c0012021-05-09 13:26:38 +03001078 { name: 'OTP_EXT_VOLT' , type: 'AnalogIn1',bank: 'VCC' , connection: 'manual', desc: 'OTP external voltage input'},
Michael Schaffner6c5f7a72021-04-09 11:51:10 -07001079 // Dedicated IOs
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001080 { name: 'SPI_HOST_D0' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'},
1081 { name: 'SPI_HOST_D1' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'},
1082 { name: 'SPI_HOST_D2' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'},
1083 { name: 'SPI_HOST_D3' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host data'},
1084 { name: 'SPI_HOST_CLK' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host clock'},
1085 { name: 'SPI_HOST_CS_L' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI host chip select'},
1086 { name: 'SPI_DEV_D0' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'},
1087 { name: 'SPI_DEV_D1' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'},
1088 { name: 'SPI_DEV_D2' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'},
1089 { name: 'SPI_DEV_D3' , type: 'BidirStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device data'},
1090 { name: 'SPI_DEV_CLK' , type: 'InputStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device clock'},
1091 { name: 'SPI_DEV_CS_L' , type: 'InputStd', bank: 'VIOA', connection: 'direct', desc: 'SPI device chip select'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001092 // IOA
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001093 { name: 'IOA0' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1094 { name: 'IOA1' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1095 { name: 'IOA2' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1096 { name: 'IOA3' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1097 { name: 'IOA4' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1098 { name: 'IOA5' , type: 'BidirStd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1099 { name: 'IOA6' , type: 'BidirOd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1100 { name: 'IOA7' , type: 'BidirOd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
1101 { name: 'IOA8' , type: 'BidirOd', bank: 'VIOA', connection: 'muxed' , desc: 'Muxed IO pad'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001102 // IOB
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001103 { name: 'IOB0' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1104 { name: 'IOB1' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1105 { name: 'IOB2' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1106 { name: 'IOB3' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1107 { name: 'IOB4' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1108 { name: 'IOB5' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1109 { name: 'IOB6' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1110 { name: 'IOB7' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1111 { name: 'IOB8' , type: 'BidirStd', bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001112 { name: 'IOB9' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001113 { name: 'IOB10' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1114 { name: 'IOB11' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
1115 { name: 'IOB12' , type: 'BidirOd' , bank: 'VIOB', connection: 'muxed' , desc: 'Muxed IO pad'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001116 // IOC
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001117 { name: 'IOC0' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1118 { name: 'IOC1' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1119 { name: 'IOC2' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1120 { name: 'IOC3' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1121 { name: 'IOC4' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1122 { name: 'IOC5' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1123 { name: 'IOC6' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1124 { name: 'IOC7' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1125 { name: 'IOC8' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1126 { name: 'IOC9' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001127 { name: 'IOC10' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1128 { name: 'IOC11' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001129 { name: 'IOC12' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001130 // IOR
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001131 { name: 'IOR0' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1132 { name: 'IOR1' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1133 { name: 'IOR2' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1134 { name: 'IOR3' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1135 { name: 'IOR4' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1136 { name: 'IOR5' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1137 { name: 'IOR6' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1138 { name: 'IOR7' , type: 'BidirStd', bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1139 { name: 'IOR8' , type: 'BidirOd' , bank: 'VCC' , connection: 'direct', desc: 'Dedicated sysrst_ctrl output (ec_rst_l)'},
1140 { name: 'IOR9' , type: 'BidirOd' , bank: 'VCC' , connection: 'direct', desc: 'Dedicated sysrst_ctrl output (pwrb_out)'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001141 { name: 'IOR10' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1142 { name: 'IOR11' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1143 { name: 'IOR12' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
1144 { name: 'IOR13' , type: 'BidirOd' , bank: 'VCC' , connection: 'muxed' , desc: 'Muxed IO pad'},
Eunchan Kim632c6f72019-09-30 11:11:51 -07001145 ]
1146 }
lowRISC Contributors802543a2019-08-31 12:12:56 +01001147
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001148 pinmux: {
1149 // Signal to pinmux/pad mapping.
1150 // Each entry in the list below must have the following two mandatory keys:
1151 //
1152 // - instance: This is the comportable IO instance name where the IO signal comes from.
1153 //
1154 // - connection: This key is similar to the connection key in the pinout/pad configuration and
1155 // can have either of the following values:
1156 //
1157 // 1) 'direct': This is a dedicated IO signal that is directly connected to a pad.
1158 // Such an IO signal must also specify the 'port' and 'pad' keys
1159 // (see further below).
1160 //
1161 // 2) 'manual': This is a dedicated IO signal that is not directly connected to a pad.
1162 // It needs to be manually wired up in the template.
1163 // Such an IO signal may have a 'port' key, but no 'pad' key.
1164 //
1165 // 3) 'muxed': This is a muxed IO signal that will be connected to the pinmux.
1166 // Such an IO signal may have a 'port' key, but no 'pad' key.
1167 //
1168 // Depending on the connection type specified, each entry may have the following optional keys:
1169 //
1170 // - port: Name of the available IO signal of the instance.
1171 // This is required for 'direct' connections, but optional for the others.
1172 // Individual signals of a bus IO signal must be indexed with square brackets, e.g. mybus[1].
1173 // Not specifying this key or setting it to an empty string acts as a wild card
1174 // and includes all available IOs of this instance.
1175 //
1176 // - pad: Name of the pad the 'direct' connection should connect to.
1177 // This is not required for 'muxed' and 'manual' connections.
1178 //
1179 // - desc: Optional description field.
Michael Schaffnerc7dc5332021-04-09 16:30:26 -07001180 //
1181 // - attr: Manual direct IOs may specify an additional pad attr field.
1182 // This is used to create the correct pad attribute CSR for that DIO channel (since the
1183 // DIO is manual, there is no way to automatically infer the corresponding pad type).
1184 //
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001185 signals: [
1186 // SPI Host0
Michael Schaffnere029a682021-04-06 16:21:30 -07001187 { instance: 'spi_host0', port: 'sck', connection: 'direct', pad: 'SPI_HOST_CLK' , desc: ''},
1188 { instance: 'spi_host0', port: 'csb', connection: 'direct', pad: 'SPI_HOST_CS_L', desc: ''},
1189 { instance: 'spi_host0', port: 'sd[0]', connection: 'direct', pad: 'SPI_HOST_D0' , desc: ''},
1190 { instance: 'spi_host0', port: 'sd[1]', connection: 'direct', pad: 'SPI_HOST_D1' , desc: ''},
1191 { instance: 'spi_host0', port: 'sd[2]', connection: 'direct', pad: 'SPI_HOST_D2' , desc: ''},
1192 { instance: 'spi_host0', port: 'sd[3]', connection: 'direct', pad: 'SPI_HOST_D3' , desc: ''},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001193 // SPI Device
Michael Schaffnere029a682021-04-06 16:21:30 -07001194 { instance: 'spi_device', port: 'sck', connection: 'direct', pad: 'SPI_DEV_CLK' , desc: ''},
1195 { instance: 'spi_device', port: 'csb', connection: 'direct', pad: 'SPI_DEV_CS_L' , desc: ''},
1196 { instance: 'spi_device', port: 'sd[0]', connection: 'direct', pad: 'SPI_DEV_D0' , desc: ''},
1197 { instance: 'spi_device', port: 'sd[1]', connection: 'direct', pad: 'SPI_DEV_D1' , desc: ''},
1198 { instance: 'spi_device', port: 'sd[2]', connection: 'direct', pad: 'SPI_DEV_D2' , desc: ''},
1199 { instance: 'spi_device', port: 'sd[3]', connection: 'direct', pad: 'SPI_DEV_D3' , desc: ''},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001200 // USBDEV
Timothy Chen22c18562021-04-09 14:52:12 -07001201 // TODO: #6043
1202 { instance: 'usbdev', port: 'd', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1203 { instance: 'usbdev', port: 'dp', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1204 { instance: 'usbdev', port: 'dn', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1205 { instance: 'usbdev', port: 'sense', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1206 { instance: 'usbdev', port: 'se0', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1207 { instance: 'usbdev', port: 'dp_pullup', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1208 { instance: 'usbdev', port: 'dn_pullup', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1209 { instance: 'usbdev', port: 'tx_mode_se', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1210 { instance: 'usbdev', port: 'suspend', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
1211 { instance: 'usbdev', port: 'rx_enable', connection: 'manual', pad: '' , desc: '', attr: 'BidirTol'},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001212 // MIOs
Michael Schaffnere029a682021-04-06 16:21:30 -07001213 { instance: "gpio", port: '', connection: 'muxed' , pad: '' , desc: ''},
1214 { instance: "uart0", port: '', connection: 'muxed' , pad: '' , desc: ''},
1215 { instance: "uart1", port: '', connection: 'muxed' , pad: '' , desc: ''},
1216 { instance: "uart2", port: '', connection: 'muxed' , pad: '' , desc: ''},
1217 { instance: "uart3", port: '', connection: 'muxed' , pad: '' , desc: ''},
1218 { instance: "i2c0", port: '', connection: 'muxed' , pad: '' , desc: ''},
1219 { instance: "i2c1", port: '', connection: 'muxed' , pad: '' , desc: ''},
1220 { instance: "i2c2", port: '', connection: 'muxed' , pad: '' , desc: ''},
1221 { instance: "pattgen", port: '', connection: 'muxed' , pad: '' , desc: ''},
1222 { instance: "spi_host1", port: '', connection: 'muxed' , pad: '' , desc: ''},
1223 { instance: "flash_ctrl", port: '', connection: 'muxed' , pad: '' , desc: ''},
1224 { instance: "sensor_ctrl_aon", port: '', connection: 'muxed' , pad: '' , desc: ''},
Martin Lueker-Boden0d63fe02021-03-10 17:30:37 -08001225 { instance: "pwm_aon", port: '', connection: 'muxed' , pad: '' , desc: ''},
Michael Schaffnere029a682021-04-06 16:21:30 -07001226 // Sysrst ctrl has both muxed and dedicated IOs
1227 { instance: "sysrst_ctrl_aon", port: 'ac_present', connection: 'muxed' , pad: '' , desc: ''},
1228 { instance: "sysrst_ctrl_aon", port: 'ec_rst_in_l', connection: 'muxed' , pad: '' , desc: ''},
1229 { instance: "sysrst_ctrl_aon", port: 'key0_in', connection: 'muxed' , pad: '' , desc: ''},
1230 { instance: "sysrst_ctrl_aon", port: 'key1_in', connection: 'muxed' , pad: '' , desc: ''},
1231 { instance: "sysrst_ctrl_aon", port: 'key2_in', connection: 'muxed' , pad: '' , desc: ''},
1232 { instance: "sysrst_ctrl_aon", port: 'pwrb_in', connection: 'muxed' , pad: '' , desc: ''},
1233 { instance: "sysrst_ctrl_aon", port: 'bat_disable', connection: 'muxed' , pad: '' , desc: ''},
1234 { instance: "sysrst_ctrl_aon", port: 'ec_rst_out_l', connection: 'direct', pad: 'IOR8' , desc: ''},
1235 { instance: "sysrst_ctrl_aon", port: 'key0_out', connection: 'muxed' , pad: '' , desc: ''},
1236 { instance: "sysrst_ctrl_aon", port: 'key1_out', connection: 'muxed' , pad: '' , desc: ''},
1237 { instance: "sysrst_ctrl_aon", port: 'key2_out', connection: 'muxed' , pad: '' , desc: ''},
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001238 { instance: "sysrst_ctrl_aon", port: 'pwrb_out', connection: 'direct', pad: 'IOR9' , desc: ''},
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001239 ],
1240
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001241 num_wkup_detect: 8
1242 wkup_cnt_width: 8
1243 }
1244
1245 // Implementation targets.
1246 // This defines the configuration of the target-specific chip-levels to
1247 // generate from the shared template. Each target uses the same base
1248 // configuration for the pinmux and pinout as defined above, and the
1249 // generated software constants for the pinmux DIF do not change among the
1250 // implementation targets. However, in order to accommodate slight
1251 // differences among the ASIC, FPGA emulation and simulation environments,
1252 // it is possible to make very limited pinout changes below. In particular,
1253 // it is possible to remove and tie-off specific pads, or add more 'manual'
1254 // pads that need to be manually connected in the template. It is also possible
1255 // to override the JTAG and strap locations indices, since the testing and DFT
1256 // setups may differ among the targets.
1257 targets: [
1258 { name: 'asic',
1259
1260 // Pinout Changes.
1261 pinout: {
1262 // This is a list of pad names to remove from the base pinout defined
1263 // above. Removed pads will be stubbed off such that their inputs
1264 // signals are driven with zero. Output signals and output enables
1265 // will be left unconnected. If no changes are needed, this list can
1266 // be left empty.
1267 remove_pads: [],
1268
1269 // This is a list of additional "manual" pads to add to the pinout.
1270 // The pad entries have the same format as the pad entries in the pinout
1271 // configuration above. However, the 'connection' key must always be set
1272 // to 'manual' as it is not possible to connect these additional pads
1273 // to the pinmux or peripherals.
1274 add_pads: [],
1275 },
1276
1277 pinmux: {
1278 // Special signal positions. Each entry in the list below creates a
1279 // target-specific pad position parameter in the chiplevel hierarchy
1280 // that can be used to parameterize certain IPs like the pinmux or
1281 // padring. This is mainly used to define the pad positions of special
1282 // test and DFT signals such as the JTAG signals and the TAP and DFT
1283 // straps. Straps in this context are special pads that get sampled at
1284 // boot time during certain life cycle states in order to determine
1285 // DFT modes and the TAP mux selection index (the JTAG signals can be
1286 // muxed to either the lifecycle TAP, DFT TAP or RISC-V processor
1287 // TAP). TODO: add more documentation to https://docs.opentitan.org/hw/ip/pinmux/doc/index.html
1288 // Each entry must have the following two keys:
1289 //
1290 // - name: Basename for the SV parameter.
1291 //
1292 // - pad: The pad name that this special signal maps to. The generated
1293 // parameter will be assigned the corresponding pad index.
1294 //
1295 // Each entry may have an optional 'desc' key for further description.
1296 special_signals: [
1297 // Straps
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001298 { name: 'tap0', pad: 'IOC8', desc: 'TAP strap signal.' },
1299 { name: 'tap1', pad: 'IOC5', desc: 'TAP strap signal.' },
1300 { name: 'dft0', pad: 'IOC3', desc: 'DFT strap signal.' },
1301 { name: 'dft1', pad: 'IOC4', desc: 'DFT strap signal.' },
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001302 // JTAG
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001303 { name: 'tck', pad: 'IOR3', desc: 'JTAG tck signal.' },
1304 { name: 'tms', pad: 'IOR0', desc: 'JTAG tms signal.' },
1305 { name: 'trst_n', pad: 'IOR4', desc: 'JTAG trst_n signal.' },
1306 { name: 'tdi', pad: 'IOR2', desc: 'JTAG tdi signal.' },
1307 { name: 'tdo', pad: 'IOR1', desc: 'JTAG tdo signal.' },
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001308 ],
1309 }
1310 },
Pirmin Vogel95c76782021-05-17 13:30:38 +02001311 { name: 'cw310',
1312
1313 pinout: {
1314 remove_pads: [
1315 'CC1', 'CC2',
1316 'SPI_DEV_D2', 'SPI_DEV_D3'
1317 'SPI_HOST_CLK', 'SPI_HOST_CS_L',
1318 'SPI_HOST_D0', 'SPI_HOST_D1', 'SPI_HOST_D2', 'SPI_HOST_D3',
1319 'FLASH_TEST_VOLT', 'OTP_EXT_VOLT'
1320 'FLASH_TEST_MODE0', 'FLASH_TEST_MODE1',
1321 'IOB10', 'IOB11', 'IOB12',
1322 'IOC0', 'IOC1', 'IOC12',
1323 'IOR0', 'IOR1', 'IOR2', 'IOR3', 'IOR4', 'IOR5', 'IOR6', 'IOR7', 'IOR8', 'IOR9', 'IOR10', 'IOR11', 'IOR12', 'IOR13'
1324 ],
1325
1326 add_pads: [
1327 // Additional infrastucture pads
1328 { name: 'IO_CLK', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Extra clock input for FPGA target'}
1329 { name: 'IO_JSRST_N', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Dedicated JTAG system reset input'}
1330 // Custom USB pads
1331 { name: 'IO_USB_SENSE0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'}
1332 { name: 'IO_USB_DNPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'}
1333 { name: 'IO_USB_DPPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'}
1334 { name: 'IO_UPHY_DP_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1335 { name: 'IO_UPHY_DN_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1336 { name: 'IO_UPHY_DP_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1337 { name: 'IO_UPHY_DN_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1338 { name: 'IO_UPHY_D_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1339 { name: 'IO_UPHY_OE_N', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1340 { name: 'IO_UPHY_SENSE', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1341 { name: 'IO_UPHY_DPPULLUP', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1342 ],
1343 },
1344
1345pinmux: {
1346 special_signals: [
1347 // Straps
1348 { name: 'tap0', pad: 'IOC0' , desc: 'TAP strap signal, maps to a stubbed-off MIO.' },
1349 { name: 'tap1', pad: 'IOB7', desc: 'TAP strap signal, maps to MIO pad 16.' },
1350 { name: 'dft0', pad: 'IOC1' , desc: 'DFT strap signal, maps to a stubbed-off MIO.' },
1351 { name: 'dft1', pad: 'IOC12', desc: 'DFT strap signal, maps to a stubbed-off MIO.' },
1352 // JTAG
1353 { name: 'tck', pad: 'SPI_DEV_CLK' , desc: 'JTAG tck signal, overlaid on SPI_DEV.' },
1354 { name: 'tms', pad: 'SPI_DEV_CS_L', desc: 'JTAG tms signal, overlaid on SPI_DEV.' },
1355 { name: 'trst_n', pad: 'IOB9' , desc: 'JTAG trst_n signal, maps to MIO pad 18.' },
1356 { name: 'tdi', pad: 'SPI_DEV_D0' , desc: 'JTAG tdi signal, overlaid on SPI_DEV.' },
1357 { name: 'tdo', pad: 'SPI_DEV_D1' , desc: 'JTAG tdo signal, overlaid on SPI_DEV.' },
1358 ],
1359 }
1360 }
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001361 { name: 'nexysvideo',
1362
1363 pinout: {
1364 remove_pads: [
1365 'CC1', 'CC2',
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001366 'SPI_DEV_D2', 'SPI_DEV_D3'
1367 'SPI_HOST_CLK', 'SPI_HOST_CS_L',
1368 'SPI_HOST_D0', 'SPI_HOST_D1', 'SPI_HOST_D2', 'SPI_HOST_D3',
Michael Schaffnerd13f4422021-04-20 10:27:48 -07001369 'FLASH_TEST_VOLT', 'OTP_EXT_VOLT'
Michael Schaffner6c5f7a72021-04-09 11:51:10 -07001370 'FLASH_TEST_MODE0', 'FLASH_TEST_MODE1',
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001371 'IOB10', 'IOB11', 'IOB12',
1372 'IOC0', 'IOC1', 'IOC12',
1373 'IOR0', 'IOR1', 'IOR2', 'IOR3', 'IOR4', 'IOR5', 'IOR6', 'IOR7', 'IOR8', 'IOR9', 'IOR10', 'IOR11', 'IOR12', 'IOR13'
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001374 ],
1375
1376 add_pads: [
1377 // Additional infrastucture pads
1378 { name: 'IO_CLK', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Extra clock input for FPGA target'}
1379 { name: 'IO_JSRST_N', type: 'InputStd', bank: 'VCC', connection: 'manual', desc: 'Dedicated JTAG system reset input'}
1380 // Custom USB pads
1381 { name: 'IO_USB_SENSE0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'}
1382 { name: 'IO_USB_DNPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'}
1383 { name: 'IO_USB_DPPULLUP0', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB signal for FPGA target'}
1384 { name: 'IO_UPHY_DP_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1385 { name: 'IO_UPHY_DN_TX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1386 { name: 'IO_UPHY_DP_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1387 { name: 'IO_UPHY_DN_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1388 { name: 'IO_UPHY_D_RX', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1389 { name: 'IO_UPHY_OE_N', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1390 { name: 'IO_UPHY_SENSE', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1391 { name: 'IO_UPHY_DPPULLUP', type: 'BidirStd', bank: 'VCC', connection: 'manual', desc: 'Manual USB UPHY signal for FPGA target'}
1392 ],
1393 },
1394
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001395pinmux: {
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001396 special_signals: [
1397 // Straps
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001398 { name: 'tap0', pad: 'IOC0' , desc: 'TAP strap signal, maps to a stubbed-off MIO.' },
1399 { name: 'tap1', pad: 'IOB7', desc: 'TAP strap signal, maps to MIO pad 16.' },
1400 { name: 'dft0', pad: 'IOC1' , desc: 'DFT strap signal, maps to a stubbed-off MIO.' },
1401 { name: 'dft1', pad: 'IOC12', desc: 'DFT strap signal, maps to a stubbed-off MIO.' },
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001402 // JTAG
1403 { name: 'tck', pad: 'SPI_DEV_CLK' , desc: 'JTAG tck signal, overlaid on SPI_DEV.' },
1404 { name: 'tms', pad: 'SPI_DEV_CS_L', desc: 'JTAG tms signal, overlaid on SPI_DEV.' },
Michael Schaffner3b1c0302021-04-02 18:01:15 -07001405 { name: 'trst_n', pad: 'IOB9' , desc: 'JTAG trst_n signal, maps to MIO pad 18.' },
Michael Schaffner74c4ff22021-03-30 15:43:46 -07001406 { name: 'tdi', pad: 'SPI_DEV_D0' , desc: 'JTAG tdi signal, overlaid on SPI_DEV.' },
1407 { name: 'tdo', pad: 'SPI_DEV_D1' , desc: 'JTAG tdo signal, overlaid on SPI_DEV.' },
1408 ],
1409 }
1410 }
1411 ]
lowRISC Contributors802543a2019-08-31 12:12:56 +01001412}