Single-Cycle Processor Design (15 Marks) Design a single cycle processor with 18 bit wide instructions, and data-word width of your choice. Your design should include the following details: Basic R-Type and I-Type instructions including Branch. (3 marks) Instruction Set that covers basic Arithmetic and Logical Operations. (3 marks) Number of Registers (2 marks) Datapath and Control Design (show the complete processor with the necessary connections) (7 marks) Code for Execution (15 Marks) Your processor is required to execute a sequence of instructions that takes a number N and generates the square of N as the answer. For example, if Nis 5, then the result of the execution must be 25. You are to provide the following in your report. Assembly Language Instructions based on your processors design (7 marks) Machine Code (Binary) with detailed explanations for each of the instructions. (8 marks) The variable N is a word variable stored in a memory location (you can assume any location). After the operation is complete, the answer must be written back to the same memory location of N. PCS Add - 2x Add ALU result Rag Write Shift left 2 PC! Instruction (25-211 Instruction (2016) ALUS Read address Instruction (31-01 Instruction memory Read register 1 Read Read data 1 register 2 Read Write data 2 register Write data Registers Zero MemWrite MemtoReg Address Read! data ALU ALU result Instruction (15-111 ONS Saxo OXES Write data Data memory Regos Instruction (15-0) 16 Sign 32 extend ALU control MomRoad Instruction (5-0) ALUOP Single-Cycle Processor Design (15 Marks) Design a single cycle processor with 18 bit wide instructions, and data-word width of your choice. Your design should include the following details: Basic R-Type and I-Type instructions including Branch. (3 marks) Instruction Set that covers basic Arithmetic and Logical Operations. (3 marks) Number of Registers (2 marks) Datapath and Control Design (show the complete processor with the necessary connections) (7 marks) Code for Execution (15 Marks) Your processor is required to execute a sequence of instructions that takes a number N and generates the square of N as the answer. For example, if Nis 5, then the result of the execution must be 25. You are to provide the following in your report. Assembly Language Instructions based on your processors design (7 marks) Machine Code (Binary) with detailed explanations for each of the instructions. (8 marks) The variable N is a word variable stored in a memory location (you can assume any location). After the operation is complete, the answer must be written back to the same memory location of N. PCS Add - 2x Add ALU result Rag Write Shift left 2 PC! Instruction (25-211 Instruction (2016) ALUS Read address Instruction (31-01 Instruction memory Read register 1 Read Read data 1 register 2 Read Write data 2 register Write data Registers Zero MemWrite MemtoReg Address Read! data ALU ALU result Instruction (15-111 ONS Saxo OXES Write data Data memory Regos Instruction (15-0) 16 Sign 32 extend ALU control MomRoad Instruction (5-0) ALUOP