In the 8086/8088, the logical address (or effective address) is mapped to a physical address by adding it to the left shifted by 4 value of a segment register.
For example, is the logical address is 1234H, and the segment register's contents is 5678H, the physical address is 1234H + 56780H, or 579B4H.
The concept of a logical address space is simply involved the process of mapping the Logical addresses to their Physical Addresses . Logical addresses are generated by the CPU; also referred to as virtual addresses.while Physical Address is the actual address of the data stored on the physical device and mapped by MMU.
Lets take the scenario of CPU MMU (memory management unit) Physical Memory.CPU generates the logical address as Page number + Page offset.Of course this address will point to some physical address.Page number is for the index in page table (for base address).The base address + offset is sent to MMU which is mapped to the corresponding physical page.
Logical address is the address generated by the CPU (from the perspective of a program that is running) whereas physical address (or the real address) is the address seen by the memory unit and it allows the data bus to access a particular memory cell in the main memory. All the logical addresses need to be mapped in to physical addresses before they can be used by the MMU. Physical and logical addresses are same when using compile time and load time address binding but they differ when using execution time address binding.
In computer architectures, a logical address is the address at which a memory location appears to reside from the perspective of an executing application program. This may be different from the physical address due to the operation of a memory management unit (MMU) between the CPU and the memory bus. Physical memory may be mapped to different logical addresses for various purposes. For example, the same physical memory may appear at two logical addresses and if accessed by the program at one address, data will pass through the processor cache whereas if it is accessed at the other address, it will bypass the cache.
Memory mapped buses helps in the extension of the address of the physical ram through which the devices can access the address
To calculate the physical address from a logical address, you can use the base address and offset. Add the base address to the offset to get the physical address. This process is commonly used in computer systems to translate logical addresses to physical addresses for memory access.
In the 8086/8088 the physical address and logical address have the same importance, because they both relate to the address of the operand. It is true that the offset (logical) address is added to the segment address to determine the physical address, but the limitations of the architecture of the processor forces programmers to consider both.If you are talking about a virtual environment, however, such as in the 80286 or higher, then the logical address is more important than the physical address, because the logical address is the address of the operand, while the physical address is (somewhat) arbitrarily assigned by the operating system.
A Physical Address...
your question is wrong. it should be "can physical address and logical address be same" answer is no because logical address is the combination of page number and offset whereas physical address is the combination of physical page[frame] and offset
logical address and physical addressIn a system, there are two types of addresses: logical and physical. Another name for logical address is IP address and it is set by your Internet service provider (ISP) or your router. If you have a router then you have a LAN, which sets a logical address for your computer. Your router will have an logical address set by your ISP.The physical address is also called the MAC address and it is generated by the manufacturer. (but only to a given extent)Because a MAC address is assigned (by the FCC) to a company to use for a range of products.For example:01:23:45:00:00:00 - 01:23:45:FF:FF:FFWould be their "range" of MAC addresses. They use a coding called Hex which is not to far off from what you know which is base-10 (0-9).Instead hex uses (0-F). 0123456789ABCDEFA = 10, B = 11, etc.Read more: What_is_the_difference_between_logical_address_and_physical_addresses
4 pages -> 2^2 bits 1024 bytes -> 2^10 bits 64 frames -> 2^6 bits Therefore: Logical memory = 2+10=12 bits Physical memory = 10 +6 =16 bits
Physical Address refers to Storage location on Physical Memory wheres Logical Addressing is used by Memory Managing Programs to refers addresses from Physical Memory and Virtual Memory.