<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[BICS1302-Study Reflection - Medium]]></title>
        <description><![CDATA[This publication is created for Into to Computer Organisation writers to share their weekly reflections while so they can build the content writing skill while learning. - Medium]]></description>
        <link>https://medium.com/bics1302-stury-reflection?source=rss----df8be947a5c1---4</link>
        <image>
            <url>https://cdn-images-1.medium.com/proxy/1*TGH72Nnw24QL3iV9IOm4VA.png</url>
            <title>BICS1302-Study Reflection - Medium</title>
            <link>https://medium.com/bics1302-stury-reflection?source=rss----df8be947a5c1---4</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Tue, 01 Dec 2026 11:48:41 GMT</lastBuildDate>
        <atom:link href="https://medium.com/feed/bics1302-stury-reflection" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[Computer Arithmetic (2418013)(Sect 3)]]></title>
            <link>https://medium.com/bics1302-stury-reflection/computer-arithmetic-2418013-sect-3-641728bd9715?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/641728bd9715</guid>
            <dc:creator><![CDATA[Azrell Hafizy]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 14:27:06 GMT</pubDate>
            <atom:updated>2025-01-21T14:27:06.191Z</atom:updated>
            <content:encoded><![CDATA[<h4>The Arithmetic Logic Unit: Structure and Functionality</h4><p>The ALU is responsible for executing arithmetic and logical operations essential to computer processing. It handles calculations involving integers and floating-point numbers and facilitates decision-making processes via logical operations like AND, OR, NOT, and XOR. Additionally, it performs shift operations to manipulate data efficiently, such as multiplying or dividing by powers of two.</p><p>Data fed to the ALU are stored in temporary locations called registers, which are interconnected by signal pathways. These registers also receive results post-calculation. The ALU’s operations are directed by signals from the control unit, ensuring seamless data transfer in and out of the ALU. Flags, such as the overflow and sign flags, indicate specific operation outcomes.</p><h4>Representation of Integers in Computer Systems</h4><p>The representation of integers, a fundamental aspect of computer arithmetic, involves encoding numbers in binary. This binary system accommodates both unsigned integers (only positive numbers) and signed integers (including negative numbers). Signed integers employ methods like two’s complement for representing negative values. The transformation to two’s complement entails flipping the binary digits and adding one to the least significant bit.</p><h4>Integer Arithmetic: Operations and Rules</h4><p>Binary arithmetic operations, including addition, subtraction, multiplication, and division, adhere to specific rules and methods to ensure accuracy:</p><ul><li><strong>Addition</strong>: An overflow occurs when adding two numbers of the same sign produces a result with a different sign.</li><li><strong>Subtraction</strong>: Involves converting the subtrahend into its two’s complement and performing binary addition.</li><li><strong>Multiplication</strong>: Employs Booth’s algorithm, a systematic method involving initialization, bit evaluation, arithmetic shifting, and iterative computation to determine the product of two binary numbers.</li><li><strong>Division</strong>: The restoring division algorithm calculates the quotient and remainder by iteratively shifting, subtracting, and restoring values.</li></ul><p>I have included a video link on the explanation of on how to complete the integer arithmetic. Make sure to tune in.</p><h4>Booth’s Algorithm for Multiplication</h4><p>Booth’s algorithm exemplifies efficiency in binary multiplication. It uses an accumulator, a multiplier, and a multiplicand alongside a decision mechanism based on specific bit combinations. The process includes right arithmetic shifts and iterations proportional to the number of multiplier bits, culminating in a final product stored in combined registers.</p><h4>Restoring Division Algorithm</h4><p>Binary division is achieved through the restoring division algorithm, which calculates the quotient and remainder of binary values. The method involves iterative left-shifting, subtraction, and restoration steps. If the subtraction produces a negative accumulator, the original value is restored by adding back the divisor. The process ends when all bits of the dividend are processed.</p><h4>Conclusion</h4><p>Understanding the principles of computer arithmetic is crucial for appreciating how modern computers perform calculations and logical operations. The ALU, with its intricate design and capability to process binary data efficiently, remains at the heart of computational functionality. This chapter elucidates key arithmetic concepts and algorithms, offering valuable insights into the computational foundations underpinning contemporary computer architecture.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=641728bd9715" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/computer-arithmetic-2418013-sect-3-641728bd9715">Computer Arithmetic (2418013)(Sect 3)</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Computer Organisation Week 10-Sect 3-[2415077][Faiz Fitri]]]></title>
            <link>https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-10-sect-3-2415077-faiz-fitri-5406fbef0323?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/5406fbef0323</guid>
            <dc:creator><![CDATA[Faiz Fitri]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 11:15:38 GMT</pubDate>
            <atom:updated>2025-01-21T11:15:37.966Z</atom:updated>
            <content:encoded><![CDATA[<p>In Week 9, I learned about Chapter 11, which explains how computers handle numbers and do calculations. The Arithmetic and Logic Unit (ALU) is the part of the CPU that performs math and logic tasks. It works with registers, which are temporary storage spaces, to process data. I also found it interesting how shift operations can multiply or divide numbers by powers of two in such a simple way.</p><p>I learned how computers represent numbers in binary, including unsigned and signed integers. Two’s complement was especially useful as it makes math easier and avoids problems like having two ways to represent zero. I also learned how binary arithmetic works, like flipping bits for negation and using two’s complement for subtraction. Techniques like Booth’s algorithm and floating-point numbers helped me understand how computers handle more complex calculations.</p><p>This chapter helped me see the effort behind even simple tasks like adding numbers on a calculator. Understanding these processes made me curious about topics like how algorithms and computer hardware are designed, and it gave me a better appreciation for how computers work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=5406fbef0323" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-10-sect-3-2415077-faiz-fitri-5406fbef0323">Introduction to Computer Organisation Week 10-Sect 3-[2415077][Faiz Fitri]</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Computer Organization Week 9-Sect5[2413979][Tengku Muhammad Ridhwan]]]></title>
            <link>https://medium.com/bics1302-stury-reflection/introduction-to-computer-organization-week-9-sect5-2413979-tengku-muhammad-ridhwan-0e591e05c536?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/0e591e05c536</guid>
            <category><![CDATA[arithmetic-operations]]></category>
            <dc:creator><![CDATA[Tengku muhammad ridhwan]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 08:14:16 GMT</pubDate>
            <atom:updated>2025-01-21T08:14:16.382Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*e3Sr2gJKtHOIADqp.png" /></figure><h3>- Computer Arithmetic -</h3><p>Computer arithmetic is fundamental to how computers perform calculations, using binary numbers to represent data. In week 9, I have learned about the 2’s compliment of binary number.</p><p>The 2’s compliment have been use in computer binary system to distinguish the the magnitude number either positive or negative. The number will be flip from 1 to 0 and 0 to 1, then add 1.</p><p>For example for 7:</p><pre>0111 -&gt; 1000<br>       +   1<br>      -------<br>        1001</pre><p>so we got here -7 = 1001</p><h3>Binary Arithmetic</h3><p>At its core, computer arithmetic operates on binary numbers (composed of 0s and 1s). These binary representations allow computers to handle arithmetic processes efficiently using their digital circuitry.</p><h3>Addition</h3><p>In binary addition, the process follows simple rules:</p><ul><li>0 + 0 = 0</li><li>0 + 1 = 1</li><li>1 + 0 = 1</li><li>1 + 1 = 10 (where 0 is written, and 1 is carried to the next higher bit)</li></ul><p>For example:</p><pre>  1011<br>+ 1101<br>-------<br> 11000</pre><p>Here, the carry bit propagates to the next column, just like in decimal addition.</p><h3>Subtraction</h3><p>Binary subtraction uses a similar process, but instead of directly subtracting, the computer uses the 2’s complement of the second number. The steps are:</p><ol><li>Take the 2’s complement of the subtrahend (flip all bits and add 1).</li><li>Add the result to the minuend.</li></ol><p>For example, to calculate 5–3 in binary:</p><ol><li>Represent 5 and 3 in binary: 0101 and 0011.</li><li>Find the 2’s complement of 3:</li></ol><ul><li>Flip the bits: 1100.</li><li>Add 1: 1101.</li></ul><p>3. Add to 5:</p><pre>  0101<br>+ 1101<br>-------<br> 10010</pre><p>The result is 0010 (ignoring the overflow), which is 2 in decimal.</p><h3>Overflow in Binary Arithmetic</h3><p>Overflow occurs when the result of an arithmetic operation exceeds the range that can be represented with the given number of bits. For signed numbers in 2’s complement:</p><ul><li>Positive overflow happens when adding 2 positive numbers results in a negative sign bit.</li><li>Negative overflow happens when adding 2 negative numbers results in a positive sign bit.</li></ul><p>For example:</p><pre>  0111  (7 in decimal)<br>+ 0001  (1 in decimal)<br>-------<br>  1000  (-8 in 2’s complement)</pre><p>Here, overflow occurs as the result is outside the representable range for 4 bits.</p><h3>Flow of Addition and Subtraction</h3><p>Addition and subtraction share the same operational flow in the Arithmetic and Logic Unit (ALU):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/700/0*nNwSsXhTkNGJiu9m.png" /></figure><ol><li>The first operand is loaded into a register (A).</li><li>The second operand is loaded into another register (B).</li><li>For subtraction, the 2’s complement of the second operand (B) is computed.</li><li>The ALU adds the values in registers A and B.</li><li>The result is stored in a register or memory.</li></ol><p>By leveraging the same circuitry for both operations, the ALU achieves efficiency, with subtraction being a modified addition process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=0e591e05c536" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/introduction-to-computer-organization-week-9-sect5-2413979-tengku-muhammad-ridhwan-0e591e05c536">Introduction to Computer Organization Week 9-Sect5[2413979][Tengku Muhammad Ridhwan]</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Computer Organization Week 9-Sect5[2413979][Tengku Muhammad Ridhwan]]]></title>
            <link>https://medium.com/bics1302-stury-reflection/introduction-to-computer-organization-week-5-sect5-2413979-tengku-muhammad-ridhwan-971a64afa08c?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/971a64afa08c</guid>
            <category><![CDATA[arithmetic-operations]]></category>
            <dc:creator><![CDATA[Tengku muhammad ridhwan]]></dc:creator>
            <pubDate>Tue, 21 Jan 2025 08:08:53 GMT</pubDate>
            <atom:updated>2025-01-21T08:11:22.562Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/706/1*sPba57Rvf92S1oM-6Wd_-g.png" /></figure><h3>- Computer Arithmetic -</h3><p>Computer arithmetic is fundamental to how computers perform calculations, using binary numbers to represent data. In week 9, I have learned about the 2’s compliment of binary number.</p><p>The 2’s compliment have been use in computer binary system to distinguish the the magnitude number either positive or negative. The number will be flip from 1 to 0 and 0 to 1, then add 1.</p><p>For example for 7:</p><pre>  0111 -&gt; 1000<br>         +   1<br>        -------<br>          1001</pre><p>so we got here -7 = 1001</p><h3>Binary Arithmetic</h3><p>At its core, computer arithmetic operates on binary numbers (composed of 0s and 1s). These binary representations allow computers to handle arithmetic processes efficiently using their digital circuitry.</p><h4>Addition</h4><p>In binary addition, the process follows simple rules:</p><ul><li>0 + 0 = 0</li><li>0 + 1 = 1</li><li>1 + 0 = 1</li><li>1 + 1 = 10 (where 0 is written, and 1 is carried to the next higher bit)</li></ul><p>For example:</p><pre>  1011<br>+ 1101<br>-------<br> 11000</pre><p>Here, the carry bit propagates to the next column, just like in decimal addition.</p><h4>Subtraction</h4><p>Binary subtraction uses a similar process, but instead of directly subtracting, the computer uses the 2’s complement of the second number. The steps are:</p><ol><li>Take the 2’s complement of the subtrahend (flip all bits and add 1).</li><li>Add the result to the minuend.</li></ol><p>For example, to calculate 5–3 in binary:</p><ol><li>Represent 5 and 3 in binary: 0101 and 0011.</li><li>Find the 2’s complement of 3:</li></ol><ul><li>Flip the bits: 1100.</li><li>Add 1: 1101.</li></ul><p>3. Add to 5:</p><pre>  0101<br>+ 1101<br>-------<br> 10010</pre><p>The result is 0010 (ignoring the overflow), which is 2 in decimal.</p><h3>Overflow in Binary Arithmetic</h3><p>Overflow occurs when the result of an arithmetic operation exceeds the range that can be represented with the given number of bits. For signed numbers in 2’s complement:</p><ul><li>Positive overflow happens when adding 2 positive numbers results in a negative sign bit.</li><li>Negative overflow happens when adding 2 negative numbers results in a positive sign bit.</li></ul><p>For example:</p><pre>  0111  (7 in decimal)<br>+ 0001  (1 in decimal)<br>-------<br>  1000  (-8 in 2’s complement)</pre><p>Here, overflow occurs as the result is outside the representable range for 4 bits.</p><h3>Flow of Addition and Subtraction</h3><p>Addition and subtraction share the same operational flow in the Arithmetic and Logic Unit (ALU):</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/898/1*-LSzg2ZJvxyMmWgesmXVFQ.png" /></figure><ol><li>The first operand is loaded into a register (A).</li><li>The second operand is loaded into another register (B).</li><li>For subtraction, the 2’s complement of the second operand (B) is computed.</li><li>The ALU adds the values in registers A and B.</li><li>The result is stored in a register or memory.</li></ol><p>By leveraging the same circuitry for both operations, the ALU achieves efficiency, with subtraction being a modified addition process.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=971a64afa08c" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/introduction-to-computer-organization-week-5-sect5-2413979-tengku-muhammad-ridhwan-971a64afa08c">Introduction to Computer Organization Week 9-Sect5[2413979][Tengku Muhammad Ridhwan]</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Computer Organisation Week 10-Sect 3-[2415077][Faiz Fitri]]]></title>
            <link>https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-10-sect-3-2415077-faiz-fitri-60afeb63971f?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/60afeb63971f</guid>
            <dc:creator><![CDATA[Faiz Fitri]]></dc:creator>
            <pubDate>Sun, 19 Jan 2025 03:35:13 GMT</pubDate>
            <atom:updated>2025-01-19T03:36:42.062Z</atom:updated>
            <content:encoded><![CDATA[<p>In Week 10, I learned about Chapter 11, which explains how computers handle numbers and do calculations. The Arithmetic and Logic Unit (ALU) is the part of the CPU that performs math and logic tasks. It works with registers, which are temporary storage spaces, to process data. I also found it interesting how shift operations can multiply or divide numbers by powers of two in such a simple way.</p><p>I learned how computers represent numbers in binary, including unsigned and signed integers. Two’s complement was especially useful as it makes math easier and avoids problems like having two ways to represent zero. I also learned how binary arithmetic works, like flipping bits for negation and using two’s complement for subtraction. Techniques like Booth’s algorithm and floating-point numbers helped me understand how computers handle more complex calculations.</p><p>This chapter helped me see the effort behind even simple tasks like adding numbers on a calculator. Understanding these processes made me curious about topics like how algorithms and computer hardware are designed, and it gave me a better appreciation for how computers work.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=60afeb63971f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-10-sect-3-2415077-faiz-fitri-60afeb63971f">Introduction to Computer Organisation Week 10-Sect 3-[2415077][Faiz Fitri]</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[CHAPTER 11 -COMPUTER ARITHMETIC]]></title>
            <link>https://medium.com/bics1302-stury-reflection/chapter-11-computer-arithmetic-a404a5dca68a?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/a404a5dca68a</guid>
            <dc:creator><![CDATA[Ameer]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 10:38:06 GMT</pubDate>
            <atom:updated>2025-01-18T10:54:21.116Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/224/1*CHgzPZdXyI38qkc9aYG_oA.jpeg" /></figure><p>HI GUYS,here we go agn to share some tips regarding this topic okey.Without further due lets go.</p><h4>1. Arithmetic and Logic Unit (ALU):</h4><ul><li>Core component of the CPU responsible for arithmetic and logical operations.</li><li>Performs operations on integers and floating-point numbers.</li></ul><p>Functions:-</p><ul><li>Arithmetic: Addition, Subtraction, Multiplication, Division.</li><li>Logical: AND, OR, NOT, XOR.</li><li>Shift Operations: Move data bits left or right.</li></ul><h4>2. Integer Representation:</h4><ul><li>Methods of storing and processing whole numbers in binary:</li><li><strong>Unsigned Integers:</strong> Positive numbers only.</li><li><strong>Signed Integers:</strong> Positive and negative numbers using:</li><li>Sign-magnitude.</li><li>One’s complement.</li><li>Two’s complement (most commonly used).</li></ul><h4>3. Two’s Complement Representation:</h4><ul><li>Efficient binary representation for negative numbers.</li></ul><p>Conversion Steps:</p><ol><li>Flip all bits of the binary number.</li><li>Add 1 to the result.</li></ol><p>Example:</p><p>+18 = 00010010 → Negation: 11101110 → Result: -18.</p><h4>4. Integer Arithmetic:</h4><p><strong>Negation:</strong></p><ul><li>Convert a number to its negative using two’s complement.</li><li>Double negation returns the original number.</li></ul><p><strong>Addition:</strong></p><ul><li>Overflow Rule: Occurs if the result of adding two numbers has an opposite sign.</li></ul><p><strong>Subtraction:</strong></p><ul><li>Perform subtraction by adding the two’s complement of the subtrahend.</li></ul><p><strong>Multiplication:</strong></p><ul><li>Methods include unsigned multiplication and Booth’s Algorithm.</li></ul><p><strong>Division:</strong></p><ul><li>Techniques like restoring division are used for binary division.</li></ul><h4>5. Floating-Point Representation:</h4><ul><li>Represents real numbers using a significand, base, and exponent.</li><li>Follows the IEEE 754 standard.</li></ul><h4>6. Hardware for Arithmetic Operations:</h4><h4><strong>Key Components:</strong></h4><ul><li><strong>A Register:</strong> Stores the first operand.</li><li><strong>B Register:</strong> Stores the second operand.</li><li><strong>Complementer:</strong> Converts B to its two’s complement for subtraction.</li><li><strong>Switch (SW):</strong> Determines whether to add or subtract.</li><li><strong>Adder:</strong> Adds values from A and B or the two’s complement of B.</li><li><strong>Overflow Flag:</strong> Detects when the result exceeds the hardware’s range.</li></ul><h4>7. Important Algorithms:</h4><ul><li><strong>Booth’s Algorithm:</strong> Used for efficient binary multiplication.</li><li><strong>Restoring Division Algorithm:</strong> Used for binary division.</li></ul><h4>8. Practical Examples and Exercises:</h4><ul><li>Convert numbers to two’s complement (e.g., +22 to two’s complement in 8 bits).</li><li>Perform addition and subtraction in binary and detect overflow.</li></ul><p>so thats all that i can share.Don’t forget to clap and i really appreciate u guys effort.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=a404a5dca68a" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/chapter-11-computer-arithmetic-a404a5dca68a">CHAPTER 11 -COMPUTER ARITHMETIC</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Chapter 11— Arithmetic Logic // section 5 [2414950 Nur Aleeya]]]></title>
            <link>https://medium.com/bics1302-stury-reflection/chapter-11-arithmetic-logic-section-5-2414950-nur-aleeya-cab2fd4333a2?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/cab2fd4333a2</guid>
            <dc:creator><![CDATA[aleeyaalirahman]]></dc:creator>
            <pubDate>Sat, 18 Jan 2025 09:56:11 GMT</pubDate>
            <atom:updated>2025-01-18T09:56:11.310Z</atom:updated>
            <content:encoded><![CDATA[<p>Today’s writing will touch on week’s topic of Arithmetic Logic, which will heavily involve calculation between two integers using various operations including addition, subtraction, multiplication and division. This will uncover the logical operations and processes by hardware to enable such actions.</p><h3>Arithmetic and Logic Unit (ALU )</h3><p>def: component of CPU that <strong>performs calculations, logical decision</strong> involving numbers (integer/floating points)</p><p><strong>ALU Functions</strong></p><ol><li><strong>Arithmetic Operation </strong>— add, minus, multiply, divide</li><li><strong>Logical Operation </strong>— AND, OR, XOR, NOT</li><li><strong>Shift Operation</strong> — moves data bits left/right</li></ol><p>ALU workflow: <strong>Control Unit</strong> (signal data in/out) give instruction to <strong>ALU</strong> →<strong> ALU </strong>get input data from <strong>Register</strong> →<strong> ALU </strong>perform operation (flags)→ result to <strong>register/memory</strong></p><h3>Integer Representation</h3><p><strong>Unsigned magnitude</strong> (no sign)</p><p><strong>Signed magnitude</strong> → left-most integer — 0(+ve) and 1(-ve)</p><p><strong>One’s Complement</strong> → flip positive — 0 → 1 // 1 → 0</p><p><strong>Two’s Complement </strong>→ flip positive and add 1 to LSB</p><p>keyword: negation (conversion of binary number into negative version)</p><h3>Integer Arithmetic</h3><h4>Addition and Subtraction</h4><p><strong>Addition:</strong> sum of A and B, <strong>Subtraction</strong>: sum of A and -B(two’s complement)</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/626/1*TC1XS9EwV91KC-BKEhpL8A.png" /><figcaption>Hardware Addition/Subtraction Block Diagram</figcaption></figure><ul><li>Register: stores number (operand)</li><li>Complementer: convert into Two’s Complement</li><li>Switch (SW): decide operation (add/minus)</li><li>Adder: add value</li><li>Overflow Flag (OF): detect if result exceed hardware range</li></ul><h4>Multiplication</h4><p>Unsigned, Two’s Complement</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/356/1*8MMRG4sc51oMmSykYReTdQ.png" /><figcaption>Unsigned Multiplication</figcaption></figure><p>ALU use register A (accumulator), Q (Multiplier), M (multiplicand), C (Carry)</p><p>process: shifts, addition and check Q0 value until counter is 0/complete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/387/1*ybBDDEenQPtVmuC-Mo8FGQ.png" /><figcaption>Two’s Complement Multiplication</figcaption></figure><p>ALU use register A (accumulator), Q (Multiplier), M (multiplicand), C (Carry)</p><p>process: extend sign, shift, add, check LSB Q (10 → A = A — M) // (01 → A = A + M) until count is zero/complete</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/589/1*t-A1TD4mdEPzGoLKSxS79Q.png" /><figcaption>Unsigned Division</figcaption></figure><p>Bring Next Digit from Dividend to form partial remainders, compare with divisor (subtract) if partial remainder greater/equal to divisor and record quotient as 1. Else, record quotient as 0.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/508/1*_GZr0DT31c7XJ0Ycv3Maxw.png" /></figure><p>ALU use register A (accumulator), Q (Multiplier), M (multiplicand), C (Carry)</p><p>process: left shift, subtract (A = A — M), check A&lt;0, (+ve A) then LSB (Q) = 0 and (A = A+M) else (-ve A) LSB Q = 1, until count is zero/complete.</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=cab2fd4333a2" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/chapter-11-arithmetic-logic-section-5-2414950-nur-aleeya-cab2fd4333a2">Chapter 11— Arithmetic Logic // section 5 [2414950 Nur Aleeya]</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Computer Organisation Week 10-Sect 4[2412181][Haddif Asjad]]]></title>
            <link>https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-10-sect-4-2412181-haddif-asjad-9f0cd0807d15?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/9f0cd0807d15</guid>
            <dc:creator><![CDATA[HADDIF ASJAD]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 15:26:31 GMT</pubDate>
            <atom:updated>2025-01-17T15:26:31.556Z</atom:updated>
            <content:encoded><![CDATA[<p>now im gonna write about chapter 11, computer arithmetic, time flies so fast that now already near the end of sem 1,</p><h3>Introduction</h3><p>In computer systems, arithmetic operations are crucial for various applications, ranging from basic computations to advanced data processing. This chapter focuses on two primary areas of computer arithmetic: floating-point representation and integer arithmetic. Both are foundational to understanding how computers handle numbers and perform calculations efficiently.</p><h3><strong>What is the ALU?</strong></h3><p>•A <strong>core component of the CPU</strong>.</p><p>•Responsible for <strong>performing calculations</strong> and <strong>logical decisions.</strong></p><ul><li>Computer arithmetic is done using two main types of numbers: integers and floating points.</li></ul><h3><strong>Main Functions of the ALU</strong></h3><p>1. <strong>Arithmetic Operations</strong>:</p><p>•Basic math: <strong>Addition, Subtraction, Multiplication, Division</strong>.</p><p>•Example: Adding 5 + 3 = <strong>8</strong>.</p><p>2. <strong>Logical Operations</strong>:</p><p>•Decision-making: <strong>AND, OR, NOT, XOR</strong>.</p><p>•Example: Checking if one number is <strong>greater</strong> than another.</p><p>3. <strong>Shift Operations</strong>:</p><p>•Moves data bits left or right.</p><p>Useful for tasks like multiplying or dividing by powers of 2</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l47SLF43gC0yp2uLNksleA.png" /></figure><h3>Integer Representation</h3><p>Refers to how whole numbers (integers) are stored and processed in a computer. It involves encoding numbers in a binary format since computers use binary (0s and 1s) to represent all data.</p><p>•<strong>Unsigned Integers (Positive number)</strong></p><ul><li><strong>Signed Integers (Positive and negative number)</strong></li></ul><p>There are two Integer Representation Method, and each one has another 2 branch</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*wc8xnGwg2S3kDW8TxhfY7Q.png" /></figure><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*hkgTv50Dt2kOCjzNHfOw0A.png" /></figure><p>MSB = Most Significant Bit</p><p>LSB = Least Significant Bit</p><h3><strong>INTEGER ARITHMETIC (ADDITION)</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/726/1*Lx01Kvdzye8yWtgGREU1GA.png" /></figure><ol><li><strong>OVERFLOW RULE:</strong></li></ol><p>If two numbers are added, and they are both positive or both negative, then overflow occurs if and only if the result has the opposite sign.</p><p><strong>2. Exceed the range of binary representation</strong></p><h3>INTEGER ARITHMETIC (ADDITION)</h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/739/1*wmEh0QcsqVl4v_gp1YLCTg.png" /></figure><p><strong>SUBTRACTION RULE:</strong></p><p>To subtract one number (subtrahend) from another (minuend), take the twos complement (negation) of the subtrahend and add it to the minuend.</p><p>2 (minuend) — 7 (subtrahend)</p><p>Negative numbers convert to two’s complement then do addition.</p><h3><strong>Block diagram of hardware for addition and subtraction</strong></h3><figure><img alt="" src="https://cdn-images-1.medium.com/max/831/1*-oHIRzLfSNK9iUwzMukKJw.png" /></figure><p>1. <strong>A Register: </strong>Stores the first number (operand).</p><p>2. <strong>B Register: </strong>Stores the second number (operand).</p><p>3. <strong>Complementer: </strong>Converts the number in B Register to its <strong>Two’s Complement</strong> for subtraction.</p><p>4. <strong>Switch (SW): </strong>Decides the operation:</p><p>•<strong>Addition:</strong> Passes B directly.</p><p>•<strong>Subtraction:</strong> Passes Two’s Complement of B.</p><p>5. <strong>Adder: </strong>Adds the value from A Register and B Register (or Two’s Complement of B).</p><p>6. <strong>Overflow Flag (OF):</strong></p><ul><li>Detects if the result exceeds the range of the hardware.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=9f0cd0807d15" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-10-sect-4-2412181-haddif-asjad-9f0cd0807d15">Introduction to Computer Organisation Week 10-Sect 4[2412181][Haddif Asjad]</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[COMPUTER ARITHMETIC]]></title>
            <link>https://medium.com/bics1302-stury-reflection/computer-arithmetic-2c160518189f?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/2c160518189f</guid>
            <dc:creator><![CDATA[Ahmadhakim]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 15:26:25 GMT</pubDate>
            <atom:updated>2025-01-17T15:26:25.626Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*G4jliDhNENO6vhS0IagKEA.jpeg" /></figure><p>The subtopic I will be focusing is on Integer Arithmetic. Its Focus on binary arithmetic operations such as addition, subtraction, multiplication, and division .</p><ol><li><strong>Negation in Integer Arithmetic:</strong></li></ol><ul><li>Negation is performed using two’s complement, which involves flipping all bits of a number and adding 1 to the least significant bit (LSB).</li></ul><figure><img alt="" src="https://cdn-images-1.medium.com/max/649/1*UCzqL0YFxjMFT2cvIwBItw.png" /></figure><h3>Addition</h3><p>Binary addition follows the same principles as decimal addition, with these rules:</p><ul><li><strong>0 + 0 = 0</strong></li><li><strong>0 + 1 = 1</strong></li><li><strong>1 + 0 = 1</strong></li><li><strong>1 + 1 = 0 (carry 1)</strong></li></ul><h4>Steps:</h4><ol><li>Align the binary numbers.</li><li>Start adding from the least significant bit (rightmost bit).</li><li>Carry over any extra 1 to the next column when two 1s are added.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/372/1*HvQniHmJGWQF4Fn_wN11mw.png" /></figure><p><strong>OVERFLOW RULE:</strong></p><p>If two numbers are added, and they are both positive or both negative, then overflow occurs if and only if the result has the opposite sign.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/371/1*OOAzImjkRl0oBsLnTV20fQ.png" /></figure><h3><strong>Subtraction</strong></h3><ul><li>Binary subtraction uses the concept of two’s complement. Instead of directly subtracting, the subtrahend is negated and added to the minuend.</li></ul><h4>Steps:</h4><ol><li>Convert the one number(subtrahend) into its <strong>two’s complement</strong> (invert all bits and add 1).</li><li>Add the two binary number(subtrahend and minuend) using the addition method.</li></ol><figure><img alt="" src="https://cdn-images-1.medium.com/max/380/1*EAraIv99qvvHXvuwR_LPWw.png" /></figure><h3><strong>Multiplication</strong></h3><p>multiplication is actually pretty easy and all we have to do is memorize and follow the flowchart of the Booth’s Algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/667/1*-XE_vjyGYL3sFZcZLM_pQw.png" /></figure><h3>Steps:</h3><p><strong>Initialization</strong>:</p><ul><li>Let the multiplicand be M and the multiplier be Q. Use A (accumulator) to store intermediate results, and a single bit Q_{1} to store the previous bit of Q. Initialize:</li><li>A=0</li><li>Q=Multiplier</li><li>Q_{1} = 0</li><li>n=number of bits in the multiplier</li></ul><p><strong>Iterate n Times</strong>:</p><ul><li>For each bit in the multiplier:</li></ul><p><strong>Decision</strong>:</p><ul><li>If Q_{0} (current LSB of Q) and Q_{1}​ are:</li><li>10: Subtract M from A</li><li>01: Add M to A</li><li>00 or 11: Do nothing.</li></ul><p><strong>Arithmetic Right Shift</strong>:</p><ul><li>Perform an arithmetic right shift on [A, Q, Q_{-1}] (combined as a single unit).</li><li>Update Q_{1}​ with the LSB of Q.</li></ul><p><strong>Final Result</strong>:</p><ul><li>After n iterations, the result of the multiplication is in [A,Q] (concatenate A and Q).</li></ul><h3>Division</h3><p>Same with the division, but instead we use Restoring Division Algorithm.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/689/1*_Asm29cdEPRSO5Gz-CJYcQ.png" /></figure><h3>Steps:</h3><p><strong>Initialization</strong>:</p><ul><li>Let <strong>Dividend</strong> = D and <strong>Divisor</strong> = R.</li><li>Set <strong>Quotient</strong> = Q and <strong>Remainder</strong> = A.</li></ul><p>Initially:</p><ul><li>A = 0 (accumulator or partial remainder).</li><li>Q = D (dividend).</li><li>R = divisor.</li><li>N = number of bits in the dividend.</li></ul><p><strong>Repeat for N Steps</strong>:</p><ul><li>Perform the following steps in each iteration:</li></ul><p><strong>Left Shift</strong>:</p><ul><li>Concatenate A and Q as a single unit and perform a left shift by 1 bit.</li><li>The leftmost bit of Q moves into A, and a 0 is shifted into the rightmost bit of Q.</li></ul><p><strong>Subtract the Divisor</strong>:</p><ul><li>Subtract R (divisor) from A and store the result in A.</li></ul><p><strong>Check A</strong>:</p><ul><li>If A is <strong>negative</strong>, restore the previous value of A by adding R back to A. Set the least significant bit (LSB) of Q to 0.</li><li>If A is <strong>non-negative</strong>, leave A as is and set the LSB of Q to 1.</li></ul><p><strong>End of Loop</strong>:</p><ul><li>After N iterations, Q contains the quotient, and A contains the remainder.</li></ul><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=2c160518189f" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/computer-arithmetic-2c160518189f">COMPUTER ARITHMETIC</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
        <item>
            <title><![CDATA[Introduction to Computer Organisation Week 7-Sect 4[2412181][Haddif Asjad]]]></title>
            <link>https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-7-sect-4-2412181-haddif-asjad-270a151f56ec?source=rss----df8be947a5c1---4</link>
            <guid isPermaLink="false">https://medium.com/p/270a151f56ec</guid>
            <dc:creator><![CDATA[HADDIF ASJAD]]></dc:creator>
            <pubDate>Fri, 17 Jan 2025 15:26:17 GMT</pubDate>
            <atom:updated>2025-01-17T15:26:17.421Z</atom:updated>
            <content:encoded><![CDATA[<figure><img alt="" src="https://cdn-images-1.medium.com/max/612/1*62EQQUrIdC9esEGkisqC-w.jpeg" /></figure><p>Today im going to explain about Chapter 8: Input/Output. This chapter need to remember a lot of things cause its full of facts not calculations.</p><p>First what is External Devices(also called peripheral devices) in general:</p><ul><li>Provide a means of exchanging data between the external environment and the computer</li></ul><p>External devices also attached to the computer by a link to i/o module.</p><p>It is also devices by 3 categories:-</p><ul><li>Human Readable</li><li>Machine Readable</li><li>Communication</li></ul><p>Next, lets take a look at block diagram of external devices:</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/562/1*B1Mr2FCTM4OLicJ-rKjJxw.png" /></figure><ul><li><strong>Control Signals</strong>:<br>The module sends commands like “Read” (input data from the device) or “Write” (output data to the device).</li><li><strong>Status Signals</strong>:<br>It monitors the device’s state, such as indicating whether it’s READY or NOT-READY for data transfer.</li><li><strong>Control Logic</strong>:<br>This interprets and executes commands from the i/o module.</li><li><strong>Transducer</strong>:<br>Converts data to different forms (e.g., electrical to sound for output or sound to electrical for input).</li><li><strong>Buffer</strong>:<br>A temporary storage space, typically 8–16 bits, that holds data during the transfer process.</li></ul><p>By handling these functions, the I/O module allows the processor to focus on more critical tasks, boosting overall efficiency.</p><h3>How I/O Operations Work</h3><p>Efficient I/O operations are critical to optimizing system performance. Without a robust mechanism, the processor might waste valuable time managing data transfers. There are three main techniques for performing I/O operations:</p><h3>1. Programmed I/O</h3><p>In this method, the processor takes full control of I/O operations. It directly manages data transfer between memory and devices. However, this approach can be inefficient because:</p><ul><li>The processor must wait for the I/O operation to complete, leading to idle time.</li><li>If the I/O device is slower than the processor, significant processing power is wasted.</li></ul><h3>2. Interrupt-Driven I/O</h3><p>Here, the processor issues an I/O command and continues executing other tasks. When the I/O operation is complete, the device sends an interrupt signal to the processor, prompting it to process the transferred data.<br>This method reduces idle time but can still create delays when processing multiple interrupts.</p><h3>3. Direct Memory Access (DMA)</h3><p>DMA revolutionizes I/O operations by allowing the I/O module to communicate directly with the computer’s memory, bypassing the processor. Key advantages include:</p><ul><li>Faster data transfer for large blocks of data.</li><li>Minimal processor involvement, allowing it to handle other tasks efficiently.</li></ul><h3>Modern I/O Technologies: The Evolution of Connectivity</h3><p>As computing needs have evolved, so too have the technologies driving I/O. Today’s systems rely on advanced interfaces for high-speed, reliable data transfer.</p><h3>Universal Serial Bus (USB)</h3><p>USB has become the standard interface for connecting peripherals to computers. It has evolved through several generations:</p><ul><li><strong>USB 1.0</strong>: Data rates of 1.5 Mbps (Low Speed) and 12 Mbps (Full Speed).</li><li><strong>USB 2.0</strong>: Increased the speed to 480 Mbps.</li><li><strong>USB 3.0 and Beyond</strong>: Introduced SuperSpeed technology, offering data rates of up to 10 Gbps with USB 3.1.</li></ul><h3>Direct Memory Access in Practice</h3><p>DMA modules, like the 8237 DMA controller, enhance performance by transferring data directly between memory and devices. Here’s how it works step-by-step:</p><ol><li><strong>Peripheral Request</strong>: The device signals it needs a data transfer by raising a DMA request (DREQ).</li><li><strong>Bus Control</strong>: The DMA controller requests control of the system bus from the CPU.</li><li><strong>Data Transfer</strong>: The controller manages the transfer, sending data from memory to the device (or vice versa).</li><li><strong>Completion</strong>: Once the transfer is done, the controller releases the bus to the CPU.</li></ol><h3>Advanced Connectivity Options</h3><ul><li><strong>Thunderbolt</strong>: Combines data, video, and power into a single high-speed connection, reaching 10 Gbps.</li><li><strong>Wi-Fi</strong>: The dominant wireless connectivity standard, now supporting speeds up to 3.2 Gbps with 802.11ac.</li><li><strong>Ethernet</strong>: Evolved from a 3-Mbps bus-based system to a 100-Gbps switch-based architecture, essential for networking in modern organizations.</li></ul><h3>Why Effective I/O Design Matters</h3><p>Efficient I/O design is critical for modern systems. By offloading tasks like data transfer to I/O modules and utilizing technologies like DMA, systems can:</p><ul><li>Improve processing speed.</li><li>Reduce CPU workload.</li><li>Enable multitasking and support for more complex applications.</li></ul><p><strong>Conclusion</strong><br>Input/Output is a foundational element of computer systems, enabling them to interact with the world. From simple keyboard input to high-speed data transfer with DMA, the evolution of I/O technologies continues to drive innovation in computing. Understanding these systems is key to optimizing performance and designing the next generation of efficient, reliable devices.</p><p>So, thats all from me today, so see you next time for my explanation. Goodbye📕📙📘📗💕❤️</p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=270a151f56ec" width="1" height="1" alt=""><hr><p><a href="https://medium.com/bics1302-stury-reflection/introduction-to-computer-organisation-week-7-sect-4-2412181-haddif-asjad-270a151f56ec">Introduction to Computer Organisation Week 7-Sect 4[2412181][Haddif Asjad]</a> was originally published in <a href="https://medium.com/bics1302-stury-reflection">BICS1302-Study Reflection</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>