Questions tagged [mips]
The mips tag has no summary.
49 questions
0 votes
0 answers
27 views
velocity single cycle vs multicycle datapath
In a mock exam for my CS course in computer architecture there is the question: "explain why the multicycle datapath is faster than the single cycle datapath." The TA wrote the answer: "...
0 votes
0 answers
63 views
MIPS pipelined CPU Read and Write from Registers on First and Second Halves of Clock Cycle
In a pipelined MIPS CPU, writing to the pipeline registers, registers and PC occurs when the in the rising edge of the clock, and reading occurs in the falling edge, according to my understanding. ...
3 votes
1 answer
245 views
Patterson & Hennessy, Computer Organization and Design, 5th edition, Question for Ex. 2.3
I am stumbling over the Exercise 2.3 of Chapter 2, i.e.: For the following C statement, what is the corresponding MIPS assembly code? Assume that the variables f, <...
1 vote
1 answer
305 views
MIPS: How can the least 2 significant bits of a 32-bit address specify a byte?
I was reading Computer Architecture Organization and Design by David A. Patterson and John L. Hennessy. Specifically, I was reading chapter 5, section 5.3, Basics of Caches. I read the following ...
2 votes
1 answer
198 views
0 votes
1 answer
162 views
How do you tell whether a binary number is positive or negative?
Consider the figure in Exercise 2. If the current machine code that executes is 0x214bfffd and the values of the registers in the processor are as shown below, what is then the value of the input WD3 ?...
0 votes
1 answer
94 views
What is the hit rate of the cache when executing this code?
C++ code: int main() { short int arr[4][4]; for (int i = 0; i < 8; i++) { for (int j = 0; j < 8; j++) { arr[i][j] = i+j; } } return 0; } Is there ...
0 votes
1 answer
294 views
R2000 ALU Design
probably a couple decades too late to ask this question, but does anyone know anything/have detailed documentation about the hardware/design underlying the ALU unit in the early MIPS R2000 CPU? ...
1 vote
1 answer
139 views
Execution of instruction in MIPS on various parts of the clock cycle
I've recently learnt the execution of MIPS instruction set using single cycle processor. However I'm not getting one thing. Since one clock cycle is needed for the complete instruction we only have ...
2 votes
1 answer
495 views
Data hazard in MIPS: SW after ADD
Use the five-stage pipeline with forwarding unit. add $t1, $t2, $t3 sw $t1, 0($t4) In the above code, is the data hazard of t1 fixed by forwarding the correct t1 ...
1 vote
1 answer
155 views
Why does it have that amount of stalls
I'm doing an exercise about the MIPS pipeline with the following characteristics: -Branches and Branch targets are calculated in the E-stage. -There is forward logic from the output to the input of ...
-1 votes
1 answer
87 views
Computer Architecture MIPS assembler with predictors
This MIPS code is given: ...
1 vote
2 answers
748 views
How can this MIPS processor execute one instruction in one cycle?
I'm reading section 7.3 (SINGLE CYCLE PROCESSOR) of Digital Design and Computer Architecture, Second Edition by David Money Harris. At the end of the section the autor shows this MIPS processor and ...
1 vote
1 answer
200 views
MIPS pipeline: MEM stage takes one cycle?
Apparently, each stage of the MIPS processor pipeline takes one CPU cycle. According to this, a memory write can take more than one cycle: 1 cycle to read a register 4 cycles to reach to L1 cache 10 ...
1 vote
1 answer
730 views
Do number of registers and width of register have to be the same?
I am studying Computer Architecture with MIPS-32. The example system has 32 registers with each register having a width of 32 bit. If I would want 128 registers instead of 32 registers, would I have ...