Computer Systems Flashcards
What happens in the fetch-execute cycle?
The instruction is fetched from the main memory into the CPU and is then executed by the CPU.
Which are the four steps of the fetch-execute cycle?
- The processor sets up the address bus with the required address.
- The processor activates the read line on the control bus.
- An instruction is fetched from the memory location using the data bus and stored in the instruction register.
- The instruction in the instruction register is then interpreted by the decoder and carried out.
Which are the four factors affecting system performance?
Number of processors (cores)
Width of data bus
Cache memory
Clock speed
How does the number of processors (cores) affect system performance?
The more cores the CPU has, the more CPU’s are found on one chip.
The more cores, the more sets of instructions the processor can receive and process at the same time.
How does the width of the data bus affect system performance?
The wider the data bus, the more parallel wires it has available to send data.
The more wires, the more data can be passed at the same time.
For example, between 32 bits and 64 bits, the amount of data that can be transferred is doubled.
How does the cache memory affect system performance?
The processor checks cache memory for data or instructions first before accessing main memory.
If the data/instruction is found then it can be accessed quicker as the processor would not have to check the main memory for it.
Many computers have multi-level caches in which case the computer checks level 1 first, which is the fastest cache, followed by level 2, etc.. The less levels the processor has to check for the data the faster the data is accessed.
How does clock speed affect system performance?
Clock pulses are what trigger components to take their next step.
The higher the clock rate, the faster the components move on to the next step so the faster a computer may complete a set of instructions.
How do you change a decimal number to its floating point representation?
Step 1: Move the decimal to the front of the number (i.e. just in front of the first 1)
Step 2: Multiply the new number by 2 to the power of the exponent
Step 3: The exponent is the number of places you have moved the decimal point to bring it to its new position. If you moved the decimal point to the left, the exponent is positive, if you moved the decimal point to the right, the exponent is negative.
How do you write the floating point representation correctly?
Step 1: Is the whole number negative? If there is a “-“ it is negative. In this case the sign bit is 1. If there is no “-“ then the number is positive and the sign bit is 0.
Step 2: Write the mantissa, the whole part of the number, in the mantissa section. Remember if you were allocated 16 bits, for example, you need to deduct 1 space as that was taken up by the sign bit. If the number is too large remove digits from the right hand side, if the number is too small add 0’s to the right hand side.
Step 3: Store the exponent using two’s complement.
What is the floating point representation of 1000010.101?
-0.1000010101 x 2 ^ 0111
What is the floating point representation of -101.00011?
-0.10100011 x 2 ^ 011
What is the floating point representation of 0.0010101?
0.10101 x 2 ^ 110
What is the floating point representation of -0.00001101?
-0.1101 x 2 ^ 1100
How do you store a number as two’s complement?
Remember the first bit (MSB - most significant bit) is negative.
Change the positive version of the number to binary, if it is not already, making sure the first digit is a 0.
Change all 0s to 1s and all 1s to 0s.
Add 1.
How many bits does Unicode use to represent characters?
16 or more
How many different characters can Unicode store?
2^16 or 65,536 characters