Ic Overview Session1 Number System
Ic Overview Session1 Number System
Fundamentals
. 3. Address space
Number systems
Fundamental elements
2
Number systems
Decimal Systems
❑ Digit: 0, 1, 2, 3, 4, 5, 6, 7, 8, 9
❑ Base: 10
❑ Example of how to analyze a decimal number:
3
Number systems
Binary Systems
❑ Value range:
Binary Decimal
0000 0
0001 1
… …
0111 7
… …
1111 15
… …
11…1 (n-bit) 2n-1
4
Number systems
Octal Systems
5
Number systems
Octal Systems
6
Number systems
Hexadecimal Systems
10
Number systems
Binary addition and substraction
0101111 11100110
+ -
1101101 00111111
------------------- -------------------
11
Number systems
SUMMARY
SUMMARY:
❑There are 2 mains elements of the number system: base and digit.
❑Each number system has different ways of base and digit expression.
❑There are 4 main number system: binary, decimal, octal, hexadecimal.
❑Each number system can convert to another systems.
❑Need to remember the rule to perform binary addition/substraction
12
COMPUTER SYSTEM
INFORMATION UNIT
13
COMPUTER SYSTEM
COMPUTER BLOCK DIAGRAM
5 0x22
4 0x8A
3 0xFF
2 0x08
1 0x12
0 0xAA
15
COMPUTER SYSTEM
MEMORY ADDRESS CALCULATION
17
COMPUTER SYSTEM
MEMORY ADDRESS CALCULATION
Practice:
❑ Having a 4KB address space starting from address 0x0, calculate the end address.
❑ Having a 8KB address space starting from 0x5000_1000, calculate the end address.
❑ Having an address space from 0x0010_0000 – 0x002F_FFFF. Calculate the size of that
address space.
19
COMPUTER SYSTEM
ADDRESS SPACE CALCULATION
Homework:
❑ Having a 16KB address space end at from 0x6020_FFFF, calculate the start address.
❑ Having an address space from 0x5010_0000 – 0x5012_FFFF. Calculate the size of that
address space.
❑ *Calculate the address bit-width of 16KB, 256KB, 1MB address space.
20
COMPUTER SYSTEMS
SUMMARY
SUMMARY:
21