










Study with the several resources on Docsity
Earn points by helping other students or get them with a premium plan
Prepare for your exams
Study with the several resources on Docsity
Earn points to download
Earn points by helping other students or get them with a premium plan
Community
Ask the community for help and clear up your study doubts
Discover the best universities in your country according to Docsity users
Free resources
Download our free guides on studying techniques, anxiety management strategies, and thesis advice from Docsity tutors
Unit 3rd computer architecture and organization
Typology: Study notes
1 / 18
This page cannot be seen from the preview
Don't miss anything!
Central Processing Unit : Introduction, General Register organization, Stack Organisation, Instruction Formats, Addressing Modes, Data transfer and manipulation, Program Control. Central Processing Unit : The full form of CPU is Central Processing Unit. It is a brain of the computer. All types of data processing operations and all the important functions of a computer are performed by the CPU. It helps input and output devices to communicate with each other and perform their respective operations. It also stores data which is input, intermediate results in between processing, and instructions. What is a CPU? A Central Processing Unit is the most important component of a computer system. A CPU is a hardware that performs data input/output, processing and storage functions for a computer system. A CPU can be installed into a CPU socket. These sockets are generally located on the motherboard. CPU can perform various data processing operations. CPU can store data, instructions, programs, and intermediate results. History of CPU Since 1823, when Baron Jons Jakob Berzelius discovered silicon, which is still the primary component used in the manufacture of CPUs today, the history of the CPU has experienced numerous significant turning points. The first transistor was created by John Bardeen, Walter Brattain, and William Shockley in December 1947. in 1958, the first working integrated circuit was built by Robert Noyce and Jack Kilby. The Intel 4004 was the company’s first microprocessor, which it unveiled in 1971. Ted Hoff’s assistance was needed for this. When Intel released its 8008 CPU in 1972, Intel 8086 in 1976, and Intel 8088 in June 1979, it contributed to yet another win. The Motorola 68000, a 16/32-bit processor, was also released in 1979. The Sun also unveiled the SPARC CPU in 1987. AMD unveiled the AM386 CPU series in March 1991. In January 1999, Intel introduced the Celeron 366 MHZ and 400 MHz processors. AMD back in April 2005 with it’s first dual-core processor. Intel also introduced the Core 2 Dual processor in
Different Parts of CPU Now, the CPU consists of 3 major units, which are:
Note: CPU may contain more than one ALU and it can be used for maintaining timers that help run the computer system. What Does a CPU Do? The main function of a computer processor is to execute instruction and produce an output. CPU work are Fetch, Decode and Execute are the fundamental functions of the computer. Fetch: the first CPU gets the instruction. That means binary numbers that are passed from RAM to CPU. Decode: When the instruction is entered into the CPU, it needs to decode the instructions. with the help of ALU(Arithmetic Logic Unit) the process of decode begins. Execute: After decode step the instructions are ready to execute Strore: After execute step the instructions are ready to store in the memory. Types of CPU We have three different types of CPU: Single Core CPU: The oldest type of computer CPUs is single core CPU. These CPUs were used in the 1970s. these CPUs only have a single core that preform different operations. This means that the single core CPU can only process one operation at a single time. single core CPU CPU is not suitable for multitasking. Dual-Core CPU: Dual-Core CPUs contain a single Integrated Circuit with two cores. Each core has its cache and controller. These controllers and cache are work as a single unit. dual core CPUs can work faster than the single-core processors. Quad-Core CPU: Quad-Core CPUs contain two dual-core processors present within a single integrated circuit (IC) or chip. A quad-core processor contains a chip with four independent cores. These cores read and execute various instructions provided by the CPU. Quad Core CPU increases the overall speed for programs. Without even boosting the overall clock speed it results in higher performance. Registers In Computer Architecture, the Registers are very fast computer memory which is used to execute programs and operations efficiently. but In that scenario, registers serve as gates, sending signals to various components to carry out little tasks. Register signals are directed by the control unit, which also operates the registers. The following list of five registers for in-out signal data storage:
Since a large number of registers are used, thus extra cost is required in this organization. General register CPU organization of two types:
It deletes the data word at the top of the stack to the specified address. It can be implemented as: //transfer the content of SP (i.e, at top most data) //into specified memory location (memory address) <-- SP //Decrement SP by 1 SP <-- SP - 1 Operation type instruction does not need the address field in this CPU organization. This is because the operation is performed on the two operands that are on the top of the stack. For example: SUB This instruction contains the opcode only with no address field. It pops the two top data from the stack, subtracting the data, and pushing the result into the stack at the top. PDP-11, Intel’s 8085, and HP 3000 are some examples of stack-organized computers. The advantages of Stack-based CPU organization – Efficient computation of complex arithmetic expressions. Execution of instructions is fast because operand data are stored in consecutive memory locations. The length of instruction is short as they do not have an address field. The disadvantages of Stack-based CPU organization – The size of the program increases. Note: Stack-based CPU organization uses zero address instruction. Instruction Formats – Introduction: In computer organization, instruction formats refer to the way instructions are encoded and represented in machine language. There are several types of instruction formats, including zero, one, two, and three-address instructions. Here is a brief overview of each:
Postfixed : X = AB+CD+* TOP means top of stack M[X] is any memory location PUSH A TOP = A PUSH B TOP = B ADD TOP = A+B PUSH C TOP = C PUSH D TOP = D ADD TOP = C+D MUL TOP = (C+D)*(A+B)
Advantages: They are simple and can be executed quickly since they do not require any operand fetching or addressing. They also take up less memory space. Disadvantages: They can be limited in their functionality and do not allow for much flexibility in terms of addressing modes or operand types.
M[] is any memory location MOV R1, A R1 = M[A] ADD R1, B R1 = R1 + M[B] MOV R2, C R2 = M[C] ADD R2, D R2 = R2 + M[D] MUL R1, R2 R1 = R1 * R MOV X, R1 M[X] = R Advantages: They allow for more complex operations and can be more efficient than one- address instructions since they allow for two operands to be processed in a single instruction. They also allow for a wide range of addressing modes. Disadvantages: They require more memory space than one-address instructions and can be slower to execute since they require operand fetching and addressing.
Expression: X = (A+B)*(C+D) R1, R2 are registers M[] is any memory location ADD R1, A, B R1 = M[A] + M[B] ADD R2, C, D R2 = M[C] + M[D] MUL X, R1, R2 M[X] = R1 * R Advantages: They allow for even more complex operations and can be more efficient than two- address instructions since they allow for three operands to be processed in a single instruction. They also allow for a wide range of addressing modes. Disadvantages: They require even more memory space than two-address instructions and can be slower to execute since they require operand fetching and addressing. Overall, the choice of instruction format depends on the specific requirements of the computer architecture and the trade-offs between code size, execution time, and flexibility. Addressing Modes – For executing an instruction, data are required. These data may be present in the accumulator (AC) or stored in some location in the memory. There are various ways to specify the address of data or more precisely operands.These are known as addressing modes. The techniques for specifying the address of the operands are known as addressing modes. The address of an operand is known as the effective address. Some common addressing modes are listed below.
What is Data Transfer? In computer architecture, data transfer refers to the movement of data between different components within a computer system. These components can include the central processing unit (CPU), memory, storage devices, and input/output (I/O) devices. Data transfer within a computer system occurs through the use of a bus, which is a set of communication lines that allow different components to communicate with each other. There are several types of data transfer that can occur within a computer system. These include:
Merging : Merging data involves combining two or more datasets into a single dataset. This can be useful for combining data from different sources or for combining data from different time periods. Transforming : Transforming data involves altering the values of one or more fields in a dataset. This can be useful for cleaning or standardization of data or for converting data from one format to another. Extracting and Summarizing: Extracting and summarizing data involves selecting and summarizing specific data points from a larger dataset. This can be useful for generating reports or for creating more manageable datasets for further analysis. Steps for Data Manipulation There are several steps involved in data manipulation which may vary depending on the specific goals requirements of the task at hand. In general, the steps involved in data manipulation can include: