multi-level logic circuit design