The amount of cells in a computer`s main memory

  • Thread starter Thread starter guitar
  • Start date Start date
  • Tags Tags
    Cells Memory
Click For Summary

Discussion Overview

The discussion revolves around the number of cells in a computer's main memory based on the representation of addresses using hexadecimal digits. Participants explore the implications of using 2 versus 4 hexadecimal digits, including the conversion between hexadecimal and binary representations.

Discussion Character

  • Homework-related
  • Technical explanation
  • Debate/contested

Main Points Raised

  • One participant states that 2 hexadecimal digits correspond to 256 locations, while 4 hexadecimal digits correspond to 65,536 locations.
  • Another participant questions the initial claim that 2 hex digits use 16 binary digits, asserting that 2 hex digits actually represent 8 binary digits.
  • Some participants clarify that each hexadecimal digit can be represented by 4 bits, leading to confusion about the bit representation of hex digits.
  • There is a request for elaboration on how hexadecimal digits relate to binary patterns, with some participants expressing uncertainty about the terminology used in the discussion.
  • One participant attempts to clarify that the 16 hexadecimal digits correspond to 16 possible values for each digit, which can distinguish memory locations.

Areas of Agreement / Disagreement

Participants express differing views on the relationship between hexadecimal and binary representations, particularly regarding the number of bits required for hex digits and the implications for memory locations. The discussion remains unresolved with multiple competing interpretations.

Contextual Notes

Some participants express confusion over the terminology and calculations presented, indicating a lack of clarity in the initial statements about binary and hexadecimal relationships.

guitar
Messages
5
Reaction score
0

Homework Statement



How many cells can be in a computer`s main memory if each cell`s address can be represented by 2 hexadecimal digits? what if 4 hexadecimal digits are used?


Homework Equations



N/A

The Attempt at a Solution



ok, i tried and other people helped and i am stuck with this:

1. If each cell's address is only 2 hex digits, you are using 16 binary digits, and therefore 65,536 bytes.

2. Hexadecimal means base 16. In other words, 16 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B ,C, D, E, F).
Two hexadecimal digits give you 16 x 16 = 256 locations.
Four hexadecimal digits give you 16 x 16 x 16 x 16 = 65536 locations.

3. 0 (hexadecimal representation) is 0000 (bit pattern)
1 (hexadecimal representation) is 0001 (bit pattern)
2 (hexadecimal representation) is 0010 (bit pattern)
etc etc etc

i am trying to connect the dots here...are those 16 digits in base 16- 16 locations? also are these digits: (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B ,C, D, E, F) 4 bits or 8 bits each? or are they just 1 bit each? and how does the hex to bit pattern representation play up into this?

thanks.
 
Physics news on Phys.org
guitar said:
i am trying to connect the dots here...are those 16 digits in base 16- 16 locations? also are these digits: (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B ,C, D, E, F) 4 bits or 8 bits each? or are they just 1 bit each? and how does the hex to bit pattern representation play up into this?
I don't understand what you're asking in your first question. What do you mean "are those 16 digits in base 16- 16 locations?"
Each hex digit can be represented by four bits:
0 = 0000
1 = 0001
2 = 0010
3 = 0011
...
8 = 1000
9 = 1001
A = 1010
B = 1011
C = 1100
D = 1101
E = 1110
F = 1111

Any hex digit 8 or higher requires 4 bits to represent it. Smaller hex digits could be represented with fewer bits. The only numbers that could be represented with one bit are 0 and 1.
 
Mark44 said:
I don't understand what you're asking in your first question. What do you mean "are those 16 digits in base 16- 16 locations?"
Each hex digit can be represented by four bits:
0 = 0000
1 = 0001
2 = 0010
3 = 0011
...
8 = 1000
9 = 1001
A = 1010
B = 1011
C = 1100
D = 1101
E = 1110
F = 1111

Any hex digit 8 or higher requires 4 bits to represent it. Smaller hex digits could be represented with fewer bits. The only numbers that could be represented with one bit are 0 and 1.

for starters i see 4 digits for all the hex digits from 0 to F. for example bit pattern for the hex digit 3 is 0011(4 bits)...please elaborate on this.
 
guitar said:
How many cells can be in a computer`s main memory if each cell`s address can be represented by 2 hexadecimal digits? what if 4 hexadecimal digits are used?
...
1. If each cell's address is only 2 hex digits, you are using 16 binary digits, ...
I don't follow this. Each hex digit specifies four binary digits, so two hex digits specifies (two times four equals) eight binary digits.

guitar said:
2. Hexadecimal means base 16. In other words, 16 digits (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B ,C, D, E, F).
Yes, there are sixteen possible values for each hex digit.

guitar said:
Two hexadecimal digits give you 16 x 16 = 256 locations.
Four hexadecimal digits give you 16 x 16 x 16 x 16 = 65536 locations.
Doesn't this already answer the original problem?

guitar said:
are those 16 digits in base 16- 16 locations?
I suppose that the sixteen possible values of the least significant digit (LSD :O) distinguish sixteen memory locations, given some fixed value for any other more significant digits. Each additional hex digit in the number multiplies the number of possible distinct values by sixteen. Your wording here is very confusing, though - too many "16"s.

guitar said:
also are these digits: (0, 1, 2, 3, 4, 5, 6, 7, 8, 9, A, B ,C, D, E, F) 4 bits or 8 bits each?
You only need up to four bits to specify one of these hex digits. Each hex digit requires four bits.

guitar said:
how does the hex to bit pattern representation play up into this?
I don't know what you're talking about.
 
Last edited:

Similar threads

  • · Replies 7 ·
Replies
7
Views
4K
  • · Replies 2 ·
Replies
2
Views
11K
  • · Replies 3 ·
Replies
3
Views
2K
  • · Replies 2 ·
Replies
2
Views
3K
  • · Replies 1 ·
Replies
1
Views
2K
  • · Replies 8 ·
Replies
8
Views
2K
Replies
4
Views
2K
  • · Replies 3 ·
Replies
3
Views
1K
  • · Replies 32 ·
2
Replies
32
Views
2K
  • · Replies 4 ·
Replies
4
Views
2K