Unit 18-Computer Architecture        Assignment 1

Task 1  (P1)

Describe using examples how numeric and alphanumeric data can be coded within a computer system.

Finding the negative value of -74 (using use of Two’s Complement Signed Byte)

This shows how numbers are represented in a computer.

So we invert -74 to +74

Step1)         01001010 (this is the binary for 74)

Step2)        10110101  (Invert as One’s Compliment)

Step 3) 00000001  (Add One)

________________________

10110110  (This gives us Two’s Compliment)

-128+32+16+4+2 = -74

Using the word Hello in ASCII code.

This shows how letters are represented in a computer. (Upper case letters and lower case letters.)

Hello becomes:

0100100001100101011011000110110001101111

Task 2  (P2)

Describe how analogue data can be converted and stored in computer systems

Analogue data needs to be sampled in order to be processed by a computer. As computers deal in One’s and Zero’s it can only record specific intervals. For example, when recording a sound that gradually gets louder over a minute, a digital recording could record the level of sound every second, but would lose the information between seconds. If the sound was sampled every half second, there would be half as much information lost from the original source, but file size would be doubled. This is the trade off that has to be made between file size and quality.

Bit depth is the number of bits of information recorded per second .The higher the bit depth means, the higher the sample rate and this results in higher quality sound file. A good example of bit depth is in CD quality audio which has a bit depth of 16 bits and a sample rate of 44.1 kHz.

Task 3  (P5)

Describe the key components of a computer architecture and how they interact

  1. Data Buffer – this is a region of memory used to temporarily hold data while it is being moved from one place to another.
  2. Accumulator A – An 8 bit CPU has 1 register called the accumulator, this holds temporary data e.g. the carry-out when you do addition.
  3. Arithmetic Logic Unit (ALU) - this is the workhorse of the CPU because it carries out all the calculations.
  4. Data Buses - the mechanism that moves information around a computer.
  5. Address Buffer – this holds the address part of the instruction register,
  6. Program Counter - this contains the location of the next instruction to be executed and, therefore, keeps track of where the computer is up to in a program.

  1. Instruction Register (IR) – this divides the information it receives into two fields. One field in the IR contains the operation code that tells the CPU what operation is to be carried out. The other field, called the operand field, contains the address of the data to be used by the instruction.
  2. Condition Code Register (CCR) - this takes a snapshot of the state of the ALU after each instruction has been executed and records the state of the carry, negative, zero, and overflow flag-bits. In the above diagram the flag-bits are H, I, N, Z, V & C.
Join now!

Task 4  (P6)

Describe the features of a processor

Multi-tasking

Multi-tasking is a method where multiple processes are dealt with at once sharing common processing recourses such as a CPU. It involves the CPU assigning which instructions to be carried out first but it only focuses on one instruction at a time.

 

Pipelining

Pipelining is a method in which the Processor begins to execute a second instruction before the first has finished. Every pipeline is divided into ...

This is a preview of the whole essay