From 9f3ad71a170ea0dd9408666c497744b0ce32f81b Mon Sep 17 00:00:00 2001 From: Uma Dhatri <97341880+umadhatri@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:45:37 +0530 Subject: [PATCH 1/7] Added a section about the CPU --- readme.md | 21 ++++++++++++++++++++- 1 file changed, 20 insertions(+), 1 deletion(-) diff --git a/readme.md b/readme.md index e2b94109..7cbe50f0 100644 --- a/readme.md +++ b/readme.md @@ -64,9 +64,28 @@ Binary is still the primary language for computers and used with electronics and -## [Central Processing Unit(CPU)](Not-Added) +## [Central Processing Unit(CPU)](https://www.geeksforgeeks.org/central-processing-unit-cpu/) A central processing unit (CPU) is an important part of every computer. The CPU sends signals to control the other parts of the computer, almost like how a brain controls a body. The CPU is an electronic machine that works on a list of computer things to do, called instructions. It reads the list of instructions and runs (executes) each one in order. A list of instructions that a CPU can run is a computer program. A CPU can process more than one instruction at a time on sections called Cores. A CPU with four cores may process four programs at once. +The CPU itself is made of three main components. They are: +1) Memory or storage Unit +2) Control Unit +3) Arithmetic and Logic unit (ALU) + +## Memory or Storage Unit: +The memory or storage unit stores vital information such as instructions, data, and intermediate results. The memory unit is responsible for transferring information to other units of the computer when needed. It is also known as an internal storage unit or the main memory or the primary storage or Random Access Memory (RAM) as all these are storage devices. + +## Control Unit: +The control unit controls the operations of all parts of the computer but does not carry out any actual data processing operations. Its functions include: +a) controlling the transfer of data and instructions among other units of a computer. +b) managing and co-ordinating all the units of the computer. +c) obtaining the instructions from the memory, interpreting them, and directing the operations of the computer. +d) responsible for the communication with peripheral devices such as input and output devices. + +## Arithmetic and Logic Unit (ALU) +The ALU, as can be seen, is made of two sections. They are: +1) The Arithmetic Unit: It is responsible for the arithmetic operations such as addition, subtraction, multiplication and division. Any complicated actions are done by repeating the same steps over and over to achieve the final result +2) The Logic Unit: As the name gives it away, it performs all the logical operations such as selecting, comparing, matching and merging of data ## [Registers, Cache and RAM](Not-Added) From d0d87a325da5f83e834a2730d43ee64d87070f70 Mon Sep 17 00:00:00 2001 From: Uma Dhatri <97341880+umadhatri@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:53:24 +0530 Subject: [PATCH 2/7] Should add information about CPU --- CPU | 1 + 1 file changed, 1 insertion(+) create mode 100644 CPU diff --git a/CPU b/CPU new file mode 100644 index 00000000..8b137891 --- /dev/null +++ b/CPU @@ -0,0 +1 @@ + From 03115049aad4c1d851d8ce99258168344ea5c772 Mon Sep 17 00:00:00 2001 From: Uma Dhatri <97341880+umadhatri@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:54:17 +0530 Subject: [PATCH 3/7] Updated information for CPU --- readme.md | 15 --------------- 1 file changed, 15 deletions(-) diff --git a/readme.md b/readme.md index 7cbe50f0..d856eb76 100644 --- a/readme.md +++ b/readme.md @@ -72,21 +72,6 @@ The CPU itself is made of three main components. They are: 2) Control Unit 3) Arithmetic and Logic unit (ALU) -## Memory or Storage Unit: -The memory or storage unit stores vital information such as instructions, data, and intermediate results. The memory unit is responsible for transferring information to other units of the computer when needed. It is also known as an internal storage unit or the main memory or the primary storage or Random Access Memory (RAM) as all these are storage devices. - -## Control Unit: -The control unit controls the operations of all parts of the computer but does not carry out any actual data processing operations. Its functions include: -a) controlling the transfer of data and instructions among other units of a computer. -b) managing and co-ordinating all the units of the computer. -c) obtaining the instructions from the memory, interpreting them, and directing the operations of the computer. -d) responsible for the communication with peripheral devices such as input and output devices. - -## Arithmetic and Logic Unit (ALU) -The ALU, as can be seen, is made of two sections. They are: -1) The Arithmetic Unit: It is responsible for the arithmetic operations such as addition, subtraction, multiplication and division. Any complicated actions are done by repeating the same steps over and over to achieve the final result -2) The Logic Unit: As the name gives it away, it performs all the logical operations such as selecting, comparing, matching and merging of data - ## [Registers, Cache and RAM](Not-Added) Registers are small amounts of high-speed memory contained within the CPU. They are used by the processor to store small amounts of data that are needed during processing. A CPU may have several sets of registers that are called Cores. Larger amounds of data may be stored in Cache (pronounced like cash). This is very fast memory that is located on the same integrated circuit as the registers. It is used for data frequently needed as the program runs. Still larger amounts of data may be stored in RAM. These are integrated circuts not part of the CPU. RAM stands for random-access memory. It is essentially data and instructions that have been moved from disk storage and held until the processor needs it. From 175dfadad0c7e30070a7adad6b4255511db976b3 Mon Sep 17 00:00:00 2001 From: Uma Dhatri <97341880+umadhatri@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:54:43 +0530 Subject: [PATCH 4/7] Added information about the CPU --- CPU | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/CPU b/CPU index 8b137891..09a02097 100644 --- a/CPU +++ b/CPU @@ -1 +1,15 @@ +## Memory or Storage Unit: +The memory or storage unit stores vital information such as instructions, data, and intermediate results. The memory unit is responsible for transferring information to other units of the computer when needed. It is also known as an internal storage unit or the main memory or the primary storage or Random Access Memory (RAM) as all these are storage devices. + +## Control Unit: +The control unit controls the operations of all parts of the computer but does not carry out any actual data processing operations. Its functions include: +a) controlling the transfer of data and instructions among other units of a computer. +b) managing and co-ordinating all the units of the computer. +c) obtaining the instructions from the memory, interpreting them, and directing the operations of the computer. +d) responsible for the communication with peripheral devices such as input and output devices. + +## Arithmetic and Logic Unit (ALU) +The ALU, as can be seen, is made of two sections. They are: +1) The Arithmetic Unit: It is responsible for the arithmetic operations such as addition, subtraction, multiplication and division. Any complicated actions are done by repeating the same steps over and over to achieve the final result +2) The Logic Unit: As the name gives it away, it performs all the logical operations such as selecting, comparing, matching and merging of data From cccc90d9c1fb3a8f0e79a81ea26d2c967d6601cc Mon Sep 17 00:00:00 2001 From: Uma Dhatri <97341880+umadhatri@users.noreply.github.com> Date: Sat, 1 Oct 2022 18:59:39 +0530 Subject: [PATCH 5/7] Update partsOfACPU.md --- CPU => CPU/partsOfACPU.md | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename CPU => CPU/partsOfACPU.md (100%) diff --git a/CPU b/CPU/partsOfACPU.md similarity index 100% rename from CPU rename to CPU/partsOfACPU.md From 1acd1ec5dfa9e82fec2ea59f13afee7337ce529b Mon Sep 17 00:00:00 2001 From: Uma Dhatri <97341880+umadhatri@users.noreply.github.com> Date: Sat, 1 Oct 2022 19:07:00 +0530 Subject: [PATCH 6/7] Changed the name --- CPU/{partsOfACPU.md => readme.md} | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename CPU/{partsOfACPU.md => readme.md} (100%) diff --git a/CPU/partsOfACPU.md b/CPU/readme.md similarity index 100% rename from CPU/partsOfACPU.md rename to CPU/readme.md From 7afce4f9908b56ffe6ddba3b6ea07a1334f9be3c Mon Sep 17 00:00:00 2001 From: Uma Dhatri <97341880+umadhatri@users.noreply.github.com> Date: Sat, 1 Oct 2022 19:09:04 +0530 Subject: [PATCH 7/7] CPU now links to readme in CPU folder --- readme.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/readme.md b/readme.md index d856eb76..95966eab 100644 --- a/readme.md +++ b/readme.md @@ -64,7 +64,7 @@ Binary is still the primary language for computers and used with electronics and -## [Central Processing Unit(CPU)](https://www.geeksforgeeks.org/central-processing-unit-cpu/) +## [Central Processing Unit(CPU)](https://github.com/umadhatri/computer_science/tree/main/CPU) A central processing unit (CPU) is an important part of every computer. The CPU sends signals to control the other parts of the computer, almost like how a brain controls a body. The CPU is an electronic machine that works on a list of computer things to do, called instructions. It reads the list of instructions and runs (executes) each one in order. A list of instructions that a CPU can run is a computer program. A CPU can process more than one instruction at a time on sections called Cores. A CPU with four cores may process four programs at once. The CPU itself is made of three main components. They are: