Docsity

Computer Architecture and Memory Hierarchy: A Comprehensive Guide, Essays (high school) of Computer science

Partial preview of the text

Download Computer Architecture and Memory Hierarchy: A Comprehensive Guide and more Essays (high school) Computer science in PDF only on Docsity!

SUBJECT: COMPUTER ARCHITECTURE AND ORGANISATION
COURSE CODE: ITS 62704
LECTURER: MS SUMATHI A/P BALAKRISHNAN
BATCH: APRIL 2019

STUDENT NAMES STUDENT ID Sharenya A/P Ulaganathan 0338618 Kishan A/L Tamilselvan 0335361 Lily Hannah Bt Abdullah 0334102 Sharvin A/L Muthuvanan 0334948

TABLE OF CONTENTS

  • PART A: QUESTION 1…………………………………………………………
    • QUESTION 2…………………………………………………………
  • PART B: QUESTION 1…………………………………………………………
    • QUESTION 2…………………………………………………………
    • QUESTION 3…………………………………………………………
    • QUESTION 4…………………………………………………………
  • PART C: QUESTION 1…………………………………………………………
    • QUESTION 2…………………………………………………………
    • QUESTION 3…………………………………………………………
  • CONCLUSION…………………………………………………………………...
  • PEER REVIEW………………………………………………………………….
  • REFERENCE…………………………………………………………………….

Explain on its benefits and challenges. Software that it uses is open source software so this allows you to expand your learning atmosphere. Very affordable and cheap for a beginner to afford.

Benefits

Also acts as an energy efficient computer, the small sized computer makes it easy to be recycled. Does not release much pollution into the environment unlike big computers that require much more energy.

Challenges

Can’t do heavy duty work because the memory is very low Not useful for big business because it is not compatible with OS like Windows. It is not expandable like a desktop computer

  1. Give one example of successful implemented RPI project in detail with the architecture designs. Write the steps to construct the hardware in detail. You may refer to a video and cite the video. The implementation must be related to energy saving, recycling or healthy lifestyle. (15m) One example of a successfully implemented Raspberry PI project would be the IoT Based Health-Care System
  1. Hardware elements used in this system are, Raspberry PI 3, heart beat sensor, temperature sensor and other sensors to detect biological functionality. Easy Pulse 1.1 is also used.
  2. These hardware elements are integrated with software system that controls the report generation and also the hardware.
  3. Raspberry Pi3 is connected to sensors, sensors are connected to human body, and raspberry Pi3 is connected with software systems using wireless connection
  4. Sensor then senses data from human body, then sends the data to server
  5. The System Administrator will control the data entries of new patients and doctors
  6. If there are abnormalities, message will be sent to the doctor to avoid any critical situations from occurring within 60 seconds
  7. The data will then be compared with the standard data of a normal healthy person in the system.
  1. He or she will get data from sensors and then store the data in a database
  2. Two servers are required, one for the system development and one for the database which stores all data
  3. Database used here is in MYSQL. The database stores all the data collected by the sensors.
  4. Netbeans 8.1 is used to develop system, and the serves used are Apache Tomcat and Glassfish servers.
  5. The Raspberry Pi will send data to PuTTY, and then PuTTY forwards it to the database through the system.
  6. PuTTY application is used to connect devices and software system that works like a mediator.
PART B

1. Explain the computer memory hierarchy. Support your answer with a diagram. Label

the diagram and explain (10 m). Identify main types of memory technology and their

performance (5m).

What is Computer Memory Hierarchy? In a computer system, a computer processor as well as a large amount of memory device has been used. Memory organization of the system can be done by memory hierarchy. In this process, there is several levels of the memory with different performance rate. The similarity is that all these levels serve the same purpose, such that the access time will be reduced. The memory hierarchy was developed according the behavior of the program. The memory of the computer can be separated to five hierarchies based on the speed as well as use. The processor has the ability to move from one level to another based on its requirements. The types of levels in the memory are registers, cache, main memory, magnetic disc, and magnetic tapes. The first 3 hierarchies are volatile memories and the last 2 hierarchies are not volatile Figure 1.

REGISTERS

-used for holding data word -status word register used for decision making -accumulator is used to store data like mathematical operations MAGNETIC DISK -Storage device that uses a magnetization process to write, rewrite and access data. -Example: hard disks, zip disks, floppy disks

MAIN MEMORY

-Memory unit in the CPU that communicates directly -Fast and large memory used for storing data throughout the operations of computer. -Made up of RAM and ROM

CACHE

-found in processor, however rarely it may be another IC which is separated into levels. -holds the frequently used chunk of data from main memory MAGNETIC TAPE -Mainly used to back up huge data -The access time of memory will be slower within the magnetic strip

2. Explain the effect of memory latency on running time. (5m)

  1. Describe in detail how the use of cache memory and virtual memory are used to reduce the effectiveness of memory latency. Explain each of them separately. (10m) Memory latency is the time it takes for a request by a byte or word to initiate and retrieved by the processer. Virtual memory is volatile memory which is temporarily created on the storage drive. It is only created when the computer has many processes running at once and the RAM is running low Whereas cache memory is very a very small amount of very fast memory which is built directly into the central processing unit for higher performance levels. The system is performance would be greatly improved if the CPU took data straight from the cache rather than the main memory as less time is taken. However, cache memory is very expensive as it is directly built into the RAM. It moves data from the RAM to slow hard drives which takes up more processing power, meaning that the virtual memory is slower than the main memory. Although it doesn’t speed things up, virtual memory frees up space in the RAM by removing unused data and allowing applications and OS processes to use

Memory Address Register ( MAR) It holds the memory location of the data that needs to be accessed Memory Data Register ( MDR) It holds the data that is being transferred to, or from the memory Accumulator ( AC) This is where those intermediate arithmetic and logic results are stored Program Counter ( PC) It contains the address of the next instruction to be executed and carried out Current Instruction Register ( CIR) It contains the current instruction during the processing

ARITHMETIC LOGIC UNIT (ALU)

The Arithmetic Logic Unit allows arithmetic or what we call, simple mathematical calculations such as addition and subtraction, and logic such as AND, OR, NOT and XOR, and also Bit Shifting operations to be carried out efficiently. REGISTERS Registers are high speed storage areas in the Central Processing Unit (CPU). It may hold an instruction, storage address, or any kind of data such as bit sequence or individual characters. Table 4a shows the variety of registers in the CPU. Table 4a MEMORY UNIT Consists of the RAM (Random Access Memory), sometimes called the primary or the main memory. This memory is fast and directly accessible by the CPU, unlike the hard drive which is the secondary memory. The RAM is split into partitions, where each partition consists of an address and also its content. They are both in binary form because computer reads binary language. The address will distinctly identify every location in the memory unit. Having to load data or information from the hard drive which is the permanent memory, into the RAM which is a quicker and directly accessible temporary memory, enables the CPU to work a lot faster. Figure 4.

As we can see in Figure 4.2, there are something called Buses. Basically, buses are the medium whereby the data gets transmitted from one part of a computer to another, while connecting and interfacing all the major inner segments to the CPU and the memory. A standard CPU system bus consists of a control bus, data bus, and also an address bus. Table 4b shows the tasks carried out by each bus Address Bus This bus carries the addresses of the data between the memory and processor. It does not carry the data itself. Just the address of data Data Bus This bus carries data between the processor, the memory unit and also the input and output devices Control Bus This bus carries the control signals and commands from the CPU, to control and also coordinate the activities of the computer. Table 4b

Machine Cycle of Von Neumann Architecture Figure 4.3 shows the machine cycle in the Von Neumann Architecture Figure 4.

PART C
  1. Design a logic circuit that will control the horn. (Use four logic input variables to represent the various conditions, for example, input A will be HIGH only when the time of day is 5 o’clock or later.) 1) Step 1: Set up a truth table 2) Step 2: Write the AND (product) term for each case where the output is 1 X = 1 when: A’BCD, ABC’D’, ABCD’, ABCD 3) Step 3: Write the sum-of-products (SOP) expression for the output. X = A’BCD + ABC’D’ + ABCD’ + ABCD 4) Step 4: Simplify the Expression X = A’BCD + ABC’D’ + ABCD’ + ABCD X = A’BCD + ABCD + ABC’D’ + ABC’D X = BCD (A’ + A) + ABC’ (D’ + D) X = BCD + ABC’ 5) Step 5 : Implement the circuit for the final, simplified expression A (After 5 O’clock) B (Machines are shut down and it’s Friday) C (Production is complete) D (All machines are shut down) X (Horn is activated) 0 0 0 0 0 0 0 0 1 0 0 0 1 0 0 0 0 1 1 0 0 1 0 0 0 0 1 0 1 0 0 1 1 0 0 0 1 1 1 1 1 0 0 0 0 1 0 0 1 0 1 0 1 0 0 1 0 1 1 0 1 1 0 0 1 1 1 0 1 1 1 1 1 0 0 1 1 1 1 1