Cycle-accurate implementation of MAC logic