hi, my computer's arch is x86_64. So, a 'long int' in this machine is 64-bit width, but it is 32-bit width in i368 machine. I think it is the reason why I can't pass SRAM test in vpi mod. I think you should add an option '-m32' into CFLAGS. That's all.