CAV layout code