mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-19 03:44:46 -04:00
Simplify the Verilog "inside" (from @flaviens) (#2776)
Hi! Some tools like morty struggle with this expression. I suggest this very simple rewrite. No need for fancy constructs here. Thanks @flaviens for this contribution
This commit is contained in:
parent
be7c8746c6
commit
e4c28b0b03
1 changed files with 5 additions and 4 deletions
|
@ -1385,10 +1385,11 @@ module cva6
|
|||
.inval_valid_i (inval_valid),
|
||||
.inval_ready_o (inval_ready)
|
||||
);
|
||||
end else if (CVA6Cfg.DCacheType inside {
|
||||
config_pkg::HPDCACHE_WT,
|
||||
config_pkg::HPDCACHE_WB,
|
||||
config_pkg::HPDCACHE_WT_WB})
|
||||
end else if (
|
||||
CVA6Cfg.DCacheType == config_pkg::HPDCACHE_WT ||
|
||||
CVA6Cfg.DCacheType == config_pkg::HPDCACHE_WB ||
|
||||
CVA6Cfg.DCacheType == config_pkg::HPDCACHE_WT_WB
|
||||
)
|
||||
begin : gen_cache_hpd
|
||||
cva6_hpdcache_subsystem #(
|
||||
.CVA6Cfg (CVA6Cfg),
|
||||
|
|
Loading…
Add table
Reference in a new issue