Question: Please perform highlighted functions in verilog code. A and B are two 8 bit operands so perform an 8 bit adder, nander, xnor, and mult
Please perform highlighted functions in verilog code. A and B are two 8 bit operands so perform an 8 bit adder, nander, xnor, and mult by 4 functions. Gave example of syntax below did not give the entire code, make a one bit function and call 8 times to make it simpler.

A function unit is a combinational circuit that performs a variety of common arithmetic, logic, and shift operations. A function unit has a set of control inputs thaOetermine which of the operations will be carried out on a set of operands For this project, the function unit will take as input two 8-bit operands, A and B, and perform the operation on those operands specified by a 4-bit operation code (opcode). The function unit will generate the 8-bit result of the operation as well as four status bits. The set of operations that you are required to implement is specified in Table 1 Status bits set based upon result V, Z, C, N V, Z, C, N V, Z,C, N V, Z,C,N Z, N Z, N Z, N Z, N Z, N Operation name Output Description add sub in neg nand xnor not mult4 div16 Add A and B Subtract B from A Increment A by 1 Negative of A Bitwise NAND of A and B Bitwise XNOR of A and B Bitwise complement of A Multiply B by 4 Divide B by 16 Modulus of A by 16; Note if A is negative, the result has to be positive Shift B left by 1 bit; the vacant bit positions are filled in with the bits that are shifted out of the sequence Shift B right by 1 bit; the vacant bit positions are filled in with the bits that are shifted out of the sequence A B A + B' 1 A' 16 B mod 16 Z, N All status bits clear All status bits clear mod16 B>1 A function unit is a combinational circuit that performs a variety of common arithmetic, logic, and shift operations. A function unit has a set of control inputs thaOetermine which of the operations will be carried out on a set of operands For this project, the function unit will take as input two 8-bit operands, A and B, and perform the operation on those operands specified by a 4-bit operation code (opcode). The function unit will generate the 8-bit result of the operation as well as four status bits. The set of operations that you are required to implement is specified in Table 1 Status bits set based upon result V, Z, C, N V, Z, C, N V, Z,C, N V, Z,C,N Z, N Z, N Z, N Z, N Z, N Operation name Output Description add sub in neg nand xnor not mult4 div16 Add A and B Subtract B from A Increment A by 1 Negative of A Bitwise NAND of A and B Bitwise XNOR of A and B Bitwise complement of A Multiply B by 4 Divide B by 16 Modulus of A by 16; Note if A is negative, the result has to be positive Shift B left by 1 bit; the vacant bit positions are filled in with the bits that are shifted out of the sequence Shift B right by 1 bit; the vacant bit positions are filled in with the bits that are shifted out of the sequence A B A + B' 1 A' 16 B mod 16 Z, N All status bits clear All status bits clear mod16 B>1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
