Top Most Computer Architecture Interview Questions Part – 2
What Are The Different Types Of Interrupts In A Microprocessor System, Explain?
In the normal execution of a program there are three types of interrupts that can cause a break:
External Interrupts:
These types of interrupts generally come from external input / output devices which are connected externally to the processor. They are generally independent and oblivious of any programming that is currently running on the processor.
Internal Interrupts:
They are also known as traps and their causes could be due to some illegal operation or the erroneous use of data. Instead of being triggered by an external event they are usually triggered due to any exception that has been caused by the program itself. Some of the causes of these types of interrupts can be due to attempting a division by zero or an invalid opcode etc.
Software interrupts:
These types if interrupts can occur only during the execution of an instruction. They can be used by a programmer to cause interrupts if need be. The primary purpose of such interrupts is to switch from user mode to supervisor mode.
What Is Virtual Memory In Computer?
Virtual memory is that when the available RAM memory is not sufficient for the system to run the current applications it will take some memory from hard disk.This memory is termed as Virtual memory.
State Some Of The Common Rules Of Assembly Language?
Some of the common rules of assembly level language are as follows:
In assembly language the label field can be either empty or may specify a symbolic address.
Instruction fields can specify pseudo or machine instructions.
Comment fields can be left empty or can be commented with.
Up to 4 characters are only allowed in the case of symbolic addresses.
The symbolic addresses field are terminated by a comma whereas the comment field begins with a forward slash.
Explain How Many Types Of Memory In Computer Architecture?
computer have different type of memory like primary memory , Auxiliary memory , buffer memory , Cache memory , virtual memory ,the work of all memory heterogeneously primary memory is directly communicate with the CPU . Auxiliary memory are used for storing the data for long time .
Buffer memory are mainly used for storing the intermediate data between the travel . cache memory are used for storing the those data that currently required at process time for increase the speed of the data . virtual memory are put in between the two memory for increase the speed of data or instruction it means it put between HDD and RAM .
What Do You Understand Vertical Micro Code, Explain The Designing Strategy Of A Control Unit Coded On Vertical Code?
Vertical microcode can be considered to be a segment of code or operators that have been clubbed together into fields. In this field every micro operation is given a unique value.
This helps in efficient organization of related code together.
An effective design strategy could be in case of 2 micro operations occurring at the same state, to assign them two different fields.
A no operation NOP can be included in each field if necessary.
The remaining micro operations can be distributed among the other operation field bits.
Also micro operations that modify the same registers could be grouped together in the same field.
Explain What Are The Different Hazards? How Do We Avoid Them?
There are situations, called hazards, that prevent the next instruction in the instruction stream from executing during its designated clock cycle. Hazards reduce the performance from the ideal speedup gained by pipelining.
There are three classes of Hazards:
Structural Hazards:
It arise from resource conflicts when the hardware cannot support all possible combinations of instructions simultaniously in ovelapped execution.
Data Hazards:
It arise when an instruction depends on the results of previous instruction in a way that is exposed by the ovelapping of instructions in the pipeline.
Control Hazards:
It arise from the pipelining of branches and other instructions that change the PC.
Briefly Explain The Two Hardware Methods To Establish Priority?
Two different ways of establishing hardware priority are Daisy Chaining and parallel priority.
Daisy chaining is a form of a hardware implementation of the polling procedure.
Parallel priority is quicker of the two and uses a priority encoder to establish priorities.
In parallel priority interrupt a register is used for which the bits are separated by the interrupt signals from every device.
The parallel priority interrupt may also contain a mask register which is primarily used to control the status of every request regarding interrupts.
Instead Of Just 5-8 Pipe Stages Why Not Have, Say, A Pipeline With 50 Pipe Stages?
The latency of the architecture increases with the pipeline stages. Penalty due to the flushing of the pipeline for instance will also increase Cycles Per Instruction of the CPU architecture
Explain The Requirement Of Page-table And The Different Ways In Which The Table Can Be Organized?
For any computer generally the memory space is lesser as compared to the address space this implies that the main memory is lesser as compared to the secondary memory.
On the basis of the demands of the CPU data is transferred between the two memories.
Due to this a mapping technique is required which can be implemented using page-table.
The page table can be organized in two ways namely in the R/W memory and by using associative logic.
In case of R/W memory the speed of execution of programs is slow as it requires two main memory references to read data. It is also known as memory page table.
In case of associative logic it is considered to be more effective because it can be built with simply keeping mind to have equal no. of blocks in the memory as many as there are words.
Explain The Cpu Is Busy But You Want To Stop And Do Some Other Task. How Do You Do It?
Arise a non maskable interrupt.
Then give jump instruction to required subroutine.
Explain Briefly About Flip-flops?
Flip flops are also known as bi-stable multi-vibrators.
They are able to store one bit of data.
Flip flops are able to be in two stable states namely one and zero. They can be in either states and in order to change their states they have to be driven by a trigger.
Certain flip flops are edge triggered meaning they only respond to voltage changes from one level to another. They can be either positive edged triggering or negative edged triggering.
Flip flops turn on in a random manner that is they can be in either of the states when they are turned on. In order to have a uniform state when they are powered on a CLEAR signal has to be sent to the flip flops. They can also be made to turn on in a particular state by applying PRESET.
How Do We Handle Precise Exceptions Or Interrupts?
Like java have a feature for handling exception handling “prime catch”.the exception like divide by zero,out of bound.
What Do You Understand By Partitioning In Reference To Operating Systems? Give Their Advantages And Disadvantages?
Partitioning involves the user to partition their hard drives and then they can implement / install multiple operating systems on them. The user requires a boot manager to switch between different operating systems.
Partitioning allows each operating system to work optimally.
Each os has the complete access to the hardware of the system on which it is being executed.
Also depending on the file system used the user is free to resize his partition according to his needs.
But manual partition is not a simple task and requires patience.
The system needs to be restarted in case the user wants to switch operating systems.
Explain The Difference Between Interrupt Service Routine And Subroutine?
Subroutine are the part of executing processes(like any process can call a subroutine for achieve task),while the interrupt subroutine never be the part.interrupt subroutine are subroutine that are external to a process.
What Do You Understand By Virtualization?mention The Pros And Cons?
In a way virtualization appears similar to emulation but actually it shares hardware resources from the host OS.
This method is slower as compared to partition method but is faster than emulation.
Virtualization had also vast support considering it can also provide with 3d support.
With the help of virtualization it enable users to create virtual clusters.
But virtualization systems require a lot of memory in form of ram.
For virtualization it is mandatory that the virtualized platform has the same architecture as the host pc otherwise due to incompatibilities it is not possible.
Can You Explain What Are The Basic Components In A Microprocessor?
address lines to refer to the address of a block
data lines for data transfer
IC chips 4 processing data