This device contains four independent gates with two data inputs, each which performs the logic NAND function.……