The Institution of Engineers - Sri Lanka

Similar documents
Department of Computer and Mathematical Sciences. Lab 4: Introduction to MARIE

CPU ARCHITECTURE. QUESTION 1 Explain how the width of the data bus and system clock speed affect the performance of a computer system.

Computer Organization Question Bank

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

COMPUTER ORGANIZATION AND ARCHITECTURE

Memory General R0 Registers R1 R2. Input Register 1. Input Register 2. Program Counter. Instruction Register

DC57 COMPUTER ORGANIZATION JUNE 2013

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Computer Organisation CS303

CC312: Computer Organization

2. (a) Compare the characteristics of a floppy disk and a hard disk. (b) Discuss in detail memory interleaving. [8+7]

EC2304-MICROPROCESSOR AND MICROCONROLLERS 2 marks questions and answers UNIT-I

1. Draw general diagram of computer showing different logical components (3)

(Advanced) Computer Organization & Architechture. Prof. Dr. Hasan Hüseyin BALIK (3 rd Week)

Computer architecture Assignment 3

The von Neumann Architecture. IT 3123 Hardware and Software Concepts. The Instruction Cycle. Registers. LMC Executes a Store.

Computer Architecture and Organization (CS-507)

William Stallings Computer Organization and Architecture 10 th Edition Pearson Education, Inc., Hoboken, NJ. All rights reserved.

AS/A Level Computing Syllabus 2011

2010 Summer Answers [OS I]

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

QUESTION BANK UNIT-I. 4. With a neat diagram explain Von Neumann computer architecture

William Stallings Computer Organization and Architecture. Chapter 11 CPU Structure and Function

COA. Prepared By: Dhaval R. Patel Page 1. Q.1 Define MBR.

PART A (22 Marks) 2. a) Briefly write about r's complement and (r-1)'s complement. [8] b) Explain any two ways of adding decimal numbers.

FACTFILE: GCE DIGITAL TECHNOLOGY

William Stallings Computer Organization and Architecture

MARIE: An Introduction to a Simple Computer

Processing Unit CS206T

The Stored Program Computer

Introduction to CPU architecture using the M6800 microprocessor

Problem Set 1 Solutions

Faculty of Engineering Systems & Biomedical Dept. First Year Cairo University Sheet 6 Computer I

Chapter 4. MARIE: An Introduction to a Simple Computer

SAE5C Computer Organization and Architecture. Unit : I - V

UNIT-II. Part-2: CENTRAL PROCESSING UNIT

Cambridge International Examinations Cambridge International Advanced Subsidiary and Advanced Level

Outcomes. Lecture 13 - Introduction to the Central Processing Unit (CPU) Central Processing UNIT (CPU) or Processor

Notes: The Marie Simulator

CS 265. Computer Architecture. Wei Lu, Ph.D., P.Eng.

Chapter 5: Computer Systems Organization

Chapter 5: Computer Systems Organization. Invitation to Computer Science, C++ Version, Third Edition

Arab Open University. Computer Organization and Architecture - T103

Architectures & instruction sets R_B_T_C_. von Neumann architecture. Computer architecture taxonomy. Assembly language.

CS Computer Architecture

Tutorial for Chapter 3, 4

M. C. A. (Second Semester) Theory Examination,

Chapter 4. MARIE: An Introduction to a Simple Computer 4.8 MARIE 4.8 MARIE A Discussion on Decoding

CMSC 313 COMPUTER ORGANIZATION & ASSEMBLY LANGUAGE PROGRAMMING LECTURE 01, SPRING 2013

CMPUT101 Introduction to Computing - Summer 2002

Chapter 4. Chapter 4 Objectives. MARIE: An Introduction to a Simple Computer

Introduction to Computer Science-103. Midterm

Introduction to Computers - Chapter 4

CPU Structure and Function

Learning objectives. Computer principles The characteristics of contemporary processors, input, output and storage devices

omputer Design Concept adao Nakamura

CISC Processor Design

William Stallings Computer Organization and Architecture

General purpose registers These are memory units within the CPU designed to hold temporary data.

The Von Neumann Architecture Odds and Ends. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

MARIE: An Introduction to a Simple Computer

The CPU and Memory. How does a computer work? How does a computer interact with data? How are instructions performed? Recall schematic diagram:

3.1 Description of Microprocessor. 3.2 History of Microprocessor

CPU Structure and Function. Chapter 12, William Stallings Computer Organization and Architecture 7 th Edition

Computer Architecture (part 2)

CS 101, Mock Computer Architecture

The MARIE Architecture

Final Examination Semester 2 / Year 2011

Computer Architecture Review CS 595

2 MARKS Q&A 1 KNREDDY UNIT-I

STRUCTURE OF DESKTOP COMPUTERS

Data Representation and Architecture Modeling Year 1 Exam preparation

Class Notes. Dr.C.N.Zhang. Department of Computer Science. University of Regina. Regina, SK, Canada, S4S 0A2

A3 Computer Architecture

The Von Neumann Architecture. Designing Computers. The Von Neumann Architecture. CMPUT101 Introduction to Computing - Spring 2001

BEng (Hons.) Telecommunications. BSc (Hons.) Computer Science with Network Security

CMPUT101 Introduction to Computing - Summer 2002

ELC4438: Embedded System Design Embedded Processor

Designing Computers. The Von Neumann Architecture. The Von Neumann Architecture. The Von Neumann Architecture

CPU. Fall 2003 CSE 207 Digital Design Project #4 R0 R1 R2 R3 R4 R5 R6 R7 PC STATUS IR. Control Logic RAM MAR MDR. Internal Processor Bus

ASSEMBLY LANGUAGE MACHINE ORGANIZATION

Course Description: This course includes concepts of instruction set architecture,

COMP2121: Microprocessors and Interfacing. Instruction Set Architecture (ISA)

Von Neumann Architecture

Where Does The Cpu Store The Address Of The

S.R.M. INSTITUTE OF SCIENCE & TECHNOLOGY SCHOOL OF ELECTRONICS & COMMUNICATION ENGINEERING

Exercise 1: Cache Architecture I

COMPUTER SYSTEM. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U. COMPUTER SYSTEM IB DP Computer science Standard Level ICS3U

Instruction : A command to the microprocessor to perform a given task on specified data. Each instruction has two parts

Computer Architecture. CSE 1019Y Week 16. Introduc>on to MARIE

(2½ Hours) [Total Marks: 75]

Q. P. Code : b. Draw and explain the block dig of a computer with microprocessor as CPU.

Latches. IT 3123 Hardware and Software Concepts. Registers. The Little Man has Registers. Data Registers. Program Counter

Since ESE GATE PSUs ELECTRICAL ENGINEERING COMPUTER FUNDAMENTALS. Volume - 1 : Study Material with Classroom Practice Questions

General Purpose Processors

CN310 Microprocessor Systems Design

17. Instruction Sets: Characteristics and Functions

Chapter 02: Computer Organization. Lesson 02: Functional units and components in a computer organization- Part 1: Processor

MICROCONTROLLERS 8051

LC-3 Architecture. (Ch4 ish material)

Transcription:

/ The Institution of Engineers - Sri Lanka PART III- EXAMINATION 2012 311- COMPUTER SYSTEMS ENGINEERING Time Allowed: 3 hours INSTRUCTIONS TO CANDIDATES 1. This paper contains 8 questions in 5 pages 2. Answer any 5 questions 3. All questions carry equal marks Question 1 (1). A computer system network uses Hamming codes for error detection and correction. The following bit stream was received after a data transmission. "001001100000101101110" (a) Using the Hamming's algorithm check whether the bit stream is erroneous. If yes what is the error bit? (b) Write down the original message string which was transmitted. ~ (ii). The following memory units are specified by the number of words times the number of bits per word. How many address lines and input-output data lines are needed in each case? (a) 2Kx16 (b) 16Mx32 (iii). Draw the memory arrangement of a 2Kx32 memory indicating the number of address lines and data lines. o~~~o~=~ 1

Question 2 (i). Draw the architecture of a typical Von-Neumann machine indicating its data path. (5 marks) (ii). The following program written in the assembly instruction set of the 8051 microprocessor is stored in the computer memory. Memory address Opcode Operand Comment OxOOOl MOV A,OA OxOO02 MOV C,A OxOO03 ADD A,C OxOO04 DEC C OxOO05 JNZ OxOO03 Jump to memory location OxOO03 (a) Write down the comments for all the instructions. An example is done for you. (4 marks) (b) Indicate the values of the Program Counter (PC), Instruction Register (IR) and the Accumulator (A), at the instant the program completes its 4th iteration. (c) What is the ultimate result of this program after all the iterations, provided that this program deals only with positive integers? (d) Write a new assembly program which will get the addition of all positive even integers from lto 100. Question 3 (i). Compare the CISC and RISC computers in terms of instruction complexity, size of the instruction set and the speed of CPU. (ii). Briefly explain three design principles of a RISC machine. (iii). Explain the terms, instruction level parallelism and processor level parallelism. 2

L Question 4 (i). Explain the following terms associated with the cache memory. (a) Principle of locality (b) Hit ratio (c) Miss ratio (d) Cache lines (e) Unified cache (t) Split cache (ii). A two way set-associative cache memory uses blocks of four words. The cache can accommodate a total of 2048 words from main memory. The main memory size is 128Kx 32. (a) Formulate all pertinent information (b) What is the size of the cache memory? required to construct the cache memory Question 5 (i). Represent the hexadecimal ASE in (a) Decimal (b) Binary (c) Octal (ii). Represent the following numbers in eight bit sign and magnitude representation. (a) +93 (2m arks) (b) -97 (iii). Represent -111 in one's complement and two's complement. (4 marks) (iv). Convert decimal 22.625 into binary floating point and represent it with IEEE floating point standard. 3

Question 6 (i). With the aid of block diagrams of the internal architecture compare and contrast the hard wired control unit and the micro programmed control unit in terms of their design complexity, modification flexibility and the speed of operation. (ii). The following are four methods of transferring data between the CPU and the peripheral devices. Indicate the message flow sequence (steps) associated with each method. You can use diagrams to support your answer. (a) Programmed input-output (polling method) (b) External interrupts (c) Direct memory access (d) Input output processor Question 7 (i). Briefly explain the functionality and the purpose of the following special purpose registers. (a) A (b) MDR (c) MAR (d) PC (e) IR (f) SP (ii). A CPU consists with an instruction decoder, IR, PC, MAR, MDR, input buffer register (Y), ALU, A and four general purpose registers. The CPU uses single bus architecture. Draw the internal CPU configuration of with the above information indicating the directions of the address lines and data lines. 4

Question 8 (i). Draw the format of a typical TCP header indicating all fields. (5 marks) (ii). Briefly explain the steps associated with a TCP connection establishment and termination. (iii). Two communication systems work in two different ways. System A sends one frame and wait for an acknowledgement before sending the next frame. System B continuously sends frames while receiving the acknowledgements. In both the systems frames 0, 1, 2 were correctly sent but frame 3 was lost. Again frames 4, 5,6,7,8 were correctly sent. The acknowledgement of frame 7 was lost due to a network error and all the other acknowledgements of the received packets were reached the transmitter. (a) Draw signal flow charts for the above two systems (10 marks) (b) If the time taken to send a frame and receive its acknowledgement is to in both the above systems, estimate the time consumed by each system to complete the transmission. 5