Professional Documents
Culture Documents
OSCA
OSCA
Functions of Computer
- Data Processing: Computer should be able to process data
- Data storage: Computer must store dara at a certain data
- Data movement
- Data control
Note: Memory
is simply a combination od data and address.
Under
CPU => ALU-Control unit-Regidter-Bus
Top level structure of computer
- consists of CPU, Manin memory, input-output and Bus.
- CPU controls the operation of computer and perform its data processing function.
- Main memory stores instructions. It contains RAM and ROM and instruction is
stored by ROM.
- Input-output units moves data between the computer and its external environment.
- Bus is a system interconnection. Connects and comminicates CPU, main memory and
input-output.(group of wires connecting all things together)
- Three types of Bus: 1) Address Bus: By adding addres we can only go to memory.
2) Data Bus: : It helps to connect with data.
3) Control Bus: It controls signals.
Design performance of Computer
- Usually tradeoff standard, cost, memory capacity, latency and throughput.
tradeoff = samjhauta
- Other consideration such as features, size, weight, reliability, expandability
and power consumption also.
- Performance is measured in terms of clock speed (processor frequency).
- Performance can also be measured with the amount of cache memory.
- Other factors such as main memory capacity, Bus speed, Parallel processing, power
consumptions etc.
Computer Functions
- Execution of program which consists of set of instructions stored in memory.
- Instruction processing consist of two steps:
- PROCESSING FETCHES AND DECODE INSTRUCTION FROM MEMORY. fetch: to read
the instruction from the memory address.
decode: to identify the
function or task of the instruction.
- Processor executes each instruction. execute: to
run the instruction to obtain output.
- The processing time requires for single instructions called instruction cycle.
Bus Interconnection
- Is a communication path way that connects two or more devices.
CHAPTER 3
DATA REPRESENTATION
Introduction:
- Digital computer is a digital system that perform various computational tasks.
- All the signals are transferred digitally in computer as binary.
- The word "digital" implies that the information in computer is represented by
variables that take discrete values.
- For e.g; 0, 1 provide 2 discrete values.
- It is easier to realize computing machine with a logic that has only two states.
0-1 = bits
8 bits = 1 byte
2 bits = 1 word
Number Systems
a)Non positional number system: romans
b) Positional number system: binary, octal, hexa, decimal
BCD Codes
- Binary Coded Decimal or BCD is simply the 40bit binary code representation of a
decimal digit with each decimal digit replaced in the integer
and fractional parts with its binary equivalent.
- It is dissappeared or not in use because it's 1 digit is equal to 4 bit so it is
not relevant.
For e.g; (10)#base 10 = (1010)base 2 in binary
In BCD (10)#base 10 = (00010000)base BCD which is not correct.
XS3
NOTE: Paila BCD jhikni ani 3 le plus gardini tyo vanyeko 0011.
ACII Code
- stands for American Standard Code for Informantion Interchange
- It's a 7-bit character code where every single bit represents a unique character.
- It used to send thw signals from one base to another base in military forces.
Complements
- It is used in the digital computers in order to simplify the subtraction
operation and for the logical manipulation.
- For each radix-system (radix represents base of number system) there are two
types of complements.
- Radix complement referred to as the r's component.
- Diminished radiz component is referred to as (r-1)'s complement.
Binary Complement
- There are 2 components: 1's component and 2's component.
- To change binary into 1's component change 1 to 0 and 0 to 1.
- To change binary into 2's component chanfe the binary into 1's component and then
add 1.
9's complement: r = 10 - 1
= 9
Formula: (10^n - 1 - N)
n is equal to the number of digits.
New chapter
Install Linux Inside Windows Using Virtual Box
- Virtual Box is free and open source virtualization software from Oracle.
- it enables you to install other operating systems in virtual machines.
Virtual box
https://www.virtualbox.org/
ISO for Linux
https://www.ubuntu.com/desktop
LOGIC GATES
Definition:
- Logic gates are the block of hardware's that produces the certain output when
input condition are satisfied.
- Basic building blocks of any digital system
- It is an electronic circuit having one or more than one inputs and only one
output.
- AND, OR, NOT gates
Truth Table
- It is the table that contains the inputs and outputs.
- The output is the possible combination of all iutputs.
NOT gate
- y = A'
- It is an electronic circuit that produces an inverted version of the input at its
output.
- Also known as inverter.
OR gate
- It is an electronic circuit that gives a high output (1) if one or more of its
inputs are high
- A plus (+) is used to show the OR operation
- It perform logical addition
AND gate
- It is an electronic circuit that gives a high output (1) only if all its inputs
are high
- NOR gate
- The inclusive NOR (Not-OR) gate has an output that is normally
Universal gate
- NAND logic gate and BIR logic gate are universal logic gates.
- Individual logic gates can be connected together to form a variety.
- Derrived gates
- Buffer gate : j input diyo tei output aauxa (input == output)
- NAND gate:
- NOR gate
- XOR gate
- X-NOR gate
Memory Capacity
memory - semiconductor device/transistors
stores data and information
DRAM (Dynamic RAM)
- It is read write memory.
- Most common, cheap, less electric power, less heat, smaller space
- Volatile: must be refreshed (recharged with power) 1000's of times each second
ROM
- Read-only Memory
- ROM is not volatile which means after the shutdown of computers its memory
doesn't lost.
EEPROM
- Electrically Erasable Programmable ROM
- It means by using electric circuit we can erase ROM
Fetch-Execute Cycle
- Two-cycle process because both instructions and data are in memory
Fetch
- It reads the instructions from the memory.
Decode
- to find out the functions of instructrions.
Execute
- To show the result of the functions of instructions.
BUS
- The physical connection that makes it possible to transfer data from one location
in the computer system to another.
- Processor, ALU lai interconnect garni lai internal bus vaninxa.
- Sabai vanda important bus Systmem Bus.
It contains Address Bus
Data Bus
Control Bus
- Input/Output Bus- It is used to connect I/O devices and processor.
Bus Characteristics
- Number of separate conductors
- Data width in bits carried simultaneously
- Addressing capacity
- Distance between two endpoints
- Lines on the bus are for a single type of signal or shared
- Throughput - data transfer rate in bits per second
NOTE:
Processing fast input output ma slow huda handshaking use garinxa.
CPU khojyeko data cache memory ma xaina vanye miss and vetiyo vanye chai meet.
Types
Active matrix LCD
- One transistor per cell
- More expensive
- Brighter picture
OPERATING SYSTEM
Definition
- It is the type of system software or collection of computer programs which
integrate the hardware resources of the computer.
Note: The operating system itself consists of hundreds or thousands of programs,
each specialized for particular OS tasks.
ConCurrent Operations
- Multitasking
- Multiprocessing
Scheduling
- High-level scheduling: Placed in queue based on level of priority and eventually
executed
- Dispatching: Actual selection of process(es) that will be executed at any given
time
Preemtive: euta kei kam vai rakhda tei bela aru kam aauda tyo kal le vai
rako kam ko process lai rokyera aafno kam garni