The architectural block diagram of 8259A is shown in fig1. The functional explication of each block is given in the…