Open GuoShibo-cn opened 5 months ago
Can you provide a particular input where Spike and the SAIL model disagree, and let us know what the result is in both cases?
I am not a SAIL expert but it seems the implementations differ in how they handle the building of a temporary value (84 bits fixed point for SAIL while spike uses a 64-bit supporting integer type for the integer part).
According to spike fcvtmod_w_d.h too large/ too small boundary true_exp is shift+52 which is (64 + 52 = 116)/ (-64 + 52 = -12) however according to sail model sail model
boundary true_exp is 84/0 which model could be considered as meet specification?