Based on MIPS Instruction Structure Main Module module Alu( input [31:0] a, // operand 1 input [31:0] b, // operand 2 input [3:0] aluc, // control port output [31:0] r, // result // Flags output zero, output carry, output negative, output overflow );…