Module 1 Flashcards
Computer Architecture
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)
Fuctional units of a computer
computer system is divided into 5 separate units for its operation:
Input Unit
Output Unit
ALU
Control Unit
Memory
Input and output unit
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
Memory Unit
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
ALU
This unit performs the actual processing of data and instructions
Control Unit
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
CPUt
ALU CU and MU of a computer system are jointly know as the CPU its also know as the brain of the computer system
Basic operational concepts
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
Basic operational concepts(Operating steps)
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
MAR
holds the address of the location to be accessed
Bus structures
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
Data bus
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
Computer architecture Vs Organization
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
Primary memory Vs secondary memory
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
Load R2,LOC
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
ADD R2,R5 ,R1
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
Store R4,LOC
coptes the operand in R4 to memory location LOC
Contents of processor
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
Interrupt
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
Address bus
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
Control bus
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
Types of bus structures
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
Memory location
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
Word
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
Memory address
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
Big Endian and little endian assignments
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
Memory Operation
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