Number Systems Instructions, Compression & Truth Tables.

Slides:



Advertisements
Similar presentations
Reducing File Sizes. File Formats In this lesson, we will be looking at: How do we measure file size? Why are some files bigger than others? Why should.
Advertisements

The Binary Numbering Systems
1 Lecture-2 CSIT-120 Spring 2001 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
Computer Systems. Computer System Components Computer Networks.
Computer Organization Boolean Logic and the CPU i206 Fall 2010 John Chuang Some slides adapted from Marti Hearst, Brian Hayes, or Glenn Brookshear.
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
The processor and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
1 Lecture-2 CS-120 Fall 2000 Revision of Lecture-1 Introducing Computer Architecture The FOUR Main Elements Fetch-Execute Cycle A Look Under the Hood.
The central processing unit and main memory chapter 4, Exploring the Digital Domain The Development and Basic Organization of Computers.
Data dan Teknologi Multimedia Sesi 08 Nofriyadi Nurdam.
COMPONENTS OF THE SYSTEM UNIT
CHAPTER 4: INTRODUCTION TO COMPUTER ORGANIZATION AND PROGRAMMING DESIGN Lec. Ghader Kurdi.
Lesson 3 — How a Computer Processes Data
Compression is the reduction in size of data in order to save space or transmission time. And its used just about everywhere. All the images you get on.
1. Fundamentals of Computer Systems Define a computer system Computer Systems in the modern world Professional standards for computer systems Ethical,
Micro-operations Are the functional, or atomic, operations of a processor. A single micro-operation generally involves a transfer between registers, transfer.
2.0 Computer System.
Slide 1 Wednesday, October 07, 2015 Low Level Machine.
1 Analysis of Algorithms Chapter - 08 Data Compression.
GCSE Computing#BristolMet Session Objectives#11 MUST identify what program instructions consist of SHOULD describe how instructions are coded as bit patterns.
Lesson 3 — How a Computer Processes Data Unit 1 — Computer Basics.
Marr CollegeHigher ComputingSlide 1 Higher Computing: COMPUTER SYSTEMS Part 1: Data Representation – 6 hours.
© 2005 Pearson Addison-Wesley. All rights reserved Figure 2.1 This chapter focuses on key hardware layer components.
Input-Output Organization
Marwan Al-Namari 1 Digital Representations. Bits and Bytes Devices can only be in one of two states 0 or 1, yes or no, on or off, … Bit: a unit of data.
© GCSE Computing Candidates should be able to:  describe the characteristics of an assembler Slide 1.
Represents different voltage levels High: 5 Volts Low: 0 Volts At this raw level a digital computer is instructed to carry out instructions.
Electronic Analog Computer Dr. Amin Danial Asham by.
Silberschatz, Galvin and Gagne  2002 Modified for CSCI 399, Royden, Operating System Concepts Operating Systems Lecture 4 Computer Systems Review.
COMP135/COMP535 Digital Multimedia, 2nd edition Nigel Chapman & Jenny Chapman Chapter 2 Lecture 2 – Digital Representations.
Question What technology differentiates the different stages a computer had gone through from generation 1 to present?
CMSC 104, Lecture 061 Stored Programs A look at how programs are executed.
BY MANJU Lesson 21 Computer Hardware. System Components A computer system requires many components to do its job: Input: Device to input data so it can.
Revison Part three – some bits that aren’t explicitly mentioned in the spec.
Information Systems Design and Development Media Types Computing Science.
Software Design and Development Storing Data Part 2 Text, sound and video Computing Science.
IC 3 BASICS, Internet and Computing Core Certification Computing Fundamentals Lesson 2 How Does a Computer Process Data?
FILE COMPRESSION Lossy vs Lossless. Why compress a file? To save storage space. To speed up data transmission.
The purpose of a CPU is to process data Custom written software is created for a user to meet exact purpose Off the shelf software is developed by a software.
By the end of this session you should be able to... Understand character sets and why these are used within computer systems. Understand how characters.
Computer Hardware What is a CPU.
CPU Lesson 2.
GCSE COMPUTER SCIENCE Topic 3 - Data 3.3 Data Storage and Compression.
File Compression 3.3.
Everything is a number Everything in a computer memory and on storages is a number. Number  Number Characters  Number by ASCII code Sounds  Number.
Topics Introduction Hardware and Software How Computers Store Data
Computing Systems Organization
Computer Science Higher
Edexcel GCSE Computer Science Topic 15 - The Processor (CPU)
Lesson Objectives Aims You should know about: 1.3.1:
COMP261 Lecture 21 Data Compression.
Compression Year 11.
Data Representation – Instructions
Chapter 1: Introduction to Computers and Programming
Functional Units.
Representing Images 2.6 – Data Representation.
Compression, Lossy, Lossless
CSCE Fall 2013 Prof. Jennifer L. Welch.
1. Explain how ASCII is used to represent text in a computer system
Topics Introduction Hardware and Software How Computers Store Data
CPU Key Revision Points.
CSCE Fall 2012 Prof. Jennifer L. Welch.
How Computers Work Part 1 6 February 2008.
A Top-Level View Of Computer Function And Interconnection
WJEC GCSE Computer Science
WJEC GCSE Computer Science
WJEC GCSE Computer Science
Course Code 114 Introduction to Computer Science
Instruction execution and ALU
Chapter 1: Introduction to Computers and Programming
Presentation transcript:

Number Systems Instructions, Compression & Truth Tables.

Instructions A computer program consists of a series of instructions that are coded as bit patterns; the process of running a program is outlined below: To run a computer program, the CPU fetches the first instruction and decodes it. The CPU updates the program counter to keep track of the next instruction. The CPU then processes the decoded program instruction which consists of an operator/opcode (the instruction) and an operand (the data or address). The process is then repeated as the next instruction is fetched.

Instructions 00110010 10001000 An example of an instruction is below: 00110010 10001000 Operator/opcode operand Here the operator could be instructing the computer to multiply and the operand would be stating the value (in this case 136). Note: This could also mean multiply the contents of memory location 136 rather than the value 136.

Instructions Data and instructions are both in binary form and are held in main memory in unique addresses, so the operating system ensures that instructions and data are stored in the expected locations when the program runs. By storing the instructions and data in separate locations this ensures that the CPU is able to differentiate between data or instruction.

Past Paper Question

Past Paper Question

Past Paper Question

Past Paper Question – Mark Scheme

Compression Compression is the process of making a file smaller. The advantages are stated below: More data may be stored on the disk. More data may be stored on secondary storage. Files may be transferred more quickly Files may be downloaded quickly from the internet. Easier to send files as email attachments

Lossy & Lossless Compression Compresses file size by discarding some of the data. Lossy loses quality of file but file size can be smaller as a result. Common in images or multimedia (sound & video), particularly where applications stream media over the internet.

Lossy & Lossless Compression Uses an algorithm to compress data but it can in turn be de- compressed at any time, returning to original quality. Commonly used on text or program files where we can not simply discard some of the characters. Imagine if some key words were removed from your programming project during compression!

Past Paper Question

Truth Tables AND, OR, NOT NOT – Output is opposite of input, e.g. 1 becomes 0 AND – Both inputs must be 1 for output of 1. OR – Either input must be 1 for output to be 1.

Truth Tables AND, OR, NOT Input (A) Output (NOT A) 1

Truth Tables AND, OR, NOT Input (A) Input (B) Output (A AND B) 1

Truth Tables AND, OR, NOT Input (A) Input (B) Output (A OR B) 1

Truth Tables AND, OR, NOT a b a OR b NOT (a OR b) 1 When combining different operators the truth table is expanded as shown below: a b a OR b NOT (a OR b) 1

Truth Tables AND, OR, NOT a b a AND b NOT (a AND b) 1