Saturday, 9 January 2016

Iron law

Iron law is a law or principle which is indisputable and unavoidable. It can be derived by using logic, without the knowledge of any arduous subject. 
In computer architecture and organisation, Iron law is given by

Execution time= (number of instructions executed) * (cycles per instruction (CPI)) * (clock cycle time)

Example 1:

A program executes 3 billion instructions in a processor. The processor spends 2 cycles on each instruction and is working at 3GHz. 

Sol. 















Example2:

A program contains 50 billion instruction whose composition is as follows:

  • 10 billion branch instructions, CPI=4
  • 15 billion load instructions, CPI=2
  • 5 billion store instructions, CPI=3
  • 20 billion integer-type instructions, CPI=1
Evaluate the execution time for above program.

Sol.



















No comments:

Post a Comment