CARDIAC A cardboard illustrative aid to computation - PowerPoint PPT Presentation

1 / 22
About This Presentation
Title:

CARDIAC A cardboard illustrative aid to computation

Description:

The function of the instruction register is to. store each ... Op Code Abbr. Meaning. 0 INP Input. Read from input device. 1 CLA Clear accumulator and add ... – PowerPoint PPT presentation

Number of Views:185
Avg rating:3.0/5.0
Slides: 23
Provided by: CIT358
Category:

less

Transcript and Presenter's Notes

Title: CARDIAC A cardboard illustrative aid to computation


1
CARDIACA cardboard illustrative aid to
computation
  • illustrates the operation of a computer
  • demos basic units of a simple computer
  • input
  • memory
  • accumulator
  • program
  • output

2
Simple Computer Block Diagram
output
input
program unit
memory
accumulator
3
SIMCO
Instruction register
Program unit
Program counter
Control unit
4
(No Transcript)
5
The IR
The function of the instruction register is
to store each instruction word during the
time that particular instruction is being
executed. Once this instruction is executed, the
IR is fed a new (instruction) word.
6
CARDIACs IR
7
Program Counter (PC)
8
CARDIACs PC
Program counter bug
Program counter bug
Noteit has Moved to Next instr
9
Flow Chart
Start
receive numbers to be added
do addition
announce answer
stop
10
Turn on computer
Start
Take 1st no., from input and store in memory
READ FIRST NUMBER
Take 2nd no., from input and store in memory
READ SECOND NUMBER
clear acc and transfer 1st no. to it from memory
PUT 1ST NUMBER IN ACCUMULATOR
transfer 2nd no. from mem to acc and add it to 1st
ADD SECOND NUMBER TO FIRST
STORE SUM IN MEMORY
transfer sum from acc to memory
transfer sum from mem to output and print
PRINT SUM
Stop
11
017 read first number 018 read second
number 117 put first in accumulator 218 add
second to the first 619 store sum in
memory 519 print sum

memory location
computer word
operation code
12
MEMORY
00
05
01
addresses
02
03
04
SIMCO has 100 addresses (00 through 99)
13
CADIACs memory
14
Converting SIMCO to THE Stored-Program Mode
Instruction Register


Program Counter
Program Unit

Control Unit
15
input
control
memory
cell selector
cells
output
accumulator
op code
address
instruction register (IR)
program counter
16
Program Example
017 read (input) first number 018 read second
number 117 put first number into the
accululator 218 add second number to the
first 619 store sum in memory location
19 519 print the sum
Memory locations
Operation codes(op codes)
17
Op codes
cardiac Instruction Set
Op Code Abbr. Meaning ------- ----
----------------------------------- 0 INP
Input. Read from input device 1 CLA
Clear accumulator and add 2 ADD
Add to accumulator 3 TAC Test
accumulator contents 4 SFT Shift
accumulator contents 5 OUT Output.
Write to output device 6 STO Store
accumulator to memory cell 7 SUB
Subtract from accumulator 8 JMP Jump
to address 9 HRS Halt and Reset
18
You can install a javaversion of cardiac
Requires Java language be installed first Your
instructor will demonstrate CARDIAC in
operation. http//sourceforge.net/project/showfil
es.php?group_id49761release_id91891 Note to
install type java jcinc from DOS command
window Play around with ittry to figure out how
to write and execute a program
19
CARDIAC program
20
1st program instruction
Note program begins in memory Location nine
21
Data wordsload here
22
Output 8 9 17
Write a Comment
User Comments (0)
About PowerShow.com