Commit Graph

2 Commits (7bc118c7db9aa003301a903002acfc32cec04ed7)

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