first version of calc prepare for Avalon ASIC