A 3 × 3 digitally programmable CNN chip