Sunday, April 17, 2011

[discussion_vu] CS401_Q01_Q02_Solved_example



---------- Forwarded message ----------
From: ..::ISHFAQ::.. <mc100402092@vu.edu.pk>
Date: Mon, Apr 18, 2011 at 2:41 AM
Subject: CS401_Q01_Q02_Solved_example
To: zavia-lms <zavia-lms@googlegroups.com>, coool_vu_students <coool_vu_students@googlegroups.com>, afaaq <afaaqtariq233@gmail.com>, Miss Kazmi <mc100402020@vu.edu.pk>


اسلام علیکم ورحمتہ اللہ و برکاتہ
For Verification of answer please check the attached example file.
Please verify your answer before submitting and make some difference.

Question No. 1:

 a)Suppose your computer has a processor with 24-bit address lines. What is maximum amount of memory that can be attached in your system? (Show the step(s) for calculation of maximum addressable memory) (2.5 marks)

 The maximum addressable memory for a computer with a 24 bit address bus is 16 Mb. This value has nothing to do with the size of the instruction format.

The maximum Addressable Memory of Any Processor=2(Number of Bit Address Lines) bytes

In case of Computer having Processor with 24 bit Address lines=224 = 16777216 bytes

=16384 KB=16 MB

b)How many address bits are required for accessing 1GB RAM? (Show the step(s) for calculation of required address bits) (2.5 marks)

Let n be the number of address bits , required for accessing 1 GB RAM.then (As 1 GB =(1024*1024*1024) bytes)

1073741824 bytes=2n bytes

Or 230=2n

It can also be written as

30=n

Hence required number of Address Bits are 30.

Question No. 2:

What are the contents of memory locations 0151, 0152, 0153, ………….,0158 if 0151 is starting address for Label1. (1 mark for each location)

Note for next memory remember the principle

      If next memory location is defined by dw (define word(size 2 byte=16 bits , this size is reserved for the variable, then we will add 2 to current memory location to get the next consecutive memory location address belonging to next variable declared.

If next memory location is defined by db (define byte(size 1 byte=8 bits , this size is reserved for the variable, then we will add 1 to current memory location to get the next consecutive memory location address belonging to next variable declared.

 Label1:  dw  8494     Memory Location Address = 0151

         db  42                                = 0152        

         dw  54                                = 0154

         dw  7500                              = 0156

         db  01                                = 0158


Others will be shared very soon.       

Best Wishes,
"...SUBHANALLAHI WABI HAMDIHI...SUBHANALLAH IL AZEEM..."
Muhammd Ishfaq
MCS 2nd Semester (PakPattan)




--

Remember Me In Your Prayers
Best regard's
Muhammad Afaaq
MBA 4th (Final Semester) Finance Group
Afaaq_Tariq@yahoo.com
Islamabad
For latest assignments solved quizzes files gdb solve n unsolved past papers Come join us in http://vugoogle.com

http://www.alliswell.com.pk/
http://groups.google.com/group/vustudymania

0346-5329264

If u like me than raise your hand with me
If not then raise ur standard
That's about me … !


--
You received this message because you are subscribed to the Google Groups "Virtual University of Pakistan" group.
To post to this group, send email to discussion_vu@googlegroups.com.
To unsubscribe from this group, send email to discussion_vu+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/discussion_vu?hl=en.

No comments:

Post a Comment

PAID CONTENT