Add log2ceil and use it in bram code
authorAnton Blanchard <anton@linux.ibm.com>
Sun, 19 Jan 2020 10:18:05 +0000 (21:18 +1100)
committerAnton Blanchard <anton@ozlabs.org>
Sun, 19 Jan 2020 10:49:21 +0000 (21:49 +1100)
commit488c30fe91d5664890f72a7f4dee2ab5f100cb22
tree761ef69eed8a50ed1d41e445dfd2c2340c2b91e0
parentb3dd31a9781ede119b413bf408f6e043a55e1ad4
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 <anton@linux.ibm.com>
utils.vhdl
wishbone_bram_wrapper.vhdl