Solved CS219 Assignment #6 Spring 2026

$75.00

Original Work ?

Download Details:

  • Name: CS219_Assignment_6-onkwtn.zip
  • Type: zip
  • Size: 1.92 MB

Category: Tags: , , , , You will Instantly receive a download link upon Payment||Click Original Work Button for Custom work

Description

Rate this product

Purpose: Become familiar with the MIPS architecture instruction formats, control signals, Datapath elements.

Points: 100

Reading/References: Chapter 4, Class Lecture / Lecture Notes, Textbook

  • Explain and trace/highlight the Datapath for the given R and I format instructions – sub, addi, lw, sw, Update the control signal table for each instruction. Rewrite the instruction using register format, for example change add int add rd, rs, rt. Use fig 4.17 for this question and you will need a separate picture for each instruction.

(Note: Use different color sketch/pen to easily identify the path of each instruction.)                                                                                                                       [40 pts, 10 pts each]

 

 

Instruction RegDst ALUSrc MemtoReg RegWrite MemRead MemWrite Branch ALUop1 (MSB) Aluop0 (LSB)
sub                  
addi                  
lw                  
sw                  
  • Explain and trace/highlight the Datapath for the given instructions:
  • j Label
  • ori rt, rs, imm

Use fig 4.24 for the above questions and you will need a separate picture for each instruction. (Note: Use different color sketch/pen to easily identify the path of each instruction.)                                                                                                 [20 pts, 10 pts each]

Note: This question is from textbook, however for the assignment we are considering is a different diagram and values. I am sharing to let you know that this is from textbook exercise and I have not changed any wording except numerical values. You no need to answer this sample(4.4, 4.4.1, 4.4.2,4.4.3)

  • In this problem (you have to calculate critical path), we examine how latencies of individual components of the Datapath affect the clock cycle time of the entire datapath, and how these components are utilized by instructions. For problems in this question, assume the following latencies for logic blocks in the datapath: [40 pts, 8 pts each]
Processor I-Mem Add Mux ALU Regs D-Mem Sign-Extend Shift-Left- 2
A 300ns 100ns 30ns 150ns 80ns 500ns 20ns 2ns

 

  1. If the only thing we need to do in a processor is fetch consecutive instructions (Figure 4.24), what would the cycle time be?
  2. Consider a Datapath similar to the one in Figure 4.24, but for a processor that only has one type of instruction: unconditional branch instruction (b label == beq $0, $0, offset). What would the cycle time/critical path be for this Datapath?
  3. Consider a Datapath similar to the one in Figure 4.24, but for a processor that only has one type of instruction: jump instruction (j Loop). What would the cycle time/critical path be for this Datapath?
  4. Consider a Datapath similar to the one in Figure 4.24, but for a processor that only has one type of instruction: sw Rt, imm (Rs) instruction. What would the cycle time/critical path be for this Datapath?
  5. Consider a Datapath similar to the one in Figure 4.24, but for a processor that only has one type of instruction: or Rd, Rs, Rt instruction. What would the cycle time/critical path be for this Datapath?