Jump to content

Help with some questions please

- - - - -

  • Please log in to reply
4 replies to this topic

#1
toto_7

toto_7

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 295 posts
Hello,

Need to help a friend on this and because did system ach. not so much...can't remember. I'll appreciate if anyone could help.

Attached File  Untitled.png   109.59K   46 downloads

Here are the questions:

a) Explain the purpose of each MUX in the above diagram
b) Describe the steps for the execution of the following instructions in the singlecycle MIPS CPU datapath: add $t7, $t1, $t4, lw $s5, 0($t7), sub $t7, $t2, $t3,
sw $s5, 1000($t4), beq $t7, $t1, 100

Suppose it takes memory 100 nsec to read a word, the ALU and adders take 4
nsec, the register file can be read or written in 1 nsec, the PC can be read or
written in 0.2 nsec, and all multiplexors take 0.1 nsec. Assume everything else
takes 0 time (control, shift, sign extend, wires, etc.).
How long will it take to execute an add instruction?
How long will it take to execute a lw instruction?
How long will it take to execute a beq instruction?
How long will it take to execute a j instruction?
What would be the single-cycle CPU cycle time for the above scenario?

Thanks,toto7

"Programming is like sex. One mistake and you have to support it for the rest of your life."

-Michael Sinz

#2
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,705 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
We have an unspoken policy here that we help with homework, but we won't do it for you. What do you have so far?

Just out of curiosity: Is that diagram from Computer Organization and Design by Patterson and Hennessy?
sudo rm -rf /

#3
toto_7

toto_7

    Programming Professional

  • Members
  • PipPipPipPipPip
  • 295 posts
Oh didn't know that, I'm sorry. Can any moderator remove this post? For you question, I have no idea, because this exercise is not mine. Thanks dargueta

"Programming is like sex. One mistake and you have to support it for the rest of your life."

-Michael Sinz

#4
dargueta

dargueta

    Writes binary right handed and hex left handed

  • Moderators
  • 4,705 posts
  • Programming Language:C, Java, C++, PHP, Python, Perl, Assembly, Bash, Others
  • Learning:JavaScript
Feel free to ask questions, we just won't do it for you.
sudo rm -rf /

#5
spcm0012

spcm0012

    Newbie

  • Members
  • PipPip
  • 13 posts
Well MUX would be a multiplexer, think about what a multiplexer does, and why that might be useful where they put it.




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users