mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-04-23 21:57:11 -04:00
ariane_pkg: Prevent overflow during range_check
Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
This commit is contained in:
parent
c72a9e5d56
commit
8dd06b5f9e
1 changed files with 1 additions and 1 deletions
|
@ -96,7 +96,7 @@ package ariane_pkg;
|
|||
|
||||
function automatic logic range_check(logic[63:0] base, logic[63:0] len, logic[63:0] address);
|
||||
// if len is a power of two, and base is properly aligned, this check could be simplified
|
||||
return (address >= base) && (address < (base+len));
|
||||
return (address >= base) && (address < (65'(base)+len));
|
||||
endfunction : range_check
|
||||
|
||||
function automatic logic is_inside_nonidempotent_regions (ariane_cfg_t Cfg, logic[63:0] address);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue