[pinmux] Fix inter-module signal struct
pinmux struct type of lifecycle strap was wrong. It is revised to be
`lc_strap_{req/rsp}_t`. The default values of those structs are revised
accordingly.
Signed-off-by: Eunchan Kim <eunchan@opentitan.org>
diff --git a/hw/ip/pinmux/data/pinmux.hjson.tpl b/hw/ip/pinmux/data/pinmux.hjson.tpl
index d040b4d..d7ed5e2 100644
--- a/hw/ip/pinmux/data/pinmux.hjson.tpl
+++ b/hw/ip/pinmux/data/pinmux.hjson.tpl
@@ -36,7 +36,7 @@
inter_signal_list: [
// Define lc <-> pinmux signal for strap sampling
- { struct: "lc_pinmux_strap",
+ { struct: "lc_strap",
type: "req_rsp",
name: "lc_pinmux_strap",
act: "rsp",
diff --git a/hw/ip/pinmux/rtl/pinmux_pkg.sv b/hw/ip/pinmux/rtl/pinmux_pkg.sv
index 9e54282..1dbde92 100644
--- a/hw/ip/pinmux/rtl/pinmux_pkg.sv
+++ b/hw/ip/pinmux/rtl/pinmux_pkg.sv
@@ -23,7 +23,7 @@
logic sample_pulse;
} lc_strap_req_t;
- parameter lc_strap_req_t LC_PINMUX_STRAP_REQ_DEFAULT = '{
+ parameter lc_strap_req_t LC_STRAP_REQ_DEFAULT = '{
sample_pulse: 1'b0
};
@@ -32,4 +32,9 @@
logic [NStraps-1:0] straps;
} lc_strap_rsp_t;
+ parameter lc_strap_rsp_t LC_STRAP_RSP_DEFAULT = '{
+ valid: 1'b0,
+ straps: '0
+ };
+
endpackage : pinmux_pkg