Read and write gate parameters