Programming circuit by using small elements