Monday, 22 October 2012

Digital Logic


1.0 DIGITAL LOGIC

1.1 Basic Revision of Logic Gates
Principles of logic. Any Boolean algebra operation can be associated
with an electronic circuit in which the inputs and outputs represent
the statements of Boolean algebra. Although these circuits may be
complex, they may all be constructed from six devices. These
are the AND gate, the OR gate, the NOT gate, the NAND gate, the XOR                                                            gate and the NOR gate.





1.2 Boolen  Equation  Form

      1.2.1 Sum of Product and Product of Sum

      Boolen equation form can be represent in two forms :
A)   Sum-of-product is  a sum of three product terms
When two or more product terms are summed by Boolean addition,
the resulting expression is a sum-of-products (SOP). Some examples are:
AB + ABC
ABC + CDE + BCD
AB + BCD + AC
Also, an SOP expression can contain a single-variable term, as in
A + ABC + BCD.
In an SOP expression a single overbar cannot extend over more than


    B)   Product-of –sum is  a product of three sum terms
A sum term was defined before as a term consisting of the sum
(Boolean addition) of literals (variables or their complements). When two or
more sum terms are multiplied, the resulting expression is a product-of-sums
(POS). Some examples are
(A + B)(A + B + C)
(A + B + C)( C + D + E)(B + C + D)
(A + B)(A + B + C)(A + C)
A POS expression can contain a single-variable term, as in
A(A + B + C)(B + C + D).
In a POS expression, a single overbar cannot extend over more than one
variable; however, more than one variable in a term can have an overbar. For
example, a POS expression can have the term A + B + C but not A + B + C.



1.3 Simplication Of Boolean Equation
1.3.1 Laws of boolean Algebra
The basic laws of Boolean algebra-the commutative laws for addition and
multiplication, the associative laws for addition and multiplication, and the
distributive law-are the same as in ordinary algebra.







                                                                                           


Sunday, 21 October 2012

Arithmetic


2.0 ARITHMETIC FOR COMPUTER

A binary number operation will be focusing only in addition, subtraction, multiplication and division. The fundamental explorations on computer binary number operation will be more enjoyable if we have a basic understanding of the number calculation between the human and computer. Therefore, by computing basic types of number operation is superior practice in the following parts.


2.1 Binary addition

Binary Rules
Sum
Carry
0 + 0 = 0
0
0
0 + 1 = 1
1
0
1 + 0 = 1
1
0
1 + 1 = 1
0
1


How to add Binary numbers
Step 1 :
Align the numbers you wish to add as you would if you were adding decimal numbers.



Step 2 :
Start with the two numbers in the far right column



Step 3 :
Add the numbers following the rules of decimal addition (1+0 = 1, 0+0 = 0) unless both numbers are a 1.



Step 4 :
Add 1+1 as "10" if present. (it is not "ten" but "one zero"). Write "0" below and carry a "1" to the next column.



Step 5 :
Start on the next column to the left.





Step 6 :      
Repeat the steps above, but add any carry. Remember that 1+1 = 10 and 1+1+1 = 11. Remember to carry the "1".



TIPS:
<·         Dont forget to carry
<·       You can only use the digits 0 and 1. If you find yourself using 2 or any other digit, you did something wrong.








2.2 Binary Subtraction

Here are some examples of binary subtraction. These are computed without regard to the word size, hence there can be no sense of "overflow" or "underflow". Work the columns right to left subtracting in each column. If you must subtract a one from a zero, you need to “borrow” from the left, just as in decimal subtraction.







2.3  Multiplication

Multiplication in binary is similar to its decimal counterpart. Two numbers A and B can be multiplied by partial products: for each digit in B, the product of that digit in A is calculated and written on a new line, shifted leftward so that its rightmost digit lines up with the digit in B that was used. The sum of all these partial products gives the final result.
Since there are only two digits in binary, there are only two possible outcomes of each partial multiplication:
If the digit in B is 0, the partial product is also 0
If the digit in B is 1, the partial product is equal to A









2.4 DIVISION
There’s many solutions can solve the division equation for arithmetic. One of the method is : 
1.      Long division :

Example :
Notes :



The remainder must be included  in the answer as well.


Floating point
What is floating point?
Floating point describes a method of representing real numbers in a way that can support a wide range of values.
Meaning that a number representation (called a numeral system in mathematics) specifies some way of storing a number that may be encoded as a string of digits. The arithmetic is defined as a set of actions on the representation that simulate classical arithmetic operations.

The formula is given below:


Monday, 8 October 2012

Pengenalan jerr niee. HAHAHA

SELAMAT DATANG

TAU TAK APA ITU SWARECREW?

SWARECREW TERDIRI DARIPADA 5 ORANG.

1. CHE MOHD ISKANDAR BIN CHE JUHAN
2. IBADURRAHMAN BIN UMAR
3. MUHAMMAD ZAID BIN ALI
4. MUHAMMAD AZIM BIN KAHAR
5. HASSAN ABDURAHMAN SALEH


BLOG NI SEBENARNYA NAK KONGSI PENGETAHUAN KALAU NAK LAA. KALAU TAKNAK TAKPER. 

ANTARA TAJUK YANG AKAN DIKONGSI ADALAH SEPERTI

1. Arithmetics for Computers (Number Systems and Operations)
2. Digital Logic
3. Digital logic simulator
4. MIPS
5 MIPS simulator
6 Language of the Computers
7 The Processor
8 Memory Organization
9 Input/Output
10 Parallel Processing


 Macam banyak la pulak kann. Tapi kita rilek je laa yang kena buat 5 jer, Hangpa duq diam diam.
Kejap lagi kami akan explain kat hang.