Podcast
Questions and Answers
What is the maximum number of characters that can be represented by the Unicode coding scheme?
What is the maximum number of characters that can be represented by the Unicode coding scheme?
- 10,000 characters
- 256 characters
- 65,536 characters (correct)
- 128 characters
The zone bits for capital letters in ASCII start with 0110.
The zone bits for capital letters in ASCII start with 0110.
False (B)
What is a byte?
What is a byte?
A group of 8 bits.
The lower zone bits in EBCDIC for lowercase letters is represented as ______.
The lower zone bits in EBCDIC for lowercase letters is represented as ______.
Match the following coding schemes with their characteristics:
Match the following coding schemes with their characteristics:
Which statement about bits and bytes is true?
Which statement about bits and bytes is true?
ASCII and EBCDIC are sufficient to represent all languages used today.
ASCII and EBCDIC are sufficient to represent all languages used today.
What are the zone bits for lowercase letters in ASCII?
What are the zone bits for lowercase letters in ASCII?
Which of the following statements about EBCDIC is true?
Which of the following statements about EBCDIC is true?
ASCII can represent a total of 256 characters.
ASCII can represent a total of 256 characters.
What is the primary function of digital logic?
What is the primary function of digital logic?
What does ASCII stand for?
What does ASCII stand for?
Extended ASCII uses ______ bits for each character.
Extended ASCII uses ______ bits for each character.
The output of an AND gate is true if at least one of its inputs is true.
The output of an AND gate is true if at least one of its inputs is true.
What is the Boolean expression for an OR gate?
What is the Boolean expression for an OR gate?
Match the coding system with its characteristics:
Match the coding system with its characteristics:
Which character types are included in the ASCII set?
Which character types are included in the ASCII set?
The NOT operation changes a logic level to its ______ logic level.
The NOT operation changes a logic level to its ______ logic level.
Match the following logic gates with their Boolean expressions:
Match the following logic gates with their Boolean expressions:
The computer keyboard uses a microprocessor to detect key presses.
The computer keyboard uses a microprocessor to detect key presses.
Which logic gate produces a LOW output when both inputs are LOW?
Which logic gate produces a LOW output when both inputs are LOW?
What is the purpose of the parity bit in ASCII?
What is the purpose of the parity bit in ASCII?
The NAND gate is derived from the AND gate.
The NAND gate is derived from the AND gate.
What outputs HIGH when any input is HIGH for an OR gate?
What outputs HIGH when any input is HIGH for an OR gate?
What command is followed to read data from a memory address?
What command is followed to read data from a memory address?
In a read operation, the data at the memory address is destroyed after being copied to the data register.
In a read operation, the data at the memory address is destroyed after being copied to the data register.
What is the equivalent decimal value of the binary address 100?
What is the equivalent decimal value of the binary address 100?
A _____ is a storage device in which the information stored last is retrieved first.
A _____ is a storage device in which the information stored last is retrieved first.
What binary value represents the data being written in the example?
What binary value represents the data being written in the example?
Match the following terms with their definitions:
Match the following terms with their definitions:
A non-destructive read operation removes data from the selected memory address.
A non-destructive read operation removes data from the selected memory address.
How is data organized within the memory array?
How is data organized within the memory array?
What is the formula to determine the total number of possible combinations of binary inputs to a gate?
What is the formula to determine the total number of possible combinations of binary inputs to a gate?
In a 2-input AND gate, the output is 1 only when both inputs A and B are 1.
In a 2-input AND gate, the output is 1 only when both inputs A and B are 1.
What does the output of a NOT gate equal when the input is 1?
What does the output of a NOT gate equal when the input is 1?
The output of a 2-input OR gate is _____ if both inputs are 0.
The output of a 2-input OR gate is _____ if both inputs are 0.
Match the following logic gates with their outputs for inputs A = 1 and B = 0:
Match the following logic gates with their outputs for inputs A = 1 and B = 0:
How many possible input combinations exist for a 2-input OR gate?
How many possible input combinations exist for a 2-input OR gate?
Draw the output of the circuit that represents the Boolean expression (CA + B)D.
Draw the output of the circuit that represents the Boolean expression (CA + B)D.
Combinational logic has memory and its output depends solely on the current inputs.
Combinational logic has memory and its output depends solely on the current inputs.
What operation is performed after the stack printer FFCB is incremented by two?
What operation is performed after the stack printer FFCB is incremented by two?
A data word is destroyed immediately after a pop operation in a RAM stack.
A data word is destroyed immediately after a pop operation in a RAM stack.
What is the hexadecimal value for the lowest memory address in a 64KB memory?
What is the hexadecimal value for the lowest memory address in a 64KB memory?
A RAM stack can have a depth determined by the number of __________ addresses available.
A RAM stack can have a depth determined by the number of __________ addresses available.
Match the following hexadecimal values with their respective decimal equivalents:
Match the following hexadecimal values with their respective decimal equivalents:
How many bytes are represented in 64KB of memory?
How many bytes are represented in 64KB of memory?
The capacity of a memory with 5196 addresses is approximately 5.2 MB.
The capacity of a memory with 5196 addresses is approximately 5.2 MB.
What does a 16-bit address in a byte-organized RAM contain?
What does a 16-bit address in a byte-organized RAM contain?
Flashcards
ASCII Text
ASCII Text
Plain, unformatted text, often stored in files with the '.txt' extension.
ASCII (American Standard Code for Information Interchange)
ASCII (American Standard Code for Information Interchange)
A standard for representing characters using a numerical code. It uses 7 bits to represent 128 characters, with 8 bits used in extended versions.
EBCDIC (Extended Binary Coded Decimal Interchange Code)
EBCDIC (Extended Binary Coded Decimal Interchange Code)
A coding system using 8 bits to represent characters, commonly employed in older IBM systems.
Unicode
Unicode
Signup and view all the flashcards
Byte
Byte
Signup and view all the flashcards
Nibble
Nibble
Signup and view all the flashcards
Computer Word
Computer Word
Signup and view all the flashcards
Bit
Bit
Signup and view all the flashcards
ASCII
ASCII
Signup and view all the flashcards
Extended ASCII
Extended ASCII
Signup and view all the flashcards
EBCDIC
EBCDIC
Signup and view all the flashcards
Character Encoding
Character Encoding
Signup and view all the flashcards
Control Characters
Control Characters
Signup and view all the flashcards
Plain Text File
Plain Text File
Signup and view all the flashcards
Scan Code
Scan Code
Signup and view all the flashcards
Character Mapping
Character Mapping
Signup and view all the flashcards
What is digital logic?
What is digital logic?
Signup and view all the flashcards
What are logic gates?
What are logic gates?
Signup and view all the flashcards
How does an AND gate work?
How does an AND gate work?
Signup and view all the flashcards
How does an OR gate work?
How does an OR gate work?
Signup and view all the flashcards
What does a NOT gate do?
What does a NOT gate do?
Signup and view all the flashcards
What is a NAND gate?
What is a NAND gate?
Signup and view all the flashcards
What is a NOR gate?
What is a NOR gate?
Signup and view all the flashcards
How does an XOR gate work?
How does an XOR gate work?
Signup and view all the flashcards
Truth Table: Input Combinations
Truth Table: Input Combinations
Signup and view all the flashcards
Combinational Logic
Combinational Logic
Signup and view all the flashcards
Truth Table
Truth Table
Signup and view all the flashcards
AND Gate
AND Gate
Signup and view all the flashcards
OR Gate
OR Gate
Signup and view all the flashcards
NOT Gate
NOT Gate
Signup and view all the flashcards
Logic Circuit
Logic Circuit
Signup and view all the flashcards
Sequential Logic
Sequential Logic
Signup and view all the flashcards
Write Operation
Write Operation
Signup and view all the flashcards
Read Operation
Read Operation
Signup and view all the flashcards
Memory Stack (LIFO)
Memory Stack (LIFO)
Signup and view all the flashcards
Non-Destructive Read
Non-Destructive Read
Signup and view all the flashcards
Memory Address
Memory Address
Signup and view all the flashcards
Address Decoder
Address Decoder
Signup and view all the flashcards
Data Bus
Data Bus
Signup and view all the flashcards
Address Bus
Address Bus
Signup and view all the flashcards
Memory Addresses in RAM
Memory Addresses in RAM
Signup and view all the flashcards
Incrementing FFCB
Incrementing FFCB
Signup and view all the flashcards
POP operation in RAM stack
POP operation in RAM stack
Signup and view all the flashcards
Depth of a RAM stack
Depth of a RAM stack
Signup and view all the flashcards
Byte in RAM
Byte in RAM
Signup and view all the flashcards
16-bit address in byte-organized RAM
16-bit address in byte-organized RAM
Signup and view all the flashcards
64-kbyte memory array
64-kbyte memory array
Signup and view all the flashcards
Memory capacity in megabytes
Memory capacity in megabytes
Signup and view all the flashcards
Study Notes
Course Outline
- DCIT 207 Computer Organisation and Architecture course outline.
- Lecturer: Dr. Ernest Gyebi.
Data Representation
- Data representation refers to the form in which data is stored, processed, and transmitted.
- Data refers to the symbols that represent people, events, things, and ideas.
- Data can be a name, a number, or a photograph.
- All data stored and processed by digital computers is in binary code (1s and 0s).
- The 1s and 0s are referred to as bits.
- The 1s are represented by voltages in the computer (+5 volts = binary 1), and 0s by voltages (0 volts = binary 0).
- Devices like smartphones, iPods, and computers store data in digital formats that electronic circuitry can handle.
Number Systems
- Number systems are based on positional number systems.
- The position of a digit within the number determines the digit's value.
- For example, in the number 1234₁₀, the 2 represents 2 x 10² = 200.
- The decimal number system has positional values: 10³, 10², 10¹, 10⁰.
- The radix or base determines the number of different values in the number system.
- For example, decimal radix = 10 digits (0-9).
- Binary radix = 2 digits (0, 1).
- Octal radix = 8 digits (0-7).
- Hexadecimal radix = 16 digits (0-F).
Binary Numbers
- Radix/Base = 2
- Symbols: 0, 1
- Positional values: 2⁶, 2⁵, 2⁴, 2³, 2², 2¹, 2⁰
- Decimal equivalent: 64, 32, 16, 8, 4, 2, 1
- Examples:
- 101₂ = 1 x 2² + 0 x 2¹ + 1 x 2⁰ = 4 + 0 + 1 = 5₁₀.
- To indicate a number is binary, use the prefix % or the subscript 2. e.g., %1110 or 1110₂
Conversion from Decimal to Binary
- Repeatedly divide by 2 to convert a decimal number to binary until the result is less than 2
- Example (53):
- 53 ÷ 2 = 26 remainder 1
- 26 ÷ 2 = 13 remainder 0
- 13 ÷ 2 = 6 remainder 1
- 6 ÷ 2 = 3 remainder 0
- 3 ÷ 2 = 1 remainder 1
- 1 ÷ 2 = 0 remainder 1
- To get the result work backwards, gives: 110101₂
- To check result convert back to base 10 (check your arithmetic!):
- 1 x 2⁵ + 1 x 2⁴ + 0 x 2³ + 1 x 2² + 0 x 2¹ + 1 x 2⁰ = 32 + 16 + 0 + 4 + 0 + 1 = 53.
Using Sum of Weights Method for Decimal to Binary Conversion
- Used when repeatedly dividing by 2 is cumbersome.
- Write the number in powers of 2. The highest power + 1 gives the number of bits in the binary.
- Check the positions and place 1s in the appropriate weight positions where there are powers of 2.
- Place 0s in the remaining positions (where there are no powers of 2).
Octal and Hexadecimal Numbers
- Octal (base 8) and hexadecimal (base 16) are used for communication between people and computers because binary numbers are unsuited for routine handling by humans.
Hexadecimal Numbers
- Base or Radix=16
- Symbols: 0-9, A-F
- Positional values: 16⁴, 16³, 16², 16¹, 16⁰
- Decimal values: 65,536, 4096, 256, 16, 1
- Example: 1D7E₁₆ = 1 x 16³ + 13 x 16² + 7 x 16¹ + 14 x 16⁰ = 4096 + 3328 + 112 + 14 = 7550₁₀
Conversion from Hexadecimal to Binary
- Each hexadecimal digit is equivalent to four binary digits (2⁴ = 16).
- To convert a hexadecimal number to binary, write each hexadecimal digit as a 4-bit binary number.
- Example: $FD69A = %1111 1101 0110 1001 1010
Signed Numbers
- Digital systems need to handle both positive and negative numbers.
- A signed binary number includes sign and magnitude information.
- The sign indicates whether the number is positive or negative.
- There are three forms for representing signed integers in binary: sign-magnitude, 1's complement, and 2's complement.
The Sign Bit
- The left-most bit of a signed number is the sign bit.
- Positive = 0, Negative = 1
- Also referred to as the Most Significant Bit (MSB).
Sign-Magnitude Form
- The left-most bit is the sign bit.
- The remaining bits represent the magnitude.
Complements
- Complements are used in digital circuits for faster subtraction by adding.
- Binary complement = reversing all bits and adding 1.
- Carry from the high-order position is discarded.
9's and 10's Complements
- The 9's complement of a decimal number is obtained by subtracting each digit from 9.
- The 10's complement = 9's complement + 1.
1's and 2's Complement
- For binary representation, the problem is easier since the number of digits is only 2, and the number of digits is always known.
- 10's complement = 9's complement + 1. Thus, 2's complement = 1's complement + 1.
1's Complement Form
- Positive numbers are represented the same as in sign-magnitude.
- Negative numbers are the 1's complements of the corresponding positive numbers.
- Finding the 1's complement of a number involves inverting each bit.
2's Complement Form
- The computer finds the 1's complement and adds 1 to get the 2's complement.
- Positive numbers are represented the same as in sign-magnitude/1's complement.
- Negative numbers are the 2's complements of the corresponding positive numbers.
- In all arithmetic operations with negative integers, computers use 2's complement.
Binary Fractions
- Binary fractions can also be represented.
- Positional values: 2⁻¹, 2⁻², 2⁻³, 2⁻⁴, 2⁻⁵, etc
- Decimal values are: .5, .25, .125, .0625, .03125, 1/32
- Conversion of binary fractions to decimal: Repeated multiplication by 2.
Fixed-Point and Floating-Point Numbers
- A fixed-point number has a fixed decimal point location.
- Integers are fixed at far right; fractions are fixed at far left.
- Floating-point numbers (real numbers) store integers and fractional parts.
- A floating-point number uses a mantissa (fractional part) and an exponent to represent a number.
- Examples 53.95 can be stored as: (0.5395 × 10²)
IEEE 754 Floating Point Format
- A standard way to represent floating-point numbers.
- Used by computers to increase performance because it frees up the CPU.
- There are different precisions for floating-point numbers, leading to a tradeoff between accuracy and storage requirements.
Alphameric Codes
- Scheme to store letters, punctuation marks, and special characters as binary numbers.
- Character data involves letters, symbols, and numerals.
- The EBCDIC, ASCII and Unicode character codes.
Bits, Bytes, and Words
- Data handled by computers is ultimately reduced to bits (0 or 1).
- A computer word is a group of adjacent bits used by the central processor, manipulated as a unit.
- Byte = 8-bits.
- Nibble = 4-bits.
- The number of bits in a word can vary from computer to computer.
Memory Operations
- Write operation: stores data into a designated memory location.
- Read operation: copies data out of a designated memory location without destroying the data.
The Memory Stack
- Storage device that uses Last-In, First-Out (LIFO) methodology.
- Implemented in computing systems.
- Data to be retrieved is retrieved in the reverse order.
RAMStack
- The ramstack memory allocation is used in microprocessor based systems, rather than the use of dedicated registers
- A special register called a stack pointer(SP) is in charge of the top of the stack.
Studying That Suits You
Use AI to generate personalized quizzes and flashcards to suit your learning preferences.