make sure write_en high for only one clock cycle