lm32: replace $clog2 with macro
authorMichael Walle <michael@walle.cc>
Mon, 12 Nov 2012 18:36:22 +0000 (19:36 +0100)
committerSebastien Bourdeauducq <sebastien@milkymist.org>
Wed, 14 Nov 2012 13:30:16 +0000 (14:30 +0100)
commita0ff666628695e11037568e998c11125b243f225
treea89d4a8deb9edeffb90d1dd71b892c5d7c7d81d4
parentd15d9829045fbd4396756be48f5232636b050875
lm32: replace $clog2 with macro

Unfortunately, XST does not support $clog2 with the localparam keyword
(the parameter keyword works just fine). Define a macro which replaces the
call with a constant function.

This commit can be reverted if the bug in XST is fixed.

Signed-off-by: Michael Walle <michael@walle.cc>
verilog/lm32/lm32_config.v
verilog/lm32/lm32_dcache.v
verilog/lm32/lm32_icache.v
verilog/lm32/lm32_instruction_unit.v
verilog/lm32/lm32_load_store_unit.v