Programmable device logical