Skip to content

Commit

Permalink
[pinmux,fpv] Fix type of mio_pad_attr in pinmux_assert_fpv.sv
Browse files Browse the repository at this point in the history
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 <rswarbrick@lowrisc.org>
  • Loading branch information
rswarbrick committed May 30, 2024
1 parent eb2e16b commit 36c92bd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion hw/ip/pinmux/fpv/vip/pinmux_assert_fpv.sv
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 36c92bd

Please sign in to comment.