Question: 2. (20 points) When an instruction is executed by a processor, the instruction is decoded into a set of control signals that are used to



2. (20 points) When an instruction is executed by a processor, the instruction is decoded into a set of control signals that are used to control the various processor components (e.g., register file, ALU) and data path. This decoding task can be implemented using either a ROM or decoders. You are asked to implement such a decoder for a simplified instruction set below. 76543210 0 rdr funct See R-type Instructions 2 rd immediate lui: Srd = imm > 1 6 sra: Srd = $rx/2 7 not: Srd = -Srx The ISA uses 3 bit opcode (bit 7-5) and 3 bit funct code (bit 2-0). The table below shows all the instructions and their opcodes + funct codes. For each instruction, the table also lists the corresponding values of eight control signals. Please design an instruction decoder and show your logic circuits schematic. Note that opcode bits (bit 7-5) are enough Immed enW E Msel Bit Bit 1 0 10 Bit 0 Bit2 X Bit X Msel J Bito X 0 0 O 0 xxxxo-o- 0 0 0 Instruction LW SW LUI ORI AND OR ADD SUB SLL SRL SRA NOT JUMP BEQ 0 0 0 0 0 0 0 0 0 0 0 1 0 0 0 10 0 0 0 0 0 0 0 0 0 -- 0 1 1 1 0 10 Bit Bite Bits Immed_en 11 1 1 WE Msel 1
Step by Step Solution
There are 3 Steps involved in it
Get step-by-step solutions from verified subject matter experts
