[top] Fix alert connection generation Signed-off-by: Timothy Chen <timothytim@google.com>
diff --git a/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson b/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson index c509d11..8e8cfec 100644 --- a/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson +++ b/hw/top_earlgrey/data/autogen/top_earlgrey.gen.hjson
@@ -4084,4 +4084,4 @@ } ] } -} +} \ No newline at end of file
diff --git a/hw/top_earlgrey/data/top_earlgrey.sv.tpl b/hw/top_earlgrey/data/top_earlgrey.sv.tpl index 56fe35c..706cd51 100644 --- a/hw/top_earlgrey/data/top_earlgrey.sv.tpl +++ b/hw/top_earlgrey/data/top_earlgrey.sv.tpl
@@ -555,7 +555,9 @@ slice = str(alert_idx+w-1) + ":" + str(alert_idx) %> % for alert in m["alert_list"] if "alert_list" in m else []: + % for i in range(alert["width"]): // [${alert_idx}]: ${alert["name"]}<% alert_idx += 1 %> + % endfor % endfor .alert_tx_o ( alert_tx[${slice}] ), .alert_rx_i ( alert_rx[${slice}] ),
diff --git a/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv b/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv index 5d78507..ea2ae9b 100644 --- a/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv +++ b/hw/top_earlgrey/rtl/autogen/top_earlgrey.sv
@@ -584,13 +584,13 @@ .tl_o (tl_spi_device_d_d2h), // Input - .cio_sck_i (cio_spi_device_sck_p2d), - .cio_csb_i (cio_spi_device_csb_p2d), - .cio_sdi_i (cio_spi_device_sdi_p2d), + .cio_sck_i (cio_spi_device_sck_p2d), + .cio_csb_i (cio_spi_device_csb_p2d), + .cio_sdi_i (cio_spi_device_sdi_p2d), // Output - .cio_sdo_o (cio_spi_device_sdo_d2p), - .cio_sdo_en_o (cio_spi_device_sdo_en_d2p), + .cio_sdo_o (cio_spi_device_sdo_d2p), + .cio_sdo_en_o (cio_spi_device_sdo_en_d2p), // Interrupt .intr_rxf_o (intr_spi_device_rxf),