CMPE110 HA3 Solutions.pdf - CMPE110 u200bHA3 Solutions...

This preview shows page 1 - 3 out of 7 pages.

CMPE110 HA3 Solutions Pipeline Detective 1)Consider the single cycle processor shown above. Determine the control signals as theyare generated by the Control logic block by filling in the table below. For each instruction,set the four control signals to either 1 (enable), 0 (disable) or X (don’t care). Don’t caremeans: for a specific instruction the control signal can be either 0 or 1.(4 Points) Instruction Opcode RegWrite Branch MemToReg/RegDst ALUSrc beq 11000110 1 X 0 addi 00100111 0 0 1 sub 01100111 0 0 0 lb 00000111 0 1 1 sb 0100011 0 0 X 1
2)Determine the boolean combinational logic expression of opcode bits to generate thecontrol signals. Fill in the table below. Assume only the 5 instructions above (ignore allother instructions RISC-V may define). Use Op[x] to select a particular bit from theopcode. Enumerate the opcode bits from right to left, e.g. given the opcode 0100011,

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture

  • Left Quote Icon

    Student Picture