Commit Graph

2 Commits (c5f5f507385dd9d2dad62908c79d911d237a4eda)

Author SHA1 Message Date
Anton Blanchard 488c30fe91 Add log2ceil and use it in bram code
We might want a non power of 2 amount of RAM in order to fit into an
FPGA, so create log2ceil and use it when calculating the number of
memory bits.

Signed-off-by: Anton Blanchard <>
4 years ago
Benjamin Herrenschmidt 9a63c098a5 Move log2/ispow2 to a utils package
(Out of icache and dcache)

Signed-off-by: Benjamin Herrenschmidt <>
5 years ago