
Many of the statements made above are not valid for a real laptop - but useful for initial learning. I have used over simplification of terms like memory, address, register etc. So you need not convert the denominator to bits. Both numerator and denominator should be in same units - bytes. Here 2^32 is the total number of bytes in memory. Good job!īut why? i think it should be (2^32)/(2^15) because of the byte bit conversion (2^12)*(8)=2^15 Here total memory of 2^32 bytes is chunked into pages of 2^12 bytes. The total memory of millions of bytes is actually organized in chunks called pages. So in general we assume the total memory to be 2^32 bytes. Because the CPU will never be able to work with them.

This means the address register can store one address (number) which could be anything between 0 and 2^32 -1.Īs the largest address that the address register can store is 2^32 -1 there is no point in having more memory bytes. A register is a physical device and has limits to how large a number it can store.

The CPU has one or more registers which hold the address of that one byte which is being worked upon. Physical address contains two parts: frame number and Offset. Example: PAS 256 KB 2 18 Byte then, So, number of bits requirement for physical address 18 bits. The first important thing to keep in mind about regular expressions is that they. Every byte in memory has a numeric address starting from 0. Let Physical Address Space (PAS) P bytes. In this article you will learn how to match numbers and number range in Regular expressions.
