















































Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
This page cannot be seen from the preview
Don't miss anything!
















































2
4
How to Evaluate the Arithmetic statement in ZERO,ONE,TWO,THREE Address
4- Address Instruction 24 Bits / 3 Bytes Memory Op Code ResAddr Op1Addr Op2Addr NextiAddr 8 24 24 24 24
CPU Op Code ResAddr Op1Add r Op2Addr (^) NextiAdd r Op Op Resop Example: add M1,M2,M3, nexti M(1)M(2)+M(3) Memory Required to Encode an Instruction: 1Byte+ 4 x 3 bytes = 13 Bytes Calculation of Memory Accesses To fetch Instruction itself (^) Opcode= Op1Addr=1 1 Op2Addr= ResAddr= NextiAddr= Total= To Execute an Instruction Op1= Op2= Res= Total= Total Memory Traffic= No. of M/A to fetch + No. of M/A to ExecuteTotal Memory Traffic= 5 + 3 =
24 Bits / 3 Bytes Memory Op Code ResAddr Op1Addr Op2Addr 8 24 24 24
CPU Op Code ResAddr Op1Add r Op2Addr Op Op Resop Example: add M1,M2,M M(1)M(2)+M(3) Memory Required to Encode an Instruction: 1Byte+ 3 x 3 bytes = 10 Bytes Calculation of Memory Accesses To fetch Instruction itself (^) Opcode= Op1Addr=1 1 Op2Addr= ResAddr= Total= To Execute an Instruction Op1= Op2= Res= Total= Total Memory Traffic= No. of M/A to fetch + No. of M/A to ExecuteTotal Memory Traffic= 4+ 3 = PC (^24)
24 Bits / 3 Bytes Memory Op Code Op1Addr 8 24
CPU Op Code Op1Add r Op Op Resop Example: add M Memory Required to Encode an Instruction: 1Byte+ 1 x 3 bytes = 4Bytes Calculation of Memory Accesses To fetch Instruction itself (^) Opcode= Op1Addr=1 1 Total= To Execute an Instruction Op1= Total= Total Memory Traffic= No. of M/A to fetch + No. of M/A to ExecuteTotal Memory Traffic= 2+ 1 = PC (^24) Acc