Lesson activities for



Download 363.63 Kb.
Page4/5
Date28.01.2017
Size363.63 Kb.
#9623
1   2   3   4   5

Activity 16.3

This activity gives you an opportunity to find out how much memory there is in the computers you use.

Either check the system settings or search online for the technical specifications of your computers and complete the table below. Add more rows if you need to.

Type of computer

Main memory
































Activity 16.4

Sort the stages of a memory read into the correct order:

  • Processor sets the read line on the control bus

  • Contents of the memory location are conveyed along the data bus into the processor

  • Processor places the address of the required memory location on the address bus



Step 1




Step 2




Step 3




Sort the stages of a memory write into the correct order:

  • Processor places the data to be written to memory on the data bus

  • Processor places the address of the required memory location on the address bus

  • The data is conveyed along the data bus to the memory location

  • Processor sets the write line on the control bus



Step 1




Step 2




Step 3




Step 4




Activity 16.5

Type of computer

Type of secondary storage device

Maximum capacity
















































Activity 16.6 (homework)

Search online for companies that sell memory (such as http://www.crucial.com/). Find three further facts about memory that you can share with the class.



Fact 1




Fact 2




Fact 3





Lesson 17 activities

Activity 17.1

Sort the following devices according to whether they are input or output devices.



  • Mouse

  • Speakers

  • Monitor

  • Touch screen

  • Keyboard

  • LED

  • Sensor

  • Microphone

  • Scanner

  • Printer

  • Web cam

  • Digital camera



Input devices

Output devices


















































Activity 17.2

In your group, identify all the input devices found on the digital computer you have been assigned.



Digital computer you have been assigned:

























Activity 17.3

Complete the table below to create a reference sheet for yourself.




Input device

How does it work? (2 or 3 sentences)

Image

Optical mouse

The optical mouse uses a light emitting diode (LED) as a light source, a small camera and a small processor. The light from the LED illuminates the surface and the camera takes pictures, which are compared by the program in the processor to determine how far the mouse has travelled. This information is then conveyed to the main CPU.




Keyboard

The computer keyboard uses an arrangement of keys to input characters to the computer. Keyboards use a range of different switching technologies to send a code which represents the key that has been pressed to the CPU.




Touch screen







Web cam







Scanner







Sensors







Microphone









Lesson 18 activities

Activity 18.1

In your group, identify all the output devices found on the digital computer you have been assigned.



Digital computer you have been assigned:

























Activity 18.2

Complete the table below to create a reference sheet for yourself.




Output device

How does it work? (2 or 3 sentences)

Image

LCD screen







Speakers







Projector







Inkjet printer







Laser printer









Lesson 19 activities

Activity 19.1

Check the system settings of your digital computers or search online for their technical specifications to find out the type of storage you are using.



Type of computer

Type of storage device

Maximum storage capacity

Magnetic, optical or solid state?





























































Activity 19.2

  • Do the following:

    • Save a file onto the magnetic hard disk drive.

    • Burn a file on to a CD or DVD.

    • Save a file on to a solid state drive or a memory stick.



  • Now describe in your own words how the data in the file was stored on each of these types of storage.

Magnetic storage, e.g. hard disk drive




Optical storage, e.g. CD / DVD drive




Solid state storage, e.g. memory stick





Lesson 20 activities

Activity 20.1

Use the labels below to complete the diagram.



  • Memory

  • Control unit

  • Arithmetic and logic unit (ALU)

  • Registers

PROCESSOR

Control bus

Address bus

Data bus


Draw lines to match the parts of the processor with the correct function.

Accumulator register




Sends out signals to other parts of the computer system and fetches, decodes and executes instructions

Control unit

Carries out arithmetic and logic operations

Registers

Individual storage locations which hold an instruction, data or address of a memory location

Arithmetic and logic unit (ALU)

Holds the instruction that is currently being executed by the processor

Program counter register

Holds the accumulated total of results performed in the ALU

Instruction register

Holds the address of the main memory location storing the next instruction

Lesson 21 activities

Activity 21.1

The first column of the table contains some assembler instructions for the ARM1176JZ-S processor. Match each assembler instruction with the correct action and underline the part of the action that helped you know which assemble instruction it relates to. One has been done for you.




Assembler instruction




Action

ADD




Load from memory address into a register

SUB




Branch to a marked position in the program

MUL




Move data to a register

MOV




Store values in a register

CMP




Subtract data in registers

LDR




Compare values in registers

B




Multiply data in registers

STR




Add data in registers

Activity 21.2

Use the labels below to complete the diagram on the next page. The diagram shows how high level programs are translated into machine code so that they can be run by the CPU.


Labels

  • Python (high level language)

  • Machine code

  • Compiler

  • Assembly language (low level language)

  • Assembler




MOV R1, #50

MOV R2, #60

ADDS R0, R1, R2

MOV R7, #1

1111000011110000

1011100011100010

1010010010010100




Lesson 22 activities

Activity 22.1

Complete this diagram of the fetch-decode execute cycle using the labels below.



Labels

  • FETCH

  • DECODE

  • EXECUTE

  • Fetches the next instruction from memory and increments program counter

  • Decodes the bit pattern (machine code) into the instruction to be executed

  • Executes the instruction and stores the results in memory or registers


Activity 22.2

Guess how many fetch-decode-execute cycles are happening in the classroom at this moment! Write your guess here:

Now you’re going to do a proper estimate!


  • Estimate the number of digital computers (desktops, laptops, tablets, mobile phones, etc.) in the room:

  • Assuming a clock speed of 1 GHz for each digital computer and that each fetch-decode-execute cycle takes 10 instructions, calculate the number of fetch-decode-execute cycles taking place per second.

Activity 22.3

Sort these stages of the fetch-decode-execute cycle into the correct order:

Increment the program counter to point to the next instruction

Decode the instruction

Store results in a register

If the instruction uses data from memory, identify the memory addresses and fetch the data from memory

Fetch the next instruction from main memory using the memory address in the program counter register

Execute the instruction


FETCH





DECODE





EXECUTE








Lesson 23 activities

Activity 23.1

Label or colour code this assembly language instruction to show the opcode, and the destination and input operands.



SUB R0, R1, R2

What does this instruction ask the processor to do?





What is an immediate value?




Write the instruction to add the immediate value 8 to the contents of register R2 and store the result in register R4.




Write the instruction to multiply the contents of register R1 by the contents of register R2 and store the result in register R0.




What does this instruction ask the processor to do?

MOV R5, #1







Activity 23.2

ADD R0, R1, R2

In this instruction there are three operands: registers R0, R1 and R2.



Explain how a register differs from memory.




How many general-purpose registers does the ARM11 processor have?




Show the contents of the registers as each instruction is executed.

Hint: the MOV command actually puts a copy of the data in the specified register. The original stays where it is.




R0

R1

R2




0

5

3

MOV R0, R1

5

5

3

MOV R1, R2

5

3

3

MOV R2, R0
















R0

R1

R2




9

5

3

MOV R0, #0

0

5

3

ADD R0, R0, R1










SUB R0, R0, R2










MUL R0, R1, R2











Download 363.63 Kb.

Share with your friends:
1   2   3   4   5




The database is protected by copyright ©ininet.org 2024
send message

    Main page