Digital Logic for Soft Devices