Module 1 Flashcards

1
Q

Computer Architecture

A

Concerned with the structure and behavior of computer systems as seen by the user,includes information, formats , instruction sets and techniques for addressing memory(describes what a computer does)

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
2
Q

Fuctional units of a computer

A

computer system is divided into 5 separate units for its operation:

Input Unit
Output Unit
ALU
Control Unit
Memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
3
Q

Input and output unit

A

input unit reads data from a source and translates it to ADC for transfer into the CPU

whereas the Output unit converts DAC into human readable form ,sends processed results to the outside world

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
4
Q

Memory Unit

A

Collection of storage cells with associated circuits needed to transfer data in and out of the storage

Computer stores in different methods which leads to different levels in storage
primary and secondary

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
5
Q

ALU

A

This unit performs the actual processing of data and instructions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
6
Q

Control Unit

A

this unit determines the sequence in which computer programs and instructions are to be executed

Operations of input output and alu are co ordinated by this unit
data transfers are also done by this unit

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
7
Q

CPUt

A

ALU CU and MU of a computer system are jointly know as the CPU its also know as the brain of the computer system

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
8
Q

Basic operational concepts

A

to perform a given task appropriate program consisting of a list of instructions stored in the memory and these instructions can be loaded from the meory into the processor for its execution

Load - transfers data to register
Store - transfers data to memory
Add
Sub
etc

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
9
Q

Basic operational concepts(Operating steps)

A

1 Program resides in memory
2Execution starts when PC points to the first
instruction in the program
3 MAR reads the control signal
4 memory loads address word into MDR
5 Contents are transfered to IR
6 IR decodes and executes the instructions (gets operands for ALU)
7 performs the operation in ALU and stores the result back into GPR
8 transfers result into memory
9 during the execution pc is incremented

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
10
Q

MAR

A

holds the address of the location to be accessed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
11
Q

Bus structures

A

its a pathway for digital signals to rapidly move data
consists of 3 set of lines used to carry address data control signals
together these 3 make up the system bus,which is a internal bus intended to connect the processor with internal h/w devices

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
12
Q

Data bus

A

typically 8,16,32 or 64 bit
the width reflects the mx amount of data that can be tranfered at a time
a 64 bit procsessor has a 64 bit data bus
bi directional bus

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
13
Q

Computer architecture Vs Organization

A

1)
CA CO order
deals with what the computer does

how the computer does it

2)
Deals with high leve design issues
Deals with low level design issues

3)
Functional behaviour
Structural relationship

4)
Desgining computer first

designing computer second

aka architecure before archi

5)
involves instruction set , addy mode , data types

invloves circuit design,signals,ALU and memory

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
14
Q

Primary memory Vs secondary memory

A

1)
Refers to main memory

refers to auxilary/secondary/external memory

2)
Holds the data or instruction that are currently in use

Used to store and retrive data or info on a long term basis

3)
Nature of primary memory varies from volatile and non

non volatile in nature

4)
data is directly accessed by CPU

data isnt directly accessed by the CPU

5)
more expenseive

less expensive

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
15
Q

Load R2,LOC

A

this instruction reads the content of a memopry location represented by LOC is loaded into the processor register R2

orginal contents of LOC are preserved

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
16
Q

ADD R2,R5 ,R1

A

Adds the contents of R1 and R5 and places thier sum into register R4
contents in R2 and R5 remain unchanged but contents in R1 are changed

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
17
Q

Store R4,LOC

A

coptes the operand in R4 to memory location LOC

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
18
Q

Contents of processor

A

PC-Holds/points to the address of the next executing instruction IR-Holds the instruction that is being currently executed, MAR MDR CU ALU and GPRs R0 to Rn-1- they serve a varity of functions

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
19
Q

Interrupt

A

Normal execution of a program may be halted or preempted if some device requires urgent servicing

In order to deal with the situation the normal execution of the program will be stoped to handle the interrupt signal

Provides a meoth to postponme or delay the current process perform a sub routine and then restart the standard program again

uses ISR

ISR-saves the internal state of the processor in mmemory before the serviceing of the interrupt began

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
20
Q

Address bus

A

the physical location of the data in memory is carried by the address bus

the address bus carries only the information regarding the address and is synchronzed with the data bus to accomplish read/write tasks from the processor

if there are n address bus the size of the memoy will be 2^n

address bus is always unidirectional

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
21
Q

Control bus

A

the control bus carries control info from the control units to other units

the controlling information is used for directing the activities of all units

whether the data is read or written is determined by the control bus

2 important control signals are READ ad WRITE

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
22
Q

Types of bus structures

A

Single bus and multi bus

1)
allows only one transfer at a time

allows two or more transfers at a time

2)
cost is low

cost is high

3)
low performance

high performance

4) flexible for attaching peripheral devices

provides concurrency in operation

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
23
Q

Memory location

A

the memory consistts of many millions of storage cells each of which can store a bit of data having values 0 or 1 the memory is organized so that a a group of n bits can be stored or retrived in a single basic operation
memory of a compouter can be schematically represented as a collection of words

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
24
Q

Word

A

group of n bits where n is the word length

mordern computers have word length of 16 to 64

if the word length of a computer is 32 bit signed number of four ASCII encoded charecters each occuppy 8 bits

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
25
Q

Memory address

A

accessing the memory to store or retrive a single item of information either a word or a byte requires distinct names or addresses for each location

its customary to use numbers from 0 to 2^k - 1 for some suitable value of K

thus the memory can have upto 2^k addressable locations

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
26
Q

Big Endian and little endian assignments

A

There are 2 ways thatm byte address can be assigned accross words
the name big endian is used when lower bytes addressses are used for the more significant bytes of the word(leftmost)

the name little endian is used where the lower byte addresses are used for the less significant bytes of the word (rightmost)

both are used in commerical machies

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
27
Q

Memory Operation

A

2 basic operations
READ transfers a copy of a the contents of a specific memor location to the processor
the memory contents remain unchanged
to start the read the process the address of the dsired location and request for its cotents to be read

Write transfers an item of info from the process to a specific memory location overwriting the former contents of that location

How well did you know this?
1
Not at all
2
3
4
5
Perfectly
28
Q

register transfer noations

A

the transfer of info from one location in the computer to another
possible locations are memory locations processor registers or registers in the I/O sub system
right hand side of RTN denotes a value and left hand side holds the location

eg:

R2-> r1 +r3
loc<- R2

29
Q

[LoC]

A

contents on Loc(brackets denote conents of the location Loc)

30
Q

Assembly language notation

A

notation to represent machine instructions and programs

example:
Load R2, Loc
Load dest,source

Add R1,R2,R3

in the above examples we used dthe english words load and add to denote the required operations

31
Q

Differnt types of instructions

A

at the start of execution of a program all instruictions and data used in the program are stored in the memory of the computer

Store source,dest
load dest,source
‘Add dest,source,source

32
Q

instruction execution

A

executing a given instruction is a 2 phase procedure

in the first phase called instruction fetrch the instruction is fetched from the memory location whose address is in the PC

this instruction is then placed in IR in the processor

at the start of the next phase called instruction execute the instruction is examed to determine which instruction is to be performed and what operands are used and then the specified opeartion is executed by the processor

33
Q

Branching

A

its a type of instruction taht a loads a new address into the pc as a resuslts the processor fetches and executes the instruction

34
Q

Types of addressing mode

A

indicates that its a immediate value

1 Register mode- the operand is the content of a processor register, name of the register is given in the instruction

eg:clear r1
move r1,r2

2 Absolute/direct mode - the operand is in memory location , the address of this location is given explicity in the instruction

eg: Mov Loc,R2

3 Immediate mode

The operand is given explicityly in them instruction

4 Indirect mode- The effective address is the conent of a register ‘
() - indicates the indirect mode similar to a pointer

eg:Add (R1),Ro

Index mode
the effective address of teh operand is generated by adding a constatnt value to the contents of a regiwster

EA = X + [r]

Relative mpde
the effiective address is determine by the index mode using the pc in place of GPR

the relative mode basicaly represents as X(PC) -> x->[PC]

auto increment and decrement mode the effictive address of the operand is the contents of a register specified instruction
after accessing the operand the contents of the regiters are automatically incremented to point to the next item in a last
(R)+
increment 1 for 8 bits 2 for 16 etc

after accessing the operand the contents of the regiters are automatically decremented and then used as effective address of the operand \
in a last
-(R)

34
Q

Register transfer Logic

A

to describe a digital system in terms of functions such as adder decoder and registers a mehtod called register transfer is used
in this registers are selected as primitive components of the system

35
Q

Compoentns of digital system

A

set of registers in the system and thier functons

the binary coded info stored in the register

operation performed on the info stored on the register

the control functions that initiate the sequence of operations

36
Q

Micro operations

A

operation performed on the data stored in registers are called micro opertaions
the result of operation may replace the previous binary information of a register

37
Q

Types of micro operations

A

Inter register transfer - it doesnt change the content when binary info moves from one register to another

Arithemethic operations - it performs arithemetic operation on numbers stored on register

Logical operation - performs logical AND OR operataions on indiviual pairs of bits

Shift operations - specify operations for shift registers

38
Q

Types of registers

A

R1/A process regster(8 bit) MAR PC IR status

39
Q

SHift operations

A

used for serial transfer of data

3 types of shift
arithemetic - keeps the MSB the same even after shift for right shift for left its normal shift
circular - CIL and CIR
logical - SHL and SHR

40
Q

Processor Unit

A

part of digital computer that implements the operations in the system
includes no of registers and digital functios that implement
AL shift and transfer microoperations

41
Q

CPU

A

processor unoit combined with control unit that supervises the sequnce of micro operation

all computer implements operations by a sequence of micro operations

processoer part of cpu is referred as data path of cpu bcz the operation forms that path for data transfers b/w registers in the unit

paths are controlled by means of gate

42
Q

Processor organization

A

different methods of organizing processor unit are

bus organization
registers in PU are connected thru common buses and arranged as a small memory unit
each register is connected to two multiplexeeers to form bus a nd b (mux selects input registers)
selection lines of the multiples selects one register for bus a and b
function selected by alu operation is performed
shift microoperations are peformed by the shifter (transfer of ALU to bus S)
result goes thru the output bust s into the input of all the registers
the destination register that recives info from output bus is selected by decoder

ScrathPad memory
the register in pu can be enclosed in a small location called scratchpad memory
cheaper -less wires
single register in a group is slected by giving addy to memory unit

Source is selected by specifiying the corresponding word address and activating the memory read

its manipulated in alu and shifter
the reult of the operation is transfered to the memory register by specifiying address and activating memory write

2 port memory
3 seperate addy lines to select 2 words of memory simultaneously
2 source registers are read at the same time
if destination register is same source register then the micro operation can be done i one clock
when enabled me the destination will be set as b
the clock input controls the memory read and write thru WE

Accumulator
its a sepearte register in some processor unit for addition
abbrivation is A or AC
first number is added to 0 and sum is transfered to AC
secondn umber is added with number in accumulator and newly formed sum replaces the previous accumulator value

43
Q

ALU (design)

A

its a digital circuit that performs arithemetic and logic operations
has a number of select lines to select a partifcular operation in the unit
selections are decoded within the alu meaning k lines can serve 2^k distince operations

mode select i/p operation choose b/w logical and arithemetic operations (0 arithermetic and 1 logical)

2 function selects s1 and s0 secify the operation to be generated

Arithemetic Unit
basic section of arithemetic section of an ALU is parallel adder
pareallel adder is constructed with number of full adder circuits connected in cascade
by controlling the inputs to the parallel adder we can obtain different types of arithemetic operations

opearation in parallel adder

F=A+B
f=A+B+1 add with carry
F=A+B’ a plus 1’s comp of b
F=A+B’+1 Subtraction
F=A+0+0 transfer A
F=A+0+1 increment A
F=A+ all 1’s +0 = A-1 = decrement A
F=A+ all 1’s +1 = transfer A

Logic circuit
since all logic operations can be made using and nor and not
since we employ 2 selection lines we can select 4 operations so we also used XOR function for the logic design

ALU the logic circuit can be combine with arithemetic circuit to produce one ALU

44
Q

Status register

A

its a hardware regiuster that contains information about the state of the processor

its some time convenient to supplement the ALU with a status register wheere these status bit conditions are stored for further analysis

status bits are someitmes called flag bits or conditional codes
the four status bits are symbolized by ZVCS

The bits are set on cleared as a result of an operation performed in ALU

45
Q

Multiplication of unsigned numbers

A

the product of 2 unsigned n digit numbers can be accommodated in 2 n digits

46
Q

Array multipleer

A

binary multiplication of unsigned operands can be implemented in a combinational two dimensonal logic array
the main componenet of each cell in a FA
the and gaete i each cell determines whether multiplicant mj is added to the incoming partial product bit based on the value of the multipleier bit Qi

47
Q

Booths algo rithm

A

generates a 2n-bit product and treats both + ve and -ve 2’s compliment n bit operands uniformaly

Steps
Multiplicant is placed in M and Multiplier in Q
register A is set to 0
Q-1 is also set to =
count = n number of bits
compare Q and Q1
if 00 and 11 no operation
01 A+M
10 A-M

ASHR

48
Q

Data

A

discrete elements of information that are manipulated by microoperation

49
Q

Logic desgin

A

process for deriving the digital circuits that perform data processing and the digital circuits tat provide control signals

50
Q

One flipl flop per state method

A

uses one flip flop per state in the control sequenctial circuit
only one ff is active at a time other are cleared
one bit propagates from one ff to another under the control of decision logic
uses maximum no of FFs one for each state

advantages
simplicity
saves desin effory
operational simplicity

disadvantage
high system cost since more FFs are used

method is also called ring counter controller

51
Q

Sequnce Register and decoder method

A

Uses a register to sequnce the control states
register is decoded to provide one o/p for each state

52
Q

PLA control

A

the external sequnce register establishes the present state of the control circuit
the PLA outputs determine which micro operations should be initiated depending on the external input conditions and the present state of the sequnce register
at the same time pla determies next state of sequence register

53
Q

Micro program control

A

the control variable cna be represented by a string of 1’s and 0’s called control word

the control words can be programmed to inititate the various componenets in the system in an organized manner
a control unit whose control variable are stroeg in a memry is called a micro programmed control unit

each word of memory is called mincroinstruction
sequnce of micro instructions is called micro program

54
Q

Accessing of I/O devices

A

Some addresses in the addresss space of the processor are assigned to the i o locations rather than to the main memory
these locations are usually implemented as bit storage circuits oragnized in the form of registers refered to as i/o registers
since the i/o device and memory share the same address space this arrangement is called memory mapped I/O
with memory mapped i/o any manchine instruction that can access memory can be used to transfer data from or to i/o devices

55
Q

I/O device interface

A

an i/o device is connected to the interconnection network by using a circuit called device interface
which provides the means for data transfer and for the exchange of status and control info needed to facilitate the data transfers and govern the operation of the device
ineterface includes some registers that can be accessed by the processor to ,
serve as a buffer for data transfers
hold info about the current status of the device

56
Q

programmed controlled I/O

A

various methods to access and operate these devices are

polling method the processsor repeatdly checs a status flag to achive the required synchronization b/w processor and i/o device

Interrupt method= synch is achived by hanging i/o device send over a singal ver the bus when its ready for data transfer

DMA- direct memory addy - technique for high speed I/p device here the device interface transfer data directly to or from the memory without continous involvement by the processor

57
Q

ISR

A

routine executed in respone to an interrupt request

assume that an interrupt arrive duing the execution of instruction i
the processor first comples execution of i
then it loads the pc with the address of hte first ISR
ttherfore when interrupt happens current contents of pc must be kept in a temp storageinter

58
Q

Interrupt acknowledgement

A

a special control signal sent by the processor to inform the device that its interrupt signal has been recognized and that it may remove its interrupt req signal

59
Q

Interrupt latency

A

the delay b/w the time an interrupt is recived and start of ISR

59
Q

vectored interrupts

A

allocates permanently in an area in the memory to hold the addresses of ISRs

59
Q

enabling and disabling interrupts

A

the processor has a status register (ps which contains infpoo about its current state of operation and it contains a bit called IE which deals with disabling interru;pts

59
Q

Interrupt nesting

A

organized in priority structure

59
Q

Procedure of interrupt handling

A

the device raises a interrupt request

the processor intrupts the program currently being executed and saves the contetens of PC and PS registers

interrupts are disabled by clearing IE bit in the ps to 0

the action req bny the interrupt is performed by the ISR and during which the device is informed that its req has been recognized and in response it deactivates the interrupt request signal

Upon completion of the ISR the saved contents of the PC annd PS registers are restored and execution of interrupted program is resumed

59
Q

handling multiple devices

A

based on interrupt priority

59
Q

Pipelining

A

Pipelining is a technique used in computer architecture to improve the performance of a processor by increasing the number of instructions that can be executed in a given time. It is a “logical pipeline” that allows the processor to perform an instruction in multiple stages, rather than completing one instruction before moving on to the next.

How Pipelining Works

The pipelining process can be broken down into several stages:

Fetch: The processor retrieves an instruction from memory.
Decode: The instruction is decoded and the necessary information is extracted.
Execute: The instruction is executed.
Writeback: The results of the instruction are written back to memory or registers.

60
Q

DMA

A

DMA Controller is a type of control unit that works as an interface for the data bus and the I/O Devices. As mentioned, DMA Controller has the work of transferring the data without the intervention of the processors, processors can control the data transfer. DMA Controller also contains an address unit, which generates the address and selects an I/O device for the transfer of data. Here we are showing the block diagram of the DMA Controller.

61
Q

Hardwired control

A

can be assumed as a sequenctial digital system design
as per the contents of IR the external I/ps and states are selected
the outputs are the control signals

hardwired design of control system assumes the design of data flow as per the wiring of the components

the design of the hardwired control is carried out in 5 steps:

1:statement of the problem : addition and subtraction of 2 fixed point binary nuymbers represented in sign magnitude form

the addition fo 2 numbers stored in registors of finite length may result in a sum that exceeds the storage capacity of the register by one bit

the extra bit is said to cause an overflow
FFs are used to store the overflow bit

2: initial equipment config is assumed

As and Bs registers to store the sign bit E for overflow
B and A register to store its magnitude
ALU
Control Logic