Skip to content
Snippets Groups Projects
Commit e898bb75 authored by Alban Gruin's avatar Alban Gruin
Browse files

wt_icache: check the SpecDepth value


Signed-off-by: default avatarAlban Gruin <alban.gruin@irit.fr>
parent 7dfbc2e8
No related branches found
No related tags found
No related merge requests found
......@@ -614,6 +614,12 @@ end else begin : gen_piton_offset
assert (ICACHE_SET_ASSOC==4)
else $fatal(1,"[l1 icache] cache must be 4-associative");
assert (2 ** $clog2(SpecDepth) == SpecDepth)
else $fatal(1,"[l1 icache] SpecDepth is not a power of 2");
assert (SpecDepth >= 2)
else $fatal(1,"[l1 icache] SpecDepth is lower than 2");
end
`endif
//pragma translate_on
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment