Topaic: Logic circuits