layout skeleton for reg and mem