We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 8182a85 commit 6bec330Copy full SHA for 6bec330
2 files changed
src/apb_uart_wrap.sv
@@ -9,6 +9,7 @@
9
10
// A UART with APB struct ports.
11
module apb_uart_wrap #(
12
+ parameter int unsigned AddrWidth = 32,
13
parameter type apb_req_t = logic,
14
parameter type apb_rsp_t = logic
15
) (
@@ -34,7 +35,7 @@ module apb_uart_wrap #(
34
35
);
36
37
localparam obi_pkg::obi_cfg_t ObiCfg = obi_pkg::obi_default_cfg(
- $bits(apb_req_i.paddr),
38
+ AddrWidth,
39
32,
40
1,
41
obi_pkg::ObiMinimalOptionalConfig
src/reg_uart_wrap.sv
@@ -54,6 +54,7 @@ module reg_uart_wrap #(
54
55
56
apb_uart_wrap #(
57
+ .AddrWidth ( AddrWidth ),
58
.apb_req_t ( apb_req_t ),
59
.apb_rsp_t ( apb_resp_t )
60
) i_apb_uart_wrap (
0 commit comments