Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 90133
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 10, 20262026-05-10T22:49:32+00:00 2026-05-10T22:49:32+00:00

I am stuck on this problem which I am studying for an exam tomorrow.

  • 0

I am stuck on this problem which I am studying for an exam tomorrow. (I understand the concept of virtual vs. physical addresses, page frames, address bus, etc.)

If you’re using 4K pages with 128K of RAM and a 32 bit address bus, how large could a virtual address be? How many regular page frames could you have?

EDIT: I believe the answer is 2^32 and 2^20. I just do not know how to compute this.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. 2026-05-10T22:49:33+00:00Added an answer on May 10, 2026 at 10:49 pm

    Your answers are exactly right.

    With a 32-bit address bus, you can access a virtual space of 2^32 unique addresses.

    Each 4K page uses 2^12 (physical) addresses, so you can fit (2^32) / (2^12) = 2^20 pages into the space.

    Good luck with your exam!


    Edit to address questions in the comments:

    How do you know you cannot access more than 2^32 addresses?

    A 32-bit address bus means there are 32 wires connected to the address pins on the RAM–each wire is represented by one of the bits. Each wire is held at either a high or low voltage, depending on whether the corresponding bit is 1 or 0, and each particular combination of ones and zeroes, represented by a 32-bit value such as 0xFFFF0000, selects a corresponding memory location. With 32 wires, there are 2^32 unique combinations of voltages on the address pins, which means you can access 2^32 locations.

    So what about the 4K page size?

    If the system has a page size of 4K, it means the RAM chips in each page have 12 address bits (because 2^12 = 4K). If your hypothetical system has 128K of RAM, you’d need 128K/4K = 32 pages, or sets of RAM chips. So you can use 12 bits to select the physical address on each chip by routing the same 12 wires to the 12 address pins on every RAM chip. Then use 5 more wires to select which one of the 32 pages contains the address you want. We’ve used 12 + 5 = 17 address bits to access 2^17 = 128K of RAM.

    Let’s take the final step and imagine that the 128K of RAM resides on a memory card. But with a 32-bit address bus, you still have 32-17 = 15 address bits left! You can use those bits to select one of 2^15 = 32768 memory cards, giving you a total virtual address space of 2^32 = 4G of RAM.

    Is this useful beyond RAM and memory cards?

    It’s common practice to divide a large set of bits, like those in the address, into smaller sub-groups to make them more manageable. Sometimes they’re divided for physical reasons, such as address pins and memory cards; other times it’s for logical reasons, such as IP addresses and subnets. The beauty is that the implementation details are irrelevant to the end user. If you access memory at address 0x48C7D3AB, you don’t care which RAM chip it’s in, or how the memory is arranged, as long as a memory cell is present. And when you browse to 67.199.15.132, you don’t care if the computer is on a class C subnet as long as it accepts your upvotes. 🙂

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Ask A Question

Stats

  • Questions 65k
  • Answers 65k
  • Best Answers 0
  • User 1
  • Popular
  • Answers
  • Editorial Team

    How to approach applying for a job at a company ...

    • 7 Answers
  • Editorial Team

    How to handle personal stress caused by utterly incompetent and ...

    • 5 Answers
  • Editorial Team

    What is a programmer’s life like?

    • 5 Answers
  • added an answer We use LLBLGen exclusively and LOVE it. Since we utilize… May 11, 2026 at 11:11 am
  • added an answer I think I'm leaning toward a cut-and-paste approach, since the… May 11, 2026 at 11:11 am
  • added an answer First, I assume that by PL you mean presentation layer,… May 11, 2026 at 11:11 am

Related Questions

I am stuck on this problem which I am studying for an exam tomorrow.
Im working on an ASP.Net app with c#. I am stuck on a problem
I am a bit stuck on the design of my seo friendly urls for
I am studying for cryptography and I somehow stuck on understanding how DES works.
I am working on Conway's Game of Life currently and have gotten stuck. My
I am developing on a LAMP(erl) stack and know of several ways to store
I am stuck at properly aligning the generalization arrow between the classes. I could
I am stuck! this seems really daft but I can not see where I
Please help, I am stuck here --- irb> a = line of text\n line
I am currently stuck in the design of this solution. The data layer design

Trending Tags

analytics british company computer developers django employee employer english facebook french google interview javascript language life php programmer programs salary

Top Members

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.