THE sic mACHINE CSCI/CMPE 3334 David Egle.

Slides:



Advertisements
Similar presentations
Introduction – This book introduces to the design and implementation of System Software
Advertisements

System Programming Design and Implementation of system software.
Instruction Set Design
1 Lecture 3: Instruction Set Architecture ISA types, register usage, memory addressing, endian and alignment, quantitative evaluation.
系 統 程 式 System Programming
10/9: Lecture Topics Starting a Program Exercise 3.2 from H+P Review of Assembly Language RISC vs. CISC.
2.3) Example of program execution 1. instruction  B25 8 Op-code B means to change the value of the program counter if the contents of the indicated register.
CSC 3650 Introduction to Computer Architecture Time: 3:30 to 6:30Meeting Days: WLocation: Oxendine 1237B Textbook: Essentials of Computer Architecture,
Welcome to Systems Software The purpose of this course is to provide background in fundamental types of system software, particularly assemblers, loaders,
1 System Programming System Software, pp Chia-Hui Chang, Assistant Professor Dept. of Computer Science & Information Engineering National Central.
The Simplified Instructional Computer (SIC/SICXE)
1: Background1 System Programming ( 系統程式 ) Main goal: r What is a system software? m Compiler m Assembler m Loader and Linker m Debugger… r To design and.
Simplified Instructional Computer (SIC). SIC Architecture Two versions: SIC and SIC/XE (extra equipments). SIC program can be executed on SIC/XE. Memory.
System Software by Leland L. Beck chapter 1, pp.1-20.
Chapter 1 Background System Software Chih-Shun Hsu
1 Chapter 1 Background Professor Gwan-Hwan Hwang Dept. Computer Science and Information Engineering National Taiwan Normal University 9/17/2009.
1 The Simplified Instructional Computer (SIC) Hsiang-Fu Yu National Taipei University of Education.
System Software.
System Software by Leland L. Beck chapter 1, pp.1-20.
System Programming Chih-Hung Wang Chapter 1: Background (Part-1) 參考書目
1 RISC Machines l RISC system »instruction –standard, fixed instruction format –single-cycle execution of most instructions –memory access is available.
Chih-Hung Wang Chapter 1: Background (Part-1) 參考書目 Leland L. Beck, System Software: An Introduction to Systems Programming (3rd), Addison-Wesley, 1997.
Computer Architecture
1 Instructions and Addressing
Embedded Systems: Hardware Computer Processor Basics ISA (Instruction Set Architecture) RTL (Register Transfer Language) Main reference: Peckol, Chapter.
Background. Outlines Brief introduction to system software System software and machine architecture Simplified Instructional Computer (SIC) –Architecture.
CPS120: Introduction to Computer Science
Machine Instruction Characteristics
Computer Systems Organization CS 1428 Foundations of Computer Science.
Memory and Addressing How and Where Information is Stored.
Computer Architecture Memory, Math and Logic. Basic Building Blocks Seen: – Memory – Logic & Math.
In1210/01-PDS 1 TU-Delft Instructions and addressing.
What is a program? A sequence of steps
CPS4200 System Programming Spring 1 Systems Programming Chapter 1 Background I.
國立政治大學資訊科學系 Introduction
김길용 교수 분산처리연구실 시스템 프로그래밍 김길용 교수 분산처리연구실
Machine dependent Assembler Features
Immediate Addressing Mode
MIPS Instruction Set Advantages
CC410: System Programming
Prof . Ki-Dong Chung Pusan Nat’l University
Control Unit Lecture 6.
CPU Organisation & Operation
Central Processing Unit Architecture
System Programming and administration
System Programming Design and Implementation of system software.
SYSTEM SOFTWARE - UNIT II
Computer Organization and Design
Computer Architecture
Assemblers - 2 CSCI/CMPE 3334 David Egle.
Central Processing Unit
Simplified Instructional Computer (SIC)
Processor Organization and Architecture
MARIE: An Introduction to a Simple Computer
ECEG-3202 Computer Architecture and Organization
Chapter 1 Background Professor Gwan-Hwan Hwang
ECEG-3202 Computer Architecture and Organization
Classification of instructions
Simplified Instructional Computer (SIC)
ultraSPARC과 SIC/XE Machine 비교
ECEG-3202 Computer Architecture and Organization
Introduction to Microprocessor Programming
CPU has 6 special locations called registers
Assemblers CSCI/CMPE 3334 David Egle.
Welcome to Systems Software
Chapter 4: Computer Architecture
Program Execution.
SYSTEM SOFTWARE CS2304 Dr.A.KANNAN, PROFESSOR & HEAD,
William Stallings Computer Organization and Architecture 8 th Edition Chapter 11 Instruction Sets: Addressing Modes and Formats.
Lecture 1: SIC Architecture
Presentation transcript:

THE sic mACHINE CSCI/CMPE 3334 David Egle

The SIC machine Simplified Instruction Computer Hypothetical machine which includes hardware features most often found (well, in 1997) Two versions standard model XE model extra equipment / extra expensive upward compatible

SIC Machine Architecture (1/4) Memory byte: 8 bits word: 3 bytes size: 2^15 = 32K bytes address: byte or lowest numbered byte in a word Data formats integer: word, 2’s complement character: byte, ASCII representation

SIC Machine Architecture (2/4) Registers 5 registers – each one word in length Name Number Use A Accumulator X 1 Index register L 2 Linkage register PC 8 Program counter SW 9 Status word

SIC Machine Architecture (3/4) Instruction format three fields opcode: 8 bits index bit: 1 bit address: 15 bits Addressing modes Direct: x = 0, Target Address TA = address Indexed: x = 1, TA = address + (X) Instruction set 25 instructions – see appendix opcode x address

SIC Machine Architecture (4/4) Input and Output to/from rightmost byte of register A one byte at a time each device is assigned 8-bit code Instructions TD – test device RD – read data WD – write data

SIC/XE Machine Architecture (1/7) Based on SIC, but with additions as noted below Memory Size: 2^20 = 1Mbyte Additional data format floating point: 6 bytes (2 words) high-order bit of the fraction must be 1 exponent is unsigned binary number value = f x 2^(exp – 1024) zero represented by all bits set to zero

SIC/XE Machine Architecture (2/7) Extra registers Name Number Use B 3 Base register S 4 General T 5 F 6 Floating point accumulator; 6 bytes

SIC/XE Machine Architecture (3/7) Instruction formats 4 formats: 1, 2, 3, and 4 bytes 8 opcode 8 4 opcode r1 r2 6 1 12 op n i x b p e displacement (disp) 6 1 20 op n i x b p e address

SIC/XE Machine Architecture (4/7) Additional instructions load and store new registers handle floating point register – register operations I/O channels perform I/O while CPU is executing other instructions

SIC/XE Machine Architecture (5/7) Addressing modes (formats 3 and 4) Relative addressing (e = 0) b = 1, p = 0  TA = (B) + disp; disp is unsigned integer b = 0, p = 1  TA = (PC) + disp; disp is 2’s complement b = 0, p = 0  TA = disp (12 bit address) Direct addressing (e = 1) b = 0, p = 0  TA = disp (20 bit address) Indexed addressing (x = 1) add (X) to calculated value of TA

SIC/XE Machine Architecture (6/7) Addressing modes cont’d (formats 3 and 4) immediate addressing i = 1, n = 0  TA is the operand indirect addressing i = 0, n = 1  (TA) is the address of the operand simple addressing i = 1, n = 1  use one of the modes on the previous slide compatibility mode i = 0, n = 0  use SIC format

SIC/XE Machine Architecture (7/7) Compatibility mode Note that all SIC instructions end with 00 All SIC instructions are 3 bytes (format 3) bits b, p, and e, are considered part of address

Examples of SIC and SIC/XE code Read section 1.3.3 of the text Note that I will not require that you write SIC code, but you should understand what the code does.