Jump to content


Check out our Community Blogs

Register and join over 40,000 other developers!


Recent Status Updates

View All Updates

Photo
- - - - -

Help with some questions please


  • Please log in to reply
4 replies to this topic

#1 toto_7

toto_7

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 244 posts

Posted 20 November 2011 - 07:00 AM

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.

Untitled.png

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
  • 0

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

-Michael Sinz

#2 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 20 November 2011 - 06:54 PM

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?
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'


#3 toto_7

toto_7

    CC Addict

  • Advanced Member
  • PipPipPipPipPip
  • 244 posts

Posted 21 November 2011 - 01:26 PM

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
  • 0

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

-Michael Sinz

#4 dargueta

dargueta

    I chown trolls.

  • Moderator
  • 4854 posts
  • Programming Language:C, Java, C++, PHP, Python, JavaScript, Perl, Assembly, Bash, Others
  • Learning:Objective-C

Posted 21 November 2011 - 07:27 PM

Feel free to ask questions, we just won't do it for you.
  • 0

sudo rm -rf / && echo $'Sanitize your inputs!'


#5 spcm0012

spcm0012

    CC Newcomer

  • Member
  • PipPip
  • 13 posts

Posted 28 November 2011 - 06:20 AM

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




Recommended from our users: Dynamic Network Monitoring from WhatsUp Gold from IPSwitch. Free Download