Professional Documents
Culture Documents
Basics of Computer Organization
Basics of Computer Organization
Matric Number:
Department: Electrical and Electrical Engineering
Course: GET 211: Computer and Software Engineering
Memory
Computer memory stores information, such as data and
programs for immediate use in the computer. The term
memory is often synonymous with the term primary
storage or main memory. It operates at a high speed
compared to storage which is slower but less expensive
and higher in capacity. Besides storing opened
programs, computer memory serves as disk cache and
write buffer to improve both reading and writing performance.
Storage
A storage device provides the memory for installing programs
and saving files. Unlike RAM, a storage device’s content is
secured in non-volatile memory, meaning that data is saved
permanently inside its memory bank, preserving them even
after you turn off the PC (unless manually deleted or
uninstalled).
Truth Tables
A truth table is a mathematical table used in logic which sets out the functional values of
logical expressions on each of their functional arguments, that is, for each combination of
values taken by their logical variables. All logic gates have two inputs except the NOT gate,
which has only one input. When drawing a truth table, the binary values 0 and 1 are used.
Every possible combination depends on the number of inputs.
AND
Input Output
1 0
0 1
OR
NOT
The sign bit, exponent, and mantissa are three components of a floating-point number that
determine its value, magnitude, and precision.
The sign bit is the most significant bit of the binary representation of a floating-point
number. It indicates whether the number is positive or negative. A sign bit of 0 means the
number is positive, and a sign bit of 1 means the number is negative.
The exponent is a fixed number of bits (8 for single precision and 11 for double precision)
that store the power of 2 that the number is multiplied by. The exponent is biased by a
constant value (127 for single precision and 1023 for double precision) to allow for both
positive and negative exponents.
The mantissa is the remaining bits (23 for single precision and 52 for double precision) that
store the fractional part of the number. The mantissa represents the value of the number
after removing the sign and the exponent.
The sign bit, exponent, and mantissa play different roles in representing real numbers in
binary format. The sign bit determines the polarity of the number, the exponent determines
its order of magnitude, and the mantissa determines its precision and accuracy.
There are several encoding schemes for images. One of the most popular schemes is JPEG.
There are others such as Base64, Bitmap and ISCII.
How an Image is Represented and Stored
A picture is stored with RGB (Red, Green, Blue) color information in digital format by
representing each pixel in the image as a combination of these three primary colors. This
format allows the representation of a wide range of colors by specifying the intensity of each
primary color. These are the steps involved:
1. Pixel Representation
2. Color Encoding
3. Color Depth
4. Image File Formats
5. Compression:
6. Editing and Processing
7. Display and Output
8. Conversion: