From 36c92bdea4646b4ca22347e4aff465b5fb6b25bb Mon Sep 17 00:00:00 2001 From: Rupert Swarbrick Date: Fri, 17 May 2024 15:53:17 +0100 Subject: [PATCH] [pinmux,fpv] Fix type of mio_pad_attr in pinmux_assert_fpv.sv The existing type wasn't quite right. The register we're talking about has 14 bits of data. The pinmux_reg2hw_mio_pad_attr_mreg_t type has those 14 bits of data (in the "q" fields), but also has 10 bits of "qe" stuff that we don't want to track. Tweak the types to make the types in the assignment match and hence get their widths to match as well. Signed-off-by: Rupert Swarbrick --- hw/ip/pinmux/fpv/vip/pinmux_assert_fpv.sv | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hw/ip/pinmux/fpv/vip/pinmux_assert_fpv.sv b/hw/ip/pinmux/fpv/vip/pinmux_assert_fpv.sv index cedf342c73606..bc9af6a21b489 100644 --- a/hw/ip/pinmux/fpv/vip/pinmux_assert_fpv.sv +++ b/hw/ip/pinmux/fpv/vip/pinmux_assert_fpv.sv @@ -281,7 +281,7 @@ module pinmux_assert_fpv ($past(!$rose(sleep_en_i) || !mio_pad_sleep_en.q) && mio_pad_sleep_status.q))) // ------ Mio_attr_o ------ - pinmux_reg_pkg::pinmux_reg2hw_mio_pad_attr_mreg_t mio_pad_attr; + pad_attr_t mio_pad_attr; assign mio_pad_attr = pinmux.mio_pad_attr_q[mio_sel_i]; pad_attr_t mio_pad_attr_mask;