On-chip signal processing