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 |
Michael Schaffner | 40b6bd2 | 2020-10-27 19:52:23 -0700 | [diff] [blame] | 4 | // |
| 5 | // ------------------- W A R N I N G: A U T O - G E N E R A T E D C O D E !! -------------------// |
| 6 | // PLEASE DO NOT HAND-EDIT THIS FILE. IT HAS BEEN AUTO-GENERATED WITH THE FOLLOWING COMMAND: |
| 7 | // |
| 8 | // util/topgen.py -t hw/top_earlgrey/data/top_earlgrey.hjson \ |
Michael Schaffner | 40b6bd2 | 2020-10-27 19:52:23 -0700 | [diff] [blame] | 9 | // -o hw/top_earlgrey/ \ |
| 10 | // --rnd_cnst_seed 4881560218908238235 |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 11 | |
Timothy Chen | 7ff5312 | 2019-09-19 15:20:43 -0700 | [diff] [blame] | 12 | module top_earlgrey #( |
Pirmin Vogel | 15e1b91 | 2020-09-16 14:43:22 +0200 | [diff] [blame] | 13 | // Auto-inferred parameters |
Michael Schaffner | 20972a6 | 2021-02-24 18:53:46 -0800 | [diff] [blame] | 14 | parameter OtpCtrlMemInitFile = "", |
Michael Schaffner | 5f54587 | 2021-03-05 17:54:28 -0800 | [diff] [blame] | 15 | parameter pinmux_pkg::target_cfg_t PinmuxAonTargetCfg = pinmux_pkg::DefaultTargetCfg, |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 16 | parameter bit SramCtrlRetAonInstrExec = 1, |
Timothy Chen | 20ae79e | 2020-11-03 16:25:03 -0800 | [diff] [blame] | 17 | parameter bit AesMasking = 1'b1, |
Pirmin Vogel | e6ca872 | 2021-01-31 11:36:47 +0100 | [diff] [blame] | 18 | parameter aes_pkg::sbox_impl_e AesSBoxImpl = aes_pkg::SBoxImplDom, |
Pirmin Vogel | 15e1b91 | 2020-09-16 14:43:22 +0200 | [diff] [blame] | 19 | parameter int unsigned SecAesStartTriggerDelay = 0, |
Pirmin Vogel | 4429c36 | 2020-10-02 17:54:11 +0200 | [diff] [blame] | 20 | parameter bit SecAesAllowForcingMasks = 1'b0, |
Pirmin Vogel | 95cea45 | 2021-03-02 08:54:01 +0100 | [diff] [blame] | 21 | parameter bit SecAesSkipPRNGReseeding = 1'b0, |
Eunchan Kim | f7ed184 | 2020-12-29 12:59:39 -0800 | [diff] [blame] | 22 | parameter bit KmacEnMasking = 0, |
Eunchan Kim | e5d33b7 | 2020-11-03 14:34:16 -0800 | [diff] [blame] | 23 | parameter int KmacReuseShare = 0, |
Pirmin Vogel | f839476 | 2021-02-19 11:32:39 +0100 | [diff] [blame] | 24 | parameter aes_pkg::sbox_impl_e CsrngSBoxImpl = aes_pkg::SBoxImplCanright, |
Timothy Chen | dff0b9d | 2021-04-22 12:46:14 -0700 | [diff] [blame] | 25 | parameter bit EntropySrcStub = 0, |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 26 | parameter bit SramCtrlMainInstrExec = 1, |
Timothy Chen | 7be1516 | 2021-04-21 19:43:31 -0700 | [diff] [blame] | 27 | parameter bit OtbnStub = 0, |
Pirmin Vogel | 69b55a8 | 2020-10-01 09:54:39 +0200 | [diff] [blame] | 28 | parameter otbn_pkg::regfile_e OtbnRegFile = otbn_pkg::RegFileFF, |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 29 | parameter RomCtrlBootRomInitFile = "", |
Pirmin Vogel | 15e1b91 | 2020-09-16 14:43:22 +0200 | [diff] [blame] | 30 | |
| 31 | // Manually defined parameters |
Pirmin Vogel | 4eb2502 | 2020-08-27 15:27:33 +0200 | [diff] [blame] | 32 | parameter ibex_pkg::regfile_e IbexRegFile = ibex_pkg::RegFileFF, |
Tom Roberts | 7824ccc | 2020-11-05 11:34:03 +0000 | [diff] [blame] | 33 | parameter bit IbexICache = 1, |
Timothy Chen | a6b5a1e | 2021-04-12 14:20:30 -0700 | [diff] [blame] | 34 | parameter bit IbexPipeLine = 0, |
| 35 | parameter bit SecureIbex = 1 |
Timothy Chen | 7ff5312 | 2019-09-19 15:20:43 -0700 | [diff] [blame] | 36 | ) ( |
Timothy Chen | 371c94d | 2020-06-30 17:18:14 -0700 | [diff] [blame] | 37 | // Reset, clocks defined as part of intermodule |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 38 | input rst_ni, |
| 39 | |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 40 | // Multiplexed I/O |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 41 | input [46:0] mio_in_i, |
| 42 | output logic [46:0] mio_out_o, |
| 43 | output logic [46:0] mio_oe_o, |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 44 | // Dedicated I/O |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 45 | input [23:0] dio_in_i, |
| 46 | output logic [23:0] dio_out_o, |
| 47 | output logic [23:0] dio_oe_o, |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 48 | |
Michael Schaffner | 79eb65f | 2020-05-01 19:12:47 -0700 | [diff] [blame] | 49 | // pad attributes to padring |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 50 | output prim_pad_wrapper_pkg::pad_attr_t [pinmux_reg_pkg::NMioPads-1:0] mio_attr_o, |
| 51 | output prim_pad_wrapper_pkg::pad_attr_t [pinmux_reg_pkg::NDioPads-1:0] dio_attr_o, |
Michael Schaffner | 79eb65f | 2020-05-01 19:12:47 -0700 | [diff] [blame] | 52 | |
Timothy Chen | 371c94d | 2020-06-30 17:18:14 -0700 | [diff] [blame] | 53 | |
| 54 | // Inter-module Signal External type |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 55 | output ast_pkg::adc_ast_req_t adc_req_o, |
| 56 | input ast_pkg::adc_ast_rsp_t adc_rsp_i, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 57 | input edn_pkg::edn_req_t ast_edn_req_i, |
| 58 | output edn_pkg::edn_rsp_t ast_edn_rsp_o, |
| 59 | output lc_ctrl_pkg::lc_tx_t ast_lc_dft_en_o, |
| 60 | input prim_ram_1p_pkg::ram_1p_cfg_t ram_1p_cfg_i, |
| 61 | input prim_ram_2p_pkg::ram_2p_cfg_t ram_2p_cfg_i, |
| 62 | input prim_rom_pkg::rom_cfg_t rom_cfg_i, |
Eunchan Kim | 5511bbe | 2020-08-07 14:04:20 -0700 | [diff] [blame] | 63 | input logic clk_main_i, |
| 64 | input logic clk_io_i, |
| 65 | input logic clk_usb_i, |
| 66 | input logic clk_aon_i, |
Timothy Chen | e38c470 | 2021-02-08 18:38:03 -0800 | [diff] [blame] | 67 | output logic clk_main_jitter_en_o, |
Timothy Chen | fa60a60 | 2021-03-23 14:29:40 -0700 | [diff] [blame] | 68 | output lc_ctrl_pkg::lc_tx_t ast_clk_byp_req_o, |
| 69 | input lc_ctrl_pkg::lc_tx_t ast_clk_byp_ack_i, |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 70 | output ast_pkg::ast_dif_t flash_alert_o, |
Timothy Chen | d39fd39 | 2021-01-15 21:29:36 -0800 | [diff] [blame] | 71 | input lc_ctrl_pkg::lc_tx_t flash_bist_enable_i, |
Timothy Chen | 2422a6c | 2020-11-19 16:06:14 -0800 | [diff] [blame] | 72 | input logic flash_power_down_h_i, |
| 73 | input logic flash_power_ready_h_i, |
Timothy Chen | ea59ad3 | 2021-02-03 17:51:38 -0800 | [diff] [blame] | 74 | output entropy_src_pkg::entropy_src_rng_req_t es_rng_req_o, |
| 75 | input entropy_src_pkg::entropy_src_rng_rsp_t es_rng_rsp_i, |
Timothy Chen | 5270b7c | 2021-03-17 17:38:30 -0700 | [diff] [blame] | 76 | output logic es_rng_fips_o, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 77 | output tlul_pkg::tl_h2d_t ast_tl_req_o, |
| 78 | input tlul_pkg::tl_d2h_t ast_tl_rsp_i, |
| 79 | output pinmux_pkg::dft_strap_test_req_t dft_strap_test_o, |
Timothy Chen | 1b5f81b | 2021-04-28 14:44:48 -0700 | [diff] [blame] | 80 | input logic dft_hold_tap_sel_i, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 81 | output pwrmgr_pkg::pwr_ast_req_t pwrmgr_ast_req_o, |
| 82 | input pwrmgr_pkg::pwr_ast_rsp_t pwrmgr_ast_rsp_i, |
| 83 | output otp_ctrl_pkg::otp_ast_req_t otp_ctrl_otp_ast_pwr_seq_o, |
| 84 | input otp_ctrl_pkg::otp_ast_rsp_t otp_ctrl_otp_ast_pwr_seq_h_i, |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 85 | output ast_pkg::ast_dif_t otp_alert_o, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 86 | input ast_pkg::ast_alert_req_t sensor_ctrl_ast_alert_req_i, |
| 87 | output ast_pkg::ast_alert_rsp_t sensor_ctrl_ast_alert_rsp_o, |
| 88 | input ast_pkg::ast_status_t sensor_ctrl_ast_status_i, |
Timothy Chen | 0249a3a | 2021-04-15 11:26:31 -0700 | [diff] [blame] | 89 | input logic [8:0] ast2pinmux_i, |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 90 | input logic ast_init_done_i, |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 91 | output logic usbdev_usb_ref_val_o, |
| 92 | output logic usbdev_usb_ref_pulse_o, |
Timothy Chen | 437fd9a | 2020-08-26 12:48:40 -0700 | [diff] [blame] | 93 | output clkmgr_pkg::clkmgr_ast_out_t clks_ast_o, |
| 94 | output rstmgr_pkg::rstmgr_ast_out_t rsts_ast_o, |
Timothy Chen | 5270b7c | 2021-03-17 17:38:30 -0700 | [diff] [blame] | 95 | |
| 96 | // Flash specific voltages |
Michael Schaffner | 6c5f7a7 | 2021-04-09 11:51:10 -0700 | [diff] [blame] | 97 | inout [1:0] flash_test_mode_a_io, |
Timothy Chen | 5270b7c | 2021-03-17 17:38:30 -0700 | [diff] [blame] | 98 | inout flash_test_voltage_h_io, |
| 99 | |
Michael Schaffner | d13f442 | 2021-04-20 10:27:48 -0700 | [diff] [blame] | 100 | // OTP specific voltages |
| 101 | inout otp_ext_voltage_h_io, |
| 102 | |
Timothy Chen | e38c470 | 2021-02-08 18:38:03 -0800 | [diff] [blame] | 103 | input scan_rst_ni, // reset used for test mode |
| 104 | input scan_en_i, |
Michael Schaffner | 8bf4fe6 | 2021-02-18 12:56:08 -0800 | [diff] [blame] | 105 | input lc_ctrl_pkg::lc_tx_t scanmode_i // lc_ctrl_pkg::On for Scan |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 106 | ); |
| 107 | |
Philipp Wagner | 086b703 | 2019-10-25 17:06:15 +0100 | [diff] [blame] | 108 | // JTAG IDCODE for development versions of this code. |
| 109 | // Manufacturers of OpenTitan chips must replace this code with one of their |
| 110 | // own IDs. |
| 111 | // Field structure as defined in the IEEE 1149.1 (JTAG) specification, |
| 112 | // section 12.1.1. |
Michael Schaffner | d4d5d2f | 2020-04-17 15:45:55 -0700 | [diff] [blame] | 113 | localparam logic [31:0] JTAG_IDCODE = { |
Philipp Wagner | 086b703 | 2019-10-25 17:06:15 +0100 | [diff] [blame] | 114 | 4'h0, // Version |
| 115 | 16'h4F54, // Part Number: "OT" |
Philipp Wagner | f57964e | 2019-11-04 17:57:06 +0000 | [diff] [blame] | 116 | 11'h426, // Manufacturer Identity: Google |
Philipp Wagner | 086b703 | 2019-10-25 17:06:15 +0100 | [diff] [blame] | 117 | 1'b1 // (fixed) |
| 118 | }; |
| 119 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 120 | import tlul_pkg::*; |
| 121 | import top_pkg::*; |
| 122 | import tl_main_pkg::*; |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 123 | import top_earlgrey_pkg::*; |
Michael Schaffner | 40b6bd2 | 2020-10-27 19:52:23 -0700 | [diff] [blame] | 124 | // Compile-time random constants |
| 125 | import top_earlgrey_rnd_cnst_pkg::*; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 126 | |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 127 | // Signals |
Timothy Chen | 6925c6f | 2021-04-09 17:19:27 -0700 | [diff] [blame] | 128 | logic [54:0] mio_p2d; |
Timothy Chen | 0249a3a | 2021-04-15 11:26:31 -0700 | [diff] [blame] | 129 | logic [71:0] mio_d2p; |
| 130 | logic [71:0] mio_en_d2p; |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 131 | logic [23:0] dio_p2d; |
| 132 | logic [23:0] dio_d2p; |
| 133 | logic [23:0] dio_en_d2p; |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 134 | // uart0 |
| 135 | logic cio_uart0_rx_p2d; |
| 136 | logic cio_uart0_tx_d2p; |
| 137 | logic cio_uart0_tx_en_d2p; |
| 138 | // uart1 |
| 139 | logic cio_uart1_rx_p2d; |
| 140 | logic cio_uart1_tx_d2p; |
| 141 | logic cio_uart1_tx_en_d2p; |
| 142 | // uart2 |
| 143 | logic cio_uart2_rx_p2d; |
| 144 | logic cio_uart2_tx_d2p; |
| 145 | logic cio_uart2_tx_en_d2p; |
| 146 | // uart3 |
| 147 | logic cio_uart3_rx_p2d; |
| 148 | logic cio_uart3_tx_d2p; |
| 149 | logic cio_uart3_tx_en_d2p; |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 150 | // gpio |
| 151 | logic [31:0] cio_gpio_gpio_p2d; |
| 152 | logic [31:0] cio_gpio_gpio_d2p; |
| 153 | logic [31:0] cio_gpio_gpio_en_d2p; |
| 154 | // spi_device |
| 155 | logic cio_spi_device_sck_p2d; |
| 156 | logic cio_spi_device_csb_p2d; |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 157 | logic [3:0] cio_spi_device_sd_p2d; |
| 158 | logic [3:0] cio_spi_device_sd_d2p; |
| 159 | logic [3:0] cio_spi_device_sd_en_d2p; |
| 160 | // spi_host0 |
| 161 | logic [3:0] cio_spi_host0_sd_p2d; |
| 162 | logic cio_spi_host0_sck_d2p; |
| 163 | logic cio_spi_host0_sck_en_d2p; |
| 164 | logic cio_spi_host0_csb_d2p; |
| 165 | logic cio_spi_host0_csb_en_d2p; |
| 166 | logic [3:0] cio_spi_host0_sd_d2p; |
| 167 | logic [3:0] cio_spi_host0_sd_en_d2p; |
| 168 | // spi_host1 |
| 169 | logic [3:0] cio_spi_host1_sd_p2d; |
| 170 | logic cio_spi_host1_sck_d2p; |
| 171 | logic cio_spi_host1_sck_en_d2p; |
| 172 | logic cio_spi_host1_csb_d2p; |
| 173 | logic cio_spi_host1_csb_en_d2p; |
| 174 | logic [3:0] cio_spi_host1_sd_d2p; |
| 175 | logic [3:0] cio_spi_host1_sd_en_d2p; |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 176 | // i2c0 |
| 177 | logic cio_i2c0_sda_p2d; |
| 178 | logic cio_i2c0_scl_p2d; |
| 179 | logic cio_i2c0_sda_d2p; |
| 180 | logic cio_i2c0_sda_en_d2p; |
| 181 | logic cio_i2c0_scl_d2p; |
| 182 | logic cio_i2c0_scl_en_d2p; |
| 183 | // i2c1 |
| 184 | logic cio_i2c1_sda_p2d; |
| 185 | logic cio_i2c1_scl_p2d; |
| 186 | logic cio_i2c1_sda_d2p; |
| 187 | logic cio_i2c1_sda_en_d2p; |
| 188 | logic cio_i2c1_scl_d2p; |
| 189 | logic cio_i2c1_scl_en_d2p; |
| 190 | // i2c2 |
| 191 | logic cio_i2c2_sda_p2d; |
| 192 | logic cio_i2c2_scl_p2d; |
| 193 | logic cio_i2c2_sda_d2p; |
| 194 | logic cio_i2c2_sda_en_d2p; |
| 195 | logic cio_i2c2_scl_d2p; |
| 196 | logic cio_i2c2_scl_en_d2p; |
| 197 | // pattgen |
| 198 | logic cio_pattgen_pda0_tx_d2p; |
| 199 | logic cio_pattgen_pda0_tx_en_d2p; |
| 200 | logic cio_pattgen_pcl0_tx_d2p; |
| 201 | logic cio_pattgen_pcl0_tx_en_d2p; |
| 202 | logic cio_pattgen_pda1_tx_d2p; |
| 203 | logic cio_pattgen_pda1_tx_en_d2p; |
| 204 | logic cio_pattgen_pcl1_tx_d2p; |
| 205 | logic cio_pattgen_pcl1_tx_en_d2p; |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 206 | // rv_timer |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 207 | // usbdev |
| 208 | logic cio_usbdev_sense_p2d; |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 209 | logic cio_usbdev_d_p2d; |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 210 | logic cio_usbdev_dp_p2d; |
| 211 | logic cio_usbdev_dn_p2d; |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 212 | logic cio_usbdev_se0_d2p; |
| 213 | logic cio_usbdev_se0_en_d2p; |
Pirmin Vogel | fe6863b | 2020-05-11 17:30:54 +0200 | [diff] [blame] | 214 | logic cio_usbdev_dp_pullup_d2p; |
| 215 | logic cio_usbdev_dp_pullup_en_d2p; |
| 216 | logic cio_usbdev_dn_pullup_d2p; |
| 217 | logic cio_usbdev_dn_pullup_en_d2p; |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 218 | logic cio_usbdev_tx_mode_se_d2p; |
| 219 | logic cio_usbdev_tx_mode_se_en_d2p; |
| 220 | logic cio_usbdev_suspend_d2p; |
| 221 | logic cio_usbdev_suspend_en_d2p; |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 222 | logic cio_usbdev_rx_enable_d2p; |
| 223 | logic cio_usbdev_rx_enable_en_d2p; |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 224 | logic cio_usbdev_d_d2p; |
| 225 | logic cio_usbdev_d_en_d2p; |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 226 | logic cio_usbdev_dp_d2p; |
| 227 | logic cio_usbdev_dp_en_d2p; |
| 228 | logic cio_usbdev_dn_d2p; |
| 229 | logic cio_usbdev_dn_en_d2p; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 230 | // otp_ctrl |
| 231 | // lc_ctrl |
| 232 | // alert_handler |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 233 | // pwrmgr_aon |
| 234 | // rstmgr_aon |
| 235 | // clkmgr_aon |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 236 | // sysrst_ctrl_aon |
| 237 | logic cio_sysrst_ctrl_aon_ac_present_p2d; |
| 238 | logic cio_sysrst_ctrl_aon_ec_rst_in_l_p2d; |
| 239 | logic cio_sysrst_ctrl_aon_key0_in_p2d; |
| 240 | logic cio_sysrst_ctrl_aon_key1_in_p2d; |
| 241 | logic cio_sysrst_ctrl_aon_key2_in_p2d; |
| 242 | logic cio_sysrst_ctrl_aon_pwrb_in_p2d; |
| 243 | logic cio_sysrst_ctrl_aon_bat_disable_d2p; |
| 244 | logic cio_sysrst_ctrl_aon_bat_disable_en_d2p; |
| 245 | logic cio_sysrst_ctrl_aon_ec_rst_out_l_d2p; |
| 246 | logic cio_sysrst_ctrl_aon_ec_rst_out_l_en_d2p; |
| 247 | logic cio_sysrst_ctrl_aon_key0_out_d2p; |
| 248 | logic cio_sysrst_ctrl_aon_key0_out_en_d2p; |
| 249 | logic cio_sysrst_ctrl_aon_key1_out_d2p; |
| 250 | logic cio_sysrst_ctrl_aon_key1_out_en_d2p; |
| 251 | logic cio_sysrst_ctrl_aon_key2_out_d2p; |
| 252 | logic cio_sysrst_ctrl_aon_key2_out_en_d2p; |
| 253 | logic cio_sysrst_ctrl_aon_pwrb_out_d2p; |
| 254 | logic cio_sysrst_ctrl_aon_pwrb_out_en_d2p; |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 255 | // adc_ctrl_aon |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 256 | // pwm_aon |
| 257 | logic [5:0] cio_pwm_aon_pwm_d2p; |
| 258 | logic [5:0] cio_pwm_aon_pwm_en_d2p; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 259 | // pinmux_aon |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 260 | // aon_timer_aon |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 261 | // sensor_ctrl_aon |
Timothy Chen | 0249a3a | 2021-04-15 11:26:31 -0700 | [diff] [blame] | 262 | logic [8:0] cio_sensor_ctrl_aon_ast_debug_out_d2p; |
| 263 | logic [8:0] cio_sensor_ctrl_aon_ast_debug_out_en_d2p; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 264 | // sram_ctrl_ret_aon |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 265 | // flash_ctrl |
Timothy Chen | 6a34b6e | 2021-02-22 11:33:11 -0800 | [diff] [blame] | 266 | logic cio_flash_ctrl_tck_p2d; |
| 267 | logic cio_flash_ctrl_tms_p2d; |
| 268 | logic cio_flash_ctrl_tdi_p2d; |
| 269 | logic cio_flash_ctrl_tdo_d2p; |
| 270 | logic cio_flash_ctrl_tdo_en_d2p; |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 271 | // rv_plic |
| 272 | // aes |
| 273 | // hmac |
| 274 | // kmac |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 275 | // keymgr |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 276 | // csrng |
| 277 | // entropy_src |
| 278 | // edn0 |
| 279 | // edn1 |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 280 | // sram_ctrl_main |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 281 | // otbn |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 282 | // rom_ctrl |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 283 | |
| 284 | |
Mark Branstad | 3323636 | 2021-05-12 14:37:41 -0700 | [diff] [blame] | 285 | logic [179:0] intr_vector; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 286 | // Interrupt source list |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 287 | logic intr_uart0_tx_watermark; |
| 288 | logic intr_uart0_rx_watermark; |
| 289 | logic intr_uart0_tx_empty; |
| 290 | logic intr_uart0_rx_overflow; |
| 291 | logic intr_uart0_rx_frame_err; |
| 292 | logic intr_uart0_rx_break_err; |
| 293 | logic intr_uart0_rx_timeout; |
| 294 | logic intr_uart0_rx_parity_err; |
| 295 | logic intr_uart1_tx_watermark; |
| 296 | logic intr_uart1_rx_watermark; |
| 297 | logic intr_uart1_tx_empty; |
| 298 | logic intr_uart1_rx_overflow; |
| 299 | logic intr_uart1_rx_frame_err; |
| 300 | logic intr_uart1_rx_break_err; |
| 301 | logic intr_uart1_rx_timeout; |
| 302 | logic intr_uart1_rx_parity_err; |
| 303 | logic intr_uart2_tx_watermark; |
| 304 | logic intr_uart2_rx_watermark; |
| 305 | logic intr_uart2_tx_empty; |
| 306 | logic intr_uart2_rx_overflow; |
| 307 | logic intr_uart2_rx_frame_err; |
| 308 | logic intr_uart2_rx_break_err; |
| 309 | logic intr_uart2_rx_timeout; |
| 310 | logic intr_uart2_rx_parity_err; |
| 311 | logic intr_uart3_tx_watermark; |
| 312 | logic intr_uart3_rx_watermark; |
| 313 | logic intr_uart3_tx_empty; |
| 314 | logic intr_uart3_rx_overflow; |
| 315 | logic intr_uart3_rx_frame_err; |
| 316 | logic intr_uart3_rx_break_err; |
| 317 | logic intr_uart3_rx_timeout; |
| 318 | logic intr_uart3_rx_parity_err; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 319 | logic [31:0] intr_gpio_gpio; |
Eunchan Kim | 8c57fe3 | 2019-09-02 21:14:24 -0700 | [diff] [blame] | 320 | logic intr_spi_device_rxf; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 321 | logic intr_spi_device_rxlvl; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 322 | logic intr_spi_device_txlvl; |
| 323 | logic intr_spi_device_rxerr; |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 324 | logic intr_spi_device_rxoverflow; |
| 325 | logic intr_spi_device_txunderflow; |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 326 | logic intr_spi_host0_error; |
| 327 | logic intr_spi_host0_spi_event; |
| 328 | logic intr_spi_host1_error; |
| 329 | logic intr_spi_host1_spi_event; |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 330 | logic intr_i2c0_fmt_watermark; |
| 331 | logic intr_i2c0_rx_watermark; |
| 332 | logic intr_i2c0_fmt_overflow; |
| 333 | logic intr_i2c0_rx_overflow; |
| 334 | logic intr_i2c0_nak; |
| 335 | logic intr_i2c0_scl_interference; |
| 336 | logic intr_i2c0_sda_interference; |
| 337 | logic intr_i2c0_stretch_timeout; |
| 338 | logic intr_i2c0_sda_unstable; |
| 339 | logic intr_i2c0_trans_complete; |
| 340 | logic intr_i2c0_tx_empty; |
| 341 | logic intr_i2c0_tx_nonempty; |
| 342 | logic intr_i2c0_tx_overflow; |
| 343 | logic intr_i2c0_acq_overflow; |
| 344 | logic intr_i2c0_ack_stop; |
| 345 | logic intr_i2c0_host_timeout; |
| 346 | logic intr_i2c1_fmt_watermark; |
| 347 | logic intr_i2c1_rx_watermark; |
| 348 | logic intr_i2c1_fmt_overflow; |
| 349 | logic intr_i2c1_rx_overflow; |
| 350 | logic intr_i2c1_nak; |
| 351 | logic intr_i2c1_scl_interference; |
| 352 | logic intr_i2c1_sda_interference; |
| 353 | logic intr_i2c1_stretch_timeout; |
| 354 | logic intr_i2c1_sda_unstable; |
| 355 | logic intr_i2c1_trans_complete; |
| 356 | logic intr_i2c1_tx_empty; |
| 357 | logic intr_i2c1_tx_nonempty; |
| 358 | logic intr_i2c1_tx_overflow; |
| 359 | logic intr_i2c1_acq_overflow; |
| 360 | logic intr_i2c1_ack_stop; |
| 361 | logic intr_i2c1_host_timeout; |
| 362 | logic intr_i2c2_fmt_watermark; |
| 363 | logic intr_i2c2_rx_watermark; |
| 364 | logic intr_i2c2_fmt_overflow; |
| 365 | logic intr_i2c2_rx_overflow; |
| 366 | logic intr_i2c2_nak; |
| 367 | logic intr_i2c2_scl_interference; |
| 368 | logic intr_i2c2_sda_interference; |
| 369 | logic intr_i2c2_stretch_timeout; |
| 370 | logic intr_i2c2_sda_unstable; |
| 371 | logic intr_i2c2_trans_complete; |
| 372 | logic intr_i2c2_tx_empty; |
| 373 | logic intr_i2c2_tx_nonempty; |
| 374 | logic intr_i2c2_tx_overflow; |
| 375 | logic intr_i2c2_acq_overflow; |
| 376 | logic intr_i2c2_ack_stop; |
| 377 | logic intr_i2c2_host_timeout; |
| 378 | logic intr_pattgen_done_ch0; |
| 379 | logic intr_pattgen_done_ch1; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 380 | logic intr_rv_timer_timer_expired_0_0; |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 381 | logic intr_usbdev_pkt_received; |
| 382 | logic intr_usbdev_pkt_sent; |
| 383 | logic intr_usbdev_disconnected; |
| 384 | logic intr_usbdev_host_lost; |
| 385 | logic intr_usbdev_link_reset; |
| 386 | logic intr_usbdev_link_suspend; |
| 387 | logic intr_usbdev_link_resume; |
| 388 | logic intr_usbdev_av_empty; |
| 389 | logic intr_usbdev_rx_full; |
| 390 | logic intr_usbdev_av_overflow; |
| 391 | logic intr_usbdev_link_in_err; |
| 392 | logic intr_usbdev_rx_crc_err; |
| 393 | logic intr_usbdev_rx_pid_err; |
| 394 | logic intr_usbdev_rx_bitstuff_err; |
| 395 | logic intr_usbdev_frame; |
| 396 | logic intr_usbdev_connected; |
Stefan Lippuner | 207b1a6 | 2020-11-10 09:25:53 +0100 | [diff] [blame] | 397 | logic intr_usbdev_link_out_err; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 398 | logic intr_otp_ctrl_otp_operation_done; |
| 399 | logic intr_otp_ctrl_otp_error; |
| 400 | logic intr_alert_handler_classa; |
| 401 | logic intr_alert_handler_classb; |
| 402 | logic intr_alert_handler_classc; |
| 403 | logic intr_alert_handler_classd; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 404 | logic intr_pwrmgr_aon_wakeup; |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 405 | logic intr_sysrst_ctrl_aon_sysrst_ctrl; |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 406 | logic intr_adc_ctrl_aon_debug_cable; |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 407 | logic intr_aon_timer_aon_wkup_timer_expired; |
| 408 | logic intr_aon_timer_aon_wdog_timer_bark; |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 409 | logic intr_flash_ctrl_prog_empty; |
| 410 | logic intr_flash_ctrl_prog_lvl; |
| 411 | logic intr_flash_ctrl_rd_full; |
| 412 | logic intr_flash_ctrl_rd_lvl; |
| 413 | logic intr_flash_ctrl_op_done; |
Timothy Chen | aad796e | 2021-03-24 17:21:33 -0700 | [diff] [blame] | 414 | logic intr_flash_ctrl_err; |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 415 | logic intr_hmac_hmac_done; |
| 416 | logic intr_hmac_fifo_empty; |
| 417 | logic intr_hmac_hmac_err; |
| 418 | logic intr_kmac_kmac_done; |
| 419 | logic intr_kmac_fifo_empty; |
| 420 | logic intr_kmac_kmac_err; |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 421 | logic intr_keymgr_op_done; |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 422 | logic intr_csrng_cs_cmd_req_done; |
| 423 | logic intr_csrng_cs_entropy_req; |
| 424 | logic intr_csrng_cs_hw_inst_exc; |
Mark Branstad | d65d139 | 2021-02-10 13:15:39 -0800 | [diff] [blame] | 425 | logic intr_csrng_cs_fatal_err; |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 426 | logic intr_entropy_src_es_entropy_valid; |
| 427 | logic intr_entropy_src_es_health_test_failed; |
Mark Branstad | 3323636 | 2021-05-12 14:37:41 -0700 | [diff] [blame] | 428 | logic intr_entropy_src_es_observe_fifo_ready; |
Mark Branstad | 789ea02 | 2021-02-12 14:35:42 -0800 | [diff] [blame] | 429 | logic intr_entropy_src_es_fatal_err; |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 430 | logic intr_edn0_edn_cmd_req_done; |
Mark Branstad | 1e7fa2e | 2021-02-18 08:41:37 -0800 | [diff] [blame] | 431 | logic intr_edn0_edn_fatal_err; |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 432 | logic intr_edn1_edn_cmd_req_done; |
Mark Branstad | 1e7fa2e | 2021-02-18 08:41:37 -0800 | [diff] [blame] | 433 | logic intr_edn1_edn_fatal_err; |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 434 | logic intr_otbn_done; |
Michael Schaffner | 666dde1 | 2019-10-25 11:57:54 -0700 | [diff] [blame] | 435 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 436 | |
Michael Schaffner | d4d5d2f | 2020-04-17 15:45:55 -0700 | [diff] [blame] | 437 | |
Michael Schaffner | 1ba89b8 | 2019-11-03 14:25:54 -0800 | [diff] [blame] | 438 | logic [0:0] irq_plic; |
| 439 | logic [0:0] msip; |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 440 | logic [7:0] irq_id[1]; |
| 441 | logic [7:0] unused_irq_id[1]; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 442 | |
Michael Schaffner | 1ba89b8 | 2019-11-03 14:25:54 -0800 | [diff] [blame] | 443 | // this avoids lint errors |
| 444 | assign unused_irq_id = irq_id; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 445 | |
Michael Schaffner | 666dde1 | 2019-10-25 11:57:54 -0700 | [diff] [blame] | 446 | // Alert list |
Philipp Wagner | 79725e1 | 2020-03-03 23:34:38 +0000 | [diff] [blame] | 447 | prim_alert_pkg::alert_tx_t [alert_pkg::NAlerts-1:0] alert_tx; |
| 448 | prim_alert_pkg::alert_rx_t [alert_pkg::NAlerts-1:0] alert_rx; |
Michael Schaffner | 666dde1 | 2019-10-25 11:57:54 -0700 | [diff] [blame] | 449 | |
| 450 | |
Eunchan Kim | 40098a9 | 2020-04-17 12:22:36 -0700 | [diff] [blame] | 451 | // define inter-module signals |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 452 | prim_ram_1p_pkg::ram_1p_cfg_t ast_ram_1p_cfg; |
| 453 | prim_ram_2p_pkg::ram_2p_cfg_t ast_ram_2p_cfg; |
| 454 | prim_rom_pkg::rom_cfg_t ast_rom_cfg; |
Timothy Chen | ccf343d | 2020-12-04 20:38:15 -0800 | [diff] [blame] | 455 | alert_pkg::alert_crashdump_t alert_handler_crashdump; |
Timothy Chen | c0d32d9 | 2020-12-16 18:01:22 -0800 | [diff] [blame] | 456 | prim_esc_pkg::esc_rx_t [3:0] alert_handler_esc_rx; |
| 457 | prim_esc_pkg::esc_tx_t [3:0] alert_handler_esc_tx; |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 458 | csrng_pkg::csrng_req_t [1:0] csrng_csrng_cmd_req; |
| 459 | csrng_pkg::csrng_rsp_t [1:0] csrng_csrng_cmd_rsp; |
Timothy Chen | ccf343d | 2020-12-04 20:38:15 -0800 | [diff] [blame] | 460 | entropy_src_pkg::entropy_src_hw_if_req_t csrng_entropy_src_hw_if_req; |
| 461 | entropy_src_pkg::entropy_src_hw_if_rsp_t csrng_entropy_src_hw_if_rsp; |
Mark Branstad | de7eba3 | 2021-03-22 14:18:38 -0700 | [diff] [blame] | 462 | entropy_src_pkg::cs_aes_halt_req_t csrng_cs_aes_halt_req; |
| 463 | entropy_src_pkg::cs_aes_halt_rsp_t csrng_cs_aes_halt_rsp; |
Eunchan Kim | 40098a9 | 2020-04-17 12:22:36 -0700 | [diff] [blame] | 464 | flash_ctrl_pkg::flash_req_t flash_ctrl_flash_req; |
| 465 | flash_ctrl_pkg::flash_rsp_t flash_ctrl_flash_rsp; |
Timothy Chen | ccf343d | 2020-12-04 20:38:15 -0800 | [diff] [blame] | 466 | flash_ctrl_pkg::keymgr_flash_t flash_ctrl_keymgr; |
| 467 | otp_ctrl_pkg::flash_otp_key_req_t flash_ctrl_otp_req; |
| 468 | otp_ctrl_pkg::flash_otp_key_rsp_t flash_ctrl_otp_rsp; |
Timothy Chen | 3cb138f | 2020-12-15 20:35:03 -0800 | [diff] [blame] | 469 | lc_ctrl_pkg::lc_tx_t flash_ctrl_rma_req; |
| 470 | lc_ctrl_pkg::lc_tx_t flash_ctrl_rma_ack; |
| 471 | lc_ctrl_pkg::lc_flash_rma_seed_t flash_ctrl_rma_seed; |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 472 | sram_ctrl_pkg::sram_scr_req_t sram_ctrl_main_sram_scr_req; |
| 473 | sram_ctrl_pkg::sram_scr_rsp_t sram_ctrl_main_sram_scr_rsp; |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 474 | sram_ctrl_pkg::sram_scr_init_req_t sram_ctrl_main_sram_scr_init_req; |
| 475 | sram_ctrl_pkg::sram_scr_init_rsp_t sram_ctrl_main_sram_scr_init_rsp; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 476 | sram_ctrl_pkg::sram_scr_req_t sram_ctrl_ret_aon_sram_scr_req; |
| 477 | sram_ctrl_pkg::sram_scr_rsp_t sram_ctrl_ret_aon_sram_scr_rsp; |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 478 | sram_ctrl_pkg::sram_scr_init_req_t sram_ctrl_ret_aon_sram_scr_init_req; |
| 479 | sram_ctrl_pkg::sram_scr_init_rsp_t sram_ctrl_ret_aon_sram_scr_init_rsp; |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 480 | tlul_pkg::tl_instr_en_t sram_ctrl_main_en_ifetch; |
| 481 | tlul_pkg::tl_instr_en_t sram_ctrl_ret_aon_en_ifetch; |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 482 | logic ram_main_intg_error; |
| 483 | logic ram_ret_aon_intg_error; |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 484 | otp_ctrl_pkg::sram_otp_key_req_t [1:0] otp_ctrl_sram_otp_key_req; |
| 485 | otp_ctrl_pkg::sram_otp_key_rsp_t [1:0] otp_ctrl_sram_otp_key_rsp; |
Timothy Chen | 6efde1e | 2021-04-16 15:39:23 -0700 | [diff] [blame] | 486 | pwrmgr_pkg::pwr_flash_t pwrmgr_aon_pwr_flash; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 487 | pwrmgr_pkg::pwr_rst_req_t pwrmgr_aon_pwr_rst_req; |
| 488 | pwrmgr_pkg::pwr_rst_rsp_t pwrmgr_aon_pwr_rst_rsp; |
| 489 | pwrmgr_pkg::pwr_clk_req_t pwrmgr_aon_pwr_clk_req; |
| 490 | pwrmgr_pkg::pwr_clk_rsp_t pwrmgr_aon_pwr_clk_rsp; |
| 491 | pwrmgr_pkg::pwr_otp_req_t pwrmgr_aon_pwr_otp_req; |
| 492 | pwrmgr_pkg::pwr_otp_rsp_t pwrmgr_aon_pwr_otp_rsp; |
| 493 | pwrmgr_pkg::pwr_lc_req_t pwrmgr_aon_pwr_lc_req; |
| 494 | pwrmgr_pkg::pwr_lc_rsp_t pwrmgr_aon_pwr_lc_rsp; |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 495 | logic pwrmgr_aon_strap; |
| 496 | logic pwrmgr_aon_low_power; |
Timothy Chen | b2abc98 | 2021-04-20 10:56:23 -0700 | [diff] [blame] | 497 | rom_ctrl_pkg::pwrmgr_data_t rom_ctrl_pwrmgr_data; |
Timothy Chen | f625b0d | 2021-04-20 17:54:24 -0700 | [diff] [blame] | 498 | rom_ctrl_pkg::keymgr_data_t rom_ctrl_keymgr_data; |
Tom Roberts | c88e97f | 2021-03-04 13:38:20 +0000 | [diff] [blame] | 499 | ibex_pkg::crash_dump_t rv_core_ibex_crash_dump; |
Timothy Chen | c2b279a | 2021-01-14 18:53:34 -0800 | [diff] [blame] | 500 | logic usbdev_usb_out_of_rst; |
| 501 | logic usbdev_usb_aon_wake_en; |
| 502 | logic usbdev_usb_aon_wake_ack; |
| 503 | logic usbdev_usb_suspend; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 504 | usbdev_pkg::awk_state_t pinmux_aon_usb_state_debug; |
Greg Chadwick | cc0dd2a | 2021-03-10 15:55:58 +0000 | [diff] [blame] | 505 | edn_pkg::edn_req_t [6:0] edn0_edn_req; |
| 506 | edn_pkg::edn_rsp_t [6:0] edn0_edn_rsp; |
| 507 | edn_pkg::edn_req_t [6:0] edn1_edn_req; |
| 508 | edn_pkg::edn_rsp_t [6:0] edn1_edn_rsp; |
Timothy Chen | 77cc8b9 | 2020-12-05 09:19:14 -0800 | [diff] [blame] | 509 | otp_ctrl_pkg::otp_keymgr_key_t otp_ctrl_otp_keymgr_key; |
Eunchan Kim | e5d33b7 | 2020-11-03 14:34:16 -0800 | [diff] [blame] | 510 | keymgr_pkg::hw_key_req_t keymgr_kmac_key; |
Eunchan Kim | 4af433f | 2021-03-25 17:11:41 -0700 | [diff] [blame] | 511 | kmac_pkg::app_req_t [2:0] kmac_app_req; |
| 512 | kmac_pkg::app_rsp_t [2:0] kmac_app_rsp; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 513 | logic [3:0] clkmgr_aon_idle; |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 514 | jtag_pkg::jtag_req_t pinmux_aon_lc_jtag_req; |
| 515 | jtag_pkg::jtag_rsp_t pinmux_aon_lc_jtag_rsp; |
Michael Schaffner | 5f54587 | 2021-03-05 17:54:28 -0800 | [diff] [blame] | 516 | jtag_pkg::jtag_req_t pinmux_aon_rv_jtag_req; |
| 517 | jtag_pkg::jtag_rsp_t pinmux_aon_rv_jtag_rsp; |
Michael Schaffner | 6d3d6a0 | 2020-12-11 13:52:51 -0800 | [diff] [blame] | 518 | otp_ctrl_pkg::otp_lc_data_t otp_ctrl_otp_lc_data; |
| 519 | otp_ctrl_pkg::lc_otp_program_req_t lc_ctrl_lc_otp_program_req; |
| 520 | otp_ctrl_pkg::lc_otp_program_rsp_t lc_ctrl_lc_otp_program_rsp; |
Michael Schaffner | 6d3d6a0 | 2020-12-11 13:52:51 -0800 | [diff] [blame] | 521 | lc_ctrl_pkg::lc_keymgr_div_t lc_ctrl_lc_keymgr_div; |
| 522 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_dft_en; |
| 523 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_nvm_debug_en; |
| 524 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_hw_debug_en; |
| 525 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_cpu_en; |
Michael Schaffner | dc0c1e9 | 2021-03-02 14:41:31 -0800 | [diff] [blame] | 526 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_keymgr_en; |
Michael Schaffner | 6d3d6a0 | 2020-12-11 13:52:51 -0800 | [diff] [blame] | 527 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_escalate_en; |
Michael Schaffner | c506dc5 | 2020-12-22 21:07:17 -0800 | [diff] [blame] | 528 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_check_byp_en; |
Timothy Chen | fa60a60 | 2021-03-23 14:29:40 -0700 | [diff] [blame] | 529 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_clk_byp_req; |
Timothy Chen | 33c9078 | 2021-01-06 17:38:48 -0800 | [diff] [blame] | 530 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_clk_byp_ack; |
Michael Schaffner | 6d3d6a0 | 2020-12-11 13:52:51 -0800 | [diff] [blame] | 531 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_creator_seed_sw_rw_en; |
| 532 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_owner_seed_sw_rw_en; |
| 533 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_iso_part_sw_rd_en; |
| 534 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_iso_part_sw_wr_en; |
| 535 | lc_ctrl_pkg::lc_tx_t lc_ctrl_lc_seed_hw_rd_en; |
Martin Lueker-Boden | 553aece | 2021-04-23 17:00:45 -0700 | [diff] [blame] | 536 | spi_device_pkg::passthrough_req_t spi_device_passthrough_req; |
| 537 | spi_device_pkg::passthrough_rsp_t spi_device_passthrough_rsp; |
Timothy Chen | b74f612 | 2021-04-26 16:57:22 -0700 | [diff] [blame] | 538 | logic [4:0] pwrmgr_aon_wakeups; |
| 539 | logic [1:0] pwrmgr_aon_rstreqs; |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 540 | tlul_pkg::tl_h2d_t rom_ctrl_rom_tl_req; |
| 541 | tlul_pkg::tl_d2h_t rom_ctrl_rom_tl_rsp; |
| 542 | tlul_pkg::tl_h2d_t rom_ctrl_regs_tl_req; |
| 543 | tlul_pkg::tl_d2h_t rom_ctrl_regs_tl_rsp; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 544 | tlul_pkg::tl_h2d_t ram_main_tl_req; |
| 545 | tlul_pkg::tl_d2h_t ram_main_tl_rsp; |
| 546 | tlul_pkg::tl_h2d_t eflash_tl_req; |
| 547 | tlul_pkg::tl_d2h_t eflash_tl_rsp; |
| 548 | tlul_pkg::tl_h2d_t main_tl_peri_req; |
| 549 | tlul_pkg::tl_d2h_t main_tl_peri_rsp; |
Timothy Chen | 76eb883 | 2021-03-25 16:49:58 -0700 | [diff] [blame] | 550 | tlul_pkg::tl_h2d_t flash_ctrl_core_tl_req; |
| 551 | tlul_pkg::tl_d2h_t flash_ctrl_core_tl_rsp; |
| 552 | tlul_pkg::tl_h2d_t flash_ctrl_prim_tl_req; |
| 553 | tlul_pkg::tl_d2h_t flash_ctrl_prim_tl_rsp; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 554 | tlul_pkg::tl_h2d_t hmac_tl_req; |
| 555 | tlul_pkg::tl_d2h_t hmac_tl_rsp; |
Eunchan Kim | e5d33b7 | 2020-11-03 14:34:16 -0800 | [diff] [blame] | 556 | tlul_pkg::tl_h2d_t kmac_tl_req; |
| 557 | tlul_pkg::tl_d2h_t kmac_tl_rsp; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 558 | tlul_pkg::tl_h2d_t aes_tl_req; |
| 559 | tlul_pkg::tl_d2h_t aes_tl_rsp; |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 560 | tlul_pkg::tl_h2d_t entropy_src_tl_req; |
| 561 | tlul_pkg::tl_d2h_t entropy_src_tl_rsp; |
| 562 | tlul_pkg::tl_h2d_t csrng_tl_req; |
| 563 | tlul_pkg::tl_d2h_t csrng_tl_rsp; |
| 564 | tlul_pkg::tl_h2d_t edn0_tl_req; |
| 565 | tlul_pkg::tl_d2h_t edn0_tl_rsp; |
| 566 | tlul_pkg::tl_h2d_t edn1_tl_req; |
| 567 | tlul_pkg::tl_d2h_t edn1_tl_rsp; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 568 | tlul_pkg::tl_h2d_t rv_plic_tl_req; |
| 569 | tlul_pkg::tl_d2h_t rv_plic_tl_rsp; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 570 | tlul_pkg::tl_h2d_t otbn_tl_req; |
| 571 | tlul_pkg::tl_d2h_t otbn_tl_rsp; |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 572 | tlul_pkg::tl_h2d_t keymgr_tl_req; |
| 573 | tlul_pkg::tl_d2h_t keymgr_tl_rsp; |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 574 | tlul_pkg::tl_h2d_t sram_ctrl_main_tl_req; |
| 575 | tlul_pkg::tl_d2h_t sram_ctrl_main_tl_rsp; |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 576 | tlul_pkg::tl_h2d_t uart0_tl_req; |
| 577 | tlul_pkg::tl_d2h_t uart0_tl_rsp; |
| 578 | tlul_pkg::tl_h2d_t uart1_tl_req; |
| 579 | tlul_pkg::tl_d2h_t uart1_tl_rsp; |
| 580 | tlul_pkg::tl_h2d_t uart2_tl_req; |
| 581 | tlul_pkg::tl_d2h_t uart2_tl_rsp; |
| 582 | tlul_pkg::tl_h2d_t uart3_tl_req; |
| 583 | tlul_pkg::tl_d2h_t uart3_tl_rsp; |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 584 | tlul_pkg::tl_h2d_t i2c0_tl_req; |
| 585 | tlul_pkg::tl_d2h_t i2c0_tl_rsp; |
| 586 | tlul_pkg::tl_h2d_t i2c1_tl_req; |
| 587 | tlul_pkg::tl_d2h_t i2c1_tl_rsp; |
| 588 | tlul_pkg::tl_h2d_t i2c2_tl_req; |
| 589 | tlul_pkg::tl_d2h_t i2c2_tl_rsp; |
| 590 | tlul_pkg::tl_h2d_t pattgen_tl_req; |
| 591 | tlul_pkg::tl_d2h_t pattgen_tl_rsp; |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 592 | tlul_pkg::tl_h2d_t pwm_aon_tl_req; |
| 593 | tlul_pkg::tl_d2h_t pwm_aon_tl_rsp; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 594 | tlul_pkg::tl_h2d_t gpio_tl_req; |
| 595 | tlul_pkg::tl_d2h_t gpio_tl_rsp; |
| 596 | tlul_pkg::tl_h2d_t spi_device_tl_req; |
| 597 | tlul_pkg::tl_d2h_t spi_device_tl_rsp; |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 598 | tlul_pkg::tl_h2d_t spi_host0_tl_req; |
| 599 | tlul_pkg::tl_d2h_t spi_host0_tl_rsp; |
| 600 | tlul_pkg::tl_h2d_t spi_host1_tl_req; |
| 601 | tlul_pkg::tl_d2h_t spi_host1_tl_rsp; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 602 | tlul_pkg::tl_h2d_t rv_timer_tl_req; |
| 603 | tlul_pkg::tl_d2h_t rv_timer_tl_rsp; |
| 604 | tlul_pkg::tl_h2d_t usbdev_tl_req; |
| 605 | tlul_pkg::tl_d2h_t usbdev_tl_rsp; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 606 | tlul_pkg::tl_h2d_t pwrmgr_aon_tl_req; |
| 607 | tlul_pkg::tl_d2h_t pwrmgr_aon_tl_rsp; |
| 608 | tlul_pkg::tl_h2d_t rstmgr_aon_tl_req; |
| 609 | tlul_pkg::tl_d2h_t rstmgr_aon_tl_rsp; |
| 610 | tlul_pkg::tl_h2d_t clkmgr_aon_tl_req; |
| 611 | tlul_pkg::tl_d2h_t clkmgr_aon_tl_rsp; |
| 612 | tlul_pkg::tl_h2d_t pinmux_aon_tl_req; |
| 613 | tlul_pkg::tl_d2h_t pinmux_aon_tl_rsp; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 614 | tlul_pkg::tl_h2d_t ram_ret_aon_tl_req; |
| 615 | tlul_pkg::tl_d2h_t ram_ret_aon_tl_rsp; |
Michael Schaffner | a304560 | 2020-10-06 19:19:46 -0700 | [diff] [blame] | 616 | tlul_pkg::tl_h2d_t otp_ctrl_tl_req; |
| 617 | tlul_pkg::tl_d2h_t otp_ctrl_tl_rsp; |
Michael Schaffner | 6d3d6a0 | 2020-12-11 13:52:51 -0800 | [diff] [blame] | 618 | tlul_pkg::tl_h2d_t lc_ctrl_tl_req; |
| 619 | tlul_pkg::tl_d2h_t lc_ctrl_tl_rsp; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 620 | tlul_pkg::tl_h2d_t sensor_ctrl_aon_tl_req; |
| 621 | tlul_pkg::tl_d2h_t sensor_ctrl_aon_tl_rsp; |
Michael Schaffner | d1fc7d1 | 2020-12-21 12:52:23 -0800 | [diff] [blame] | 622 | tlul_pkg::tl_h2d_t alert_handler_tl_req; |
| 623 | tlul_pkg::tl_d2h_t alert_handler_tl_rsp; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 624 | tlul_pkg::tl_h2d_t sram_ctrl_ret_aon_tl_req; |
| 625 | tlul_pkg::tl_d2h_t sram_ctrl_ret_aon_tl_rsp; |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 626 | tlul_pkg::tl_h2d_t aon_timer_aon_tl_req; |
| 627 | tlul_pkg::tl_d2h_t aon_timer_aon_tl_rsp; |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 628 | tlul_pkg::tl_h2d_t sysrst_ctrl_aon_tl_req; |
| 629 | tlul_pkg::tl_d2h_t sysrst_ctrl_aon_tl_rsp; |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 630 | tlul_pkg::tl_h2d_t adc_ctrl_aon_tl_req; |
| 631 | tlul_pkg::tl_d2h_t adc_ctrl_aon_tl_rsp; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 632 | rstmgr_pkg::rstmgr_out_t rstmgr_aon_resets; |
| 633 | rstmgr_pkg::rstmgr_cpu_t rstmgr_aon_cpu; |
| 634 | pwrmgr_pkg::pwr_cpu_t pwrmgr_aon_pwr_cpu; |
| 635 | clkmgr_pkg::clkmgr_out_t clkmgr_aon_clocks; |
Timothy Chen | b2abc98 | 2021-04-20 10:56:23 -0700 | [diff] [blame] | 636 | lc_ctrl_pkg::lc_tx_t pwrmgr_aon_fetch_en; |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 637 | tlul_pkg::tl_h2d_t main_tl_corei_req; |
| 638 | tlul_pkg::tl_d2h_t main_tl_corei_rsp; |
| 639 | tlul_pkg::tl_h2d_t main_tl_cored_req; |
| 640 | tlul_pkg::tl_d2h_t main_tl_cored_rsp; |
| 641 | tlul_pkg::tl_h2d_t main_tl_dm_sba_req; |
| 642 | tlul_pkg::tl_d2h_t main_tl_dm_sba_rsp; |
| 643 | tlul_pkg::tl_h2d_t main_tl_debug_mem_req; |
| 644 | tlul_pkg::tl_d2h_t main_tl_debug_mem_rsp; |
Michael Schaffner | fca4382 | 2021-05-20 13:35:56 -0700 | [diff] [blame] | 645 | jtag_pkg::jtag_req_t pinmux_aon_dft_jtag_req; |
| 646 | jtag_pkg::jtag_rsp_t pinmux_aon_dft_jtag_rsp; |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 647 | otp_ctrl_part_pkg::otp_hw_cfg_t otp_ctrl_otp_hw_cfg; |
| 648 | otp_ctrl_pkg::otp_en_t csrng_otp_en_csrng_sw_app_read; |
| 649 | otp_ctrl_pkg::otp_en_t entropy_src_otp_en_entropy_src_fw_read; |
Michael Schaffner | d59fd18 | 2021-06-03 19:36:44 -0700 | [diff] [blame] | 650 | otp_ctrl_pkg::otp_en_t entropy_src_otp_en_entropy_src_fw_over; |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 651 | otp_ctrl_pkg::otp_device_id_t lc_ctrl_otp_device_id; |
| 652 | otp_ctrl_pkg::otp_device_id_t keymgr_otp_device_id; |
| 653 | otp_ctrl_pkg::otp_en_t sram_ctrl_main_otp_en_sram_ifetch; |
| 654 | otp_ctrl_pkg::otp_en_t sram_ctrl_ret_aon_otp_en_sram_ifetch; |
Pirmin Vogel | a2d411d | 2020-07-13 17:33:42 +0200 | [diff] [blame] | 655 | |
Timothy Chen | 075ed37 | 2021-02-04 14:42:29 -0800 | [diff] [blame] | 656 | // define mixed connection to port |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 657 | assign edn0_edn_req[2] = ast_edn_req_i; |
| 658 | assign ast_edn_rsp_o = edn0_edn_rsp[2]; |
| 659 | assign ast_lc_dft_en_o = lc_ctrl_lc_dft_en; |
| 660 | assign ast_ram_1p_cfg = ram_1p_cfg_i; |
| 661 | assign ast_ram_2p_cfg = ram_2p_cfg_i; |
| 662 | assign ast_rom_cfg = rom_cfg_i; |
Timothy Chen | 075ed37 | 2021-02-04 14:42:29 -0800 | [diff] [blame] | 663 | |
Timothy Chen | 90b8242 | 2021-02-03 23:45:21 -0800 | [diff] [blame] | 664 | // define partial inter-module tie-off |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 665 | edn_pkg::edn_rsp_t unused_edn1_edn_rsp1; |
| 666 | edn_pkg::edn_rsp_t unused_edn1_edn_rsp2; |
Timothy Chen | 44b404e | 2021-02-05 13:06:01 -0800 | [diff] [blame] | 667 | edn_pkg::edn_rsp_t unused_edn1_edn_rsp3; |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 668 | edn_pkg::edn_rsp_t unused_edn1_edn_rsp4; |
| 669 | edn_pkg::edn_rsp_t unused_edn1_edn_rsp5; |
Greg Chadwick | cc0dd2a | 2021-03-10 15:55:58 +0000 | [diff] [blame] | 670 | edn_pkg::edn_rsp_t unused_edn1_edn_rsp6; |
Timothy Chen | 90b8242 | 2021-02-03 23:45:21 -0800 | [diff] [blame] | 671 | |
| 672 | // assign partial inter-module tie-off |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 673 | assign unused_edn1_edn_rsp1 = edn1_edn_rsp[1]; |
| 674 | assign unused_edn1_edn_rsp2 = edn1_edn_rsp[2]; |
Timothy Chen | 44b404e | 2021-02-05 13:06:01 -0800 | [diff] [blame] | 675 | assign unused_edn1_edn_rsp3 = edn1_edn_rsp[3]; |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 676 | assign unused_edn1_edn_rsp4 = edn1_edn_rsp[4]; |
| 677 | assign unused_edn1_edn_rsp5 = edn1_edn_rsp[5]; |
Greg Chadwick | cc0dd2a | 2021-03-10 15:55:58 +0000 | [diff] [blame] | 678 | assign unused_edn1_edn_rsp6 = edn1_edn_rsp[6]; |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 679 | assign edn1_edn_req[1] = '0; |
| 680 | assign edn1_edn_req[2] = '0; |
Timothy Chen | 44b404e | 2021-02-05 13:06:01 -0800 | [diff] [blame] | 681 | assign edn1_edn_req[3] = '0; |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 682 | assign edn1_edn_req[4] = '0; |
| 683 | assign edn1_edn_req[5] = '0; |
Greg Chadwick | cc0dd2a | 2021-03-10 15:55:58 +0000 | [diff] [blame] | 684 | assign edn1_edn_req[6] = '0; |
Timothy Chen | 90b8242 | 2021-02-03 23:45:21 -0800 | [diff] [blame] | 685 | |
Timothy Chen | 80bd8aa | 2019-10-04 15:57:11 -0700 | [diff] [blame] | 686 | |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 687 | // OTP HW_CFG Broadcast signals. |
| 688 | // TODO(#6713): The actual struct breakout and mapping currently needs to |
| 689 | // be performed by hand. |
| 690 | assign csrng_otp_en_csrng_sw_app_read = otp_ctrl_otp_hw_cfg.data.en_csrng_sw_app_read; |
| 691 | assign entropy_src_otp_en_entropy_src_fw_read = otp_ctrl_otp_hw_cfg.data.en_entropy_src_fw_read; |
Michael Schaffner | d59fd18 | 2021-06-03 19:36:44 -0700 | [diff] [blame] | 692 | assign entropy_src_otp_en_entropy_src_fw_over = otp_ctrl_otp_hw_cfg.data.en_entropy_src_fw_over; |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 693 | assign sram_ctrl_main_otp_en_sram_ifetch = otp_ctrl_otp_hw_cfg.data.en_sram_ifetch; |
| 694 | assign sram_ctrl_ret_aon_otp_en_sram_ifetch = otp_ctrl_otp_hw_cfg.data.en_sram_ifetch; |
| 695 | assign lc_ctrl_otp_device_id = otp_ctrl_otp_hw_cfg.data.device_id; |
| 696 | assign keymgr_otp_device_id = otp_ctrl_otp_hw_cfg.data.device_id; |
| 697 | |
| 698 | logic unused_otp_hw_cfg_bits; |
| 699 | assign unused_otp_hw_cfg_bits = ^{ |
| 700 | otp_ctrl_otp_hw_cfg.valid, |
| 701 | otp_ctrl_otp_hw_cfg.data.hw_cfg_digest, |
| 702 | otp_ctrl_otp_hw_cfg.data.unallocated |
| 703 | }; |
| 704 | |
Timothy Chen | 3b50be1 | 2020-11-11 13:19:59 -0800 | [diff] [blame] | 705 | // Unused reset signals |
| 706 | logic unused_d0_rst_por_aon; |
| 707 | logic unused_d0_rst_por; |
| 708 | logic unused_d0_rst_por_io; |
| 709 | logic unused_d0_rst_por_io_div2; |
| 710 | logic unused_d0_rst_por_io_div4; |
| 711 | logic unused_d0_rst_por_usb; |
| 712 | logic unused_daon_rst_lc; |
| 713 | logic unused_daon_rst_lc_io_div4; |
Timothy Chen | ac6af87 | 2021-02-22 17:17:52 -0800 | [diff] [blame] | 714 | logic unused_daon_rst_sys; |
Timothy Chen | 3b50be1 | 2020-11-11 13:19:59 -0800 | [diff] [blame] | 715 | logic unused_daon_rst_spi_device; |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 716 | logic unused_daon_rst_spi_host0; |
| 717 | logic unused_daon_rst_spi_host1; |
Timothy Chen | c2b279a | 2021-01-14 18:53:34 -0800 | [diff] [blame] | 718 | logic unused_daon_rst_usb; |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 719 | logic unused_daon_rst_i2c0; |
| 720 | logic unused_daon_rst_i2c1; |
| 721 | logic unused_daon_rst_i2c2; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 722 | assign unused_d0_rst_por_aon = rstmgr_aon_resets.rst_por_aon_n[rstmgr_pkg::Domain0Sel]; |
| 723 | assign unused_d0_rst_por = rstmgr_aon_resets.rst_por_n[rstmgr_pkg::Domain0Sel]; |
| 724 | assign unused_d0_rst_por_io = rstmgr_aon_resets.rst_por_io_n[rstmgr_pkg::Domain0Sel]; |
| 725 | assign unused_d0_rst_por_io_div2 = rstmgr_aon_resets.rst_por_io_div2_n[rstmgr_pkg::Domain0Sel]; |
| 726 | assign unused_d0_rst_por_io_div4 = rstmgr_aon_resets.rst_por_io_div4_n[rstmgr_pkg::Domain0Sel]; |
| 727 | assign unused_d0_rst_por_usb = rstmgr_aon_resets.rst_por_usb_n[rstmgr_pkg::Domain0Sel]; |
| 728 | assign unused_daon_rst_lc = rstmgr_aon_resets.rst_lc_n[rstmgr_pkg::DomainAonSel]; |
| 729 | assign unused_daon_rst_lc_io_div4 = rstmgr_aon_resets.rst_lc_io_div4_n[rstmgr_pkg::DomainAonSel]; |
Timothy Chen | ac6af87 | 2021-02-22 17:17:52 -0800 | [diff] [blame] | 730 | assign unused_daon_rst_sys = rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::DomainAonSel]; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 731 | assign unused_daon_rst_spi_device = rstmgr_aon_resets.rst_spi_device_n[rstmgr_pkg::DomainAonSel]; |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 732 | assign unused_daon_rst_spi_host0 = rstmgr_aon_resets.rst_spi_host0_n[rstmgr_pkg::DomainAonSel]; |
| 733 | assign unused_daon_rst_spi_host1 = rstmgr_aon_resets.rst_spi_host1_n[rstmgr_pkg::DomainAonSel]; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 734 | assign unused_daon_rst_usb = rstmgr_aon_resets.rst_usb_n[rstmgr_pkg::DomainAonSel]; |
| 735 | assign unused_daon_rst_i2c0 = rstmgr_aon_resets.rst_i2c0_n[rstmgr_pkg::DomainAonSel]; |
| 736 | assign unused_daon_rst_i2c1 = rstmgr_aon_resets.rst_i2c1_n[rstmgr_pkg::DomainAonSel]; |
| 737 | assign unused_daon_rst_i2c2 = rstmgr_aon_resets.rst_i2c2_n[rstmgr_pkg::DomainAonSel]; |
Timothy Chen | 3b50be1 | 2020-11-11 13:19:59 -0800 | [diff] [blame] | 738 | |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 739 | // Non-debug module reset == reset for everything except for the debug module |
| 740 | logic ndmreset_req; |
| 741 | |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 742 | // debug request from rv_dm to core |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 743 | logic debug_req; |
| 744 | |
| 745 | // processor core |
| 746 | rv_core_ibex #( |
Philipp Wagner | 25d88922 | 2020-04-03 11:52:41 +0100 | [diff] [blame] | 747 | .PMPEnable (1), |
| 748 | .PMPGranularity (0), // 2^(PMPGranularity+2) == 4 byte granularity |
| 749 | .PMPNumRegions (16), |
Pirmin Vogel | 185d1bf | 2020-08-27 13:30:10 +0200 | [diff] [blame] | 750 | .MHPMCounterNum (10), |
| 751 | .MHPMCounterWidth (32), |
Greg Chadwick | dadb1af | 2020-04-16 17:10:23 +0100 | [diff] [blame] | 752 | .RV32E (0), |
Pirmin Vogel | e381464 | 2020-08-27 12:44:23 +0200 | [diff] [blame] | 753 | .RV32M (ibex_pkg::RV32MSingleCycle), |
| 754 | .RV32B (ibex_pkg::RV32BNone), |
Pirmin Vogel | 4eb2502 | 2020-08-27 15:27:33 +0200 | [diff] [blame] | 755 | .RegFile (IbexRegFile), |
Greg Chadwick | dadb1af | 2020-04-16 17:10:23 +0100 | [diff] [blame] | 756 | .BranchTargetALU (1), |
| 757 | .WritebackStage (1), |
Tom Roberts | 7824ccc | 2020-11-05 11:34:03 +0000 | [diff] [blame] | 758 | .ICache (IbexICache), |
| 759 | .ICacheECC (1), |
Pirmin Vogel | e381464 | 2020-08-27 12:44:23 +0200 | [diff] [blame] | 760 | .BranchPredictor (0), |
Greg Chadwick | dadb1af | 2020-04-16 17:10:23 +0100 | [diff] [blame] | 761 | .DbgTriggerEn (1), |
Timothy Chen | a6b5a1e | 2021-04-12 14:20:30 -0700 | [diff] [blame] | 762 | .SecureIbex (SecureIbex), |
Rupert Swarbrick | da341bf | 2021-03-10 15:45:25 +0000 | [diff] [blame] | 763 | .DmHaltAddr (ADDR_SPACE_DEBUG_MEM + dm::HaltAddress[31:0]), |
| 764 | .DmExceptionAddr (ADDR_SPACE_DEBUG_MEM + dm::ExceptionAddress[31:0]), |
Greg Chadwick | dadb1af | 2020-04-16 17:10:23 +0100 | [diff] [blame] | 765 | .PipeLine (IbexPipeLine) |
Michael Schaffner | a39557e | 2020-03-17 18:30:21 -0700 | [diff] [blame] | 766 | ) u_rv_core_ibex ( |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 767 | // clock and reset |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 768 | .clk_i (clkmgr_aon_clocks.clk_proc_main), |
| 769 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
| 770 | .clk_esc_i (clkmgr_aon_clocks.clk_io_div4_timers), |
| 771 | .rst_esc_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]), |
Tom Roberts | 5344169 | 2021-03-12 17:30:38 +0000 | [diff] [blame] | 772 | .ram_cfg_i (ast_ram_1p_cfg), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 773 | // static pinning |
Greg Chadwick | 53ef2ec | 2019-09-03 14:53:54 +0100 | [diff] [blame] | 774 | .hart_id_i (32'b0), |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 775 | .boot_addr_i (ADDR_SPACE_ROM_CTRL__ROM), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 776 | // TL-UL buses |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 777 | .tl_i_o (main_tl_corei_req), |
| 778 | .tl_i_i (main_tl_corei_rsp), |
| 779 | .tl_d_o (main_tl_cored_req), |
| 780 | .tl_d_i (main_tl_cored_rsp), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 781 | // interrupts |
| 782 | .irq_software_i (msip), |
| 783 | .irq_timer_i (intr_rv_timer_timer_expired_0_0), |
| 784 | .irq_external_i (irq_plic), |
Michael Schaffner | bdcbd20 | 2020-07-27 12:18:21 -0700 | [diff] [blame] | 785 | // escalation input from alert handler (NMI) |
Timothy Chen | c0d32d9 | 2020-12-16 18:01:22 -0800 | [diff] [blame] | 786 | .esc_tx_i (alert_handler_esc_tx[0]), |
| 787 | .esc_rx_o (alert_handler_esc_rx[0]), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 788 | // debug interface |
| 789 | .debug_req_i (debug_req), |
Timothy Chen | 580ed91 | 2020-12-21 21:21:50 -0800 | [diff] [blame] | 790 | // crash dump interface |
Tom Roberts | c88e97f | 2021-03-04 13:38:20 +0000 | [diff] [blame] | 791 | .crash_dump_o (rv_core_ibex_crash_dump), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 792 | // CPU control signals |
Michael Schaffner | dc0c1e9 | 2021-03-02 14:41:31 -0800 | [diff] [blame] | 793 | .lc_cpu_en_i (lc_ctrl_lc_cpu_en), |
Timothy Chen | b2abc98 | 2021-04-20 10:56:23 -0700 | [diff] [blame] | 794 | .pwrmgr_cpu_en_i (pwrmgr_aon_fetch_en), |
Timothy Chen | a72c4dc | 2021-04-19 17:21:09 -0700 | [diff] [blame] | 795 | .core_sleep_o (pwrmgr_aon_pwr_cpu.core_sleeping), |
| 796 | |
| 797 | // dft bypass |
| 798 | .scan_rst_ni, |
| 799 | .scanmode_i |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 800 | ); |
| 801 | |
| 802 | // Debug Module (RISC-V Debug Spec 0.13) |
| 803 | // |
| 804 | |
| 805 | rv_dm #( |
Philipp Wagner | 086b703 | 2019-10-25 17:06:15 +0100 | [diff] [blame] | 806 | .NrHarts (1), |
| 807 | .IdcodeValue (JTAG_IDCODE) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 808 | ) u_dm_top ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 809 | .clk_i (clkmgr_aon_clocks.clk_proc_main), |
| 810 | .rst_ni (rstmgr_aon_resets.rst_lc_n[rstmgr_pkg::Domain0Sel]), |
Michael Schaffner | 7ce0e52 | 2021-02-25 16:39:42 -0800 | [diff] [blame] | 811 | .hw_debug_en_i (lc_ctrl_lc_hw_debug_en), |
Michael Schaffner | 8bf4fe6 | 2021-02-18 12:56:08 -0800 | [diff] [blame] | 812 | .scanmode_i, |
Timothy Chen | bd29a0e | 2021-04-19 17:44:27 -0700 | [diff] [blame] | 813 | .scan_rst_ni, |
Timothy Chen | 3193b00 | 2019-10-04 16:56:05 -0700 | [diff] [blame] | 814 | .ndmreset_o (ndmreset_req), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 815 | .dmactive_o (), |
| 816 | .debug_req_o (debug_req), |
| 817 | .unavailable_i (1'b0), |
| 818 | |
| 819 | // bus device with debug memory (for execution-based debug) |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 820 | .tl_d_i (main_tl_debug_mem_req), |
| 821 | .tl_d_o (main_tl_debug_mem_rsp), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 822 | |
| 823 | // bus host (for system bus accesses, SBA) |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 824 | .tl_h_o (main_tl_dm_sba_req), |
| 825 | .tl_h_i (main_tl_dm_sba_rsp), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 826 | |
| 827 | //JTAG |
Michael Schaffner | 5f54587 | 2021-03-05 17:54:28 -0800 | [diff] [blame] | 828 | .jtag_req_i (pinmux_aon_rv_jtag_req), |
| 829 | .jtag_rsp_o (pinmux_aon_rv_jtag_rsp) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 830 | ); |
| 831 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 832 | assign rstmgr_aon_cpu.ndmreset_req = ndmreset_req; |
| 833 | assign rstmgr_aon_cpu.rst_cpu_n = rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]; |
Timothy Chen | c59f701 | 2020-04-16 19:11:42 -0700 | [diff] [blame] | 834 | |
Michael Schaffner | fca4382 | 2021-05-20 13:35:56 -0700 | [diff] [blame] | 835 | // Struct breakout module tool-inserted DFT TAP signals |
| 836 | pinmux_jtag_breakout u_dft_tap_breakout ( |
| 837 | .req_i (pinmux_aon_dft_jtag_req), |
| 838 | .rsp_o (pinmux_aon_dft_jtag_rsp), |
| 839 | .tck_o (), |
| 840 | .trst_no (), |
| 841 | .tms_o (), |
| 842 | .tdi_o (), |
| 843 | .tdo_i (1'b0), |
| 844 | .tdo_oe_i (1'b0) |
| 845 | ); |
| 846 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 847 | // sram device |
| 848 | logic ram_main_req; |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 849 | logic ram_main_gnt; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 850 | logic ram_main_we; |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 851 | logic ram_main_intg_err; |
Timothy Chen | 4367c48 | 2021-01-22 00:18:45 -0800 | [diff] [blame] | 852 | logic [14:0] ram_main_addr; |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 853 | logic [38:0] ram_main_wdata; |
| 854 | logic [38:0] ram_main_wmask; |
Timothy Chen | 466585e | 2021-03-01 15:06:01 -0800 | [diff] [blame] | 855 | logic [38:0] ram_main_rdata; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 856 | logic ram_main_rvalid; |
Philipp Wagner | e1efc18 | 2020-05-21 18:26:17 +0100 | [diff] [blame] | 857 | logic [1:0] ram_main_rerror; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 858 | |
| 859 | tlul_adapter_sram #( |
Timothy Chen | 4367c48 | 2021-01-22 00:18:45 -0800 | [diff] [blame] | 860 | .SramAw(15), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 861 | .SramDw(32), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 862 | .Outstanding(2), |
| 863 | .CmdIntgCheck(1), |
| 864 | .EnableRspIntgGen(1), |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 865 | .EnableDataIntgGen(0), |
| 866 | .EnableDataIntgPt(1) |
Michael Schaffner | a39557e | 2020-03-17 18:30:21 -0700 | [diff] [blame] | 867 | ) u_tl_adapter_ram_main ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 868 | .clk_i (clkmgr_aon_clocks.clk_main_infra), |
| 869 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 870 | .tl_i (ram_main_tl_req), |
| 871 | .tl_o (ram_main_tl_rsp), |
| 872 | .en_ifetch_i (sram_ctrl_main_en_ifetch), |
| 873 | .req_o (ram_main_req), |
Timothy Chen | aad796e | 2021-03-24 17:21:33 -0700 | [diff] [blame] | 874 | .req_type_o (), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 875 | .gnt_i (ram_main_gnt), |
| 876 | .we_o (ram_main_we), |
| 877 | .addr_o (ram_main_addr), |
| 878 | .wdata_o (ram_main_wdata), |
| 879 | .wmask_o (ram_main_wmask), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 880 | .intg_error_o(ram_main_intg_err), |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 881 | .rdata_i (ram_main_rdata), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 882 | .rvalid_i (ram_main_rvalid), |
| 883 | .rerror_i (ram_main_rerror) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 884 | ); |
| 885 | |
Michael Schaffner | bec47c7 | 2020-11-06 14:03:54 -0800 | [diff] [blame] | 886 | prim_ram_1p_scr #( |
Timothy Chen | 466585e | 2021-03-01 15:06:01 -0800 | [diff] [blame] | 887 | .Width(39), |
Timothy Chen | 4367c48 | 2021-01-22 00:18:45 -0800 | [diff] [blame] | 888 | .Depth(32768), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 889 | .EnableParity(0), |
| 890 | .LfsrWidth(32), |
Timothy Chen | 3b25716 | 2021-03-18 12:39:36 -0700 | [diff] [blame] | 891 | .StatePerm(RndCnstSramCtrlMainSramLfsrPerm), |
| 892 | .DataBitsPerMask(1), // TODO: Temporary change to ensure byte updates can still be done |
| 893 | .DiffWidth(8) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 894 | ) u_ram1p_ram_main ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 895 | .clk_i (clkmgr_aon_clocks.clk_main_infra), |
| 896 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 897 | |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 898 | .key_valid_i (sram_ctrl_main_sram_scr_req.valid), |
| 899 | .key_i (sram_ctrl_main_sram_scr_req.key), |
| 900 | .nonce_i (sram_ctrl_main_sram_scr_req.nonce), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 901 | .init_req_i (sram_ctrl_main_sram_scr_init_req.req), |
| 902 | .init_seed_i (sram_ctrl_main_sram_scr_init_req.seed), |
| 903 | .init_ack_o (sram_ctrl_main_sram_scr_init_rsp.ack), |
Michael Schaffner | bec47c7 | 2020-11-06 14:03:54 -0800 | [diff] [blame] | 904 | |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 905 | .req_i (ram_main_req), |
| 906 | .intg_error_i(ram_main_intg_err), |
| 907 | .gnt_o (ram_main_gnt), |
| 908 | .write_i (ram_main_we), |
| 909 | .addr_i (ram_main_addr), |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 910 | .wdata_i (ram_main_wdata), |
| 911 | .wmask_i (ram_main_wmask), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 912 | .rdata_o (ram_main_rdata), |
| 913 | .rvalid_o (ram_main_rvalid), |
| 914 | .rerror_o (ram_main_rerror), |
| 915 | .raddr_o (sram_ctrl_main_sram_scr_rsp.raddr), |
| 916 | .intg_error_o(ram_main_intg_error), |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 917 | .cfg_i (ram_1p_cfg_i) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 918 | ); |
Michael Schaffner | bec47c7 | 2020-11-06 14:03:54 -0800 | [diff] [blame] | 919 | |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 920 | assign sram_ctrl_main_sram_scr_rsp.rerror = ram_main_rerror; |
| 921 | |
Timothy Chen | 6e2ba84 | 2020-06-29 15:04:13 -0700 | [diff] [blame] | 922 | // sram device |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 923 | logic ram_ret_aon_req; |
| 924 | logic ram_ret_aon_gnt; |
| 925 | logic ram_ret_aon_we; |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 926 | logic ram_ret_aon_intg_err; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 927 | logic [9:0] ram_ret_aon_addr; |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 928 | logic [38:0] ram_ret_aon_wdata; |
| 929 | logic [38:0] ram_ret_aon_wmask; |
Timothy Chen | 466585e | 2021-03-01 15:06:01 -0800 | [diff] [blame] | 930 | logic [38:0] ram_ret_aon_rdata; |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 931 | logic ram_ret_aon_rvalid; |
| 932 | logic [1:0] ram_ret_aon_rerror; |
Timothy Chen | 6e2ba84 | 2020-06-29 15:04:13 -0700 | [diff] [blame] | 933 | |
| 934 | tlul_adapter_sram #( |
| 935 | .SramAw(10), |
| 936 | .SramDw(32), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 937 | .Outstanding(2), |
| 938 | .CmdIntgCheck(1), |
| 939 | .EnableRspIntgGen(1), |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 940 | .EnableDataIntgGen(0), |
| 941 | .EnableDataIntgPt(1) |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 942 | ) u_tl_adapter_ram_ret_aon ( |
| 943 | .clk_i (clkmgr_aon_clocks.clk_io_div4_infra), |
| 944 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 945 | .tl_i (ram_ret_aon_tl_req), |
| 946 | .tl_o (ram_ret_aon_tl_rsp), |
| 947 | .en_ifetch_i (sram_ctrl_ret_aon_en_ifetch), |
| 948 | .req_o (ram_ret_aon_req), |
Timothy Chen | aad796e | 2021-03-24 17:21:33 -0700 | [diff] [blame] | 949 | .req_type_o (), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 950 | .gnt_i (ram_ret_aon_gnt), |
| 951 | .we_o (ram_ret_aon_we), |
| 952 | .addr_o (ram_ret_aon_addr), |
| 953 | .wdata_o (ram_ret_aon_wdata), |
| 954 | .wmask_o (ram_ret_aon_wmask), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 955 | .intg_error_o(ram_ret_aon_intg_err), |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 956 | .rdata_i (ram_ret_aon_rdata), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 957 | .rvalid_i (ram_ret_aon_rvalid), |
| 958 | .rerror_i (ram_ret_aon_rerror) |
Timothy Chen | 6e2ba84 | 2020-06-29 15:04:13 -0700 | [diff] [blame] | 959 | ); |
| 960 | |
Michael Schaffner | bec47c7 | 2020-11-06 14:03:54 -0800 | [diff] [blame] | 961 | prim_ram_1p_scr #( |
Timothy Chen | 466585e | 2021-03-01 15:06:01 -0800 | [diff] [blame] | 962 | .Width(39), |
Timothy Chen | 6e2ba84 | 2020-06-29 15:04:13 -0700 | [diff] [blame] | 963 | .Depth(1024), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 964 | .EnableParity(0), |
| 965 | .LfsrWidth(32), |
Timothy Chen | 3b25716 | 2021-03-18 12:39:36 -0700 | [diff] [blame] | 966 | .StatePerm(RndCnstSramCtrlRetAonSramLfsrPerm), |
| 967 | .DataBitsPerMask(1), // TODO: Temporary change to ensure byte updates can still be done |
| 968 | .DiffWidth(8) |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 969 | ) u_ram1p_ram_ret_aon ( |
| 970 | .clk_i (clkmgr_aon_clocks.clk_io_div4_infra), |
| 971 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
Timothy Chen | 6e2ba84 | 2020-06-29 15:04:13 -0700 | [diff] [blame] | 972 | |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 973 | .key_valid_i (sram_ctrl_ret_aon_sram_scr_req.valid), |
| 974 | .key_i (sram_ctrl_ret_aon_sram_scr_req.key), |
| 975 | .nonce_i (sram_ctrl_ret_aon_sram_scr_req.nonce), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 976 | .init_req_i (sram_ctrl_ret_aon_sram_scr_init_req.req), |
| 977 | .init_seed_i (sram_ctrl_ret_aon_sram_scr_init_req.seed), |
| 978 | .init_ack_o (sram_ctrl_ret_aon_sram_scr_init_rsp.ack), |
Michael Schaffner | bec47c7 | 2020-11-06 14:03:54 -0800 | [diff] [blame] | 979 | |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 980 | .req_i (ram_ret_aon_req), |
| 981 | .intg_error_i(ram_ret_aon_intg_err), |
| 982 | .gnt_o (ram_ret_aon_gnt), |
| 983 | .write_i (ram_ret_aon_we), |
| 984 | .addr_i (ram_ret_aon_addr), |
Timothy Chen | 2799bf0 | 2021-03-18 14:48:47 -0700 | [diff] [blame] | 985 | .wdata_i (ram_ret_aon_wdata), |
| 986 | .wmask_i (ram_ret_aon_wmask), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 987 | .rdata_o (ram_ret_aon_rdata), |
| 988 | .rvalid_o (ram_ret_aon_rvalid), |
| 989 | .rerror_o (ram_ret_aon_rerror), |
| 990 | .raddr_o (sram_ctrl_ret_aon_sram_scr_rsp.raddr), |
| 991 | .intg_error_o(ram_ret_aon_intg_error), |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 992 | .cfg_i (ram_1p_cfg_i) |
Timothy Chen | 6e2ba84 | 2020-06-29 15:04:13 -0700 | [diff] [blame] | 993 | ); |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 994 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 995 | assign sram_ctrl_ret_aon_sram_scr_rsp.rerror = ram_ret_aon_rerror; |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 996 | |
Michael Schaffner | bec47c7 | 2020-11-06 14:03:54 -0800 | [diff] [blame] | 997 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 998 | // host to flash communication |
| 999 | logic flash_host_req; |
Timothy Chen | aad796e | 2021-03-24 17:21:33 -0700 | [diff] [blame] | 1000 | tlul_pkg::tl_type_e flash_host_req_type; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1001 | logic flash_host_req_rdy; |
| 1002 | logic flash_host_req_done; |
Timothy Chen | d9a9877 | 2020-09-15 13:57:03 -0700 | [diff] [blame] | 1003 | logic flash_host_rderr; |
Timothy Chen | 1451840 | 2020-04-13 15:25:22 -0700 | [diff] [blame] | 1004 | logic [flash_ctrl_pkg::BusWidth-1:0] flash_host_rdata; |
Timothy Chen | b35a340 | 2020-06-23 00:14:11 -0700 | [diff] [blame] | 1005 | logic [flash_ctrl_pkg::BusAddrW-1:0] flash_host_addr; |
Timothy Chen | 60526ac | 2021-04-07 16:48:55 -0700 | [diff] [blame] | 1006 | logic flash_host_intg_err; |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1007 | |
Timothy Chen | 5aec528 | 2019-09-10 21:10:56 -0700 | [diff] [blame] | 1008 | tlul_adapter_sram #( |
Timothy Chen | b35a340 | 2020-06-23 00:14:11 -0700 | [diff] [blame] | 1009 | .SramAw(flash_ctrl_pkg::BusAddrW), |
Timothy Chen | 1451840 | 2020-04-13 15:25:22 -0700 | [diff] [blame] | 1010 | .SramDw(flash_ctrl_pkg::BusWidth), |
Eunchan Kim | 6c731a8 | 2020-03-04 14:48:52 -0800 | [diff] [blame] | 1011 | .Outstanding(2), |
Timothy Chen | 5aec528 | 2019-09-10 21:10:56 -0700 | [diff] [blame] | 1012 | .ByteAccess(0), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 1013 | .ErrOnWrite(1), |
| 1014 | .CmdIntgCheck(1), |
| 1015 | .EnableRspIntgGen(1), |
| 1016 | .EnableDataIntgGen(1) |
Michael Schaffner | a39557e | 2020-03-17 18:30:21 -0700 | [diff] [blame] | 1017 | ) u_tl_adapter_eflash ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1018 | .clk_i (clkmgr_aon_clocks.clk_main_infra), |
| 1019 | .rst_ni (rstmgr_aon_resets.rst_lc_n[rstmgr_pkg::Domain0Sel]), |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1020 | |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 1021 | .tl_i (eflash_tl_req), |
| 1022 | .tl_o (eflash_tl_rsp), |
| 1023 | .en_ifetch_i (tlul_pkg::InstrEn), // tie this to secure boot somehow |
| 1024 | .req_o (flash_host_req), |
Timothy Chen | aad796e | 2021-03-24 17:21:33 -0700 | [diff] [blame] | 1025 | .req_type_o (flash_host_req_type), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 1026 | .gnt_i (flash_host_req_rdy), |
| 1027 | .we_o (), |
| 1028 | .addr_o (flash_host_addr), |
| 1029 | .wdata_o (), |
| 1030 | .wmask_o (), |
Timothy Chen | 60526ac | 2021-04-07 16:48:55 -0700 | [diff] [blame] | 1031 | .intg_error_o(flash_host_intg_err), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 1032 | .rdata_i (flash_host_rdata), |
| 1033 | .rvalid_i (flash_host_req_done), |
| 1034 | .rerror_i ({flash_host_rderr,1'b0}) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1035 | ); |
| 1036 | |
Timothy Chen | 1451840 | 2020-04-13 15:25:22 -0700 | [diff] [blame] | 1037 | flash_phy u_flash_eflash ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1038 | .clk_i (clkmgr_aon_clocks.clk_main_infra), |
| 1039 | .rst_ni (rstmgr_aon_resets.rst_lc_n[rstmgr_pkg::Domain0Sel]), |
Timothy Chen | 1b9fd90 | 2021-01-07 12:18:46 -0800 | [diff] [blame] | 1040 | .host_req_i (flash_host_req), |
Timothy Chen | 60526ac | 2021-04-07 16:48:55 -0700 | [diff] [blame] | 1041 | .host_intg_err_i (flash_host_intg_err), |
Timothy Chen | aad796e | 2021-03-24 17:21:33 -0700 | [diff] [blame] | 1042 | .host_req_type_i (flash_host_req_type), |
Timothy Chen | 1b9fd90 | 2021-01-07 12:18:46 -0800 | [diff] [blame] | 1043 | .host_addr_i (flash_host_addr), |
| 1044 | .host_req_rdy_o (flash_host_req_rdy), |
| 1045 | .host_req_done_o (flash_host_req_done), |
| 1046 | .host_rderr_o (flash_host_rderr), |
| 1047 | .host_rdata_o (flash_host_rdata), |
| 1048 | .flash_ctrl_i (flash_ctrl_flash_req), |
| 1049 | .flash_ctrl_o (flash_ctrl_flash_rsp), |
| 1050 | .lc_nvm_debug_en_i (lc_ctrl_lc_nvm_debug_en), |
Timothy Chen | 1b9fd90 | 2021-01-07 12:18:46 -0800 | [diff] [blame] | 1051 | .flash_bist_enable_i, |
Timothy Chen | 2422a6c | 2020-11-19 16:06:14 -0800 | [diff] [blame] | 1052 | .flash_power_down_h_i, |
| 1053 | .flash_power_ready_h_i, |
Timothy Chen | 5270b7c | 2021-03-17 17:38:30 -0700 | [diff] [blame] | 1054 | .flash_test_mode_a_io, |
| 1055 | .flash_test_voltage_h_io, |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 1056 | .flash_alert_o, |
Timothy Chen | 2422a6c | 2020-11-19 16:06:14 -0800 | [diff] [blame] | 1057 | .scanmode_i, |
Timothy Chen | 010e3cc | 2021-02-02 14:55:09 -0800 | [diff] [blame] | 1058 | .scan_en_i, |
Timothy Chen | 2422a6c | 2020-11-19 16:06:14 -0800 | [diff] [blame] | 1059 | .scan_rst_ni |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1060 | ); |
| 1061 | |
| 1062 | |
Michael Schaffner | 666dde1 | 2019-10-25 11:57:54 -0700 | [diff] [blame] | 1063 | |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1064 | uart #( |
| 1065 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[0:0]) |
| 1066 | ) u_uart0 ( |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1067 | |
| 1068 | // Input |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1069 | .cio_rx_i (cio_uart0_rx_p2d), |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1070 | |
| 1071 | // Output |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1072 | .cio_tx_o (cio_uart0_tx_d2p), |
| 1073 | .cio_tx_en_o (cio_uart0_tx_en_d2p), |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1074 | |
| 1075 | // Interrupt |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1076 | .intr_tx_watermark_o (intr_uart0_tx_watermark), |
| 1077 | .intr_rx_watermark_o (intr_uart0_rx_watermark), |
| 1078 | .intr_tx_empty_o (intr_uart0_tx_empty), |
| 1079 | .intr_rx_overflow_o (intr_uart0_rx_overflow), |
| 1080 | .intr_rx_frame_err_o (intr_uart0_rx_frame_err), |
| 1081 | .intr_rx_break_err_o (intr_uart0_rx_break_err), |
| 1082 | .intr_rx_timeout_o (intr_uart0_rx_timeout), |
| 1083 | .intr_rx_parity_err_o (intr_uart0_rx_parity_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1084 | // [0]: fatal_fault |
| 1085 | .alert_tx_o ( alert_tx[0:0] ), |
| 1086 | .alert_rx_i ( alert_rx[0:0] ), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 1087 | |
| 1088 | // Inter-module signals |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1089 | .tl_i(uart0_tl_req), |
| 1090 | .tl_o(uart0_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1091 | |
| 1092 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1093 | .clk_i (clkmgr_aon_clocks.clk_io_div4_secure), |
| 1094 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1095 | ); |
| 1096 | |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1097 | uart #( |
| 1098 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[1:1]) |
| 1099 | ) u_uart1 ( |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1100 | |
| 1101 | // Input |
| 1102 | .cio_rx_i (cio_uart1_rx_p2d), |
| 1103 | |
| 1104 | // Output |
| 1105 | .cio_tx_o (cio_uart1_tx_d2p), |
| 1106 | .cio_tx_en_o (cio_uart1_tx_en_d2p), |
| 1107 | |
| 1108 | // Interrupt |
| 1109 | .intr_tx_watermark_o (intr_uart1_tx_watermark), |
| 1110 | .intr_rx_watermark_o (intr_uart1_rx_watermark), |
| 1111 | .intr_tx_empty_o (intr_uart1_tx_empty), |
| 1112 | .intr_rx_overflow_o (intr_uart1_rx_overflow), |
| 1113 | .intr_rx_frame_err_o (intr_uart1_rx_frame_err), |
| 1114 | .intr_rx_break_err_o (intr_uart1_rx_break_err), |
| 1115 | .intr_rx_timeout_o (intr_uart1_rx_timeout), |
| 1116 | .intr_rx_parity_err_o (intr_uart1_rx_parity_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1117 | // [1]: fatal_fault |
| 1118 | .alert_tx_o ( alert_tx[1:1] ), |
| 1119 | .alert_rx_i ( alert_rx[1:1] ), |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1120 | |
| 1121 | // Inter-module signals |
| 1122 | .tl_i(uart1_tl_req), |
| 1123 | .tl_o(uart1_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1124 | |
| 1125 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1126 | .clk_i (clkmgr_aon_clocks.clk_io_div4_secure), |
| 1127 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1128 | ); |
| 1129 | |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1130 | uart #( |
| 1131 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[2:2]) |
| 1132 | ) u_uart2 ( |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1133 | |
| 1134 | // Input |
| 1135 | .cio_rx_i (cio_uart2_rx_p2d), |
| 1136 | |
| 1137 | // Output |
| 1138 | .cio_tx_o (cio_uart2_tx_d2p), |
| 1139 | .cio_tx_en_o (cio_uart2_tx_en_d2p), |
| 1140 | |
| 1141 | // Interrupt |
| 1142 | .intr_tx_watermark_o (intr_uart2_tx_watermark), |
| 1143 | .intr_rx_watermark_o (intr_uart2_rx_watermark), |
| 1144 | .intr_tx_empty_o (intr_uart2_tx_empty), |
| 1145 | .intr_rx_overflow_o (intr_uart2_rx_overflow), |
| 1146 | .intr_rx_frame_err_o (intr_uart2_rx_frame_err), |
| 1147 | .intr_rx_break_err_o (intr_uart2_rx_break_err), |
| 1148 | .intr_rx_timeout_o (intr_uart2_rx_timeout), |
| 1149 | .intr_rx_parity_err_o (intr_uart2_rx_parity_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1150 | // [2]: fatal_fault |
| 1151 | .alert_tx_o ( alert_tx[2:2] ), |
| 1152 | .alert_rx_i ( alert_rx[2:2] ), |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1153 | |
| 1154 | // Inter-module signals |
| 1155 | .tl_i(uart2_tl_req), |
| 1156 | .tl_o(uart2_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1157 | |
| 1158 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1159 | .clk_i (clkmgr_aon_clocks.clk_io_div4_secure), |
| 1160 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1161 | ); |
| 1162 | |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1163 | uart #( |
| 1164 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[3:3]) |
| 1165 | ) u_uart3 ( |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1166 | |
| 1167 | // Input |
| 1168 | .cio_rx_i (cio_uart3_rx_p2d), |
| 1169 | |
| 1170 | // Output |
| 1171 | .cio_tx_o (cio_uart3_tx_d2p), |
| 1172 | .cio_tx_en_o (cio_uart3_tx_en_d2p), |
| 1173 | |
| 1174 | // Interrupt |
| 1175 | .intr_tx_watermark_o (intr_uart3_tx_watermark), |
| 1176 | .intr_rx_watermark_o (intr_uart3_rx_watermark), |
| 1177 | .intr_tx_empty_o (intr_uart3_tx_empty), |
| 1178 | .intr_rx_overflow_o (intr_uart3_rx_overflow), |
| 1179 | .intr_rx_frame_err_o (intr_uart3_rx_frame_err), |
| 1180 | .intr_rx_break_err_o (intr_uart3_rx_break_err), |
| 1181 | .intr_rx_timeout_o (intr_uart3_rx_timeout), |
| 1182 | .intr_rx_parity_err_o (intr_uart3_rx_parity_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1183 | // [3]: fatal_fault |
| 1184 | .alert_tx_o ( alert_tx[3:3] ), |
| 1185 | .alert_rx_i ( alert_rx[3:3] ), |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 1186 | |
| 1187 | // Inter-module signals |
| 1188 | .tl_i(uart3_tl_req), |
| 1189 | .tl_o(uart3_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1190 | |
| 1191 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1192 | .clk_i (clkmgr_aon_clocks.clk_io_div4_secure), |
| 1193 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1194 | ); |
| 1195 | |
Michael Schaffner | 0281a86 | 2021-06-04 18:25:28 -0700 | [diff] [blame] | 1196 | gpio #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1197 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[4:4]) |
Michael Schaffner | 0281a86 | 2021-06-04 18:25:28 -0700 | [diff] [blame] | 1198 | ) u_gpio ( |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1199 | |
| 1200 | // Input |
| 1201 | .cio_gpio_i (cio_gpio_gpio_p2d), |
| 1202 | |
| 1203 | // Output |
| 1204 | .cio_gpio_o (cio_gpio_gpio_d2p), |
| 1205 | .cio_gpio_en_o (cio_gpio_gpio_en_d2p), |
| 1206 | |
| 1207 | // Interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1208 | .intr_gpio_o (intr_gpio_gpio), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1209 | // [4]: fatal_fault |
| 1210 | .alert_tx_o ( alert_tx[4:4] ), |
| 1211 | .alert_rx_i ( alert_rx[4:4] ), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 1212 | |
| 1213 | // Inter-module signals |
| 1214 | .tl_i(gpio_tl_req), |
| 1215 | .tl_o(gpio_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1216 | |
| 1217 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1218 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 1219 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1220 | ); |
| 1221 | |
Michael Schaffner | 4c989be | 2021-06-07 16:44:30 -0700 | [diff] [blame] | 1222 | spi_device #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1223 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[5:5]) |
Michael Schaffner | 4c989be | 2021-06-07 16:44:30 -0700 | [diff] [blame] | 1224 | ) u_spi_device ( |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1225 | |
| 1226 | // Input |
Timothy Chen | c38f789 | 2020-07-16 18:19:48 -0700 | [diff] [blame] | 1227 | .cio_sck_i (cio_spi_device_sck_p2d), |
| 1228 | .cio_csb_i (cio_spi_device_csb_p2d), |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1229 | .cio_sd_i (cio_spi_device_sd_p2d), |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1230 | |
| 1231 | // Output |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1232 | .cio_sd_o (cio_spi_device_sd_d2p), |
| 1233 | .cio_sd_en_o (cio_spi_device_sd_en_d2p), |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1234 | |
| 1235 | // Interrupt |
| 1236 | .intr_rxf_o (intr_spi_device_rxf), |
| 1237 | .intr_rxlvl_o (intr_spi_device_rxlvl), |
| 1238 | .intr_txlvl_o (intr_spi_device_txlvl), |
| 1239 | .intr_rxerr_o (intr_spi_device_rxerr), |
| 1240 | .intr_rxoverflow_o (intr_spi_device_rxoverflow), |
Eunchan Kim | 546c0d4 | 2019-09-24 15:07:06 -0700 | [diff] [blame] | 1241 | .intr_txunderflow_o (intr_spi_device_txunderflow), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1242 | // [5]: fatal_fault |
| 1243 | .alert_tx_o ( alert_tx[5:5] ), |
| 1244 | .alert_rx_i ( alert_rx[5:5] ), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 1245 | |
| 1246 | // Inter-module signals |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1247 | .ram_cfg_i(ast_ram_2p_cfg), |
Martin Lueker-Boden | 553aece | 2021-04-23 17:00:45 -0700 | [diff] [blame] | 1248 | .passthrough_o(spi_device_passthrough_req), |
| 1249 | .passthrough_i(spi_device_passthrough_rsp), |
Eunchan Kim | 728b687 | 2021-05-18 09:30:16 -0700 | [diff] [blame] | 1250 | .mbist_en_i('0), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 1251 | .tl_i(spi_device_tl_req), |
| 1252 | .tl_o(spi_device_tl_rsp), |
Michael Schaffner | 8bf4fe6 | 2021-02-18 12:56:08 -0800 | [diff] [blame] | 1253 | .scanmode_i, |
Timothy Chen | 21e6a4f | 2021-04-30 03:47:01 -0700 | [diff] [blame] | 1254 | .scan_rst_ni, |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1255 | |
| 1256 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1257 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
Timothy Chen | 04192e0 | 2021-02-19 16:16:25 -0800 | [diff] [blame] | 1258 | .scan_clk_i (clkmgr_aon_clocks.clk_io_div2_peri), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1259 | .rst_ni (rstmgr_aon_resets.rst_spi_device_n[rstmgr_pkg::Domain0Sel]) |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1260 | ); |
| 1261 | |
Michael Schaffner | bd21d5a | 2021-06-07 16:38:34 -0700 | [diff] [blame] | 1262 | spi_host #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1263 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[6:6]) |
Michael Schaffner | bd21d5a | 2021-06-07 16:38:34 -0700 | [diff] [blame] | 1264 | ) u_spi_host0 ( |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1265 | |
| 1266 | // Input |
| 1267 | .cio_sd_i (cio_spi_host0_sd_p2d), |
| 1268 | |
| 1269 | // Output |
| 1270 | .cio_sck_o (cio_spi_host0_sck_d2p), |
| 1271 | .cio_sck_en_o (cio_spi_host0_sck_en_d2p), |
| 1272 | .cio_csb_o (cio_spi_host0_csb_d2p), |
| 1273 | .cio_csb_en_o (cio_spi_host0_csb_en_d2p), |
| 1274 | .cio_sd_o (cio_spi_host0_sd_d2p), |
| 1275 | .cio_sd_en_o (cio_spi_host0_sd_en_d2p), |
| 1276 | |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 1277 | // Interrupt |
| 1278 | .intr_error_o (intr_spi_host0_error), |
| 1279 | .intr_spi_event_o (intr_spi_host0_spi_event), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1280 | // [6]: fatal_fault |
| 1281 | .alert_tx_o ( alert_tx[6:6] ), |
| 1282 | .alert_rx_i ( alert_rx[6:6] ), |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 1283 | |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1284 | // Inter-module signals |
Martin Lueker-Boden | 553aece | 2021-04-23 17:00:45 -0700 | [diff] [blame] | 1285 | .passthrough_i(spi_device_passthrough_req), |
| 1286 | .passthrough_o(spi_device_passthrough_rsp), |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1287 | .tl_i(spi_host0_tl_req), |
| 1288 | .tl_o(spi_host0_tl_rsp), |
Rupert Swarbrick | 0fdf008 | 2021-03-09 16:39:48 +0000 | [diff] [blame] | 1289 | .scanmode_i, |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1290 | |
| 1291 | // Clock and reset connections |
| 1292 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
Timothy Chen | c1c1675 | 2021-04-28 14:03:02 -0700 | [diff] [blame] | 1293 | .clk_core_i (clkmgr_aon_clocks.clk_io_peri), |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 1294 | .rst_ni (rstmgr_aon_resets.rst_spi_host0_n[rstmgr_pkg::Domain0Sel]), |
| 1295 | .rst_core_ni (rstmgr_aon_resets.rst_spi_host0_n[rstmgr_pkg::Domain0Sel]) |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1296 | ); |
| 1297 | |
Michael Schaffner | bd21d5a | 2021-06-07 16:38:34 -0700 | [diff] [blame] | 1298 | spi_host #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1299 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[7:7]) |
Michael Schaffner | bd21d5a | 2021-06-07 16:38:34 -0700 | [diff] [blame] | 1300 | ) u_spi_host1 ( |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1301 | |
| 1302 | // Input |
| 1303 | .cio_sd_i (cio_spi_host1_sd_p2d), |
| 1304 | |
| 1305 | // Output |
| 1306 | .cio_sck_o (cio_spi_host1_sck_d2p), |
| 1307 | .cio_sck_en_o (cio_spi_host1_sck_en_d2p), |
| 1308 | .cio_csb_o (cio_spi_host1_csb_d2p), |
| 1309 | .cio_csb_en_o (cio_spi_host1_csb_en_d2p), |
| 1310 | .cio_sd_o (cio_spi_host1_sd_d2p), |
| 1311 | .cio_sd_en_o (cio_spi_host1_sd_en_d2p), |
| 1312 | |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 1313 | // Interrupt |
| 1314 | .intr_error_o (intr_spi_host1_error), |
| 1315 | .intr_spi_event_o (intr_spi_host1_spi_event), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1316 | // [7]: fatal_fault |
| 1317 | .alert_tx_o ( alert_tx[7:7] ), |
| 1318 | .alert_rx_i ( alert_rx[7:7] ), |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 1319 | |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1320 | // Inter-module signals |
Martin Lueker-Boden | 553aece | 2021-04-23 17:00:45 -0700 | [diff] [blame] | 1321 | .passthrough_i(spi_device_pkg::PASSTHROUGH_REQ_DEFAULT), |
| 1322 | .passthrough_o(), |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1323 | .tl_i(spi_host1_tl_req), |
| 1324 | .tl_o(spi_host1_tl_rsp), |
Rupert Swarbrick | 0fdf008 | 2021-03-09 16:39:48 +0000 | [diff] [blame] | 1325 | .scanmode_i, |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1326 | |
| 1327 | // Clock and reset connections |
| 1328 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
Martin Lueker-Boden | eb9498c | 2021-02-02 08:33:29 -0800 | [diff] [blame] | 1329 | .clk_core_i (clkmgr_aon_clocks.clk_io_div2_peri), |
| 1330 | .rst_ni (rstmgr_aon_resets.rst_spi_host1_n[rstmgr_pkg::Domain0Sel]), |
| 1331 | .rst_core_ni (rstmgr_aon_resets.rst_spi_host1_n[rstmgr_pkg::Domain0Sel]) |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 1332 | ); |
| 1333 | |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1334 | i2c u_i2c0 ( |
| 1335 | |
| 1336 | // Input |
| 1337 | .cio_sda_i (cio_i2c0_sda_p2d), |
| 1338 | .cio_scl_i (cio_i2c0_scl_p2d), |
| 1339 | |
| 1340 | // Output |
| 1341 | .cio_sda_o (cio_i2c0_sda_d2p), |
| 1342 | .cio_sda_en_o (cio_i2c0_sda_en_d2p), |
| 1343 | .cio_scl_o (cio_i2c0_scl_d2p), |
| 1344 | .cio_scl_en_o (cio_i2c0_scl_en_d2p), |
| 1345 | |
| 1346 | // Interrupt |
| 1347 | .intr_fmt_watermark_o (intr_i2c0_fmt_watermark), |
| 1348 | .intr_rx_watermark_o (intr_i2c0_rx_watermark), |
| 1349 | .intr_fmt_overflow_o (intr_i2c0_fmt_overflow), |
| 1350 | .intr_rx_overflow_o (intr_i2c0_rx_overflow), |
| 1351 | .intr_nak_o (intr_i2c0_nak), |
| 1352 | .intr_scl_interference_o (intr_i2c0_scl_interference), |
| 1353 | .intr_sda_interference_o (intr_i2c0_sda_interference), |
| 1354 | .intr_stretch_timeout_o (intr_i2c0_stretch_timeout), |
| 1355 | .intr_sda_unstable_o (intr_i2c0_sda_unstable), |
| 1356 | .intr_trans_complete_o (intr_i2c0_trans_complete), |
| 1357 | .intr_tx_empty_o (intr_i2c0_tx_empty), |
| 1358 | .intr_tx_nonempty_o (intr_i2c0_tx_nonempty), |
| 1359 | .intr_tx_overflow_o (intr_i2c0_tx_overflow), |
| 1360 | .intr_acq_overflow_o (intr_i2c0_acq_overflow), |
| 1361 | .intr_ack_stop_o (intr_i2c0_ack_stop), |
| 1362 | .intr_host_timeout_o (intr_i2c0_host_timeout), |
| 1363 | |
| 1364 | // Inter-module signals |
| 1365 | .tl_i(i2c0_tl_req), |
| 1366 | .tl_o(i2c0_tl_rsp), |
| 1367 | |
| 1368 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1369 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 1370 | .rst_ni (rstmgr_aon_resets.rst_i2c0_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1371 | ); |
| 1372 | |
| 1373 | i2c u_i2c1 ( |
| 1374 | |
| 1375 | // Input |
| 1376 | .cio_sda_i (cio_i2c1_sda_p2d), |
| 1377 | .cio_scl_i (cio_i2c1_scl_p2d), |
| 1378 | |
| 1379 | // Output |
| 1380 | .cio_sda_o (cio_i2c1_sda_d2p), |
| 1381 | .cio_sda_en_o (cio_i2c1_sda_en_d2p), |
| 1382 | .cio_scl_o (cio_i2c1_scl_d2p), |
| 1383 | .cio_scl_en_o (cio_i2c1_scl_en_d2p), |
| 1384 | |
| 1385 | // Interrupt |
| 1386 | .intr_fmt_watermark_o (intr_i2c1_fmt_watermark), |
| 1387 | .intr_rx_watermark_o (intr_i2c1_rx_watermark), |
| 1388 | .intr_fmt_overflow_o (intr_i2c1_fmt_overflow), |
| 1389 | .intr_rx_overflow_o (intr_i2c1_rx_overflow), |
| 1390 | .intr_nak_o (intr_i2c1_nak), |
| 1391 | .intr_scl_interference_o (intr_i2c1_scl_interference), |
| 1392 | .intr_sda_interference_o (intr_i2c1_sda_interference), |
| 1393 | .intr_stretch_timeout_o (intr_i2c1_stretch_timeout), |
| 1394 | .intr_sda_unstable_o (intr_i2c1_sda_unstable), |
| 1395 | .intr_trans_complete_o (intr_i2c1_trans_complete), |
| 1396 | .intr_tx_empty_o (intr_i2c1_tx_empty), |
| 1397 | .intr_tx_nonempty_o (intr_i2c1_tx_nonempty), |
| 1398 | .intr_tx_overflow_o (intr_i2c1_tx_overflow), |
| 1399 | .intr_acq_overflow_o (intr_i2c1_acq_overflow), |
| 1400 | .intr_ack_stop_o (intr_i2c1_ack_stop), |
| 1401 | .intr_host_timeout_o (intr_i2c1_host_timeout), |
| 1402 | |
| 1403 | // Inter-module signals |
| 1404 | .tl_i(i2c1_tl_req), |
| 1405 | .tl_o(i2c1_tl_rsp), |
| 1406 | |
| 1407 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1408 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 1409 | .rst_ni (rstmgr_aon_resets.rst_i2c1_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1410 | ); |
| 1411 | |
| 1412 | i2c u_i2c2 ( |
| 1413 | |
| 1414 | // Input |
| 1415 | .cio_sda_i (cio_i2c2_sda_p2d), |
| 1416 | .cio_scl_i (cio_i2c2_scl_p2d), |
| 1417 | |
| 1418 | // Output |
| 1419 | .cio_sda_o (cio_i2c2_sda_d2p), |
| 1420 | .cio_sda_en_o (cio_i2c2_sda_en_d2p), |
| 1421 | .cio_scl_o (cio_i2c2_scl_d2p), |
| 1422 | .cio_scl_en_o (cio_i2c2_scl_en_d2p), |
| 1423 | |
| 1424 | // Interrupt |
| 1425 | .intr_fmt_watermark_o (intr_i2c2_fmt_watermark), |
| 1426 | .intr_rx_watermark_o (intr_i2c2_rx_watermark), |
| 1427 | .intr_fmt_overflow_o (intr_i2c2_fmt_overflow), |
| 1428 | .intr_rx_overflow_o (intr_i2c2_rx_overflow), |
| 1429 | .intr_nak_o (intr_i2c2_nak), |
| 1430 | .intr_scl_interference_o (intr_i2c2_scl_interference), |
| 1431 | .intr_sda_interference_o (intr_i2c2_sda_interference), |
| 1432 | .intr_stretch_timeout_o (intr_i2c2_stretch_timeout), |
| 1433 | .intr_sda_unstable_o (intr_i2c2_sda_unstable), |
| 1434 | .intr_trans_complete_o (intr_i2c2_trans_complete), |
| 1435 | .intr_tx_empty_o (intr_i2c2_tx_empty), |
| 1436 | .intr_tx_nonempty_o (intr_i2c2_tx_nonempty), |
| 1437 | .intr_tx_overflow_o (intr_i2c2_tx_overflow), |
| 1438 | .intr_acq_overflow_o (intr_i2c2_acq_overflow), |
| 1439 | .intr_ack_stop_o (intr_i2c2_ack_stop), |
| 1440 | .intr_host_timeout_o (intr_i2c2_host_timeout), |
| 1441 | |
| 1442 | // Inter-module signals |
| 1443 | .tl_i(i2c2_tl_req), |
| 1444 | .tl_o(i2c2_tl_rsp), |
| 1445 | |
| 1446 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1447 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 1448 | .rst_ni (rstmgr_aon_resets.rst_i2c2_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1449 | ); |
| 1450 | |
Michael Schaffner | 8b3f2ba | 2021-06-07 17:18:22 -0700 | [diff] [blame] | 1451 | pattgen #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1452 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[8:8]) |
Michael Schaffner | 8b3f2ba | 2021-06-07 17:18:22 -0700 | [diff] [blame] | 1453 | ) u_pattgen ( |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1454 | |
| 1455 | // Output |
| 1456 | .cio_pda0_tx_o (cio_pattgen_pda0_tx_d2p), |
| 1457 | .cio_pda0_tx_en_o (cio_pattgen_pda0_tx_en_d2p), |
| 1458 | .cio_pcl0_tx_o (cio_pattgen_pcl0_tx_d2p), |
| 1459 | .cio_pcl0_tx_en_o (cio_pattgen_pcl0_tx_en_d2p), |
| 1460 | .cio_pda1_tx_o (cio_pattgen_pda1_tx_d2p), |
| 1461 | .cio_pda1_tx_en_o (cio_pattgen_pda1_tx_en_d2p), |
| 1462 | .cio_pcl1_tx_o (cio_pattgen_pcl1_tx_d2p), |
| 1463 | .cio_pcl1_tx_en_o (cio_pattgen_pcl1_tx_en_d2p), |
| 1464 | |
| 1465 | // Interrupt |
| 1466 | .intr_done_ch0_o (intr_pattgen_done_ch0), |
| 1467 | .intr_done_ch1_o (intr_pattgen_done_ch1), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1468 | // [8]: fatal_fault |
| 1469 | .alert_tx_o ( alert_tx[8:8] ), |
| 1470 | .alert_rx_i ( alert_rx[8:8] ), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1471 | |
| 1472 | // Inter-module signals |
| 1473 | .tl_i(pattgen_tl_req), |
| 1474 | .tl_o(pattgen_tl_rsp), |
| 1475 | |
| 1476 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1477 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 1478 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1479 | ); |
| 1480 | |
Michael Schaffner | a39557e | 2020-03-17 18:30:21 -0700 | [diff] [blame] | 1481 | rv_timer u_rv_timer ( |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 1482 | |
| 1483 | // Interrupt |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 1484 | .intr_timer_expired_0_0_o (intr_rv_timer_timer_expired_0_0), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 1485 | |
| 1486 | // Inter-module signals |
| 1487 | .tl_i(rv_timer_tl_req), |
| 1488 | .tl_o(rv_timer_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1489 | |
| 1490 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1491 | .clk_i (clkmgr_aon_clocks.clk_io_div4_timers), |
| 1492 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]) |
Michael Schaffner | 666dde1 | 2019-10-25 11:57:54 -0700 | [diff] [blame] | 1493 | ); |
| 1494 | |
Michael Schaffner | a39557e | 2020-03-17 18:30:21 -0700 | [diff] [blame] | 1495 | usbdev u_usbdev ( |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 1496 | |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 1497 | // Input |
| 1498 | .cio_sense_i (cio_usbdev_sense_p2d), |
| 1499 | .cio_d_i (cio_usbdev_d_p2d), |
| 1500 | .cio_dp_i (cio_usbdev_dp_p2d), |
| 1501 | .cio_dn_i (cio_usbdev_dn_p2d), |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 1502 | |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 1503 | // Output |
| 1504 | .cio_se0_o (cio_usbdev_se0_d2p), |
| 1505 | .cio_se0_en_o (cio_usbdev_se0_en_d2p), |
Pirmin Vogel | fe6863b | 2020-05-11 17:30:54 +0200 | [diff] [blame] | 1506 | .cio_dp_pullup_o (cio_usbdev_dp_pullup_d2p), |
| 1507 | .cio_dp_pullup_en_o (cio_usbdev_dp_pullup_en_d2p), |
| 1508 | .cio_dn_pullup_o (cio_usbdev_dn_pullup_d2p), |
| 1509 | .cio_dn_pullup_en_o (cio_usbdev_dn_pullup_en_d2p), |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 1510 | .cio_tx_mode_se_o (cio_usbdev_tx_mode_se_d2p), |
| 1511 | .cio_tx_mode_se_en_o (cio_usbdev_tx_mode_se_en_d2p), |
| 1512 | .cio_suspend_o (cio_usbdev_suspend_d2p), |
| 1513 | .cio_suspend_en_o (cio_usbdev_suspend_en_d2p), |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 1514 | .cio_rx_enable_o (cio_usbdev_rx_enable_d2p), |
| 1515 | .cio_rx_enable_en_o (cio_usbdev_rx_enable_en_d2p), |
Pirmin Vogel | b054fc0 | 2020-03-11 11:23:03 +0100 | [diff] [blame] | 1516 | .cio_d_o (cio_usbdev_d_d2p), |
| 1517 | .cio_d_en_o (cio_usbdev_d_en_d2p), |
| 1518 | .cio_dp_o (cio_usbdev_dp_d2p), |
| 1519 | .cio_dp_en_o (cio_usbdev_dp_en_d2p), |
| 1520 | .cio_dn_o (cio_usbdev_dn_d2p), |
| 1521 | .cio_dn_en_o (cio_usbdev_dn_en_d2p), |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 1522 | |
| 1523 | // Interrupt |
| 1524 | .intr_pkt_received_o (intr_usbdev_pkt_received), |
| 1525 | .intr_pkt_sent_o (intr_usbdev_pkt_sent), |
| 1526 | .intr_disconnected_o (intr_usbdev_disconnected), |
| 1527 | .intr_host_lost_o (intr_usbdev_host_lost), |
| 1528 | .intr_link_reset_o (intr_usbdev_link_reset), |
| 1529 | .intr_link_suspend_o (intr_usbdev_link_suspend), |
| 1530 | .intr_link_resume_o (intr_usbdev_link_resume), |
| 1531 | .intr_av_empty_o (intr_usbdev_av_empty), |
| 1532 | .intr_rx_full_o (intr_usbdev_rx_full), |
| 1533 | .intr_av_overflow_o (intr_usbdev_av_overflow), |
| 1534 | .intr_link_in_err_o (intr_usbdev_link_in_err), |
| 1535 | .intr_rx_crc_err_o (intr_usbdev_rx_crc_err), |
| 1536 | .intr_rx_pid_err_o (intr_usbdev_rx_pid_err), |
| 1537 | .intr_rx_bitstuff_err_o (intr_usbdev_rx_bitstuff_err), |
| 1538 | .intr_frame_o (intr_usbdev_frame), |
| 1539 | .intr_connected_o (intr_usbdev_connected), |
Stefan Lippuner | 207b1a6 | 2020-11-10 09:25:53 +0100 | [diff] [blame] | 1540 | .intr_link_out_err_o (intr_usbdev_link_out_err), |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 1541 | |
Pirmin Vogel | dd3a2f0 | 2020-05-12 14:59:50 +0200 | [diff] [blame] | 1542 | // Inter-module signals |
Timothy Chen | 1555dce | 2020-08-11 11:26:50 -0700 | [diff] [blame] | 1543 | .usb_ref_val_o(usbdev_usb_ref_val_o), |
| 1544 | .usb_ref_pulse_o(usbdev_usb_ref_pulse_o), |
Timothy Chen | c2b279a | 2021-01-14 18:53:34 -0800 | [diff] [blame] | 1545 | .usb_out_of_rst_o(usbdev_usb_out_of_rst), |
| 1546 | .usb_aon_wake_en_o(usbdev_usb_aon_wake_en), |
| 1547 | .usb_aon_wake_ack_o(usbdev_usb_aon_wake_ack), |
| 1548 | .usb_suspend_o(usbdev_usb_suspend), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1549 | .usb_state_debug_i(pinmux_aon_usb_state_debug), |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1550 | .ram_cfg_i(ast_ram_2p_cfg), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 1551 | .tl_i(usbdev_tl_req), |
| 1552 | .tl_o(usbdev_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 1553 | |
| 1554 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1555 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 1556 | .clk_aon_i (clkmgr_aon_clocks.clk_aon_peri), |
| 1557 | .clk_usb_48mhz_i (clkmgr_aon_clocks.clk_usb_peri), |
| 1558 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]), |
| 1559 | .rst_aon_ni (rstmgr_aon_resets.rst_sys_aon_n[rstmgr_pkg::Domain0Sel]), |
| 1560 | .rst_usb_48mhz_ni (rstmgr_aon_resets.rst_usb_n[rstmgr_pkg::Domain0Sel]) |
| 1561 | ); |
| 1562 | |
| 1563 | otp_ctrl #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1564 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[10:9]), |
Michael Schaffner | 20972a6 | 2021-02-24 18:53:46 -0800 | [diff] [blame] | 1565 | .MemInitFile(OtpCtrlMemInitFile), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1566 | .RndCnstLfsrSeed(RndCnstOtpCtrlLfsrSeed), |
| 1567 | .RndCnstLfsrPerm(RndCnstOtpCtrlLfsrPerm) |
| 1568 | ) u_otp_ctrl ( |
| 1569 | |
| 1570 | // Interrupt |
| 1571 | .intr_otp_operation_done_o (intr_otp_ctrl_otp_operation_done), |
| 1572 | .intr_otp_error_o (intr_otp_ctrl_otp_error), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1573 | // [9]: fatal_macro_error |
| 1574 | // [10]: fatal_check_error |
| 1575 | .alert_tx_o ( alert_tx[10:9] ), |
| 1576 | .alert_rx_i ( alert_rx[10:9] ), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1577 | |
| 1578 | // Inter-module signals |
| 1579 | .otp_ast_pwr_seq_o(otp_ctrl_otp_ast_pwr_seq_o), |
| 1580 | .otp_ast_pwr_seq_h_i(otp_ctrl_otp_ast_pwr_seq_h_i), |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 1581 | .otp_alert_o(otp_alert_o), |
Timothy Chen | 90b8242 | 2021-02-03 23:45:21 -0800 | [diff] [blame] | 1582 | .edn_o(edn0_edn_req[1]), |
| 1583 | .edn_i(edn0_edn_rsp[1]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1584 | .pwr_otp_i(pwrmgr_aon_pwr_otp_req), |
| 1585 | .pwr_otp_o(pwrmgr_aon_pwr_otp_rsp), |
| 1586 | .lc_otp_program_i(lc_ctrl_lc_otp_program_req), |
| 1587 | .lc_otp_program_o(lc_ctrl_lc_otp_program_rsp), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1588 | .otp_lc_data_o(otp_ctrl_otp_lc_data), |
| 1589 | .lc_escalate_en_i(lc_ctrl_lc_escalate_en), |
| 1590 | .lc_creator_seed_sw_rw_en_i(lc_ctrl_lc_creator_seed_sw_rw_en), |
| 1591 | .lc_seed_hw_rd_en_i(lc_ctrl_lc_seed_hw_rd_en), |
| 1592 | .lc_dft_en_i(lc_ctrl_lc_dft_en), |
| 1593 | .lc_check_byp_en_i(lc_ctrl_lc_check_byp_en), |
| 1594 | .otp_keymgr_key_o(otp_ctrl_otp_keymgr_key), |
| 1595 | .flash_otp_key_i(flash_ctrl_otp_req), |
| 1596 | .flash_otp_key_o(flash_ctrl_otp_rsp), |
| 1597 | .sram_otp_key_i(otp_ctrl_sram_otp_key_req), |
| 1598 | .sram_otp_key_o(otp_ctrl_sram_otp_key_rsp), |
| 1599 | .otbn_otp_key_i('0), |
| 1600 | .otbn_otp_key_o(), |
| 1601 | .otp_hw_cfg_o(otp_ctrl_otp_hw_cfg), |
| 1602 | .tl_i(otp_ctrl_tl_req), |
| 1603 | .tl_o(otp_ctrl_tl_rsp), |
Michael Schaffner | d13f442 | 2021-04-20 10:27:48 -0700 | [diff] [blame] | 1604 | .otp_ext_voltage_h_io, |
Timothy Chen | 21e6a4f | 2021-04-30 03:47:01 -0700 | [diff] [blame] | 1605 | .scanmode_i, |
| 1606 | .scan_rst_ni, |
| 1607 | .scan_en_i, |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1608 | |
| 1609 | // Clock and reset connections |
| 1610 | .clk_i (clkmgr_aon_clocks.clk_io_div4_timers), |
| 1611 | .clk_edn_i (clkmgr_aon_clocks.clk_main_timers), |
| 1612 | .rst_ni (rstmgr_aon_resets.rst_lc_io_div4_n[rstmgr_pkg::Domain0Sel]), |
| 1613 | .rst_edn_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
| 1614 | ); |
| 1615 | |
| 1616 | lc_ctrl #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1617 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[13:11]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1618 | .RndCnstLcKeymgrDivInvalid(RndCnstLcCtrlLcKeymgrDivInvalid), |
| 1619 | .RndCnstLcKeymgrDivTestDevRma(RndCnstLcCtrlLcKeymgrDivTestDevRma), |
| 1620 | .RndCnstLcKeymgrDivProduction(RndCnstLcCtrlLcKeymgrDivProduction) |
| 1621 | ) u_lc_ctrl ( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1622 | // [11]: fatal_prog_error |
| 1623 | // [12]: fatal_state_error |
| 1624 | // [13]: fatal_bus_integ_error |
| 1625 | .alert_tx_o ( alert_tx[13:11] ), |
| 1626 | .alert_rx_i ( alert_rx[13:11] ), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1627 | |
| 1628 | // Inter-module signals |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 1629 | .jtag_i(pinmux_aon_lc_jtag_req), |
| 1630 | .jtag_o(pinmux_aon_lc_jtag_rsp), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1631 | .esc_wipe_secrets_tx_i(alert_handler_esc_tx[1]), |
| 1632 | .esc_wipe_secrets_rx_o(alert_handler_esc_rx[1]), |
| 1633 | .esc_scrap_state_tx_i(alert_handler_esc_tx[2]), |
| 1634 | .esc_scrap_state_rx_o(alert_handler_esc_rx[2]), |
| 1635 | .pwr_lc_i(pwrmgr_aon_pwr_lc_req), |
| 1636 | .pwr_lc_o(pwrmgr_aon_pwr_lc_rsp), |
| 1637 | .otp_lc_data_i(otp_ctrl_otp_lc_data), |
| 1638 | .lc_otp_program_o(lc_ctrl_lc_otp_program_req), |
| 1639 | .lc_otp_program_i(lc_ctrl_lc_otp_program_rsp), |
Michael Schaffner | 5fb9ea6 | 2021-05-19 12:56:29 -0700 | [diff] [blame] | 1640 | .kmac_data_o(kmac_app_req[1]), |
| 1641 | .kmac_data_i(kmac_app_rsp[1]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1642 | .lc_dft_en_o(lc_ctrl_lc_dft_en), |
| 1643 | .lc_nvm_debug_en_o(lc_ctrl_lc_nvm_debug_en), |
| 1644 | .lc_hw_debug_en_o(lc_ctrl_lc_hw_debug_en), |
| 1645 | .lc_cpu_en_o(lc_ctrl_lc_cpu_en), |
Michael Schaffner | dc0c1e9 | 2021-03-02 14:41:31 -0800 | [diff] [blame] | 1646 | .lc_keymgr_en_o(lc_ctrl_lc_keymgr_en), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1647 | .lc_escalate_en_o(lc_ctrl_lc_escalate_en), |
Timothy Chen | fa60a60 | 2021-03-23 14:29:40 -0700 | [diff] [blame] | 1648 | .lc_clk_byp_req_o(lc_ctrl_lc_clk_byp_req), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1649 | .lc_clk_byp_ack_i(lc_ctrl_lc_clk_byp_ack), |
| 1650 | .lc_flash_rma_req_o(flash_ctrl_rma_req), |
| 1651 | .lc_flash_rma_seed_o(flash_ctrl_rma_seed), |
| 1652 | .lc_flash_rma_ack_i(flash_ctrl_rma_ack), |
| 1653 | .lc_check_byp_en_o(lc_ctrl_lc_check_byp_en), |
| 1654 | .lc_creator_seed_sw_rw_en_o(lc_ctrl_lc_creator_seed_sw_rw_en), |
| 1655 | .lc_owner_seed_sw_rw_en_o(lc_ctrl_lc_owner_seed_sw_rw_en), |
| 1656 | .lc_iso_part_sw_rd_en_o(lc_ctrl_lc_iso_part_sw_rd_en), |
| 1657 | .lc_iso_part_sw_wr_en_o(lc_ctrl_lc_iso_part_sw_wr_en), |
| 1658 | .lc_seed_hw_rd_en_o(lc_ctrl_lc_seed_hw_rd_en), |
| 1659 | .lc_keymgr_div_o(lc_ctrl_lc_keymgr_div), |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 1660 | .otp_device_id_i(lc_ctrl_otp_device_id), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1661 | .tl_i(lc_ctrl_tl_req), |
| 1662 | .tl_o(lc_ctrl_tl_rsp), |
Michael Schaffner | 8bf4fe6 | 2021-02-18 12:56:08 -0800 | [diff] [blame] | 1663 | .scanmode_i, |
Timothy Chen | 21e6a4f | 2021-04-30 03:47:01 -0700 | [diff] [blame] | 1664 | .scan_rst_ni, |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1665 | |
| 1666 | // Clock and reset connections |
| 1667 | .clk_i (clkmgr_aon_clocks.clk_io_div4_timers), |
Michael Schaffner | 5fb9ea6 | 2021-05-19 12:56:29 -0700 | [diff] [blame] | 1668 | .clk_kmac_i (clkmgr_aon_clocks.clk_main_timers), |
| 1669 | .rst_ni (rstmgr_aon_resets.rst_lc_io_div4_n[rstmgr_pkg::Domain0Sel]), |
| 1670 | .rst_kmac_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1671 | ); |
| 1672 | |
| 1673 | alert_handler #( |
| 1674 | .RndCnstLfsrSeed(RndCnstAlertHandlerLfsrSeed), |
| 1675 | .RndCnstLfsrPerm(RndCnstAlertHandlerLfsrPerm) |
| 1676 | ) u_alert_handler ( |
| 1677 | |
| 1678 | // Interrupt |
| 1679 | .intr_classa_o (intr_alert_handler_classa), |
| 1680 | .intr_classb_o (intr_alert_handler_classb), |
| 1681 | .intr_classc_o (intr_alert_handler_classc), |
| 1682 | .intr_classd_o (intr_alert_handler_classd), |
| 1683 | |
| 1684 | // Inter-module signals |
| 1685 | .crashdump_o(alert_handler_crashdump), |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 1686 | .edn_o(edn0_edn_req[4]), |
| 1687 | .edn_i(edn0_edn_rsp[4]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1688 | .esc_rx_i(alert_handler_esc_rx), |
| 1689 | .esc_tx_o(alert_handler_esc_tx), |
| 1690 | .tl_i(alert_handler_tl_req), |
| 1691 | .tl_o(alert_handler_tl_rsp), |
| 1692 | // alert signals |
| 1693 | .alert_rx_o ( alert_rx ), |
| 1694 | .alert_tx_i ( alert_tx ), |
| 1695 | |
| 1696 | // Clock and reset connections |
| 1697 | .clk_i (clkmgr_aon_clocks.clk_io_div4_timers), |
Timothy Chen | 44b404e | 2021-02-05 13:06:01 -0800 | [diff] [blame] | 1698 | .clk_edn_i (clkmgr_aon_clocks.clk_main_timers), |
| 1699 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]), |
| 1700 | .rst_edn_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1701 | ); |
| 1702 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1703 | pwrmgr u_pwrmgr_aon ( |
| 1704 | |
| 1705 | // Interrupt |
| 1706 | .intr_wakeup_o (intr_pwrmgr_aon_wakeup), |
| 1707 | |
| 1708 | // Inter-module signals |
| 1709 | .pwr_ast_o(pwrmgr_ast_req_o), |
| 1710 | .pwr_ast_i(pwrmgr_ast_rsp_i), |
| 1711 | .pwr_rst_o(pwrmgr_aon_pwr_rst_req), |
| 1712 | .pwr_rst_i(pwrmgr_aon_pwr_rst_rsp), |
| 1713 | .pwr_clk_o(pwrmgr_aon_pwr_clk_req), |
| 1714 | .pwr_clk_i(pwrmgr_aon_pwr_clk_rsp), |
| 1715 | .pwr_otp_o(pwrmgr_aon_pwr_otp_req), |
| 1716 | .pwr_otp_i(pwrmgr_aon_pwr_otp_rsp), |
| 1717 | .pwr_lc_o(pwrmgr_aon_pwr_lc_req), |
| 1718 | .pwr_lc_i(pwrmgr_aon_pwr_lc_rsp), |
Timothy Chen | 6efde1e | 2021-04-16 15:39:23 -0700 | [diff] [blame] | 1719 | .pwr_flash_i(pwrmgr_aon_pwr_flash), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1720 | .esc_rst_tx_i(alert_handler_esc_tx[3]), |
| 1721 | .esc_rst_rx_o(alert_handler_esc_rx[3]), |
| 1722 | .pwr_cpu_i(pwrmgr_aon_pwr_cpu), |
| 1723 | .wakeups_i(pwrmgr_aon_wakeups), |
| 1724 | .rstreqs_i(pwrmgr_aon_rstreqs), |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 1725 | .strap_o(pwrmgr_aon_strap), |
| 1726 | .low_power_o(pwrmgr_aon_low_power), |
Timothy Chen | b2abc98 | 2021-04-20 10:56:23 -0700 | [diff] [blame] | 1727 | .rom_ctrl_i(rom_ctrl_pwrmgr_data), |
| 1728 | .fetch_en_o(pwrmgr_aon_fetch_en), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1729 | .tl_i(pwrmgr_aon_tl_req), |
| 1730 | .tl_o(pwrmgr_aon_tl_rsp), |
| 1731 | |
| 1732 | // Clock and reset connections |
| 1733 | .clk_i (clkmgr_aon_clocks.clk_io_div4_powerup), |
| 1734 | .clk_slow_i (clkmgr_aon_clocks.clk_aon_powerup), |
| 1735 | .rst_ni (rstmgr_aon_resets.rst_por_n[rstmgr_pkg::DomainAonSel]), |
| 1736 | .rst_slow_ni (rstmgr_aon_resets.rst_por_aon_n[rstmgr_pkg::DomainAonSel]) |
| 1737 | ); |
| 1738 | |
| 1739 | rstmgr u_rstmgr_aon ( |
| 1740 | |
| 1741 | // Inter-module signals |
| 1742 | .pwr_i(pwrmgr_aon_pwr_rst_req), |
| 1743 | .pwr_o(pwrmgr_aon_pwr_rst_rsp), |
| 1744 | .resets_o(rstmgr_aon_resets), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1745 | .cpu_i(rstmgr_aon_cpu), |
| 1746 | .alert_dump_i(alert_handler_crashdump), |
Tom Roberts | c88e97f | 2021-03-04 13:38:20 +0000 | [diff] [blame] | 1747 | .cpu_dump_i(rv_core_ibex_crash_dump), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1748 | .resets_ast_o(rsts_ast_o), |
| 1749 | .tl_i(rstmgr_aon_tl_req), |
| 1750 | .tl_o(rstmgr_aon_tl_rsp), |
Michael Schaffner | 8bf4fe6 | 2021-02-18 12:56:08 -0800 | [diff] [blame] | 1751 | .scanmode_i, |
Timothy Chen | 21e6a4f | 2021-04-30 03:47:01 -0700 | [diff] [blame] | 1752 | .scan_rst_ni, |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1753 | |
| 1754 | // Clock and reset connections |
| 1755 | .clk_i (clkmgr_aon_clocks.clk_io_div4_powerup), |
| 1756 | .clk_aon_i (clkmgr_aon_clocks.clk_aon_powerup), |
| 1757 | .clk_main_i (clkmgr_aon_clocks.clk_main_powerup), |
| 1758 | .clk_io_i (clkmgr_aon_clocks.clk_io_powerup), |
| 1759 | .clk_usb_i (clkmgr_aon_clocks.clk_usb_powerup), |
| 1760 | .clk_io_div2_i (clkmgr_aon_clocks.clk_io_div2_powerup), |
| 1761 | .clk_io_div4_i (clkmgr_aon_clocks.clk_io_div4_powerup), |
| 1762 | .rst_ni (rst_ni) |
| 1763 | ); |
| 1764 | |
| 1765 | clkmgr u_clkmgr_aon ( |
| 1766 | |
| 1767 | // Inter-module signals |
| 1768 | .clocks_o(clkmgr_aon_clocks), |
Michael Schaffner | 9d8eb9b | 2021-05-14 19:48:25 -0700 | [diff] [blame] | 1769 | .lc_dft_en_i(lc_ctrl_lc_dft_en), |
Timothy Chen | fa60a60 | 2021-03-23 14:29:40 -0700 | [diff] [blame] | 1770 | .ast_clk_byp_req_o(ast_clk_byp_req_o), |
| 1771 | .ast_clk_byp_ack_i(ast_clk_byp_ack_i), |
| 1772 | .lc_clk_byp_req_i(lc_ctrl_lc_clk_byp_req), |
| 1773 | .lc_clk_byp_ack_o(lc_ctrl_lc_clk_byp_ack), |
Timothy Chen | e38c470 | 2021-02-08 18:38:03 -0800 | [diff] [blame] | 1774 | .jitter_en_o(clk_main_jitter_en_o), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1775 | .clk_main_i(clk_main_i), |
| 1776 | .clk_io_i(clk_io_i), |
| 1777 | .clk_usb_i(clk_usb_i), |
| 1778 | .clk_aon_i(clk_aon_i), |
| 1779 | .clocks_ast_o(clks_ast_o), |
| 1780 | .pwr_i(pwrmgr_aon_pwr_clk_req), |
| 1781 | .pwr_o(pwrmgr_aon_pwr_clk_rsp), |
| 1782 | .idle_i(clkmgr_aon_idle), |
| 1783 | .tl_i(clkmgr_aon_tl_req), |
| 1784 | .tl_o(clkmgr_aon_tl_rsp), |
Michael Schaffner | 8bf4fe6 | 2021-02-18 12:56:08 -0800 | [diff] [blame] | 1785 | .scanmode_i, |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1786 | |
| 1787 | // Clock and reset connections |
| 1788 | .clk_i (clkmgr_aon_clocks.clk_io_div4_powerup), |
| 1789 | .rst_ni (rstmgr_aon_resets.rst_por_io_div4_n[rstmgr_pkg::DomainAonSel]), |
| 1790 | .rst_main_ni (rstmgr_aon_resets.rst_por_n[rstmgr_pkg::DomainAonSel]), |
| 1791 | .rst_io_ni (rstmgr_aon_resets.rst_por_io_n[rstmgr_pkg::DomainAonSel]), |
| 1792 | .rst_usb_ni (rstmgr_aon_resets.rst_por_usb_n[rstmgr_pkg::DomainAonSel]), |
| 1793 | .rst_io_div2_ni (rstmgr_aon_resets.rst_por_io_div2_n[rstmgr_pkg::DomainAonSel]), |
| 1794 | .rst_io_div4_ni (rstmgr_aon_resets.rst_por_io_div4_n[rstmgr_pkg::DomainAonSel]) |
| 1795 | ); |
| 1796 | |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 1797 | sysrst_ctrl u_sysrst_ctrl_aon ( |
| 1798 | |
| 1799 | // Input |
| 1800 | .cio_ac_present_i (cio_sysrst_ctrl_aon_ac_present_p2d), |
| 1801 | .cio_ec_rst_in_l_i (cio_sysrst_ctrl_aon_ec_rst_in_l_p2d), |
| 1802 | .cio_key0_in_i (cio_sysrst_ctrl_aon_key0_in_p2d), |
| 1803 | .cio_key1_in_i (cio_sysrst_ctrl_aon_key1_in_p2d), |
| 1804 | .cio_key2_in_i (cio_sysrst_ctrl_aon_key2_in_p2d), |
| 1805 | .cio_pwrb_in_i (cio_sysrst_ctrl_aon_pwrb_in_p2d), |
| 1806 | |
| 1807 | // Output |
| 1808 | .cio_bat_disable_o (cio_sysrst_ctrl_aon_bat_disable_d2p), |
| 1809 | .cio_bat_disable_en_o (cio_sysrst_ctrl_aon_bat_disable_en_d2p), |
| 1810 | .cio_ec_rst_out_l_o (cio_sysrst_ctrl_aon_ec_rst_out_l_d2p), |
| 1811 | .cio_ec_rst_out_l_en_o (cio_sysrst_ctrl_aon_ec_rst_out_l_en_d2p), |
| 1812 | .cio_key0_out_o (cio_sysrst_ctrl_aon_key0_out_d2p), |
| 1813 | .cio_key0_out_en_o (cio_sysrst_ctrl_aon_key0_out_en_d2p), |
| 1814 | .cio_key1_out_o (cio_sysrst_ctrl_aon_key1_out_d2p), |
| 1815 | .cio_key1_out_en_o (cio_sysrst_ctrl_aon_key1_out_en_d2p), |
| 1816 | .cio_key2_out_o (cio_sysrst_ctrl_aon_key2_out_d2p), |
| 1817 | .cio_key2_out_en_o (cio_sysrst_ctrl_aon_key2_out_en_d2p), |
| 1818 | .cio_pwrb_out_o (cio_sysrst_ctrl_aon_pwrb_out_d2p), |
| 1819 | .cio_pwrb_out_en_o (cio_sysrst_ctrl_aon_pwrb_out_en_d2p), |
| 1820 | |
| 1821 | // Interrupt |
| 1822 | .intr_sysrst_ctrl_o (intr_sysrst_ctrl_aon_sysrst_ctrl), |
| 1823 | |
| 1824 | // Inter-module signals |
Timothy Chen | b74f612 | 2021-04-26 16:57:22 -0700 | [diff] [blame] | 1825 | .gsc_wk_o(pwrmgr_aon_wakeups[0]), |
| 1826 | .gsc_rst_o(pwrmgr_aon_rstreqs[0]), |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 1827 | .tl_i(sysrst_ctrl_aon_tl_req), |
| 1828 | .tl_o(sysrst_ctrl_aon_tl_rsp), |
| 1829 | |
| 1830 | // Clock and reset connections |
| 1831 | .clk_i (clkmgr_aon_clocks.clk_io_div4_secure), |
| 1832 | .clk_aon_i (clkmgr_aon_clocks.clk_aon_secure), |
| 1833 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
| 1834 | .rst_aon_ni (rstmgr_aon_resets.rst_sys_aon_n[rstmgr_pkg::DomainAonSel]) |
| 1835 | ); |
| 1836 | |
Eric Shiu | 5f1d304 | 2021-03-17 17:24:11 -0700 | [diff] [blame] | 1837 | adc_ctrl u_adc_ctrl_aon ( |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 1838 | |
| 1839 | // Interrupt |
| 1840 | .intr_debug_cable_o (intr_adc_ctrl_aon_debug_cable), |
| 1841 | |
| 1842 | // Inter-module signals |
| 1843 | .adc_o(adc_req_o), |
| 1844 | .adc_i(adc_rsp_i), |
Timothy Chen | b74f612 | 2021-04-26 16:57:22 -0700 | [diff] [blame] | 1845 | .debug_cable_wakeup_o(pwrmgr_aon_wakeups[1]), |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 1846 | .tl_i(adc_ctrl_aon_tl_req), |
| 1847 | .tl_o(adc_ctrl_aon_tl_rsp), |
| 1848 | |
| 1849 | // Clock and reset connections |
| 1850 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 1851 | .clk_aon_i (clkmgr_aon_clocks.clk_aon_peri), |
| 1852 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
| 1853 | .rst_slow_ni (rstmgr_aon_resets.rst_sys_aon_n[rstmgr_pkg::DomainAonSel]) |
| 1854 | ); |
| 1855 | |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 1856 | pwm u_pwm_aon ( |
| 1857 | |
| 1858 | // Output |
| 1859 | .cio_pwm_o (cio_pwm_aon_pwm_d2p), |
| 1860 | .cio_pwm_en_o (cio_pwm_aon_pwm_en_d2p), |
| 1861 | |
| 1862 | // Inter-module signals |
| 1863 | .tl_i(pwm_aon_tl_req), |
| 1864 | .tl_o(pwm_aon_tl_rsp), |
| 1865 | |
| 1866 | // Clock and reset connections |
| 1867 | .clk_i (clkmgr_aon_clocks.clk_io_div4_powerup), |
| 1868 | .clk_core_i (clkmgr_aon_clocks.clk_aon_powerup), |
| 1869 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
| 1870 | .rst_core_ni (rstmgr_aon_resets.rst_sys_aon_n[rstmgr_pkg::DomainAonSel]) |
| 1871 | ); |
| 1872 | |
Michael Schaffner | 5f54587 | 2021-03-05 17:54:28 -0800 | [diff] [blame] | 1873 | pinmux #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1874 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[14:14]), |
Michael Schaffner | 5f54587 | 2021-03-05 17:54:28 -0800 | [diff] [blame] | 1875 | .TargetCfg(PinmuxAonTargetCfg) |
| 1876 | ) u_pinmux_aon ( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1877 | // [14]: fatal_fault |
| 1878 | .alert_tx_o ( alert_tx[14:14] ), |
| 1879 | .alert_rx_i ( alert_rx[14:14] ), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1880 | |
| 1881 | // Inter-module signals |
Michael Schaffner | a706380 | 2021-02-18 18:06:03 -0800 | [diff] [blame] | 1882 | .lc_hw_debug_en_i(lc_ctrl_lc_hw_debug_en), |
| 1883 | .lc_dft_en_i(lc_ctrl_lc_dft_en), |
| 1884 | .lc_jtag_o(pinmux_aon_lc_jtag_req), |
| 1885 | .lc_jtag_i(pinmux_aon_lc_jtag_rsp), |
Michael Schaffner | 5f54587 | 2021-03-05 17:54:28 -0800 | [diff] [blame] | 1886 | .rv_jtag_o(pinmux_aon_rv_jtag_req), |
| 1887 | .rv_jtag_i(pinmux_aon_rv_jtag_rsp), |
Michael Schaffner | fca4382 | 2021-05-20 13:35:56 -0700 | [diff] [blame] | 1888 | .dft_jtag_o(pinmux_aon_dft_jtag_req), |
| 1889 | .dft_jtag_i(pinmux_aon_dft_jtag_rsp), |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1890 | .dft_strap_test_o(dft_strap_test_o), |
Timothy Chen | 1b5f81b | 2021-04-28 14:44:48 -0700 | [diff] [blame] | 1891 | .dft_hold_tap_sel_i(dft_hold_tap_sel_i), |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 1892 | .sleep_en_i(pwrmgr_aon_low_power), |
| 1893 | .strap_en_i(pwrmgr_aon_strap), |
Timothy Chen | b74f612 | 2021-04-26 16:57:22 -0700 | [diff] [blame] | 1894 | .aon_wkup_req_o(pwrmgr_aon_wakeups[2]), |
| 1895 | .usb_wkup_req_o(pwrmgr_aon_wakeups[3]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1896 | .usb_out_of_rst_i(usbdev_usb_out_of_rst), |
| 1897 | .usb_aon_wake_en_i(usbdev_usb_aon_wake_en), |
| 1898 | .usb_aon_wake_ack_i(usbdev_usb_aon_wake_ack), |
| 1899 | .usb_suspend_i(usbdev_usb_suspend), |
| 1900 | .usb_state_debug_o(pinmux_aon_usb_state_debug), |
| 1901 | .tl_i(pinmux_aon_tl_req), |
| 1902 | .tl_o(pinmux_aon_tl_rsp), |
| 1903 | |
| 1904 | .periph_to_mio_i (mio_d2p ), |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1905 | .periph_to_mio_oe_i (mio_en_d2p ), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1906 | .mio_to_periph_o (mio_p2d ), |
| 1907 | |
Michael Schaffner | 43ce8d5 | 2021-02-10 17:04:57 -0800 | [diff] [blame] | 1908 | .mio_attr_o, |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1909 | .mio_out_o, |
| 1910 | .mio_oe_o, |
| 1911 | .mio_in_i, |
| 1912 | |
| 1913 | .periph_to_dio_i (dio_d2p ), |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 1914 | .periph_to_dio_oe_i (dio_en_d2p ), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1915 | .dio_to_periph_o (dio_p2d ), |
| 1916 | |
Michael Schaffner | 43ce8d5 | 2021-02-10 17:04:57 -0800 | [diff] [blame] | 1917 | .dio_attr_o, |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1918 | .dio_out_o, |
| 1919 | .dio_oe_o, |
| 1920 | .dio_in_i, |
| 1921 | |
Michael Schaffner | a1f7618 | 2021-03-16 18:05:46 -0700 | [diff] [blame] | 1922 | .scanmode_i, |
Michael Schaffner | 43ce8d5 | 2021-02-10 17:04:57 -0800 | [diff] [blame] | 1923 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1924 | // Clock and reset connections |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 1925 | .clk_i (clkmgr_aon_clocks.clk_io_div4_powerup), |
| 1926 | .clk_aon_i (clkmgr_aon_clocks.clk_aon_powerup), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1927 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
| 1928 | .rst_aon_ni (rstmgr_aon_resets.rst_sys_aon_n[rstmgr_pkg::DomainAonSel]) |
| 1929 | ); |
| 1930 | |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 1931 | aon_timer u_aon_timer_aon ( |
| 1932 | |
| 1933 | // Interrupt |
| 1934 | .intr_wkup_timer_expired_o (intr_aon_timer_aon_wkup_timer_expired), |
| 1935 | .intr_wdog_timer_bark_o (intr_aon_timer_aon_wdog_timer_bark), |
| 1936 | |
| 1937 | // Inter-module signals |
Timothy Chen | b74f612 | 2021-04-26 16:57:22 -0700 | [diff] [blame] | 1938 | .aon_timer_wkup_req_o(pwrmgr_aon_wakeups[4]), |
| 1939 | .aon_timer_rst_req_o(pwrmgr_aon_rstreqs[1]), |
Michael Schaffner | 69844f5 | 2021-06-01 10:19:40 -0700 | [diff] [blame] | 1940 | .lc_escalate_en_i(lc_ctrl_lc_escalate_en), |
Timothy Chen | 383afb8 | 2021-02-23 13:18:53 -0800 | [diff] [blame] | 1941 | .sleep_mode_i(pwrmgr_aon_low_power), |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 1942 | .tl_i(aon_timer_aon_tl_req), |
| 1943 | .tl_o(aon_timer_aon_tl_rsp), |
| 1944 | |
| 1945 | // Clock and reset connections |
| 1946 | .clk_i (clkmgr_aon_clocks.clk_io_div4_timers), |
| 1947 | .clk_aon_i (clkmgr_aon_clocks.clk_aon_timers), |
| 1948 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
| 1949 | .rst_aon_ni (rstmgr_aon_resets.rst_sys_aon_n[rstmgr_pkg::DomainAonSel]) |
| 1950 | ); |
| 1951 | |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 1952 | sensor_ctrl #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1953 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[25:15]) |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 1954 | ) u_sensor_ctrl_aon ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1955 | |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1956 | // Output |
| 1957 | .cio_ast_debug_out_o (cio_sensor_ctrl_aon_ast_debug_out_d2p), |
| 1958 | .cio_ast_debug_out_en_o (cio_sensor_ctrl_aon_ast_debug_out_en_d2p), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1959 | // [15]: recov_as |
| 1960 | // [16]: recov_cg |
| 1961 | // [17]: recov_gd |
| 1962 | // [18]: recov_ts_hi |
| 1963 | // [19]: recov_ts_lo |
| 1964 | // [20]: recov_fla |
| 1965 | // [21]: recov_otp |
| 1966 | // [22]: recov_ot0 |
| 1967 | // [23]: recov_ot1 |
| 1968 | // [24]: recov_ot2 |
| 1969 | // [25]: recov_ot3 |
| 1970 | .alert_tx_o ( alert_tx[25:15] ), |
| 1971 | .alert_rx_i ( alert_rx[25:15] ), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1972 | |
| 1973 | // Inter-module signals |
| 1974 | .ast_alert_i(sensor_ctrl_ast_alert_req_i), |
| 1975 | .ast_alert_o(sensor_ctrl_ast_alert_rsp_o), |
| 1976 | .ast_status_i(sensor_ctrl_ast_status_i), |
Timothy Chen | 800136d | 2021-04-29 14:56:19 -0700 | [diff] [blame] | 1977 | .ast_init_done_i(ast_init_done_i), |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 1978 | .ast2pinmux_i(ast2pinmux_i), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1979 | .tl_i(sensor_ctrl_aon_tl_req), |
| 1980 | .tl_o(sensor_ctrl_aon_tl_rsp), |
| 1981 | |
| 1982 | // Clock and reset connections |
| 1983 | .clk_i (clkmgr_aon_clocks.clk_io_div4_secure), |
| 1984 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]) |
Pirmin Vogel | ea91b30 | 2020-01-14 18:53:01 +0000 | [diff] [blame] | 1985 | ); |
| 1986 | |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 1987 | sram_ctrl #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1988 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[27:26]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1989 | .RndCnstSramKey(RndCnstSramCtrlRetAonSramKey), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 1990 | .RndCnstSramNonce(RndCnstSramCtrlRetAonSramNonce), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 1991 | .RndCnstSramLfsrPerm(RndCnstSramCtrlRetAonSramLfsrPerm), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 1992 | .InstrExec(SramCtrlRetAonInstrExec) |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 1993 | ) u_sram_ctrl_ret_aon ( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 1994 | // [26]: fatal_intg_error |
| 1995 | // [27]: fatal_parity_error |
| 1996 | .alert_tx_o ( alert_tx[27:26] ), |
| 1997 | .alert_rx_i ( alert_rx[27:26] ), |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 1998 | |
| 1999 | // Inter-module signals |
| 2000 | .sram_otp_key_o(otp_ctrl_sram_otp_key_req[1]), |
| 2001 | .sram_otp_key_i(otp_ctrl_sram_otp_key_rsp[1]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2002 | .sram_scr_o(sram_ctrl_ret_aon_sram_scr_req), |
| 2003 | .sram_scr_i(sram_ctrl_ret_aon_sram_scr_rsp), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 2004 | .sram_scr_init_o(sram_ctrl_ret_aon_sram_scr_init_req), |
| 2005 | .sram_scr_init_i(sram_ctrl_ret_aon_sram_scr_init_rsp), |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2006 | .lc_escalate_en_i(lc_ctrl_lc_escalate_en), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 2007 | .lc_hw_debug_en_i(lc_ctrl_lc_hw_debug_en), |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 2008 | .otp_en_sram_ifetch_i(sram_ctrl_ret_aon_otp_en_sram_ifetch), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 2009 | .en_ifetch_o(sram_ctrl_ret_aon_en_ifetch), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 2010 | .intg_error_i(ram_ret_aon_intg_error), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2011 | .tl_i(sram_ctrl_ret_aon_tl_req), |
| 2012 | .tl_o(sram_ctrl_ret_aon_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2013 | |
| 2014 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2015 | .clk_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 2016 | .clk_otp_i (clkmgr_aon_clocks.clk_io_div4_peri), |
| 2017 | .rst_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::DomainAonSel]), |
| 2018 | .rst_otp_ni (rstmgr_aon_resets.rst_lc_io_div4_n[rstmgr_pkg::DomainAonSel]) |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2019 | ); |
| 2020 | |
Timothy Chen | ccf343d | 2020-12-04 20:38:15 -0800 | [diff] [blame] | 2021 | flash_ctrl #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2022 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[31:28]), |
Timothy Chen | ccf343d | 2020-12-04 20:38:15 -0800 | [diff] [blame] | 2023 | .RndCnstAddrKey(RndCnstFlashCtrlAddrKey), |
Timothy Chen | 24b6279 | 2020-12-11 15:09:05 -0800 | [diff] [blame] | 2024 | .RndCnstDataKey(RndCnstFlashCtrlDataKey), |
| 2025 | .RndCnstLfsrSeed(RndCnstFlashCtrlLfsrSeed), |
| 2026 | .RndCnstLfsrPerm(RndCnstFlashCtrlLfsrPerm) |
Timothy Chen | ccf343d | 2020-12-04 20:38:15 -0800 | [diff] [blame] | 2027 | ) u_flash_ctrl ( |
Timothy Chen | 1555dce | 2020-08-11 11:26:50 -0700 | [diff] [blame] | 2028 | |
Timothy Chen | 6a34b6e | 2021-02-22 11:33:11 -0800 | [diff] [blame] | 2029 | // Input |
| 2030 | .cio_tck_i (cio_flash_ctrl_tck_p2d), |
| 2031 | .cio_tms_i (cio_flash_ctrl_tms_p2d), |
| 2032 | .cio_tdi_i (cio_flash_ctrl_tdi_p2d), |
| 2033 | |
| 2034 | // Output |
| 2035 | .cio_tdo_o (cio_flash_ctrl_tdo_d2p), |
| 2036 | .cio_tdo_en_o (cio_flash_ctrl_tdo_en_d2p), |
| 2037 | |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2038 | // Interrupt |
| 2039 | .intr_prog_empty_o (intr_flash_ctrl_prog_empty), |
| 2040 | .intr_prog_lvl_o (intr_flash_ctrl_prog_lvl), |
| 2041 | .intr_rd_full_o (intr_flash_ctrl_rd_full), |
| 2042 | .intr_rd_lvl_o (intr_flash_ctrl_rd_lvl), |
| 2043 | .intr_op_done_o (intr_flash_ctrl_op_done), |
Timothy Chen | aad796e | 2021-03-24 17:21:33 -0700 | [diff] [blame] | 2044 | .intr_err_o (intr_flash_ctrl_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2045 | // [28]: recov_err |
| 2046 | // [29]: recov_mp_err |
| 2047 | // [30]: recov_ecc_err |
| 2048 | // [31]: fatal_intg_err |
| 2049 | .alert_tx_o ( alert_tx[31:28] ), |
| 2050 | .alert_rx_i ( alert_rx[31:28] ), |
Timothy Chen | 1555dce | 2020-08-11 11:26:50 -0700 | [diff] [blame] | 2051 | |
| 2052 | // Inter-module signals |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2053 | .flash_o(flash_ctrl_flash_req), |
| 2054 | .flash_i(flash_ctrl_flash_rsp), |
Timothy Chen | ccf343d | 2020-12-04 20:38:15 -0800 | [diff] [blame] | 2055 | .otp_o(flash_ctrl_otp_req), |
| 2056 | .otp_i(flash_ctrl_otp_rsp), |
Michael Schaffner | 6d3d6a0 | 2020-12-11 13:52:51 -0800 | [diff] [blame] | 2057 | .lc_creator_seed_sw_rw_en_i(lc_ctrl_lc_creator_seed_sw_rw_en), |
| 2058 | .lc_owner_seed_sw_rw_en_i(lc_ctrl_lc_owner_seed_sw_rw_en), |
| 2059 | .lc_iso_part_sw_rd_en_i(lc_ctrl_lc_iso_part_sw_rd_en), |
| 2060 | .lc_iso_part_sw_wr_en_i(lc_ctrl_lc_iso_part_sw_wr_en), |
| 2061 | .lc_seed_hw_rd_en_i(lc_ctrl_lc_seed_hw_rd_en), |
Timothy Chen | 3cb138f | 2020-12-15 20:35:03 -0800 | [diff] [blame] | 2062 | .rma_req_i(flash_ctrl_rma_req), |
| 2063 | .rma_ack_o(flash_ctrl_rma_ack), |
| 2064 | .rma_seed_i(flash_ctrl_rma_seed), |
Timothy Chen | 6efde1e | 2021-04-16 15:39:23 -0700 | [diff] [blame] | 2065 | .pwrmgr_o(pwrmgr_aon_pwr_flash), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2066 | .keymgr_o(flash_ctrl_keymgr), |
Timothy Chen | 76eb883 | 2021-03-25 16:49:58 -0700 | [diff] [blame] | 2067 | .core_tl_i(flash_ctrl_core_tl_req), |
| 2068 | .core_tl_o(flash_ctrl_core_tl_rsp), |
| 2069 | .prim_tl_i(flash_ctrl_prim_tl_req), |
| 2070 | .prim_tl_o(flash_ctrl_prim_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2071 | |
| 2072 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2073 | .clk_i (clkmgr_aon_clocks.clk_main_infra), |
| 2074 | .clk_otp_i (clkmgr_aon_clocks.clk_io_div4_infra), |
| 2075 | .rst_ni (rstmgr_aon_resets.rst_lc_n[rstmgr_pkg::Domain0Sel]), |
| 2076 | .rst_otp_ni (rstmgr_aon_resets.rst_lc_io_div4_n[rstmgr_pkg::Domain0Sel]) |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2077 | ); |
| 2078 | |
| 2079 | rv_plic u_rv_plic ( |
| 2080 | |
| 2081 | // Inter-module signals |
| 2082 | .tl_i(rv_plic_tl_req), |
| 2083 | .tl_o(rv_plic_tl_rsp), |
| 2084 | |
| 2085 | .intr_src_i (intr_vector), |
| 2086 | .irq_o (irq_plic), |
| 2087 | .irq_id_o (irq_id), |
| 2088 | .msip_o (msip), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2089 | |
| 2090 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2091 | .clk_i (clkmgr_aon_clocks.clk_main_secure), |
| 2092 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2093 | ); |
| 2094 | |
| 2095 | aes #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2096 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[33:32]), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2097 | .AES192Enable(1'b1), |
| 2098 | .Masking(AesMasking), |
| 2099 | .SBoxImpl(AesSBoxImpl), |
| 2100 | .SecStartTriggerDelay(SecAesStartTriggerDelay), |
| 2101 | .SecAllowForcingMasks(SecAesAllowForcingMasks), |
Pirmin Vogel | 95cea45 | 2021-03-02 08:54:01 +0100 | [diff] [blame] | 2102 | .SecSkipPRNGReseeding(SecAesSkipPRNGReseeding), |
Pirmin Vogel | d31b0cc | 2021-02-26 11:48:39 +0100 | [diff] [blame] | 2103 | .RndCnstClearingLfsrSeed(RndCnstAesClearingLfsrSeed), |
| 2104 | .RndCnstClearingLfsrPerm(RndCnstAesClearingLfsrPerm), |
Pirmin Vogel | 116ecac | 2021-03-19 11:21:42 +0100 | [diff] [blame] | 2105 | .RndCnstClearingSharePerm(RndCnstAesClearingSharePerm), |
Pirmin Vogel | d31b0cc | 2021-02-26 11:48:39 +0100 | [diff] [blame] | 2106 | .RndCnstMaskingLfsrSeed(RndCnstAesMaskingLfsrSeed), |
| 2107 | .RndCnstMskgChunkLfsrPerm(RndCnstAesMskgChunkLfsrPerm) |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2108 | ) u_aes ( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2109 | // [32]: recov_ctrl_update_err |
| 2110 | // [33]: fatal_fault |
| 2111 | .alert_tx_o ( alert_tx[33:32] ), |
| 2112 | .alert_rx_i ( alert_rx[33:32] ), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2113 | |
| 2114 | // Inter-module signals |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2115 | .idle_o(clkmgr_aon_idle[0]), |
Pirmin Vogel | 144ca84 | 2021-02-26 15:46:43 +0100 | [diff] [blame] | 2116 | .lc_escalate_en_i(lc_ctrl_lc_escalate_en), |
Timothy Chen | 72cb99c | 2021-03-08 15:58:44 -0800 | [diff] [blame] | 2117 | .edn_o(edn0_edn_req[5]), |
| 2118 | .edn_i(edn0_edn_rsp[5]), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2119 | .tl_i(aes_tl_req), |
| 2120 | .tl_o(aes_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2121 | |
| 2122 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2123 | .clk_i (clkmgr_aon_clocks.clk_main_aes), |
Pirmin Vogel | 95cea45 | 2021-03-02 08:54:01 +0100 | [diff] [blame] | 2124 | .clk_edn_i (clkmgr_aon_clocks.clk_main_aes), |
| 2125 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
| 2126 | .rst_edn_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2127 | ); |
| 2128 | |
Michael Schaffner | 8a6bedc | 2021-06-07 16:25:02 -0700 | [diff] [blame] | 2129 | hmac #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2130 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[34:34]) |
Michael Schaffner | 8a6bedc | 2021-06-07 16:25:02 -0700 | [diff] [blame] | 2131 | ) u_hmac ( |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2132 | |
| 2133 | // Interrupt |
| 2134 | .intr_hmac_done_o (intr_hmac_hmac_done), |
| 2135 | .intr_fifo_empty_o (intr_hmac_fifo_empty), |
| 2136 | .intr_hmac_err_o (intr_hmac_hmac_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2137 | // [34]: fatal_fault |
| 2138 | .alert_tx_o ( alert_tx[34:34] ), |
| 2139 | .alert_rx_i ( alert_rx[34:34] ), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2140 | |
| 2141 | // Inter-module signals |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2142 | .idle_o(clkmgr_aon_idle[1]), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2143 | .tl_i(hmac_tl_req), |
| 2144 | .tl_o(hmac_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2145 | |
| 2146 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2147 | .clk_i (clkmgr_aon_clocks.clk_main_hmac), |
| 2148 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2149 | ); |
| 2150 | |
| 2151 | kmac #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2152 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[35:35]), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2153 | .EnMasking(KmacEnMasking), |
| 2154 | .ReuseShare(KmacReuseShare) |
| 2155 | ) u_kmac ( |
| 2156 | |
| 2157 | // Interrupt |
| 2158 | .intr_kmac_done_o (intr_kmac_kmac_done), |
| 2159 | .intr_fifo_empty_o (intr_kmac_fifo_empty), |
| 2160 | .intr_kmac_err_o (intr_kmac_kmac_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2161 | // [35]: fatal_fault |
| 2162 | .alert_tx_o ( alert_tx[35:35] ), |
| 2163 | .alert_rx_i ( alert_rx[35:35] ), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2164 | |
| 2165 | // Inter-module signals |
| 2166 | .keymgr_key_i(keymgr_kmac_key), |
Eunchan Kim | 02eaac7 | 2021-03-23 10:54:25 -0700 | [diff] [blame] | 2167 | .app_i(kmac_app_req), |
| 2168 | .app_o(kmac_app_rsp), |
Timothy Chen | 44b404e | 2021-02-05 13:06:01 -0800 | [diff] [blame] | 2169 | .entropy_o(edn0_edn_req[3]), |
| 2170 | .entropy_i(edn0_edn_rsp[3]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2171 | .idle_o(clkmgr_aon_idle[2]), |
Martin Lueker-Boden | d5a1e4b | 2020-11-11 19:46:33 -0800 | [diff] [blame] | 2172 | .tl_i(kmac_tl_req), |
| 2173 | .tl_o(kmac_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2174 | |
| 2175 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2176 | .clk_i (clkmgr_aon_clocks.clk_main_kmac), |
| 2177 | .clk_edn_i (clkmgr_aon_clocks.clk_main_kmac), |
| 2178 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
| 2179 | .rst_edn_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 1555dce | 2020-08-11 11:26:50 -0700 | [diff] [blame] | 2180 | ); |
| 2181 | |
Timothy Chen | f9169fa | 2020-12-04 18:08:45 -0800 | [diff] [blame] | 2182 | keymgr #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2183 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[37:36]), |
Timothy Chen | f9169fa | 2020-12-04 18:08:45 -0800 | [diff] [blame] | 2184 | .RndCnstLfsrSeed(RndCnstKeymgrLfsrSeed), |
| 2185 | .RndCnstLfsrPerm(RndCnstKeymgrLfsrPerm), |
Timothy Chen | be2da9e | 2021-01-07 18:29:01 -0800 | [diff] [blame] | 2186 | .RndCnstRandPerm(RndCnstKeymgrRandPerm), |
Timothy Chen | f9169fa | 2020-12-04 18:08:45 -0800 | [diff] [blame] | 2187 | .RndCnstRevisionSeed(RndCnstKeymgrRevisionSeed), |
| 2188 | .RndCnstCreatorIdentitySeed(RndCnstKeymgrCreatorIdentitySeed), |
| 2189 | .RndCnstOwnerIntIdentitySeed(RndCnstKeymgrOwnerIntIdentitySeed), |
| 2190 | .RndCnstOwnerIdentitySeed(RndCnstKeymgrOwnerIdentitySeed), |
| 2191 | .RndCnstSoftOutputSeed(RndCnstKeymgrSoftOutputSeed), |
Timothy Chen | 51c8546 | 2020-12-10 16:36:02 -0800 | [diff] [blame] | 2192 | .RndCnstHardOutputSeed(RndCnstKeymgrHardOutputSeed), |
| 2193 | .RndCnstAesSeed(RndCnstKeymgrAesSeed), |
| 2194 | .RndCnstHmacSeed(RndCnstKeymgrHmacSeed), |
| 2195 | .RndCnstKmacSeed(RndCnstKeymgrKmacSeed), |
| 2196 | .RndCnstNoneSeed(RndCnstKeymgrNoneSeed) |
Timothy Chen | f9169fa | 2020-12-04 18:08:45 -0800 | [diff] [blame] | 2197 | ) u_keymgr ( |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 2198 | |
| 2199 | // Interrupt |
| 2200 | .intr_op_done_o (intr_keymgr_op_done), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2201 | // [36]: fatal_fault_err |
| 2202 | // [37]: recov_operation_err |
| 2203 | .alert_tx_o ( alert_tx[37:36] ), |
| 2204 | .alert_rx_i ( alert_rx[37:36] ), |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 2205 | |
| 2206 | // Inter-module signals |
Timothy Chen | 90b8242 | 2021-02-03 23:45:21 -0800 | [diff] [blame] | 2207 | .edn_o(edn0_edn_req[0]), |
| 2208 | .edn_i(edn0_edn_rsp[0]), |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 2209 | .aes_key_o(), |
| 2210 | .hmac_key_o(), |
Eunchan Kim | e5d33b7 | 2020-11-03 14:34:16 -0800 | [diff] [blame] | 2211 | .kmac_key_o(keymgr_kmac_key), |
Eunchan Kim | 4af433f | 2021-03-25 17:11:41 -0700 | [diff] [blame] | 2212 | .kmac_data_o(kmac_app_req[0]), |
| 2213 | .kmac_data_i(kmac_app_rsp[0]), |
Timothy Chen | 77cc8b9 | 2020-12-05 09:19:14 -0800 | [diff] [blame] | 2214 | .otp_key_i(otp_ctrl_otp_keymgr_key), |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 2215 | .otp_device_id_i(keymgr_otp_device_id), |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 2216 | .flash_i(flash_ctrl_keymgr), |
Michael Schaffner | dc0c1e9 | 2021-03-02 14:41:31 -0800 | [diff] [blame] | 2217 | .lc_keymgr_en_i(lc_ctrl_lc_keymgr_en), |
Timothy Chen | 6ace8f3 | 2020-12-14 17:26:56 -0800 | [diff] [blame] | 2218 | .lc_keymgr_div_i(lc_ctrl_lc_keymgr_div), |
Timothy Chen | f625b0d | 2021-04-20 17:54:24 -0700 | [diff] [blame] | 2219 | .rom_digest_i(rom_ctrl_keymgr_data), |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 2220 | .tl_i(keymgr_tl_req), |
| 2221 | .tl_o(keymgr_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2222 | |
| 2223 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2224 | .clk_i (clkmgr_aon_clocks.clk_main_secure), |
| 2225 | .clk_edn_i (clkmgr_aon_clocks.clk_main_secure), |
| 2226 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
| 2227 | .rst_edn_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 2228 | ); |
| 2229 | |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2230 | csrng #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2231 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[38:38]), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2232 | .SBoxImpl(CsrngSBoxImpl) |
| 2233 | ) u_csrng ( |
| 2234 | |
| 2235 | // Interrupt |
| 2236 | .intr_cs_cmd_req_done_o (intr_csrng_cs_cmd_req_done), |
| 2237 | .intr_cs_entropy_req_o (intr_csrng_cs_entropy_req), |
| 2238 | .intr_cs_hw_inst_exc_o (intr_csrng_cs_hw_inst_exc), |
Mark Branstad | d65d139 | 2021-02-10 13:15:39 -0800 | [diff] [blame] | 2239 | .intr_cs_fatal_err_o (intr_csrng_cs_fatal_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2240 | // [38]: fatal_alert |
| 2241 | .alert_tx_o ( alert_tx[38:38] ), |
| 2242 | .alert_rx_i ( alert_rx[38:38] ), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2243 | |
| 2244 | // Inter-module signals |
| 2245 | .csrng_cmd_i(csrng_csrng_cmd_req), |
| 2246 | .csrng_cmd_o(csrng_csrng_cmd_rsp), |
| 2247 | .entropy_src_hw_if_o(csrng_entropy_src_hw_if_req), |
| 2248 | .entropy_src_hw_if_i(csrng_entropy_src_hw_if_rsp), |
Mark Branstad | de7eba3 | 2021-03-22 14:18:38 -0700 | [diff] [blame] | 2249 | .cs_aes_halt_i(csrng_cs_aes_halt_req), |
| 2250 | .cs_aes_halt_o(csrng_cs_aes_halt_rsp), |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 2251 | .otp_en_csrng_sw_app_read_i(csrng_otp_en_csrng_sw_app_read), |
Michael Schaffner | 991524f | 2021-06-01 10:19:00 -0700 | [diff] [blame] | 2252 | .lc_hw_debug_en_i(lc_ctrl_lc_hw_debug_en), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2253 | .tl_i(csrng_tl_req), |
| 2254 | .tl_o(csrng_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2255 | |
| 2256 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2257 | .clk_i (clkmgr_aon_clocks.clk_main_secure), |
| 2258 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2259 | ); |
| 2260 | |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 2261 | entropy_src #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2262 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[40:39]), |
Timothy Chen | dff0b9d | 2021-04-22 12:46:14 -0700 | [diff] [blame] | 2263 | .Stub(EntropySrcStub) |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 2264 | ) u_entropy_src ( |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2265 | |
| 2266 | // Interrupt |
| 2267 | .intr_es_entropy_valid_o (intr_entropy_src_es_entropy_valid), |
| 2268 | .intr_es_health_test_failed_o (intr_entropy_src_es_health_test_failed), |
Mark Branstad | 3323636 | 2021-05-12 14:37:41 -0700 | [diff] [blame] | 2269 | .intr_es_observe_fifo_ready_o (intr_entropy_src_es_observe_fifo_ready), |
Mark Branstad | 789ea02 | 2021-02-12 14:35:42 -0800 | [diff] [blame] | 2270 | .intr_es_fatal_err_o (intr_entropy_src_es_fatal_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2271 | // [39]: recov_alert |
| 2272 | // [40]: fatal_alert |
| 2273 | .alert_tx_o ( alert_tx[40:39] ), |
| 2274 | .alert_rx_i ( alert_rx[40:39] ), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2275 | |
| 2276 | // Inter-module signals |
| 2277 | .entropy_src_hw_if_i(csrng_entropy_src_hw_if_req), |
| 2278 | .entropy_src_hw_if_o(csrng_entropy_src_hw_if_rsp), |
Mark Branstad | de7eba3 | 2021-03-22 14:18:38 -0700 | [diff] [blame] | 2279 | .cs_aes_halt_o(csrng_cs_aes_halt_req), |
| 2280 | .cs_aes_halt_i(csrng_cs_aes_halt_rsp), |
Timothy Chen | ea59ad3 | 2021-02-03 17:51:38 -0800 | [diff] [blame] | 2281 | .entropy_src_rng_o(es_rng_req_o), |
| 2282 | .entropy_src_rng_i(es_rng_rsp_i), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2283 | .entropy_src_xht_o(), |
| 2284 | .entropy_src_xht_i(entropy_src_pkg::ENTROPY_SRC_XHT_RSP_DEFAULT), |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 2285 | .otp_en_entropy_src_fw_read_i(entropy_src_otp_en_entropy_src_fw_read), |
Michael Schaffner | d59fd18 | 2021-06-03 19:36:44 -0700 | [diff] [blame] | 2286 | .otp_en_entropy_src_fw_over_i(entropy_src_otp_en_entropy_src_fw_over), |
Timothy Chen | 5270b7c | 2021-03-17 17:38:30 -0700 | [diff] [blame] | 2287 | .rng_fips_o(es_rng_fips_o), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2288 | .tl_i(entropy_src_tl_req), |
| 2289 | .tl_o(entropy_src_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2290 | |
| 2291 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2292 | .clk_i (clkmgr_aon_clocks.clk_main_secure), |
| 2293 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2294 | ); |
| 2295 | |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 2296 | edn #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2297 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[41:41]) |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 2298 | ) u_edn0 ( |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2299 | |
| 2300 | // Interrupt |
| 2301 | .intr_edn_cmd_req_done_o (intr_edn0_edn_cmd_req_done), |
Mark Branstad | 1e7fa2e | 2021-02-18 08:41:37 -0800 | [diff] [blame] | 2302 | .intr_edn_fatal_err_o (intr_edn0_edn_fatal_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2303 | // [41]: fatal_alert |
| 2304 | .alert_tx_o ( alert_tx[41:41] ), |
| 2305 | .alert_rx_i ( alert_rx[41:41] ), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2306 | |
| 2307 | // Inter-module signals |
| 2308 | .csrng_cmd_o(csrng_csrng_cmd_req[0]), |
| 2309 | .csrng_cmd_i(csrng_csrng_cmd_rsp[0]), |
Timothy Chen | 90b8242 | 2021-02-03 23:45:21 -0800 | [diff] [blame] | 2310 | .edn_i(edn0_edn_req), |
| 2311 | .edn_o(edn0_edn_rsp), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2312 | .tl_i(edn0_tl_req), |
| 2313 | .tl_o(edn0_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2314 | |
| 2315 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2316 | .clk_i (clkmgr_aon_clocks.clk_main_secure), |
| 2317 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2318 | ); |
| 2319 | |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 2320 | edn #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2321 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[42:42]) |
Michael Schaffner | 4ac0a9d | 2021-03-12 14:45:32 -0800 | [diff] [blame] | 2322 | ) u_edn1 ( |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2323 | |
| 2324 | // Interrupt |
| 2325 | .intr_edn_cmd_req_done_o (intr_edn1_edn_cmd_req_done), |
Mark Branstad | 1e7fa2e | 2021-02-18 08:41:37 -0800 | [diff] [blame] | 2326 | .intr_edn_fatal_err_o (intr_edn1_edn_fatal_err), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2327 | // [42]: fatal_alert |
| 2328 | .alert_tx_o ( alert_tx[42:42] ), |
| 2329 | .alert_rx_i ( alert_rx[42:42] ), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2330 | |
| 2331 | // Inter-module signals |
| 2332 | .csrng_cmd_o(csrng_csrng_cmd_req[1]), |
| 2333 | .csrng_cmd_i(csrng_csrng_cmd_rsp[1]), |
Timothy Chen | 44b404e | 2021-02-05 13:06:01 -0800 | [diff] [blame] | 2334 | .edn_i(edn1_edn_req), |
| 2335 | .edn_o(edn1_edn_rsp), |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2336 | .tl_i(edn1_tl_req), |
| 2337 | .tl_o(edn1_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2338 | |
| 2339 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2340 | .clk_i (clkmgr_aon_clocks.clk_main_secure), |
| 2341 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2342 | ); |
| 2343 | |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2344 | sram_ctrl #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2345 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[44:43]), |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2346 | .RndCnstSramKey(RndCnstSramCtrlMainSramKey), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 2347 | .RndCnstSramNonce(RndCnstSramCtrlMainSramNonce), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 2348 | .RndCnstSramLfsrPerm(RndCnstSramCtrlMainSramLfsrPerm), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 2349 | .InstrExec(SramCtrlMainInstrExec) |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2350 | ) u_sram_ctrl_main ( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2351 | // [43]: fatal_intg_error |
| 2352 | // [44]: fatal_parity_error |
| 2353 | .alert_tx_o ( alert_tx[44:43] ), |
| 2354 | .alert_rx_i ( alert_rx[44:43] ), |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2355 | |
| 2356 | // Inter-module signals |
| 2357 | .sram_otp_key_o(otp_ctrl_sram_otp_key_req[0]), |
| 2358 | .sram_otp_key_i(otp_ctrl_sram_otp_key_rsp[0]), |
| 2359 | .sram_scr_o(sram_ctrl_main_sram_scr_req), |
| 2360 | .sram_scr_i(sram_ctrl_main_sram_scr_rsp), |
Timothy Chen | 95d23d9 | 2021-03-11 17:44:59 -0800 | [diff] [blame] | 2361 | .sram_scr_init_o(sram_ctrl_main_sram_scr_init_req), |
| 2362 | .sram_scr_init_i(sram_ctrl_main_sram_scr_init_rsp), |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2363 | .lc_escalate_en_i(lc_ctrl_lc_escalate_en), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 2364 | .lc_hw_debug_en_i(lc_ctrl_lc_hw_debug_en), |
Michael Schaffner | 4d8199f | 2021-05-25 18:20:19 -0700 | [diff] [blame] | 2365 | .otp_en_sram_ifetch_i(sram_ctrl_main_otp_en_sram_ifetch), |
Timothy Chen | 15d98b7 | 2021-02-10 20:58:34 -0800 | [diff] [blame] | 2366 | .en_ifetch_o(sram_ctrl_main_en_ifetch), |
Timothy Chen | 12cce14 | 2021-03-02 18:11:01 -0800 | [diff] [blame] | 2367 | .intg_error_i(ram_main_intg_error), |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2368 | .tl_i(sram_ctrl_main_tl_req), |
| 2369 | .tl_o(sram_ctrl_main_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2370 | |
| 2371 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2372 | .clk_i (clkmgr_aon_clocks.clk_main_secure), |
| 2373 | .clk_otp_i (clkmgr_aon_clocks.clk_io_div4_secure), |
| 2374 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
| 2375 | .rst_otp_ni (rstmgr_aon_resets.rst_lc_io_div4_n[rstmgr_pkg::Domain0Sel]) |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2376 | ); |
| 2377 | |
Pirmin Vogel | 69b55a8 | 2020-10-01 09:54:39 +0200 | [diff] [blame] | 2378 | otbn #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2379 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[46:45]), |
Timothy Chen | 7be1516 | 2021-04-21 19:43:31 -0700 | [diff] [blame] | 2380 | .Stub(OtbnStub), |
Greg Chadwick | b168ae9 | 2021-04-14 16:04:03 +0100 | [diff] [blame] | 2381 | .RegFile(OtbnRegFile), |
| 2382 | .RndCnstUrndLfsrSeed(RndCnstOtbnUrndLfsrSeed), |
| 2383 | .RndCnstUrndChunkLfsrPerm(RndCnstOtbnUrndChunkLfsrPerm) |
Pirmin Vogel | 69b55a8 | 2020-10-01 09:54:39 +0200 | [diff] [blame] | 2384 | ) u_otbn ( |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 2385 | |
| 2386 | // Interrupt |
| 2387 | .intr_done_o (intr_otbn_done), |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2388 | // [45]: fatal |
| 2389 | // [46]: recov |
| 2390 | .alert_tx_o ( alert_tx[46:45] ), |
| 2391 | .alert_rx_i ( alert_rx[46:45] ), |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 2392 | |
| 2393 | // Inter-module signals |
Greg Chadwick | cc0dd2a | 2021-03-10 15:55:58 +0000 | [diff] [blame] | 2394 | .edn_rnd_o(edn1_edn_req[0]), |
| 2395 | .edn_rnd_i(edn1_edn_rsp[0]), |
| 2396 | .edn_urnd_o(edn0_edn_req[6]), |
| 2397 | .edn_urnd_i(edn0_edn_rsp[6]), |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2398 | .idle_o(clkmgr_aon_idle[3]), |
Timothy Chen | 685d649 | 2021-03-09 21:28:39 -0800 | [diff] [blame] | 2399 | .ram_cfg_i(ast_ram_1p_cfg), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2400 | .tl_i(otbn_tl_req), |
| 2401 | .tl_o(otbn_tl_rsp), |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2402 | |
| 2403 | // Clock and reset connections |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2404 | .clk_i (clkmgr_aon_clocks.clk_main_otbn), |
Greg Chadwick | c62e57b | 2021-02-18 11:30:06 +0000 | [diff] [blame] | 2405 | .clk_edn_i (clkmgr_aon_clocks.clk_main_otbn), |
| 2406 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
| 2407 | .rst_edn_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
Philipp Wagner | a4a9e40 | 2020-06-22 12:06:56 +0100 | [diff] [blame] | 2408 | ); |
| 2409 | |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 2410 | rom_ctrl #( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2411 | .AlertAsyncOn(alert_handler_reg_pkg::AsyncOn[47:47]), |
Rupert Swarbrick | 830aac5 | 2021-03-19 17:00:18 +0000 | [diff] [blame] | 2412 | .BootRomInitFile(RomCtrlBootRomInitFile), |
| 2413 | .RndCnstScrNonce(RndCnstRomCtrlScrNonce), |
Rupert Swarbrick | 447835d | 2021-06-09 14:12:50 +0100 | [diff] [blame] | 2414 | .RndCnstScrKey(RndCnstRomCtrlScrKey) |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 2415 | ) u_rom_ctrl ( |
Michael Schaffner | 9d1fd4a | 2021-06-07 16:03:22 -0700 | [diff] [blame] | 2416 | // [47]: fatal |
| 2417 | .alert_tx_o ( alert_tx[47:47] ), |
| 2418 | .alert_rx_i ( alert_rx[47:47] ), |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 2419 | |
| 2420 | // Inter-module signals |
| 2421 | .rom_cfg_i(ast_rom_cfg), |
Timothy Chen | b2abc98 | 2021-04-20 10:56:23 -0700 | [diff] [blame] | 2422 | .pwrmgr_data_o(rom_ctrl_pwrmgr_data), |
Timothy Chen | f625b0d | 2021-04-20 17:54:24 -0700 | [diff] [blame] | 2423 | .keymgr_data_o(rom_ctrl_keymgr_data), |
Michael Schaffner | 5fb9ea6 | 2021-05-19 12:56:29 -0700 | [diff] [blame] | 2424 | .kmac_data_o(kmac_app_req[2]), |
| 2425 | .kmac_data_i(kmac_app_rsp[2]), |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 2426 | .regs_tl_i(rom_ctrl_regs_tl_req), |
| 2427 | .regs_tl_o(rom_ctrl_regs_tl_rsp), |
| 2428 | .rom_tl_i(rom_ctrl_rom_tl_req), |
| 2429 | .rom_tl_o(rom_ctrl_rom_tl_rsp), |
| 2430 | |
| 2431 | // Clock and reset connections |
| 2432 | .clk_i (clkmgr_aon_clocks.clk_main_infra), |
| 2433 | .rst_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]) |
| 2434 | ); |
| 2435 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 2436 | // interrupt assignments |
| 2437 | assign intr_vector = { |
Mark Branstad | 3323636 | 2021-05-12 14:37:41 -0700 | [diff] [blame] | 2438 | intr_otbn_done, // IDs [179 +: 1] |
| 2439 | intr_edn1_edn_fatal_err, // IDs [178 +: 1] |
| 2440 | intr_edn1_edn_cmd_req_done, // IDs [177 +: 1] |
| 2441 | intr_edn0_edn_fatal_err, // IDs [176 +: 1] |
| 2442 | intr_edn0_edn_cmd_req_done, // IDs [175 +: 1] |
| 2443 | intr_entropy_src_es_fatal_err, // IDs [174 +: 1] |
| 2444 | intr_entropy_src_es_observe_fifo_ready, // IDs [173 +: 1] |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 2445 | intr_entropy_src_es_health_test_failed, // IDs [172 +: 1] |
| 2446 | intr_entropy_src_es_entropy_valid, // IDs [171 +: 1] |
| 2447 | intr_csrng_cs_fatal_err, // IDs [170 +: 1] |
| 2448 | intr_csrng_cs_hw_inst_exc, // IDs [169 +: 1] |
| 2449 | intr_csrng_cs_entropy_req, // IDs [168 +: 1] |
| 2450 | intr_csrng_cs_cmd_req_done, // IDs [167 +: 1] |
| 2451 | intr_keymgr_op_done, // IDs [166 +: 1] |
| 2452 | intr_kmac_kmac_err, // IDs [165 +: 1] |
| 2453 | intr_kmac_fifo_empty, // IDs [164 +: 1] |
| 2454 | intr_kmac_kmac_done, // IDs [163 +: 1] |
| 2455 | intr_hmac_hmac_err, // IDs [162 +: 1] |
| 2456 | intr_hmac_fifo_empty, // IDs [161 +: 1] |
| 2457 | intr_hmac_hmac_done, // IDs [160 +: 1] |
| 2458 | intr_flash_ctrl_err, // IDs [159 +: 1] |
| 2459 | intr_flash_ctrl_op_done, // IDs [158 +: 1] |
| 2460 | intr_flash_ctrl_rd_lvl, // IDs [157 +: 1] |
| 2461 | intr_flash_ctrl_rd_full, // IDs [156 +: 1] |
| 2462 | intr_flash_ctrl_prog_lvl, // IDs [155 +: 1] |
| 2463 | intr_flash_ctrl_prog_empty, // IDs [154 +: 1] |
| 2464 | intr_aon_timer_aon_wdog_timer_bark, // IDs [153 +: 1] |
| 2465 | intr_aon_timer_aon_wkup_timer_expired, // IDs [152 +: 1] |
| 2466 | intr_adc_ctrl_aon_debug_cable, // IDs [151 +: 1] |
| 2467 | intr_sysrst_ctrl_aon_sysrst_ctrl, // IDs [150 +: 1] |
| 2468 | intr_pwrmgr_aon_wakeup, // IDs [149 +: 1] |
| 2469 | intr_alert_handler_classd, // IDs [148 +: 1] |
| 2470 | intr_alert_handler_classc, // IDs [147 +: 1] |
| 2471 | intr_alert_handler_classb, // IDs [146 +: 1] |
| 2472 | intr_alert_handler_classa, // IDs [145 +: 1] |
| 2473 | intr_otp_ctrl_otp_error, // IDs [144 +: 1] |
| 2474 | intr_otp_ctrl_otp_operation_done, // IDs [143 +: 1] |
| 2475 | intr_usbdev_link_out_err, // IDs [142 +: 1] |
| 2476 | intr_usbdev_connected, // IDs [141 +: 1] |
| 2477 | intr_usbdev_frame, // IDs [140 +: 1] |
| 2478 | intr_usbdev_rx_bitstuff_err, // IDs [139 +: 1] |
| 2479 | intr_usbdev_rx_pid_err, // IDs [138 +: 1] |
| 2480 | intr_usbdev_rx_crc_err, // IDs [137 +: 1] |
| 2481 | intr_usbdev_link_in_err, // IDs [136 +: 1] |
| 2482 | intr_usbdev_av_overflow, // IDs [135 +: 1] |
| 2483 | intr_usbdev_rx_full, // IDs [134 +: 1] |
| 2484 | intr_usbdev_av_empty, // IDs [133 +: 1] |
| 2485 | intr_usbdev_link_resume, // IDs [132 +: 1] |
| 2486 | intr_usbdev_link_suspend, // IDs [131 +: 1] |
| 2487 | intr_usbdev_link_reset, // IDs [130 +: 1] |
| 2488 | intr_usbdev_host_lost, // IDs [129 +: 1] |
| 2489 | intr_usbdev_disconnected, // IDs [128 +: 1] |
| 2490 | intr_usbdev_pkt_sent, // IDs [127 +: 1] |
| 2491 | intr_usbdev_pkt_received, // IDs [126 +: 1] |
| 2492 | intr_rv_timer_timer_expired_0_0, // IDs [125 +: 1] |
| 2493 | intr_pattgen_done_ch1, // IDs [124 +: 1] |
| 2494 | intr_pattgen_done_ch0, // IDs [123 +: 1] |
| 2495 | intr_i2c2_host_timeout, // IDs [122 +: 1] |
| 2496 | intr_i2c2_ack_stop, // IDs [121 +: 1] |
| 2497 | intr_i2c2_acq_overflow, // IDs [120 +: 1] |
| 2498 | intr_i2c2_tx_overflow, // IDs [119 +: 1] |
| 2499 | intr_i2c2_tx_nonempty, // IDs [118 +: 1] |
| 2500 | intr_i2c2_tx_empty, // IDs [117 +: 1] |
| 2501 | intr_i2c2_trans_complete, // IDs [116 +: 1] |
| 2502 | intr_i2c2_sda_unstable, // IDs [115 +: 1] |
| 2503 | intr_i2c2_stretch_timeout, // IDs [114 +: 1] |
| 2504 | intr_i2c2_sda_interference, // IDs [113 +: 1] |
| 2505 | intr_i2c2_scl_interference, // IDs [112 +: 1] |
| 2506 | intr_i2c2_nak, // IDs [111 +: 1] |
| 2507 | intr_i2c2_rx_overflow, // IDs [110 +: 1] |
| 2508 | intr_i2c2_fmt_overflow, // IDs [109 +: 1] |
| 2509 | intr_i2c2_rx_watermark, // IDs [108 +: 1] |
| 2510 | intr_i2c2_fmt_watermark, // IDs [107 +: 1] |
| 2511 | intr_i2c1_host_timeout, // IDs [106 +: 1] |
| 2512 | intr_i2c1_ack_stop, // IDs [105 +: 1] |
| 2513 | intr_i2c1_acq_overflow, // IDs [104 +: 1] |
| 2514 | intr_i2c1_tx_overflow, // IDs [103 +: 1] |
| 2515 | intr_i2c1_tx_nonempty, // IDs [102 +: 1] |
| 2516 | intr_i2c1_tx_empty, // IDs [101 +: 1] |
| 2517 | intr_i2c1_trans_complete, // IDs [100 +: 1] |
| 2518 | intr_i2c1_sda_unstable, // IDs [99 +: 1] |
| 2519 | intr_i2c1_stretch_timeout, // IDs [98 +: 1] |
| 2520 | intr_i2c1_sda_interference, // IDs [97 +: 1] |
| 2521 | intr_i2c1_scl_interference, // IDs [96 +: 1] |
| 2522 | intr_i2c1_nak, // IDs [95 +: 1] |
| 2523 | intr_i2c1_rx_overflow, // IDs [94 +: 1] |
| 2524 | intr_i2c1_fmt_overflow, // IDs [93 +: 1] |
| 2525 | intr_i2c1_rx_watermark, // IDs [92 +: 1] |
| 2526 | intr_i2c1_fmt_watermark, // IDs [91 +: 1] |
| 2527 | intr_i2c0_host_timeout, // IDs [90 +: 1] |
| 2528 | intr_i2c0_ack_stop, // IDs [89 +: 1] |
| 2529 | intr_i2c0_acq_overflow, // IDs [88 +: 1] |
| 2530 | intr_i2c0_tx_overflow, // IDs [87 +: 1] |
| 2531 | intr_i2c0_tx_nonempty, // IDs [86 +: 1] |
| 2532 | intr_i2c0_tx_empty, // IDs [85 +: 1] |
| 2533 | intr_i2c0_trans_complete, // IDs [84 +: 1] |
| 2534 | intr_i2c0_sda_unstable, // IDs [83 +: 1] |
| 2535 | intr_i2c0_stretch_timeout, // IDs [82 +: 1] |
| 2536 | intr_i2c0_sda_interference, // IDs [81 +: 1] |
| 2537 | intr_i2c0_scl_interference, // IDs [80 +: 1] |
| 2538 | intr_i2c0_nak, // IDs [79 +: 1] |
| 2539 | intr_i2c0_rx_overflow, // IDs [78 +: 1] |
| 2540 | intr_i2c0_fmt_overflow, // IDs [77 +: 1] |
| 2541 | intr_i2c0_rx_watermark, // IDs [76 +: 1] |
| 2542 | intr_i2c0_fmt_watermark, // IDs [75 +: 1] |
| 2543 | intr_spi_host1_spi_event, // IDs [74 +: 1] |
| 2544 | intr_spi_host1_error, // IDs [73 +: 1] |
| 2545 | intr_spi_host0_spi_event, // IDs [72 +: 1] |
| 2546 | intr_spi_host0_error, // IDs [71 +: 1] |
| 2547 | intr_spi_device_txunderflow, // IDs [70 +: 1] |
| 2548 | intr_spi_device_rxoverflow, // IDs [69 +: 1] |
| 2549 | intr_spi_device_rxerr, // IDs [68 +: 1] |
| 2550 | intr_spi_device_txlvl, // IDs [67 +: 1] |
| 2551 | intr_spi_device_rxlvl, // IDs [66 +: 1] |
| 2552 | intr_spi_device_rxf, // IDs [65 +: 1] |
| 2553 | intr_gpio_gpio, // IDs [33 +: 32] |
| 2554 | intr_uart3_rx_parity_err, // IDs [32 +: 1] |
| 2555 | intr_uart3_rx_timeout, // IDs [31 +: 1] |
| 2556 | intr_uart3_rx_break_err, // IDs [30 +: 1] |
| 2557 | intr_uart3_rx_frame_err, // IDs [29 +: 1] |
| 2558 | intr_uart3_rx_overflow, // IDs [28 +: 1] |
| 2559 | intr_uart3_tx_empty, // IDs [27 +: 1] |
| 2560 | intr_uart3_rx_watermark, // IDs [26 +: 1] |
| 2561 | intr_uart3_tx_watermark, // IDs [25 +: 1] |
| 2562 | intr_uart2_rx_parity_err, // IDs [24 +: 1] |
| 2563 | intr_uart2_rx_timeout, // IDs [23 +: 1] |
| 2564 | intr_uart2_rx_break_err, // IDs [22 +: 1] |
| 2565 | intr_uart2_rx_frame_err, // IDs [21 +: 1] |
| 2566 | intr_uart2_rx_overflow, // IDs [20 +: 1] |
| 2567 | intr_uart2_tx_empty, // IDs [19 +: 1] |
| 2568 | intr_uart2_rx_watermark, // IDs [18 +: 1] |
| 2569 | intr_uart2_tx_watermark, // IDs [17 +: 1] |
| 2570 | intr_uart1_rx_parity_err, // IDs [16 +: 1] |
| 2571 | intr_uart1_rx_timeout, // IDs [15 +: 1] |
| 2572 | intr_uart1_rx_break_err, // IDs [14 +: 1] |
| 2573 | intr_uart1_rx_frame_err, // IDs [13 +: 1] |
| 2574 | intr_uart1_rx_overflow, // IDs [12 +: 1] |
| 2575 | intr_uart1_tx_empty, // IDs [11 +: 1] |
| 2576 | intr_uart1_rx_watermark, // IDs [10 +: 1] |
| 2577 | intr_uart1_tx_watermark, // IDs [9 +: 1] |
| 2578 | intr_uart0_rx_parity_err, // IDs [8 +: 1] |
| 2579 | intr_uart0_rx_timeout, // IDs [7 +: 1] |
| 2580 | intr_uart0_rx_break_err, // IDs [6 +: 1] |
| 2581 | intr_uart0_rx_frame_err, // IDs [5 +: 1] |
| 2582 | intr_uart0_rx_overflow, // IDs [4 +: 1] |
| 2583 | intr_uart0_tx_empty, // IDs [3 +: 1] |
| 2584 | intr_uart0_rx_watermark, // IDs [2 +: 1] |
| 2585 | intr_uart0_tx_watermark, // IDs [1 +: 1] |
| 2586 | 1'b 0 // ID [0 +: 1] is a special case and tied to zero. |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 2587 | }; |
| 2588 | |
| 2589 | // TL-UL Crossbar |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 2590 | xbar_main u_xbar_main ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2591 | .clk_main_i (clkmgr_aon_clocks.clk_main_infra), |
| 2592 | .clk_fixed_i (clkmgr_aon_clocks.clk_io_div4_infra), |
| 2593 | .rst_main_ni (rstmgr_aon_resets.rst_sys_n[rstmgr_pkg::Domain0Sel]), |
| 2594 | .rst_fixed_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2595 | |
| 2596 | // port: tl_corei |
| 2597 | .tl_corei_i(main_tl_corei_req), |
| 2598 | .tl_corei_o(main_tl_corei_rsp), |
| 2599 | |
| 2600 | // port: tl_cored |
| 2601 | .tl_cored_i(main_tl_cored_req), |
| 2602 | .tl_cored_o(main_tl_cored_rsp), |
| 2603 | |
| 2604 | // port: tl_dm_sba |
| 2605 | .tl_dm_sba_i(main_tl_dm_sba_req), |
| 2606 | .tl_dm_sba_o(main_tl_dm_sba_rsp), |
| 2607 | |
Rupert Swarbrick | 9855d4b | 2020-12-02 08:41:35 +0000 | [diff] [blame] | 2608 | // port: tl_rom_ctrl__rom |
| 2609 | .tl_rom_ctrl__rom_o(rom_ctrl_rom_tl_req), |
| 2610 | .tl_rom_ctrl__rom_i(rom_ctrl_rom_tl_rsp), |
| 2611 | |
| 2612 | // port: tl_rom_ctrl__regs |
| 2613 | .tl_rom_ctrl__regs_o(rom_ctrl_regs_tl_req), |
| 2614 | .tl_rom_ctrl__regs_i(rom_ctrl_regs_tl_rsp), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2615 | |
| 2616 | // port: tl_debug_mem |
| 2617 | .tl_debug_mem_o(main_tl_debug_mem_req), |
| 2618 | .tl_debug_mem_i(main_tl_debug_mem_rsp), |
| 2619 | |
| 2620 | // port: tl_ram_main |
| 2621 | .tl_ram_main_o(ram_main_tl_req), |
| 2622 | .tl_ram_main_i(ram_main_tl_rsp), |
| 2623 | |
| 2624 | // port: tl_eflash |
| 2625 | .tl_eflash_o(eflash_tl_req), |
| 2626 | .tl_eflash_i(eflash_tl_rsp), |
| 2627 | |
| 2628 | // port: tl_peri |
| 2629 | .tl_peri_o(main_tl_peri_req), |
| 2630 | .tl_peri_i(main_tl_peri_rsp), |
| 2631 | |
Timothy Chen | 76eb883 | 2021-03-25 16:49:58 -0700 | [diff] [blame] | 2632 | // port: tl_flash_ctrl__core |
| 2633 | .tl_flash_ctrl__core_o(flash_ctrl_core_tl_req), |
| 2634 | .tl_flash_ctrl__core_i(flash_ctrl_core_tl_rsp), |
| 2635 | |
| 2636 | // port: tl_flash_ctrl__prim |
| 2637 | .tl_flash_ctrl__prim_o(flash_ctrl_prim_tl_req), |
| 2638 | .tl_flash_ctrl__prim_i(flash_ctrl_prim_tl_rsp), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2639 | |
| 2640 | // port: tl_hmac |
| 2641 | .tl_hmac_o(hmac_tl_req), |
| 2642 | .tl_hmac_i(hmac_tl_rsp), |
| 2643 | |
Eunchan Kim | e5d33b7 | 2020-11-03 14:34:16 -0800 | [diff] [blame] | 2644 | // port: tl_kmac |
| 2645 | .tl_kmac_o(kmac_tl_req), |
| 2646 | .tl_kmac_i(kmac_tl_rsp), |
| 2647 | |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2648 | // port: tl_aes |
| 2649 | .tl_aes_o(aes_tl_req), |
| 2650 | .tl_aes_i(aes_tl_rsp), |
| 2651 | |
Mark Branstad | ff80736 | 2020-11-16 07:56:15 -0800 | [diff] [blame] | 2652 | // port: tl_entropy_src |
| 2653 | .tl_entropy_src_o(entropy_src_tl_req), |
| 2654 | .tl_entropy_src_i(entropy_src_tl_rsp), |
| 2655 | |
| 2656 | // port: tl_csrng |
| 2657 | .tl_csrng_o(csrng_tl_req), |
| 2658 | .tl_csrng_i(csrng_tl_rsp), |
| 2659 | |
| 2660 | // port: tl_edn0 |
| 2661 | .tl_edn0_o(edn0_tl_req), |
| 2662 | .tl_edn0_i(edn0_tl_rsp), |
| 2663 | |
| 2664 | // port: tl_edn1 |
| 2665 | .tl_edn1_o(edn1_tl_req), |
| 2666 | .tl_edn1_i(edn1_tl_rsp), |
| 2667 | |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2668 | // port: tl_rv_plic |
| 2669 | .tl_rv_plic_o(rv_plic_tl_req), |
| 2670 | .tl_rv_plic_i(rv_plic_tl_rsp), |
| 2671 | |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2672 | // port: tl_otbn |
| 2673 | .tl_otbn_o(otbn_tl_req), |
| 2674 | .tl_otbn_i(otbn_tl_rsp), |
| 2675 | |
Timothy Chen | 9495372 | 2020-09-18 16:15:12 -0700 | [diff] [blame] | 2676 | // port: tl_keymgr |
| 2677 | .tl_keymgr_o(keymgr_tl_req), |
| 2678 | .tl_keymgr_i(keymgr_tl_rsp), |
| 2679 | |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2680 | // port: tl_sram_ctrl_main |
| 2681 | .tl_sram_ctrl_main_o(sram_ctrl_main_tl_req), |
| 2682 | .tl_sram_ctrl_main_i(sram_ctrl_main_tl_rsp), |
| 2683 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 2684 | |
| 2685 | .scanmode_i |
| 2686 | ); |
Eunchan Kim | 55d7ae8 | 2019-12-19 17:08:35 -0800 | [diff] [blame] | 2687 | xbar_peri u_xbar_peri ( |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2688 | .clk_peri_i (clkmgr_aon_clocks.clk_io_div4_infra), |
| 2689 | .rst_peri_ni (rstmgr_aon_resets.rst_sys_io_div4_n[rstmgr_pkg::Domain0Sel]), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2690 | |
| 2691 | // port: tl_main |
| 2692 | .tl_main_i(main_tl_peri_req), |
| 2693 | .tl_main_o(main_tl_peri_rsp), |
| 2694 | |
Timothy Chen | 2971a1e | 2021-01-21 16:00:01 -0800 | [diff] [blame] | 2695 | // port: tl_uart0 |
| 2696 | .tl_uart0_o(uart0_tl_req), |
| 2697 | .tl_uart0_i(uart0_tl_rsp), |
| 2698 | |
| 2699 | // port: tl_uart1 |
| 2700 | .tl_uart1_o(uart1_tl_req), |
| 2701 | .tl_uart1_i(uart1_tl_rsp), |
| 2702 | |
| 2703 | // port: tl_uart2 |
| 2704 | .tl_uart2_o(uart2_tl_req), |
| 2705 | .tl_uart2_i(uart2_tl_rsp), |
| 2706 | |
| 2707 | // port: tl_uart3 |
| 2708 | .tl_uart3_o(uart3_tl_req), |
| 2709 | .tl_uart3_i(uart3_tl_rsp), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2710 | |
Timothy Chen | 469a303 | 2021-02-01 15:44:09 -0800 | [diff] [blame] | 2711 | // port: tl_i2c0 |
| 2712 | .tl_i2c0_o(i2c0_tl_req), |
| 2713 | .tl_i2c0_i(i2c0_tl_rsp), |
| 2714 | |
| 2715 | // port: tl_i2c1 |
| 2716 | .tl_i2c1_o(i2c1_tl_req), |
| 2717 | .tl_i2c1_i(i2c1_tl_rsp), |
| 2718 | |
| 2719 | // port: tl_i2c2 |
| 2720 | .tl_i2c2_o(i2c2_tl_req), |
| 2721 | .tl_i2c2_i(i2c2_tl_rsp), |
| 2722 | |
| 2723 | // port: tl_pattgen |
| 2724 | .tl_pattgen_o(pattgen_tl_req), |
| 2725 | .tl_pattgen_i(pattgen_tl_rsp), |
| 2726 | |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 2727 | // port: tl_pwm_aon |
| 2728 | .tl_pwm_aon_o(pwm_aon_tl_req), |
| 2729 | .tl_pwm_aon_i(pwm_aon_tl_rsp), |
| 2730 | |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2731 | // port: tl_gpio |
| 2732 | .tl_gpio_o(gpio_tl_req), |
| 2733 | .tl_gpio_i(gpio_tl_rsp), |
| 2734 | |
| 2735 | // port: tl_spi_device |
| 2736 | .tl_spi_device_o(spi_device_tl_req), |
| 2737 | .tl_spi_device_i(spi_device_tl_rsp), |
| 2738 | |
Michael Schaffner | dbd087e | 2021-02-12 17:58:30 -0800 | [diff] [blame] | 2739 | // port: tl_spi_host0 |
| 2740 | .tl_spi_host0_o(spi_host0_tl_req), |
| 2741 | .tl_spi_host0_i(spi_host0_tl_rsp), |
| 2742 | |
| 2743 | // port: tl_spi_host1 |
| 2744 | .tl_spi_host1_o(spi_host1_tl_req), |
| 2745 | .tl_spi_host1_i(spi_host1_tl_rsp), |
| 2746 | |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2747 | // port: tl_rv_timer |
| 2748 | .tl_rv_timer_o(rv_timer_tl_req), |
| 2749 | .tl_rv_timer_i(rv_timer_tl_rsp), |
| 2750 | |
| 2751 | // port: tl_usbdev |
| 2752 | .tl_usbdev_o(usbdev_tl_req), |
| 2753 | .tl_usbdev_i(usbdev_tl_rsp), |
| 2754 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2755 | // port: tl_pwrmgr_aon |
| 2756 | .tl_pwrmgr_aon_o(pwrmgr_aon_tl_req), |
| 2757 | .tl_pwrmgr_aon_i(pwrmgr_aon_tl_rsp), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2758 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2759 | // port: tl_rstmgr_aon |
| 2760 | .tl_rstmgr_aon_o(rstmgr_aon_tl_req), |
| 2761 | .tl_rstmgr_aon_i(rstmgr_aon_tl_rsp), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2762 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2763 | // port: tl_clkmgr_aon |
| 2764 | .tl_clkmgr_aon_o(clkmgr_aon_tl_req), |
| 2765 | .tl_clkmgr_aon_i(clkmgr_aon_tl_rsp), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2766 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2767 | // port: tl_pinmux_aon |
| 2768 | .tl_pinmux_aon_o(pinmux_aon_tl_req), |
| 2769 | .tl_pinmux_aon_i(pinmux_aon_tl_rsp), |
| 2770 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2771 | // port: tl_ram_ret_aon |
| 2772 | .tl_ram_ret_aon_o(ram_ret_aon_tl_req), |
| 2773 | .tl_ram_ret_aon_i(ram_ret_aon_tl_rsp), |
Eunchan Kim | 0f54954 | 2020-08-04 10:40:11 -0700 | [diff] [blame] | 2774 | |
Michael Schaffner | a304560 | 2020-10-06 19:19:46 -0700 | [diff] [blame] | 2775 | // port: tl_otp_ctrl |
| 2776 | .tl_otp_ctrl_o(otp_ctrl_tl_req), |
| 2777 | .tl_otp_ctrl_i(otp_ctrl_tl_rsp), |
| 2778 | |
Michael Schaffner | 6d3d6a0 | 2020-12-11 13:52:51 -0800 | [diff] [blame] | 2779 | // port: tl_lc_ctrl |
| 2780 | .tl_lc_ctrl_o(lc_ctrl_tl_req), |
| 2781 | .tl_lc_ctrl_i(lc_ctrl_tl_rsp), |
| 2782 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2783 | // port: tl_sensor_ctrl_aon |
| 2784 | .tl_sensor_ctrl_aon_o(sensor_ctrl_aon_tl_req), |
| 2785 | .tl_sensor_ctrl_aon_i(sensor_ctrl_aon_tl_rsp), |
Timothy Chen | 1555dce | 2020-08-11 11:26:50 -0700 | [diff] [blame] | 2786 | |
Michael Schaffner | d1fc7d1 | 2020-12-21 12:52:23 -0800 | [diff] [blame] | 2787 | // port: tl_alert_handler |
| 2788 | .tl_alert_handler_o(alert_handler_tl_req), |
| 2789 | .tl_alert_handler_i(alert_handler_tl_rsp), |
| 2790 | |
Timothy Chen | 8aeeb49 | 2021-02-01 21:25:17 -0800 | [diff] [blame] | 2791 | // port: tl_sram_ctrl_ret_aon |
| 2792 | .tl_sram_ctrl_ret_aon_o(sram_ctrl_ret_aon_tl_req), |
| 2793 | .tl_sram_ctrl_ret_aon_i(sram_ctrl_ret_aon_tl_rsp), |
Michael Schaffner | 9da4db8 | 2020-12-21 15:35:24 -0800 | [diff] [blame] | 2794 | |
Timothy Chen | 2b8ef76 | 2021-02-16 14:44:55 -0800 | [diff] [blame] | 2795 | // port: tl_aon_timer_aon |
| 2796 | .tl_aon_timer_aon_o(aon_timer_aon_tl_req), |
| 2797 | .tl_aon_timer_aon_i(aon_timer_aon_tl_rsp), |
Michael Schaffner | d1fc7d1 | 2020-12-21 12:52:23 -0800 | [diff] [blame] | 2798 | |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 2799 | // port: tl_sysrst_ctrl_aon |
| 2800 | .tl_sysrst_ctrl_aon_o(sysrst_ctrl_aon_tl_req), |
| 2801 | .tl_sysrst_ctrl_aon_i(sysrst_ctrl_aon_tl_rsp), |
| 2802 | |
Timothy Chen | 6f98f35 | 2021-03-10 16:27:29 -0800 | [diff] [blame] | 2803 | // port: tl_adc_ctrl_aon |
| 2804 | .tl_adc_ctrl_aon_o(adc_ctrl_aon_tl_req), |
| 2805 | .tl_adc_ctrl_aon_i(adc_ctrl_aon_tl_rsp), |
| 2806 | |
Timothy Chen | b196687 | 2021-03-01 22:39:01 -0800 | [diff] [blame] | 2807 | // port: tl_ast |
| 2808 | .tl_ast_o(ast_tl_req_o), |
| 2809 | .tl_ast_i(ast_tl_rsp_i), |
Timothy Chen | fb34fe3 | 2020-08-26 17:13:19 -0700 | [diff] [blame] | 2810 | |
Eunchan Kim | 55d7ae8 | 2019-12-19 17:08:35 -0800 | [diff] [blame] | 2811 | |
| 2812 | .scanmode_i |
| 2813 | ); |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 2814 | |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 2815 | // Pinmux connections |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 2816 | // All muxed inputs |
| 2817 | assign cio_gpio_gpio_p2d[0] = mio_p2d[MioInGpioGpio0]; |
| 2818 | assign cio_gpio_gpio_p2d[1] = mio_p2d[MioInGpioGpio1]; |
| 2819 | assign cio_gpio_gpio_p2d[2] = mio_p2d[MioInGpioGpio2]; |
| 2820 | assign cio_gpio_gpio_p2d[3] = mio_p2d[MioInGpioGpio3]; |
| 2821 | assign cio_gpio_gpio_p2d[4] = mio_p2d[MioInGpioGpio4]; |
| 2822 | assign cio_gpio_gpio_p2d[5] = mio_p2d[MioInGpioGpio5]; |
| 2823 | assign cio_gpio_gpio_p2d[6] = mio_p2d[MioInGpioGpio6]; |
| 2824 | assign cio_gpio_gpio_p2d[7] = mio_p2d[MioInGpioGpio7]; |
| 2825 | assign cio_gpio_gpio_p2d[8] = mio_p2d[MioInGpioGpio8]; |
| 2826 | assign cio_gpio_gpio_p2d[9] = mio_p2d[MioInGpioGpio9]; |
| 2827 | assign cio_gpio_gpio_p2d[10] = mio_p2d[MioInGpioGpio10]; |
| 2828 | assign cio_gpio_gpio_p2d[11] = mio_p2d[MioInGpioGpio11]; |
| 2829 | assign cio_gpio_gpio_p2d[12] = mio_p2d[MioInGpioGpio12]; |
| 2830 | assign cio_gpio_gpio_p2d[13] = mio_p2d[MioInGpioGpio13]; |
| 2831 | assign cio_gpio_gpio_p2d[14] = mio_p2d[MioInGpioGpio14]; |
| 2832 | assign cio_gpio_gpio_p2d[15] = mio_p2d[MioInGpioGpio15]; |
| 2833 | assign cio_gpio_gpio_p2d[16] = mio_p2d[MioInGpioGpio16]; |
| 2834 | assign cio_gpio_gpio_p2d[17] = mio_p2d[MioInGpioGpio17]; |
| 2835 | assign cio_gpio_gpio_p2d[18] = mio_p2d[MioInGpioGpio18]; |
| 2836 | assign cio_gpio_gpio_p2d[19] = mio_p2d[MioInGpioGpio19]; |
| 2837 | assign cio_gpio_gpio_p2d[20] = mio_p2d[MioInGpioGpio20]; |
| 2838 | assign cio_gpio_gpio_p2d[21] = mio_p2d[MioInGpioGpio21]; |
| 2839 | assign cio_gpio_gpio_p2d[22] = mio_p2d[MioInGpioGpio22]; |
| 2840 | assign cio_gpio_gpio_p2d[23] = mio_p2d[MioInGpioGpio23]; |
| 2841 | assign cio_gpio_gpio_p2d[24] = mio_p2d[MioInGpioGpio24]; |
| 2842 | assign cio_gpio_gpio_p2d[25] = mio_p2d[MioInGpioGpio25]; |
| 2843 | assign cio_gpio_gpio_p2d[26] = mio_p2d[MioInGpioGpio26]; |
| 2844 | assign cio_gpio_gpio_p2d[27] = mio_p2d[MioInGpioGpio27]; |
| 2845 | assign cio_gpio_gpio_p2d[28] = mio_p2d[MioInGpioGpio28]; |
| 2846 | assign cio_gpio_gpio_p2d[29] = mio_p2d[MioInGpioGpio29]; |
| 2847 | assign cio_gpio_gpio_p2d[30] = mio_p2d[MioInGpioGpio30]; |
| 2848 | assign cio_gpio_gpio_p2d[31] = mio_p2d[MioInGpioGpio31]; |
| 2849 | assign cio_i2c0_sda_p2d = mio_p2d[MioInI2c0Sda]; |
| 2850 | assign cio_i2c0_scl_p2d = mio_p2d[MioInI2c0Scl]; |
| 2851 | assign cio_i2c1_sda_p2d = mio_p2d[MioInI2c1Sda]; |
| 2852 | assign cio_i2c1_scl_p2d = mio_p2d[MioInI2c1Scl]; |
| 2853 | assign cio_i2c2_sda_p2d = mio_p2d[MioInI2c2Sda]; |
| 2854 | assign cio_i2c2_scl_p2d = mio_p2d[MioInI2c2Scl]; |
| 2855 | assign cio_spi_host1_sd_p2d[0] = mio_p2d[MioInSpiHost1Sd0]; |
| 2856 | assign cio_spi_host1_sd_p2d[1] = mio_p2d[MioInSpiHost1Sd1]; |
| 2857 | assign cio_spi_host1_sd_p2d[2] = mio_p2d[MioInSpiHost1Sd2]; |
| 2858 | assign cio_spi_host1_sd_p2d[3] = mio_p2d[MioInSpiHost1Sd3]; |
| 2859 | assign cio_uart0_rx_p2d = mio_p2d[MioInUart0Rx]; |
| 2860 | assign cio_uart1_rx_p2d = mio_p2d[MioInUart1Rx]; |
| 2861 | assign cio_uart2_rx_p2d = mio_p2d[MioInUart2Rx]; |
| 2862 | assign cio_uart3_rx_p2d = mio_p2d[MioInUart3Rx]; |
| 2863 | assign cio_flash_ctrl_tck_p2d = mio_p2d[MioInFlashCtrlTck]; |
| 2864 | assign cio_flash_ctrl_tms_p2d = mio_p2d[MioInFlashCtrlTms]; |
| 2865 | assign cio_flash_ctrl_tdi_p2d = mio_p2d[MioInFlashCtrlTdi]; |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 2866 | assign cio_sysrst_ctrl_aon_ac_present_p2d = mio_p2d[MioInSysrstCtrlAonAcPresent]; |
| 2867 | assign cio_sysrst_ctrl_aon_ec_rst_in_l_p2d = mio_p2d[MioInSysrstCtrlAonEcRstInL]; |
| 2868 | assign cio_sysrst_ctrl_aon_key0_in_p2d = mio_p2d[MioInSysrstCtrlAonKey0In]; |
| 2869 | assign cio_sysrst_ctrl_aon_key1_in_p2d = mio_p2d[MioInSysrstCtrlAonKey1In]; |
| 2870 | assign cio_sysrst_ctrl_aon_key2_in_p2d = mio_p2d[MioInSysrstCtrlAonKey2In]; |
| 2871 | assign cio_sysrst_ctrl_aon_pwrb_in_p2d = mio_p2d[MioInSysrstCtrlAonPwrbIn]; |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 2872 | |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 2873 | // All muxed outputs |
| 2874 | assign mio_d2p[MioOutGpioGpio0] = cio_gpio_gpio_d2p[0]; |
| 2875 | assign mio_d2p[MioOutGpioGpio1] = cio_gpio_gpio_d2p[1]; |
| 2876 | assign mio_d2p[MioOutGpioGpio2] = cio_gpio_gpio_d2p[2]; |
| 2877 | assign mio_d2p[MioOutGpioGpio3] = cio_gpio_gpio_d2p[3]; |
| 2878 | assign mio_d2p[MioOutGpioGpio4] = cio_gpio_gpio_d2p[4]; |
| 2879 | assign mio_d2p[MioOutGpioGpio5] = cio_gpio_gpio_d2p[5]; |
| 2880 | assign mio_d2p[MioOutGpioGpio6] = cio_gpio_gpio_d2p[6]; |
| 2881 | assign mio_d2p[MioOutGpioGpio7] = cio_gpio_gpio_d2p[7]; |
| 2882 | assign mio_d2p[MioOutGpioGpio8] = cio_gpio_gpio_d2p[8]; |
| 2883 | assign mio_d2p[MioOutGpioGpio9] = cio_gpio_gpio_d2p[9]; |
| 2884 | assign mio_d2p[MioOutGpioGpio10] = cio_gpio_gpio_d2p[10]; |
| 2885 | assign mio_d2p[MioOutGpioGpio11] = cio_gpio_gpio_d2p[11]; |
| 2886 | assign mio_d2p[MioOutGpioGpio12] = cio_gpio_gpio_d2p[12]; |
| 2887 | assign mio_d2p[MioOutGpioGpio13] = cio_gpio_gpio_d2p[13]; |
| 2888 | assign mio_d2p[MioOutGpioGpio14] = cio_gpio_gpio_d2p[14]; |
| 2889 | assign mio_d2p[MioOutGpioGpio15] = cio_gpio_gpio_d2p[15]; |
| 2890 | assign mio_d2p[MioOutGpioGpio16] = cio_gpio_gpio_d2p[16]; |
| 2891 | assign mio_d2p[MioOutGpioGpio17] = cio_gpio_gpio_d2p[17]; |
| 2892 | assign mio_d2p[MioOutGpioGpio18] = cio_gpio_gpio_d2p[18]; |
| 2893 | assign mio_d2p[MioOutGpioGpio19] = cio_gpio_gpio_d2p[19]; |
| 2894 | assign mio_d2p[MioOutGpioGpio20] = cio_gpio_gpio_d2p[20]; |
| 2895 | assign mio_d2p[MioOutGpioGpio21] = cio_gpio_gpio_d2p[21]; |
| 2896 | assign mio_d2p[MioOutGpioGpio22] = cio_gpio_gpio_d2p[22]; |
| 2897 | assign mio_d2p[MioOutGpioGpio23] = cio_gpio_gpio_d2p[23]; |
| 2898 | assign mio_d2p[MioOutGpioGpio24] = cio_gpio_gpio_d2p[24]; |
| 2899 | assign mio_d2p[MioOutGpioGpio25] = cio_gpio_gpio_d2p[25]; |
| 2900 | assign mio_d2p[MioOutGpioGpio26] = cio_gpio_gpio_d2p[26]; |
| 2901 | assign mio_d2p[MioOutGpioGpio27] = cio_gpio_gpio_d2p[27]; |
| 2902 | assign mio_d2p[MioOutGpioGpio28] = cio_gpio_gpio_d2p[28]; |
| 2903 | assign mio_d2p[MioOutGpioGpio29] = cio_gpio_gpio_d2p[29]; |
| 2904 | assign mio_d2p[MioOutGpioGpio30] = cio_gpio_gpio_d2p[30]; |
| 2905 | assign mio_d2p[MioOutGpioGpio31] = cio_gpio_gpio_d2p[31]; |
| 2906 | assign mio_d2p[MioOutI2c0Sda] = cio_i2c0_sda_d2p; |
| 2907 | assign mio_d2p[MioOutI2c0Scl] = cio_i2c0_scl_d2p; |
| 2908 | assign mio_d2p[MioOutI2c1Sda] = cio_i2c1_sda_d2p; |
| 2909 | assign mio_d2p[MioOutI2c1Scl] = cio_i2c1_scl_d2p; |
| 2910 | assign mio_d2p[MioOutI2c2Sda] = cio_i2c2_sda_d2p; |
| 2911 | assign mio_d2p[MioOutI2c2Scl] = cio_i2c2_scl_d2p; |
| 2912 | assign mio_d2p[MioOutSpiHost1Sd0] = cio_spi_host1_sd_d2p[0]; |
| 2913 | assign mio_d2p[MioOutSpiHost1Sd1] = cio_spi_host1_sd_d2p[1]; |
| 2914 | assign mio_d2p[MioOutSpiHost1Sd2] = cio_spi_host1_sd_d2p[2]; |
| 2915 | assign mio_d2p[MioOutSpiHost1Sd3] = cio_spi_host1_sd_d2p[3]; |
| 2916 | assign mio_d2p[MioOutUart0Tx] = cio_uart0_tx_d2p; |
| 2917 | assign mio_d2p[MioOutUart1Tx] = cio_uart1_tx_d2p; |
| 2918 | assign mio_d2p[MioOutUart2Tx] = cio_uart2_tx_d2p; |
| 2919 | assign mio_d2p[MioOutUart3Tx] = cio_uart3_tx_d2p; |
| 2920 | assign mio_d2p[MioOutPattgenPda0Tx] = cio_pattgen_pda0_tx_d2p; |
| 2921 | assign mio_d2p[MioOutPattgenPcl0Tx] = cio_pattgen_pcl0_tx_d2p; |
| 2922 | assign mio_d2p[MioOutPattgenPda1Tx] = cio_pattgen_pda1_tx_d2p; |
| 2923 | assign mio_d2p[MioOutPattgenPcl1Tx] = cio_pattgen_pcl1_tx_d2p; |
| 2924 | assign mio_d2p[MioOutSpiHost1Sck] = cio_spi_host1_sck_d2p; |
| 2925 | assign mio_d2p[MioOutSpiHost1Csb] = cio_spi_host1_csb_d2p; |
| 2926 | assign mio_d2p[MioOutFlashCtrlTdo] = cio_flash_ctrl_tdo_d2p; |
| 2927 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut0] = cio_sensor_ctrl_aon_ast_debug_out_d2p[0]; |
| 2928 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut1] = cio_sensor_ctrl_aon_ast_debug_out_d2p[1]; |
| 2929 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut2] = cio_sensor_ctrl_aon_ast_debug_out_d2p[2]; |
| 2930 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut3] = cio_sensor_ctrl_aon_ast_debug_out_d2p[3]; |
| 2931 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut4] = cio_sensor_ctrl_aon_ast_debug_out_d2p[4]; |
| 2932 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut5] = cio_sensor_ctrl_aon_ast_debug_out_d2p[5]; |
| 2933 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut6] = cio_sensor_ctrl_aon_ast_debug_out_d2p[6]; |
| 2934 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut7] = cio_sensor_ctrl_aon_ast_debug_out_d2p[7]; |
| 2935 | assign mio_d2p[MioOutSensorCtrlAonAstDebugOut8] = cio_sensor_ctrl_aon_ast_debug_out_d2p[8]; |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 2936 | assign mio_d2p[MioOutPwmAonPwm0] = cio_pwm_aon_pwm_d2p[0]; |
| 2937 | assign mio_d2p[MioOutPwmAonPwm1] = cio_pwm_aon_pwm_d2p[1]; |
| 2938 | assign mio_d2p[MioOutPwmAonPwm2] = cio_pwm_aon_pwm_d2p[2]; |
| 2939 | assign mio_d2p[MioOutPwmAonPwm3] = cio_pwm_aon_pwm_d2p[3]; |
| 2940 | assign mio_d2p[MioOutPwmAonPwm4] = cio_pwm_aon_pwm_d2p[4]; |
| 2941 | assign mio_d2p[MioOutPwmAonPwm5] = cio_pwm_aon_pwm_d2p[5]; |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 2942 | assign mio_d2p[MioOutSysrstCtrlAonBatDisable] = cio_sysrst_ctrl_aon_bat_disable_d2p; |
| 2943 | assign mio_d2p[MioOutSysrstCtrlAonKey0Out] = cio_sysrst_ctrl_aon_key0_out_d2p; |
| 2944 | assign mio_d2p[MioOutSysrstCtrlAonKey1Out] = cio_sysrst_ctrl_aon_key1_out_d2p; |
| 2945 | assign mio_d2p[MioOutSysrstCtrlAonKey2Out] = cio_sysrst_ctrl_aon_key2_out_d2p; |
Michael Schaffner | 920e4cc | 2020-04-28 22:58:12 -0700 | [diff] [blame] | 2946 | |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 2947 | // All muxed output enables |
| 2948 | assign mio_en_d2p[MioOutGpioGpio0] = cio_gpio_gpio_en_d2p[0]; |
| 2949 | assign mio_en_d2p[MioOutGpioGpio1] = cio_gpio_gpio_en_d2p[1]; |
| 2950 | assign mio_en_d2p[MioOutGpioGpio2] = cio_gpio_gpio_en_d2p[2]; |
| 2951 | assign mio_en_d2p[MioOutGpioGpio3] = cio_gpio_gpio_en_d2p[3]; |
| 2952 | assign mio_en_d2p[MioOutGpioGpio4] = cio_gpio_gpio_en_d2p[4]; |
| 2953 | assign mio_en_d2p[MioOutGpioGpio5] = cio_gpio_gpio_en_d2p[5]; |
| 2954 | assign mio_en_d2p[MioOutGpioGpio6] = cio_gpio_gpio_en_d2p[6]; |
| 2955 | assign mio_en_d2p[MioOutGpioGpio7] = cio_gpio_gpio_en_d2p[7]; |
| 2956 | assign mio_en_d2p[MioOutGpioGpio8] = cio_gpio_gpio_en_d2p[8]; |
| 2957 | assign mio_en_d2p[MioOutGpioGpio9] = cio_gpio_gpio_en_d2p[9]; |
| 2958 | assign mio_en_d2p[MioOutGpioGpio10] = cio_gpio_gpio_en_d2p[10]; |
| 2959 | assign mio_en_d2p[MioOutGpioGpio11] = cio_gpio_gpio_en_d2p[11]; |
| 2960 | assign mio_en_d2p[MioOutGpioGpio12] = cio_gpio_gpio_en_d2p[12]; |
| 2961 | assign mio_en_d2p[MioOutGpioGpio13] = cio_gpio_gpio_en_d2p[13]; |
| 2962 | assign mio_en_d2p[MioOutGpioGpio14] = cio_gpio_gpio_en_d2p[14]; |
| 2963 | assign mio_en_d2p[MioOutGpioGpio15] = cio_gpio_gpio_en_d2p[15]; |
| 2964 | assign mio_en_d2p[MioOutGpioGpio16] = cio_gpio_gpio_en_d2p[16]; |
| 2965 | assign mio_en_d2p[MioOutGpioGpio17] = cio_gpio_gpio_en_d2p[17]; |
| 2966 | assign mio_en_d2p[MioOutGpioGpio18] = cio_gpio_gpio_en_d2p[18]; |
| 2967 | assign mio_en_d2p[MioOutGpioGpio19] = cio_gpio_gpio_en_d2p[19]; |
| 2968 | assign mio_en_d2p[MioOutGpioGpio20] = cio_gpio_gpio_en_d2p[20]; |
| 2969 | assign mio_en_d2p[MioOutGpioGpio21] = cio_gpio_gpio_en_d2p[21]; |
| 2970 | assign mio_en_d2p[MioOutGpioGpio22] = cio_gpio_gpio_en_d2p[22]; |
| 2971 | assign mio_en_d2p[MioOutGpioGpio23] = cio_gpio_gpio_en_d2p[23]; |
| 2972 | assign mio_en_d2p[MioOutGpioGpio24] = cio_gpio_gpio_en_d2p[24]; |
| 2973 | assign mio_en_d2p[MioOutGpioGpio25] = cio_gpio_gpio_en_d2p[25]; |
| 2974 | assign mio_en_d2p[MioOutGpioGpio26] = cio_gpio_gpio_en_d2p[26]; |
| 2975 | assign mio_en_d2p[MioOutGpioGpio27] = cio_gpio_gpio_en_d2p[27]; |
| 2976 | assign mio_en_d2p[MioOutGpioGpio28] = cio_gpio_gpio_en_d2p[28]; |
| 2977 | assign mio_en_d2p[MioOutGpioGpio29] = cio_gpio_gpio_en_d2p[29]; |
| 2978 | assign mio_en_d2p[MioOutGpioGpio30] = cio_gpio_gpio_en_d2p[30]; |
| 2979 | assign mio_en_d2p[MioOutGpioGpio31] = cio_gpio_gpio_en_d2p[31]; |
| 2980 | assign mio_en_d2p[MioOutI2c0Sda] = cio_i2c0_sda_en_d2p; |
| 2981 | assign mio_en_d2p[MioOutI2c0Scl] = cio_i2c0_scl_en_d2p; |
| 2982 | assign mio_en_d2p[MioOutI2c1Sda] = cio_i2c1_sda_en_d2p; |
| 2983 | assign mio_en_d2p[MioOutI2c1Scl] = cio_i2c1_scl_en_d2p; |
| 2984 | assign mio_en_d2p[MioOutI2c2Sda] = cio_i2c2_sda_en_d2p; |
| 2985 | assign mio_en_d2p[MioOutI2c2Scl] = cio_i2c2_scl_en_d2p; |
| 2986 | assign mio_en_d2p[MioOutSpiHost1Sd0] = cio_spi_host1_sd_en_d2p[0]; |
| 2987 | assign mio_en_d2p[MioOutSpiHost1Sd1] = cio_spi_host1_sd_en_d2p[1]; |
| 2988 | assign mio_en_d2p[MioOutSpiHost1Sd2] = cio_spi_host1_sd_en_d2p[2]; |
| 2989 | assign mio_en_d2p[MioOutSpiHost1Sd3] = cio_spi_host1_sd_en_d2p[3]; |
| 2990 | assign mio_en_d2p[MioOutUart0Tx] = cio_uart0_tx_en_d2p; |
| 2991 | assign mio_en_d2p[MioOutUart1Tx] = cio_uart1_tx_en_d2p; |
| 2992 | assign mio_en_d2p[MioOutUart2Tx] = cio_uart2_tx_en_d2p; |
| 2993 | assign mio_en_d2p[MioOutUart3Tx] = cio_uart3_tx_en_d2p; |
| 2994 | assign mio_en_d2p[MioOutPattgenPda0Tx] = cio_pattgen_pda0_tx_en_d2p; |
| 2995 | assign mio_en_d2p[MioOutPattgenPcl0Tx] = cio_pattgen_pcl0_tx_en_d2p; |
| 2996 | assign mio_en_d2p[MioOutPattgenPda1Tx] = cio_pattgen_pda1_tx_en_d2p; |
| 2997 | assign mio_en_d2p[MioOutPattgenPcl1Tx] = cio_pattgen_pcl1_tx_en_d2p; |
| 2998 | assign mio_en_d2p[MioOutSpiHost1Sck] = cio_spi_host1_sck_en_d2p; |
| 2999 | assign mio_en_d2p[MioOutSpiHost1Csb] = cio_spi_host1_csb_en_d2p; |
| 3000 | assign mio_en_d2p[MioOutFlashCtrlTdo] = cio_flash_ctrl_tdo_en_d2p; |
| 3001 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut0] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[0]; |
| 3002 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut1] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[1]; |
| 3003 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut2] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[2]; |
| 3004 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut3] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[3]; |
| 3005 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut4] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[4]; |
| 3006 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut5] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[5]; |
| 3007 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut6] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[6]; |
| 3008 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut7] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[7]; |
| 3009 | assign mio_en_d2p[MioOutSensorCtrlAonAstDebugOut8] = cio_sensor_ctrl_aon_ast_debug_out_en_d2p[8]; |
Martin Lueker-Boden | 0d63fe0 | 2021-03-10 17:30:37 -0800 | [diff] [blame] | 3010 | assign mio_en_d2p[MioOutPwmAonPwm0] = cio_pwm_aon_pwm_en_d2p[0]; |
| 3011 | assign mio_en_d2p[MioOutPwmAonPwm1] = cio_pwm_aon_pwm_en_d2p[1]; |
| 3012 | assign mio_en_d2p[MioOutPwmAonPwm2] = cio_pwm_aon_pwm_en_d2p[2]; |
| 3013 | assign mio_en_d2p[MioOutPwmAonPwm3] = cio_pwm_aon_pwm_en_d2p[3]; |
| 3014 | assign mio_en_d2p[MioOutPwmAonPwm4] = cio_pwm_aon_pwm_en_d2p[4]; |
| 3015 | assign mio_en_d2p[MioOutPwmAonPwm5] = cio_pwm_aon_pwm_en_d2p[5]; |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 3016 | assign mio_en_d2p[MioOutSysrstCtrlAonBatDisable] = cio_sysrst_ctrl_aon_bat_disable_en_d2p; |
| 3017 | assign mio_en_d2p[MioOutSysrstCtrlAonKey0Out] = cio_sysrst_ctrl_aon_key0_out_en_d2p; |
| 3018 | assign mio_en_d2p[MioOutSysrstCtrlAonKey1Out] = cio_sysrst_ctrl_aon_key1_out_en_d2p; |
| 3019 | assign mio_en_d2p[MioOutSysrstCtrlAonKey2Out] = cio_sysrst_ctrl_aon_key2_out_en_d2p; |
Michael Schaffner | 920e4cc | 2020-04-28 22:58:12 -0700 | [diff] [blame] | 3020 | |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 3021 | // All dedicated inputs |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 3022 | logic [23:0] unused_dio_p2d; |
Timothy Chen | b3d45f6 | 2021-04-10 00:29:49 -0700 | [diff] [blame] | 3023 | assign unused_dio_p2d = dio_p2d; |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 3024 | assign cio_spi_host0_sd_p2d[0] = dio_p2d[DioSpiHost0Sd0]; |
| 3025 | assign cio_spi_host0_sd_p2d[1] = dio_p2d[DioSpiHost0Sd1]; |
| 3026 | assign cio_spi_host0_sd_p2d[2] = dio_p2d[DioSpiHost0Sd2]; |
| 3027 | assign cio_spi_host0_sd_p2d[3] = dio_p2d[DioSpiHost0Sd3]; |
| 3028 | assign cio_spi_device_sd_p2d[0] = dio_p2d[DioSpiDeviceSd0]; |
| 3029 | assign cio_spi_device_sd_p2d[1] = dio_p2d[DioSpiDeviceSd1]; |
| 3030 | assign cio_spi_device_sd_p2d[2] = dio_p2d[DioSpiDeviceSd2]; |
| 3031 | assign cio_spi_device_sd_p2d[3] = dio_p2d[DioSpiDeviceSd3]; |
| 3032 | assign cio_usbdev_d_p2d = dio_p2d[DioUsbdevD]; |
| 3033 | assign cio_usbdev_dp_p2d = dio_p2d[DioUsbdevDp]; |
| 3034 | assign cio_usbdev_dn_p2d = dio_p2d[DioUsbdevDn]; |
| 3035 | assign cio_spi_device_sck_p2d = dio_p2d[DioSpiDeviceSck]; |
| 3036 | assign cio_spi_device_csb_p2d = dio_p2d[DioSpiDeviceCsb]; |
| 3037 | assign cio_usbdev_sense_p2d = dio_p2d[DioUsbdevSense]; |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 3038 | |
| 3039 | // All dedicated outputs |
| 3040 | assign dio_d2p[DioSpiHost0Sd0] = cio_spi_host0_sd_d2p[0]; |
| 3041 | assign dio_d2p[DioSpiHost0Sd1] = cio_spi_host0_sd_d2p[1]; |
| 3042 | assign dio_d2p[DioSpiHost0Sd2] = cio_spi_host0_sd_d2p[2]; |
| 3043 | assign dio_d2p[DioSpiHost0Sd3] = cio_spi_host0_sd_d2p[3]; |
| 3044 | assign dio_d2p[DioSpiDeviceSd0] = cio_spi_device_sd_d2p[0]; |
| 3045 | assign dio_d2p[DioSpiDeviceSd1] = cio_spi_device_sd_d2p[1]; |
| 3046 | assign dio_d2p[DioSpiDeviceSd2] = cio_spi_device_sd_d2p[2]; |
| 3047 | assign dio_d2p[DioSpiDeviceSd3] = cio_spi_device_sd_d2p[3]; |
| 3048 | assign dio_d2p[DioUsbdevD] = cio_usbdev_d_d2p; |
| 3049 | assign dio_d2p[DioUsbdevDp] = cio_usbdev_dp_d2p; |
| 3050 | assign dio_d2p[DioUsbdevDn] = cio_usbdev_dn_d2p; |
| 3051 | assign dio_d2p[DioSpiDeviceSck] = 1'b0; |
| 3052 | assign dio_d2p[DioSpiDeviceCsb] = 1'b0; |
| 3053 | assign dio_d2p[DioUsbdevSense] = 1'b0; |
| 3054 | assign dio_d2p[DioSpiHost0Sck] = cio_spi_host0_sck_d2p; |
| 3055 | assign dio_d2p[DioSpiHost0Csb] = cio_spi_host0_csb_d2p; |
| 3056 | assign dio_d2p[DioUsbdevSe0] = cio_usbdev_se0_d2p; |
| 3057 | assign dio_d2p[DioUsbdevDpPullup] = cio_usbdev_dp_pullup_d2p; |
| 3058 | assign dio_d2p[DioUsbdevDnPullup] = cio_usbdev_dn_pullup_d2p; |
| 3059 | assign dio_d2p[DioUsbdevTxModeSe] = cio_usbdev_tx_mode_se_d2p; |
| 3060 | assign dio_d2p[DioUsbdevSuspend] = cio_usbdev_suspend_d2p; |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 3061 | assign dio_d2p[DioUsbdevRxEnable] = cio_usbdev_rx_enable_d2p; |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 3062 | assign dio_d2p[DioSysrstCtrlAonEcRstOutL] = cio_sysrst_ctrl_aon_ec_rst_out_l_d2p; |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 3063 | assign dio_d2p[DioSysrstCtrlAonPwrbOut] = cio_sysrst_ctrl_aon_pwrb_out_d2p; |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 3064 | |
| 3065 | // All dedicated output enables |
| 3066 | assign dio_en_d2p[DioSpiHost0Sd0] = cio_spi_host0_sd_en_d2p[0]; |
| 3067 | assign dio_en_d2p[DioSpiHost0Sd1] = cio_spi_host0_sd_en_d2p[1]; |
| 3068 | assign dio_en_d2p[DioSpiHost0Sd2] = cio_spi_host0_sd_en_d2p[2]; |
| 3069 | assign dio_en_d2p[DioSpiHost0Sd3] = cio_spi_host0_sd_en_d2p[3]; |
| 3070 | assign dio_en_d2p[DioSpiDeviceSd0] = cio_spi_device_sd_en_d2p[0]; |
| 3071 | assign dio_en_d2p[DioSpiDeviceSd1] = cio_spi_device_sd_en_d2p[1]; |
| 3072 | assign dio_en_d2p[DioSpiDeviceSd2] = cio_spi_device_sd_en_d2p[2]; |
| 3073 | assign dio_en_d2p[DioSpiDeviceSd3] = cio_spi_device_sd_en_d2p[3]; |
| 3074 | assign dio_en_d2p[DioUsbdevD] = cio_usbdev_d_en_d2p; |
| 3075 | assign dio_en_d2p[DioUsbdevDp] = cio_usbdev_dp_en_d2p; |
| 3076 | assign dio_en_d2p[DioUsbdevDn] = cio_usbdev_dn_en_d2p; |
| 3077 | assign dio_en_d2p[DioSpiDeviceSck] = 1'b0; |
| 3078 | assign dio_en_d2p[DioSpiDeviceCsb] = 1'b0; |
| 3079 | assign dio_en_d2p[DioUsbdevSense] = 1'b0; |
| 3080 | assign dio_en_d2p[DioSpiHost0Sck] = cio_spi_host0_sck_en_d2p; |
| 3081 | assign dio_en_d2p[DioSpiHost0Csb] = cio_spi_host0_csb_en_d2p; |
| 3082 | assign dio_en_d2p[DioUsbdevSe0] = cio_usbdev_se0_en_d2p; |
| 3083 | assign dio_en_d2p[DioUsbdevDpPullup] = cio_usbdev_dp_pullup_en_d2p; |
| 3084 | assign dio_en_d2p[DioUsbdevDnPullup] = cio_usbdev_dn_pullup_en_d2p; |
| 3085 | assign dio_en_d2p[DioUsbdevTxModeSe] = cio_usbdev_tx_mode_se_en_d2p; |
| 3086 | assign dio_en_d2p[DioUsbdevSuspend] = cio_usbdev_suspend_en_d2p; |
Timothy Chen | 22c1856 | 2021-04-09 14:52:12 -0700 | [diff] [blame] | 3087 | assign dio_en_d2p[DioUsbdevRxEnable] = cio_usbdev_rx_enable_en_d2p; |
Michael Schaffner | e029a68 | 2021-04-06 16:21:30 -0700 | [diff] [blame] | 3088 | assign dio_en_d2p[DioSysrstCtrlAonEcRstOutL] = cio_sysrst_ctrl_aon_ec_rst_out_l_en_d2p; |
Michael Schaffner | 3b1c030 | 2021-04-02 18:01:15 -0700 | [diff] [blame] | 3089 | assign dio_en_d2p[DioSysrstCtrlAonPwrbOut] = cio_sysrst_ctrl_aon_pwrb_out_en_d2p; |
Michael Schaffner | 74c4ff2 | 2021-03-30 15:43:46 -0700 | [diff] [blame] | 3090 | |
Eunchan Kim | 769065e | 2019-10-29 17:29:26 -0700 | [diff] [blame] | 3091 | |
Nils Graf | 78607aa | 2019-09-16 15:47:23 -0700 | [diff] [blame] | 3092 | // make sure scanmode_i is never X (including during reset) |
Eunchan Kim | 5511bbe | 2020-08-07 14:04:20 -0700 | [diff] [blame] | 3093 | `ASSERT_KNOWN(scanmodeKnown, scanmode_i, clk_main_i, 0) |
Nils Graf | 78607aa | 2019-09-16 15:47:23 -0700 | [diff] [blame] | 3094 | |
lowRISC Contributors | 802543a | 2019-08-31 12:12:56 +0100 | [diff] [blame] | 3095 | endmodule |