coanote
coanote
1)Memory- Used to store programs and data for computer. Instructions are taken by processor,
decoded and executed. Similarly, data is also stored in memory, operation is performed on it and
results are stored in memory.
It consists of memory address register and memory data register which are used to get data to and
from memory.
2)Processing unit has arithmetic logic unit, that performs arithmetic and logical operations .Temp
refers to temporary storage by registers. Registers store the operands and the result of operations
3)Control unit controls the flow and execution of program. Consists of instruction register (contains
current instruction) and program counter(contains address of next instruction to be executed).
4)Input./output are devices used to accept input from user and display the result back to the
computer.e .g mouse, monitor etc.
Q2)8086 features
2)20 bit address bus that can access upto 2^20 memory locations(1mb), also has 16 bit databus
9) It can prefetches up to 6 instruction bytes from memory and queues them in order to speed up
instruction execution
Q3)8086 architecture
- The BIU handles all transactions of data and addresses on the buses for EU.
- The BIU performs all bus operations such as instruction fetching, reading and writing operands for
memory and calculating the addresses of the memory operands. The instruction bytes are
transferred to the instruction queue.
1) EU:
1)ALU- 16 bit unit that can perform a variety of arithmetic and logical operations like ad, subtract,
and,or,not etc.
2)Flag register is a 16 bit register with each bit corresponding to a flip flop. Each bit indicates some
condition produced by the execution of some instruction.
3) General purpose registers:
There are 4 general purpose 16 bit registers. AX,BX,CX,DX. They can be used as 16 bit registers or as
8 bit individual registers (AH, AL,BL,CH etc). They can also be used as 32 bit registers like AX can be
used with DX for a 32 bit operand.
AX: It is a 16 bit accumulator that can also be used as separate 8 bit registers of AH and AL. It stores
the operands and results of operations like multiplication,division. Addition and subtraction can be
used with any register but are more efficient with accumulator.
CX:Count register. Used for looping instructions, shift and rotate instructions. Also used with string
instructions.
DX: data register, used with AX for word sizrs mul and div operatons when operand is greater than
register. (32 bit). Also, holds port number for IN and OUT instructions.
Stack pointer
BP: Base Pointer– Primarily used to access data on the stack– Can be used to access data in other
segments
SI: Source Index register and DI (destination index register)– is required for some string operations
2)BIU:
This queue permits pre-fetch of up to 6 bytes of instruction code. Whenever the queue of the BIU is
not full, it has room for at least two more bytes and at the same time the EU is not requesting it to
read or write operands from memory, the BIU is free to look ahead in the program by pre-fetching
the next sequential instruction. 17
Segments-
– The stack segment is used as a stack and it is used to store the return addresses
- The data and extra segments are used for storing data byte
Q3) Organization vs architecture
Q4)
a)Register addressing
b)Immediate addressing
c)Direct addressing
SISD: SISD machines executes a single instruction on individual data values using a single processor.
SIMD: -An SIMD machine executes a single instruction on multiple data values simultaneously
using many processors.
- Since there is only one instruction, each processor does not have to fetch and decode each
instruction. Instead, a single control unit does the fetch and decoding for all processors.
MISD:
-The result from one processing unit is input to next processing unit.
-It is not clear till now whether such machine exists or not.
MIMD:
- Each processor must include its own control unit that will assign to the processor
Q6) InstructionCycle
A program that exists inside a computer's memory unit consists of a series of instructions. The
processor executes these instructions through a cycle for each instruction.
Memory address registers(MAR) : It is connected to System Bus address lines. It specifies the
address of a read or write operation in memory.
Memory Buffer Register(MBR) : It is connected to the data lines of the system bus. : It is connected
to the system bus Data Lines. It holds the memory value to be stored, or the last value read from the
memory.
Execute:
Better version:
1) Fetch
• The Program Counter (PC) holds the address of the next instruction.
• The Control Unit (CU) fetches the instruction from memory using the address in MAR.
• The instruction is then transferred to the Instruction Register (IR) for decoding.
2) Decode
• Addressing modes (direct, indirect, register, etc.) determine how operands are accessed.
• Control flow changes (like JUMP, CALL, or RETURN) modify the PC to point to a different
instruction.
Q7)Hub,repeater,switch,bridge,gateway
1. Repeater
2. Hub
3. Bridge
Connects two or more network segments, filtering traffic based on MAC addresses.
Operates at the Data Link Layer (Layer 2), though it interacts with the Physical Layer (Layer 1).
4. Switch
5. Router
Uses routing tables to determine the best path for data packets.
Operates at the Network Layer (Layer 3), but also interacts with the Physical (Layer 1) and Data Link
(Layer 2) layers.
6. Gateway
Can operate at any layer of the OSI model, depending on the function (commonly at Layer 7 -
Application Layer for protocol conversion).
Q8)IP4 classful