• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Alchitry Labs: $pow(): problem with large numbers: leads to bin_to_dec component err
#1
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.
  Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)