CS501_Current Mid term whole paper Solved with references by MASOOM FAIRY

Similar documents
CS501- Advance Computer Architecture Solved Objective Midterm Papers For Preparation of Midterm Exam

structural RTL for mov ra, rb Answer:- (Page 164) Virtualians Social Network Prepared by: Irfan Khan

FINALTERM EXAMINATION Fall 2008 CS501- Advance Computer Architecture (Session - 1) Marks: 75

COSC 243. Computer Architecture 1. COSC 243 (Computer Architecture) Lecture 6 - Computer Architecture 1 1

AS/A Level Computing Syllabus 2011

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

CPE300: Digital System Architecture and Design

STRUCTURE OF DESKTOP COMPUTERS

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

Chapter 4. MARIE: An Introduction to a Simple Computer. Chapter 4 Objectives. 4.1 Introduction. 4.2 CPU Basics

William Stallings Computer Organization and Architecture

ASSEMBLY LANGUAGE MACHINE ORGANIZATION

MARIE: An Introduction to a Simple Computer

Module 5 - CPU Design

William Stallings Computer Organization and Architecture

COMPUTER ARCHITECTURE AND ORGANIZATION Register Transfer and Micro-operations 1. Introduction A digital system is an interconnection of digital

Chapter 4. MARIE: An Introduction to a Simple Computer

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

Example of A Microprogrammed Computer

Chapter 3 : Control Unit

Lecture1: introduction. Outline: History overview Central processing unite Register set Special purpose address registers Datapath Control unit

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

Parallelism. Execution Cycle. Dual Bus Simple CPU. Pipelining COMP375 1

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

Hardware Level Organization

Micro-Operations. execution of a sequence of steps, i.e., cycles

MARIE: An Introduction to a Simple Computer

Basic Processing Unit: Some Fundamental Concepts, Execution of a. Complete Instruction, Multiple Bus Organization, Hard-wired Control,

RTN (Register Transfer Notation)

CPU Structure and Function

CHAPTER 5 : Introduction to Intel 8085 Microprocessor Hardware BENG 2223 MICROPROCESSOR TECHNOLOGY

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

The Stored Program Computer

Assembly Language Programming of 8085

Digital System Design Using Verilog. - Processing Unit Design

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

Basics of Microprocessor

SCRAM Introduction. Philipp Koehn. 19 February 2018

Embedded Systems Ch 15 ARM Organization and Implementation

COMPUTER ORGANIZATION AND ARCHITECTURE

Advanced Computer Architecture-CS501. Vincent P. Heuring&Harry F. Jordan Chapter 2 Computer Systems Design and Architecture

Job Posting (Aug. 19) ECE 425. ARM7 Block Diagram. ARM Programming. Assembly Language Programming. ARM Architecture 9/7/2017. Microprocessor Systems

Computer Organization CS 206 T Lec# 2: Instruction Sets

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

Instruction Set Overview

CSE A215 Assembly Language Programming for Engineers

REGISTER TRANSFER AND MICROOPERATIONS

UNIT- 5. Chapter 12 Processor Structure and Function

REGISTER TRANSFER LANGUAGE

The functional block diagram of 8085A is shown in fig.4.1.

F28HS Hardware-Software Interface: Systems Programming

Chapter 4. Chapter 4 Objectives

CSE 410. Operating Systems

CHAPTER 4 MARIE: An Introduction to a Simple Computer

Processing Unit CS206T

COMPUTER ORGANIZATION

Blog -

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

Microprocessors. Microprocessors and rpeanut. Memory. Eric McCreath

Microprocessors and rpeanut. Eric McCreath

CPU Structure and Function

1. Internal Architecture of 8085 Microprocessor

Computer Architecture and Organization (CS-507)

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

SISTEMI EMBEDDED. Computer Organization Pipelining. Federico Baronti Last version:

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

ECEC 355: Pipelining

Register Transfer and Micro-operations

Computer Organization MIPS Architecture. Department of Computer Science Missouri University of Science & Technology

8/26/2010. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to Three Units of 8085

BASIC COMPUTER ORGANIZATION AND DESIGN

Introduction to CPU architecture using the M6800 microprocessor

ECE 411, Exam 1. Good luck!

There are four registers involved in the fetch cycle: MAR, MBR, PC, and IR.

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

Lecture 19: Instruction Level Parallelism

12-Dec-11. Gursharan Singh Maninder Kaur. Introduction to 8085 BLOCK DIAGRAM OF INTEL Introduction to Introduction to 8085

Chapter 5 (a) Overview

COMARCH. COMPUTER ARCHITECTURE TERM 3 SY COMPUTER ENGINEERING DE LA SALLE UNIVERSITY Quiz 1

ARM processor organization

Instruction Set Architecture

Advanced Parallel Architecture Lesson 3. Annalisa Massini /2015

INTRODUCTION OF MICROPROCESSOR& INTERFACING DEVICES Introduction to Microprocessor Evolutions of Microprocessor

CHAPTER 5 Basic Organization and Design Outline Instruction Codes Computer Registers Computer Instructions Timing and Control Instruction Cycle

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

CC312: Computer Organization

Wednesday, February 4, Chapter 4

Chapter 16. Control Unit Operation. Yonsei University

CS501 FINAL TERM subjective 100 % correct Mega File (without repetition MOAAZ file also included ) by TAYYABA REHMAN MCS 4 th semester MC

Computer Architecture

What Are The Main Differences Between Program Counter Pc And Instruction Register Ir

INSTITUTO SUPERIOR TÉCNICO. Architectures for Embedded Computing

REGISTER TRANSFER AND MICROOPERATIONS

CSCI 2121 Computer Organization and Assembly Language PRACTICE QUESTION BANK

Where Does The Cpu Store The Address Of The

2 MARKS Q&A 1 KNREDDY UNIT-I

3.1 Description of Microprocessor. 3.2 History of Microprocessor

Chapter 4 The Von Neumann Model

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

Basic Computer Architecture

Transcription:

Total Questions: 6 MCQs: 0 Subjective: 6 Whole Paper is given below: Question No: 1 ( Marks: 1 ) FALCON-A processor bus has 16 lines or is 16-bits wide while that of SRC wide. 8-bits 16-bits 3-bits (Page 157) 64-bits Question No: (Marks: 1) - Please choose one Which one of the following is a bi-stable device, capable of storing one bit of information? Decoder Flip-Flop (Page 76) Multiplexer Diplexer Question No: 3 (Marks: 1) - Please choose one Which instruction is used to store register to memory using relative address? ld instruction ldr instruction lar instruction str instruction (Page 48) Question No: 4 ( Marks: 1 ) - Please choose one The instruction will load the register R3 with the contenets of the m\emory location M [PC+56] Add R3, 56 lar R3, 56 ldr R3, 56 (Page 56) str R3, 56 1

Question No: 5 ( Marks: 1 ) oeaini eurdt hnetepoesrssaet nw,dfndvle Change Reset (Page 194) Update None of the given Question No: 6 which type of instructions help in changing the flow of the program as and when required? Arithmetic Control (Page 137) Data transfer Floating point Question No: 7 ( Marks: 1 ) - Please choose one Which one of the following registers holds the address of the next instruction to be executed? Accumulator Address Mask Instruction Register Program Counter (Page 151) Question No: 8 ( Marks: 1 ) - Please choose one The external interface of FALCON-A consists of a address bus and a data bus. 8-bit. 8-bit 16-bit. 16-bit Click here for detail 16-bit. 4-bit 16-bit. 3-bit Question No: 9 ( Marks: 1 ) - Please choose one What is the instruction length of the SRC processor? 8 bits 16 bits 3 bits (Page 134) 64 bits

Question No: 10 ( Marks: 1 ) - Please choose one P: R3 R5 MAR IR These two are instructions written using RTL.If these two operations is to occur simultaneously then which symbol will we use to separate them so that it becomes a correct statement with the condition that two operations occur simultaneously? Arrow Colon : Comma, (Page 69) Parentheses () Question No: 11 ( Marks: 1 ) - Please choose one The processor must have a way of saving information about its state or context so that it can be restored upon return from the ------------- Exception Click here for detail Function Stack Thread Question No: 1 ( Marks: 1 ) - Please choose one Which one of the following register holds the instruction that is being executed? Accumulator Address Mask Instruction Register (Page 15) Program Counter Question No: 13 ( Marks: 1 ) - Please choose one The code size of -address instruction is. 5 bytes 7 bytes (Page 36) 3 bytes bytes Question No: 14 ( Marks: 1 ) - Please choose one An assembler that runs on one processor and translates an assembly language program written for another processor into the machine language of the other processor is called a ---------------- compiler cross assembler (Page 6) debugger linker Question No: 15 ( Marks: 1 ) - Please choose one What functionality is performed by the instruction lar R3, 36 of SRC? 3

It will load the register R3 with the contents of the memory location M [PC+36] It will load the register R3 with the relative address itself (PC+36). (Page 48) It will store the register R3 contents to the memory location M [PC+36] No operation Question No: 16 ( Marks: 1 ) - Please choose one Which operator is used to name registers, or part of registers, in the Register Transfer Language? Select correct option: := (Page 66) & % Question No: 17 ( Marks: 1 ) - Please choose one In which of the following instructions the data move between a register in the processor and a memory location (or another register) and are also called data movement? Arithmetic/logic Load/store (Page 141) Test/branch None of the given Question No: 18 ( Marks: 1 ) - Please choose one What does the instruction ldr R3, 58 of SRC do? It will load the register R3 with the contents of the memory location M [PC+58] (Page 47) It will load the register R3 with the relative address itself (PC+58). It will store the register R3 contents to the memory location M [PC+58] No operation Question No: 19 ( Marks: 1 ) - Please choose one Type A of SRC instruction format include. Select correct option: 3 ALU registers 4 ALU registers 1 ALU registers ALU registers (Page 47) 4

Note: I forgot last MCQ. Q: 1: Which technique is used for overlapping multiple instructions simultaneously? [Marks ] Answer: [PAGE 0, Topic Executing machine instructions with and without pipelining] Pipe lining is the technique in which multiple instructions execute simultaneously. Q: : Differentiate between uni-bus implementation FALCON-A and SRC with respect to bus width? [Marks ] Answer: [PAGE 157] FALCON-A processor bus has 16 lines or is 16-bits wide while that of SRC is 3-bits wide. Q: 3: Arrange the following steps of SRC in correct order. [Marks 3] ALU operation Instruction fetch Memory access Register write Instruction decode/operand fetch Answer: [PAGE 06] 1. Instruction Fetch. Instruction decode/operand fetch 3. ALU operation 4. Memory access 5. Register write 5

Q: 4: Differentiate between Memory Address Register and Memory Buffer Register. [Marks 3] Answer: [PAGE 151] MAR The Memory Address Register takes input from the ALSU as the address of the memory location to be accessed and transfers the memory contents on that location onto the memory sub-system. MBR The Memory Buffer Register has a bi-directional connection with both the memory subsystem and the registers and ALSU. It holds the data during its transmission to and from memory. Q: 5: Write the structural RTL for Shiftr ra, rb, c1. [Marks 5] Answer: [PAGE 163] Q: 6: Data dependence is one the complication related to pipe lining. You need to Indentify and method use to resolving data dependence. [Marks 5] Answer: [PAGE 03 and 04] Resolving the Data dependency There are two methods to remedy this situation: 1. Pipeline stalls These are inserted into the pipeline to block instructions from entering the pipeline until some instructions in the later part of the pipeline have completed execution. Hence our modified code would become 6

. Data forwarding When using data forwarding, special hardware is added to the processor, which allows the results of a particular pipeline stage to be transferred directly to another stage in the pipeline where they are required. Data may be forwarded directly from the execute stage of one instruction to the decode stage of the next instruction. Considering the above example, S1 will be in the execute stage when S will be decoded. Using a comparator we can determine that the destination operand of S1 and source operand of S are the same. So, the result of S1 may be directly forwarded to the decode stage. 7