mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-06-28 01:06:16 -04:00
fix synth FPGA: obi_default_cfg is not a valid constant function call
This commit is contained in:
parent
0183aa1ea3
commit
2a0e8119a7
1 changed files with 10 additions and 15 deletions
25
vendor/pulp-platform/obi/src/obi_pkg.sv
vendored
25
vendor/pulp-platform/obi/src/obi_pkg.sv
vendored
|
@ -88,22 +88,17 @@ package obi_pkg;
|
||||||
obi_optional_cfg_t OptionalCfg;
|
obi_optional_cfg_t OptionalCfg;
|
||||||
} obi_cfg_t;
|
} obi_cfg_t;
|
||||||
|
|
||||||
function automatic obi_cfg_t obi_default_cfg(int unsigned AddrWidth, int unsigned DataWidth,
|
|
||||||
int unsigned IdWidth, obi_optional_cfg_t OptionalCfg);
|
|
||||||
obi_default_cfg = '{
|
|
||||||
UseRReady: 1'b0,
|
|
||||||
CombGnt: 1'b0,
|
|
||||||
AddrWidth: AddrWidth,
|
|
||||||
DataWidth: DataWidth,
|
|
||||||
IdWidth: IdWidth,
|
|
||||||
Integrity: 1'b0,
|
|
||||||
BeFull: 1'b1,
|
|
||||||
OptionalCfg: OptionalCfg
|
|
||||||
};
|
|
||||||
endfunction
|
|
||||||
|
|
||||||
/// The default OBI bus config.
|
/// The default OBI bus config.
|
||||||
localparam obi_cfg_t ObiDefaultConfig = obi_default_cfg(32, 32, 1, ObiMinimalOptionalConfig);
|
localparam obi_cfg_t ObiDefaultConfig = '{
|
||||||
|
UseRReady: 1'b0,
|
||||||
|
CombGnt: 1'b0,
|
||||||
|
AddrWidth: 32,
|
||||||
|
DataWidth: 32,
|
||||||
|
IdWidth: 1,
|
||||||
|
Integrity: 1'b0,
|
||||||
|
BeFull: 1'b1,
|
||||||
|
OptionalCfg: ObiMinimalOptionalConfig
|
||||||
|
};
|
||||||
|
|
||||||
function automatic obi_cfg_t mux_grow_cfg(obi_cfg_t ObiCfgIn, int unsigned NumManagers);
|
function automatic obi_cfg_t mux_grow_cfg(obi_cfg_t ObiCfgIn, int unsigned NumManagers);
|
||||||
mux_grow_cfg = '{
|
mux_grow_cfg = '{
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue