@@ -44,9 +44,11 @@ module i3c
44
44
parameter int unsigned HciCmdFifoDepth = `CMD_FIFO_DEPTH ,
45
45
parameter int unsigned HciRxFifoDepth = `RX_FIFO_DEPTH ,
46
46
parameter int unsigned HciTxFifoDepth = `TX_FIFO_DEPTH ,
47
- parameter int unsigned HciIbiFifoDepth = (`IBI_FIFO_EXT_SIZE )
48
- ? (8 * `IBI_FIFO_DEPTH )
49
- : (`IBI_FIFO_DEPTH ),
47
+ `ifdef IBI_FIFO_EXT_SIZE
48
+ parameter int unsigned HciIbiFifoDepth = 8 * `IBI_FIFO_DEPTH ,
49
+ `else
50
+ parameter int unsigned HciIbiFifoDepth = `IBI_FIFO_DEPTH ,
51
+ `endif
50
52
51
53
localparam int unsigned HciRespFifoDepthWidth = $clog2 (HciRespFifoDepth + 1 ),
52
54
localparam int unsigned HciCmdFifoDepthWidth = $clog2 (HciCmdFifoDepth + 1 ),
@@ -70,9 +72,11 @@ module i3c
70
72
parameter int unsigned TtiTxDescFifoDepth = `CMD_FIFO_DEPTH ,
71
73
parameter int unsigned TtiRxFifoDepth = `RX_FIFO_DEPTH ,
72
74
parameter int unsigned TtiTxFifoDepth = `TX_FIFO_DEPTH ,
73
- parameter int unsigned TtiIbiFifoDepth = (`IBI_FIFO_EXT_SIZE )
74
- ? (8 * `IBI_FIFO_DEPTH )
75
- : (`IBI_FIFO_DEPTH ),
75
+ `ifdef IBI_FIFO_EXT_SIZE
76
+ parameter int unsigned TtiIbiFifoDepth = 8 * `IBI_FIFO_DEPTH ,
77
+ `else
78
+ parameter int unsigned TtiIbiFifoDepth = `IBI_FIFO_DEPTH ,
79
+ `endif
76
80
localparam int unsigned TtiTxDescFifoDepthWidth = $clog2 (TtiTxDescFifoDepth + 1 ),
77
81
localparam int unsigned TtiRxDescFifoDepthWidth = $clog2 (TtiRxDescFifoDepth + 1 ),
78
82
localparam int unsigned TtiTxFifoDepthWidth = $clog2 (TtiTxFifoDepth + 1 ),
0 commit comments