Difference between revisions of "SEGGER standard for units of Memory size"
m |
m (→Units of Throughput (speed)) |
||
Line 36: | Line 36: | ||
* Typically, communication speeds are typically given in metric values, such 100 Mb/s |
* 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 |
* Typically, memory related transfer speeds are often specified as binary-based values, such as 500 KB/s |
||
− | Examples: |
+ | Examples:<br> |
− | kB/s = 1000 bytes per second |
+ | kB/s = 1000 bytes per second<br> |
− | KB/s = 1024 bytes per second |
+ | KB/s = 1024 bytes per second<br> |
− | MB/s = 1'000'000 bytes per second |
+ | MB/s = 1'000'000 bytes per second<br> |
− | MiB/s = 1'048'576 bytes per second |
+ | MiB/s = 1'048'576 bytes per second<br> |
Mb/sec = 1'000'000 bits per second |
Mb/sec = 1'000'000 bits per second |
Revision as of 11:00, 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