It appears that the $pow function in Lucid/Alchitry Labs has a problem when the result is above 32 bits:
eg:
$pow(10, 11) = 37’h00 c876 e800 but it should be: 37’h17 4876 E800
$pow(10, 10) = 34’h0 d40b e400 but it should be: 34’h2 540B E400
This causes the component bin_to_dec to work incorrectly for high, 10 digit numbers.