






Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Previous year important Questions
Typology: Exams
1 / 10
This page cannot be seen from the preview
Don't miss anything!
Q1.Who control the buses in DMA data Transfer & How? Ans:-In Direct Memory Access (DMA) data transfer, the control of buses is typically managed by a DMA controller or DMA engine. The DMA controller is a hardware component that is responsible for coordinating and controlling data transfers between devices without involving the CPU directly. The DMA controller interacts with the system bus and peripheral devices to initiate and manage data transfers. It has direct access to the system bus and can take control of it when necessary. The controller is programmed by the CPU to perform specific data transfer operations, such as moving data from one memory location to another or transferring data between a peripheral device and memory. Here's a general overview of how the DMA transfer process works:
Parameter passing in subroutines refers to the mechanism of passing values or references between the calling code and the subroutine. Parameters are inputs to the subroutine that allow it to perform its task based on specific data provided by the calling code. They enable the subroutine to be more flexible and adaptable to different situations. There are generally three common methods of parameter passing in subroutines:
To evaluate the effective address for different addressing modes based on the given scenario, let's consider the following: Instruction stored at location 300: Instr Address field at location 301: 400 Processor register R1: 200 (i) Direct Addressing Mode: In direct addressing mode, the address field directly provides the memory address where the operand is located. Therefore, the effective address is the value in the address field. Effective address = 400 (ii) Immediate Addressing Mode: In immediate addressing mode, the operand is directly specified within the instruction itself, rather than referring to a memory location. Therefore, the effective address is the immediate value itself. Effective address = Value in the address field = 400 (iii) Relative Addressing Mode: In relative addressing mode, the address field contains a value that is added to the program counter (PC) to determine the effective address. This mode is typically used for branching instructions. Effective address = Value in the address field + Current PC = 400 + (PC at instruction fetch time) Note: The specific value of the PC at instruction fetch time is required to compute the effective address. (iv) Register Indirect Addressing Mode: In register indirect addressing mode, the address field contains the number of a processor register that holds the memory address of the operand. In this case, the effective address is obtained by accessing the memory address stored in the specified register. Effective address = Value in the register R1 = 200 For the relative addressing mode, the specific value of the PC at instruction fetch time is needed to determine the effective address. Without that information, it is not possible to compute the exact effective address.
Q5. What is computer System Architecture? Ans:- Computer system architecture refers to the structure and organization of a computer system, including its hardware components, memory organization, instruction set architecture, and the interaction between these components. It encompasses the design principles and guidelines that dictate how a computer system is built and operates Computer system architecture involves the following key aspects: