A ferroelectric FET-based processing-in-memory architecture for DNN acceleration