Use localparam to avoid warnings

Signed-off-by: Franck Jullien <franck.jullien@gmail.com>