Why Beijing University computer can be calculated (Boolean operations)?

1, the number in the computer is represented how?

The number of binary representation

Decimal

Hex

Convert decimal numbers to binary: In addition to the anti-modulo 2 is written in binary decimal, certain wrote 0, bottoming out

16 is represented as binary: 10000

Binary to octal: three each corresponding to an octal

Binary to Hex: every four corresponds to a hexadecimal

2, the number of logic on how it is calculated?

2.1, and operations:

 

Truth table as follows:

A     B      F

0      0      0

0      1      0

1      0      0

1      1      1

 

2.2, or operations:

 

Truth table as follows:

A     B      F

0      0      0

0      1      1

0      1      1

1      0      1

1      1      1

 

2.3, non-operational

 

Truth table as follows:

A         F

0         1

1         0

 

2.4, exclusive-OR operation (the same is 0, 1 is different)

 

Truth table as follows:

A     B      F

0      0     0

0      1     1

1      0     1

1      1     0

 

 

2.5, or the same operation (the same is 1, is different from 0)

 

Truth table as follows:

A     B      F

0      0     1

0      1     0

1      0     0

1      1     1

 

 

 

 

 

3, the number of physical computing is how to achieve?

XOR gate

AND gate

OR

Summary: The number involved in computing, can be converted to a binary number

          Binary arithmetic, you can use basic Boolean operations to achieve

         Basic Boolean operations can be implemented by circuitry

The role of the truth table: determining whether an expression is true or valid

 

 

Guess you like

Origin blog.csdn.net/Richard_666/article/details/90769950