4.3.1
Computational Logic
Binary Systems
Binary Systems
Computer systems store and process data as binary digits.
Why use binary form?
Why use binary form?
- Underneath the surface computers are electrical devices that process information by controlling the flow of electricity through billions of wires and transistors (electrical switches) inside the central processing unit and other components.
- The presence of electricity represents a 1, and an absence of electricity represents a 0.
The transistor
The transistor
- Transistors are electrical components made from semiconductor materials that can act as electrically-controlled switches.
- Transistors can be used to temporarily store data, for example in some forms of primary storage (memory).
Transistors in the CPU
Transistors in the CPU
- Inside a Central Processing Unit (CPU), transistors are arranged into circuits to perform operations such as calculations when electricity is passed through them.
- For example, transistors can be arranged to form an 'adder' circuit that can accept two binary numbers, and output the sum of their values.
- Modern CPUs contain over 3 billion transistors, allowing them to perform billions of calculations per second.
Logic Circuits
Logic Circuits
Multiple transistors can be arranged together to make logic gates and logic circuits.
Logic gates
Logic gates
- Multiple transistors can be arranged together to form more complex "switches" that only allow electricity to flow through if all or some of the transistors are "on".
- These arrangements are called logic gates.
Examples of logic gates
Examples of logic gates
- The AND gate performs the boolean AND function:
- It will only output true if both of its inputs are true.
- The OR gate performs the boolean OR function:
- It will output true if either or both of its inputs are true.
- The NOT gate performs the boolean NOT function:
- It takes one input and inverts it.
Logic circuits
Logic circuits
- Logic gates can be combined to create complex logic circuits.
- These logic circuits can perform functions such as adding numbers and storing data.
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
Jump to other topics
1Components of a Computer
1.1Structure & Function of the Processor
1.2Types of Processors
2Software & Software Development
2.1Systems Software
2.2Applications Generation
2.3Software Development
3Exchanging Data
3.1Compression, Encryption & Hashing
3.3Networks
4Data Types, Data Structures & Algorithms
4.1Data Types
5Legal, Moral, Cultural & Ethical Issues
5.1Computing Related Legislation
6Elements of Computational Thinking
6.1Thinking Abstractly
6.2Thinking Procedurally
6.3Thinking Logically
7Problem Solving & Programming
7.1Programming Techniques
7.2Programming Construction
Unlock your full potential with GoStudent tutoring
Affordable 1:1 tutoring from the comfort of your home
Tutors are matched to your specific learning needs
30+ school subjects covered