Based on the homework, the most important topics, definitions and questions per week of Computer Architecture are discussed. Because it is based on the homework, it is also a handy preparation for the exam, and a good help between the weeks! Furthermore, additional topics have been added that are n...
Week 2 homework
- Calculations
o Runtime
o Clock time/ frequency
o Clock cycles
o CPU time = CPU clock cycles/ clock rate = CPI * instruction time * clock cycle time
o CPI = CPU clock cycles / instruction count
o ISA
- When overflow/ underflow
- Binary numbers
o Subtraction
o Addition
o Two-complement
Negative
If first bit is 1
Conversion: inverse all bits (0 ->1 and 1-> 0), calculate decimal value,
add 1 -> result is negative of decimal value (+1)
Conversion to 2s complement from negative decimal:
o Subtract one
o Find binary number
o Inverse all binaries
o First binary number becomes 1 (to indicate negative value)
o Signed/ unsigned
Signed negative values can be converted to binary as well and a 1 as most
significant bit means it’s negative
Unsigned only positive values possible
o Conversion to binary
Decimal to binary:
See decimal to hexadecimal technique, but then dividing by 2
instead of 16 (due to different base)
o Conversion to hexadecimal
Decimal to hexadecimal:
Divide by 16 and note the integer result and the rest until the
integer result is 0
Convert the rests to hexadecimals (up to 15 = F)
These make up the hexadecimal value, where the “first rest”
acquired is the least significant (so write down from bottom to top)
Hexadecimal to decimal:
Take each digit and multiply by 16^index (where the index is
counted from the right (least significant) to the left (most significant)
digit, starting by 0)
Add the results
o Conversion to decimals
The benefits of buying summaries with Stuvia:
Guaranteed quality through customer reviews
Stuvia customers have reviewed more than 700,000 summaries. This how you know that you are buying the best documents.
Quick and easy check-out
You can quickly pay through credit card or Stuvia-credit for the summaries. There is no membership needed.
Focus on what matters
Your fellow students write the study notes themselves, which is why the documents are always reliable and up-to-date. This ensures you quickly get to the core!
Frequently asked questions
What do I get when I buy this document?
You get a PDF, available immediately after your purchase. The purchased document is accessible anytime, anywhere and indefinitely through your profile.
Satisfaction guarantee: how does it work?
Our satisfaction guarantee ensures that you always find a study document that suits you well. You fill out a form, and our customer service team takes care of the rest.
Who am I buying these notes from?
Stuvia is a marketplace, so you are not buying this document from us, but from seller hildeeschx. Stuvia facilitates payment to the seller.
Will I be stuck with a subscription?
No, you only buy these notes for $4.27. You're not tied to anything after your purchase.