Lecture 1 - Final Example - Working out CPU B instruction percentage
2 posters
RUSES :: Part 2 :: Computer Architecture
Page 1 of 1
Lecture 1 - Final Example - Working out CPU B instruction percentage
In the example there is a part which says 'For CPU B, 25% of all instructions are branches (you need to work this out)'
Here's the working (I think):
CPU A
From the question we know 20% of all instructions are bne
Since the way the CPU works, every bne requires a cmpr before it
So another 20% of instructions will be cmpr
This leaves us with: 20% bne, 20% cmpr, 60% other
CPU B
In this CPU, the bne and cmpr instructions are merged, merging the percentages of CPU A gives us
20% bne/cmpr, 60% other
Obviously that doesn't total 100% so we need to 'extend' the percentages
20x + 60x = 100
x = 5/4
Therefore the percentage of instructions which are bne/cmpr = 5/4 * 20 = 25%
Here's the working (I think):
CPU A
From the question we know 20% of all instructions are bne
Since the way the CPU works, every bne requires a cmpr before it
So another 20% of instructions will be cmpr
This leaves us with: 20% bne, 20% cmpr, 60% other
CPU B
In this CPU, the bne and cmpr instructions are merged, merging the percentages of CPU A gives us
20% bne/cmpr, 60% other
Obviously that doesn't total 100% so we need to 'extend' the percentages
20x + 60x = 100
x = 5/4
Therefore the percentage of instructions which are bne/cmpr = 5/4 * 20 = 25%
Alex- Posts : 67
Join date : 2012-02-23
Location : Come at me bro
Re: Lecture 1 - Final Example - Working out CPU B instruction percentage
Okay I was being very lazy with note taking as it's the first day back, what were these abbreviations again?
I got MIPS = Microprocessor without Interlock Pipeline Stages
and RISC = Reduced Instruction Set Computer
but missed/fell asleep for the others
I got MIPS = Microprocessor without Interlock Pipeline Stages
and RISC = Reduced Instruction Set Computer
but missed/fell asleep for the others
ElliottH- Admin
- Posts : 16
Join date : 2012-02-23
Re: Lecture 1 - Final Example - Working out CPU B instruction percentage
Afaik only one you are missing is DLX which we only told was an educational version of MIPS (according to wikipedia it stands for Deluxe)
Alex- Posts : 67
Join date : 2012-02-23
Location : Come at me bro
RUSES :: Part 2 :: Computer Architecture
Page 1 of 1
Permissions in this forum:
You cannot reply to topics in this forum