Difference between revisions of "SEGGER standard for units of Memory size"
m (→Prefixes) |
m |
||
Line 11: | Line 11: | ||
__TOC__ |
__TOC__ |
||
+ | |||
+ | = Bytes and Bits = |
||
+ | * b stands for bit |
||
+ | * B stands for Byte (8 bits) |
||
= Prefixes = |
= Prefixes = |
||
Line 20: | Line 24: | ||
These are being used in all SEGGER products and documents. However, this is a process that will take some time, and older programs and documents will not be updated. |
These are being used in all SEGGER products and documents. However, this is a process that will take some time, and older programs and documents will not be updated. |
||
− | = |
+ | = Units of memory size = |
− | * Always metric: Powers of 10 |
||
− | * kB/s = 1000 bytes per second |
||
− | * MB/s = 1'000'000 bytes per second |
||
− | |||
− | = Size units = |
||
* Typically binary: Powers of 2 |
* Typically binary: Powers of 2 |
||
* Rarely metric: Powers of 10 |
* Rarely metric: Powers of 10 |
||
Line 32: | Line 31: | ||
* kB = 1000 bytes |
* kB = 1000 bytes |
||
* MB = 1'000'000 bytes |
* MB = 1'000'000 bytes |
||
+ | |||
+ | = Units of Throughput (speed)= |
||
+ | * All combinations of the above can be used. Which one is used depends on the context. |
||
+ | * Typically, communication speeds are typically given in metric values, such 100 Mb/s |
||
+ | * Typically, memory related transfer speeds are often specified as binary-based values, such as 500 KB/s |
||
+ | Examples: |
||
+ | kB/s = 1000 bytes per second |
||
+ | KB/s = 1024 bytes per second |
||
+ | MB/s = 1'000'000 bytes per second |
||
+ | MiB/s = 1'048'576 bytes per second |
||
+ | Mb/sec = 1'000'000 bits per second |
Revision as of 10:59, 5 August 2021
In computing, the logical size of a memory is usually a power of two. The same is true in most Embedded Systems, which is memory sizes such as the size of Flash memory or RAM are usually given in units of 2^10 = 1024 bytes or 2^20 = 1048576 bytes. These have historically been call kB and MB. Unfortunately, this conflicts with the SI-System, where the k-prefix stands for 1000 (10^3) and the M-prefix represents 1000000 (10^6).
This article describes the units used by SEGGER for sizes and speeds, in manuals and on the web.
Bytes and Bits
- b stands for bit
- B stands for Byte (8 bits)
Prefixes
SEGGER has adopted the following convention on prefixes:
- k = 1000 (10^3)
- K = 1024 (2^10)
- M = 1000000 (10^6)
- Mi = 1048576 (2^20)
These are being used in all SEGGER products and documents. However, this is a process that will take some time, and older programs and documents will not be updated.
Units of memory size
- Typically binary: Powers of 2
- Rarely metric: Powers of 10
- KB = 1024 bytes
- MiB = 1'048'576 bytes
- kB = 1000 bytes
- MB = 1'000'000 bytes
Units of Throughput (speed)
- All combinations of the above can be used. Which one is used depends on the context.
- Typically, communication speeds are typically given in metric values, such 100 Mb/s
- Typically, memory related transfer speeds are often specified as binary-based values, such as 500 KB/s
Examples: kB/s = 1000 bytes per second KB/s = 1024 bytes per second MB/s = 1'000'000 bytes per second MiB/s = 1'048'576 bytes per second Mb/sec = 1'000'000 bits per second