logic gate layout | nand latches | final document