





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!






24-bit memory address (3 bytes) 128 instructions (7 bits rounded to 1 byte)
24 Bits / 3 Bytes Memory Op Code ResAddr Op1Addr 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 =
2- Address Instruction 24 Bits / 3 Bytes Memory Op Code Op1Addr Op2Addr
r Op Op Resop Example: add M2,M M(2)M(2)+M(3) Memory Required to store an Instruction: 3 x 3 bytes = 09 Bytes Memory Required to Encode an Instruction: 1Byte+ 2 x 3 bytes = 7 Bytes Calculation of Memory Accesses To fetch Instruction itself (^) Opcode= Op1Addr=1 1 Op2Addr= 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= 3+ 3 =
0-Address Instruction
Instruction Type Memory To Store in Bytes Memory To Encode in Bytes M/As to fetch an Instruction M/As to Execute an Instruction Memory Traffic 4-address 5 x 3 = 15 1+(4 x 3) = 13 5 3 5+3= 3-Address 4 x 3 = 12 1+(3 x 3) = 10 4 3 4+3= 2-Address 3 x 3 = 09 1+(2 x 3) = 07 3 3 3+3= 1-Address 2 x 3 = 06 1+(1 x 3) = 04 2 1 2+1= 0-Address 1 x 3 = 03 1+(0 x 3) = 01 1 0 1+0=