Announcements Homework #8 due Monday 6:00pm. – extra credit tasks are described at bottom of assignment page Upcoming office hours: – Tomorrow: Sheng 12-1:30pm,

Slides:



Advertisements
Similar presentations
1 (Review of Prerequisite Material). Processes are an abstraction of the operation of computers. So, to understand operating systems, one must have a.
Advertisements

Slide 4-1 Copyright © 2004 Pearson Education, Inc. Operating Systems: A Modern Perspective, Chapter 4 Computer Organization.
Assembly Language for Intel-Based Computers, 4 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify and.
Announcements Homework #8 due Monday at 6:00pm Reference implementation coming soon! Upcoming office hours: Tomorrow: Chris 1:30-3pm, Swati 6:30-7:30pm.
COSC 120 Computer Programming
Chapter 4: The Building Blocks: Binary Numbers, Boolean Logic, and Gates Invitation to Computer Science, C++ Version, Third Edition.
COMS W1004 Introduction to Computer Science June 25, 2008.
Midterm Wednesday Chapter 1-3: Number /character representation and conversion Number arithmetic Combinational logic elements and design (DeMorgan’s Law)
CSCE 121, Sec 200, 507, 508 Fall 2010 Prof. Jennifer L. Welch.
1 Key Concepts:  Why C?  Life Cycle Of a C program,  What is a computer program?  A program statement?  Basic parts of a C program,  Printf() function?
CS250: Computer Architecture Midterm Review Prof. Chris Clifton February 28, 2007.
Overview The von Neumann Machine - the programmable digital computer Introducing the LC-3 Computer - A “toy” computer for us to learn from Computer machine.
Arithmetic I CPSC 321 Andreas Klappenecker. Administrative Issues Office hours of TA Praveen Bhojwani: M 1:00pm-3:00pm.
Topic R3 – Review for the Final Exam. CISC 105 – Review for the Final Exam Exam Date & Time and Exam Format The final exam is 120-minutes, closed- book,
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
COMP1170 Midterm Preparation (March 17 th 2009) Acknowledgment The notes are adapted from those provided by Deitel & Associates, Inc. and Pearson Education.
COMS W1004 Introduction to Computer Science June 29, 2009.
Embedded Systems: Hardware Computer Processor Basics ISA (Instruction Set Architecture) RTL (Register Transfer Language) Main reference: Peckol, Chapter.
Von Neumann machine prior to von Neumann, special memories (e.g., mercury delay tubes, vacuum tubes) were used to store data, and programs were either.
Assembly Language for Intel-Based Computers, 5 th Edition Chapter 1: Basic Concepts (c) Pearson Education, All rights reserved. You may modify.
Final Exam Review Instructor : Yuan Long CSC2010 Introduction to Computer Science Apr. 23, 2013.
Dept. of Computer Science Engineering Islamic Azad University of Mashhad 1 Computer System Architecture Dept. of Computer Science Engineering Islamic Azad.
COE Computer Organization & Assembly Language Talal Alkharobi.
CIS Computer Programming Logic
CSU0014 Assembly Languages Homepage: Textbook: Kip R. Irvine, Assembly Language for Intel-Based Computers,
Summer 2014 Chapter 1: Basic Concepts. Irvine, Kip R. Assembly Language for Intel-Based Computers 6/e, Chapter Overview Welcome to Assembly Language.
Assembly Language for x86 Processors 7th Edition
Midterm Exam Logistics
By Sidhant Garg.  C was developed between by Dennis Ritchie at Bell Laboratories for use with the Unix Operating System.  Unlike previously.
Computer Science 210 Computer Organization The von Neumann Architecture.
Computer Systems Organization CS 1428 Foundations of Computer Science.
CMPSC 16 Problem Solving with Computers I Spring 2014 Instructor: Lucas Bang Lecture 7: One More Loop Problem, Generating “random” values, Midterm Review.
Housekeeping 1.teams—end of class 2.Example verilog code (alter) 3.Example altera report 4.Lab Monday: you will be asked to show: -- one or more reports.
Summary. Data Types int A; I am declaring a variable A, which is an integer.
Chapter 19 Number Systems. Irvine, Kip R. Assembly Language for Intel-Based Computers, Translating Languages English: Display the sum of A times.
These notes were originally developed for CpSc 210 (C version) by Dr. Mike Westall in the Department of Computer Science at Clemson.
Computer Science 101 Computer Systems Organization.
Indira Gandhi National Open University presents. A Video Lecture Course: Computer Platforms.
CS 1308 Exam 2 Review. Exam Format 110 Total Points 24 Points Short Answer 28 Points Fill in the Blank 16 Points T/F 36 Points Multiple Choice The above.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
Textbook C for Scientists and Engineers © Prentice Hall 1997 Available at NUS CO-OP at S$35.10.
Lecture 15: Course Review BJ Furman ME 30 16MAY2011.
Page 1 Computer Architecture and Organization 55:035 Midterm Exam Review Spring 2011.
Instructor: Alexander Stoytchev CprE 185: Intro to Problem Solving (using C)
C is a high level language (HLL)
Page 1 Computer Architecture and Organization 55:035 Final Exam Review Spring 2011.
Announcements Homework #2 will be posted after class – Due Monday, Oct 1, 1:30pm Upcoming office hours: – Tomorrow: Sheng, 12-1:30pm, 207 Moore – Monday:
Digital Computer Concept and Practice Copyright ©2012 by Jaejin Lee Control Unit.
INTRODUCTION TO PROGRAMING System Development Mansoura October 2015.
CS 1428 Exam I Review. Exam Format 130 Total Points – 40 Points Writing Programs – 30 Points Tracing Algorithms and determining results – 20 Points Short.
CS 1428 Final Exam Review. Exam Format 200 Total Points – 60 Points Writing Programs – 45 Points Tracing Algorithms and determining results – 20 Points.
Computer Organization Exam Review CS345 David Monismith.
Final exam: Wednesday, March 20, 2:30pm
Computer Science 210 Computer Organization
Computer Science 210 Computer Organization
Computer Science I CSC 135.
Computer Science 210 Computer Organization
CS 2308 Exam I Review.
Topic 3 Number Representations and Computer Arithmetics
CSCE Fall 2013 Prof. Jennifer L. Welch.
Computer Science 210 Computer Organization
CS 1428 Final Exam Review.
Topic 3 Number Representations and Computer Arithmetics
CSCE Fall 2012 Prof. Jennifer L. Welch.
Announcements Class is full! Sorry... :-(
CS 1428 Final Exam Review.
Announcements Homework #1 will be posted on course website after class
Chapter 6 Programming the basic computer
Chapter 4 The Von Neumann Model
Presentation transcript:

Announcements Homework #8 due Monday 6:00pm. – extra credit tasks are described at bottom of assignment page Upcoming office hours: – Tomorrow: Sheng 12-1:30pm, Greg 1:30-3pm – Saturday: Greg 2-4pm – Sunday: Chris 2-4pm – Monday: Sheng 12-2pm, Chris 2-4pm Please fill out the course evaluations!

Today Preview of CIT 595 Final course grading Final exam stuff

CIT 595 “Digital System Organization & Design” Originally very hardware focused Then some OS concepts introduced Then pretty much an OS course Now a systems programming course

What you’ll learn in CIT 595 More C (function pointers) C++: “C with objects” Linux systems programming – Interacting with the operating system – Parallelism and synchronization – Inter-process communication – Networking

What to expect from CIT 595 A lot of programming No, seriously, a LOT Longer, more challenging programming assignments More application and less theory

Grading Guidelines Homeworks: 50% Lab assignments: 10% Midterm exam: 15% Final exam: 25% Current weighted average: 90.3% Projected weighted average: 86.9% 97+A A 90-93A B B 80-83B-

Final Grading Homework #6 should be graded by this weekend Homeworks #7 and 8 should be graded by the final exam date (Dec 17) Final exams should be graded by Dec 19 Final course grades should be posted on Dec 21

Final Exam Logistics Monday, Dec. 17, 6-8pm Location: DRL A6 You can use your book, notes, etc. No electronic devices! Review session... when? Sandwiches, sodas, snacks, etc. will be provided from 5-6pm that evening in Levine 307

Final Exam Material Patt & Patel chapters 2-14, 16, – in other words, pretty much the whole book except for chapters 1, 15, and 17 x86 architecture (Appendix B) Data structures No UNIX stuff from lab! No computer science history! About 25% pre-midterm stuff, 75% stuff from after the midterm

Format of the exam Multiple-choice definitions/concepts Short answer and problem solving – Like midterm and questions from book Understanding C and assembly code Modifying C and assembly code Writing C code (around lines max) – no writing LC-3 from scratch!

Preparing for the exam Documents in Blackboard: – study guide (list of questions from book) – practice questions (and solutions) – solutions to homework assignments Form a study group Ask questions on Piazza

Computer Numbers (Chp. 2) Unsigned binary integers – Decimal-to-binary conversion – Hexadecimal numbers – Unsigned binary arithmetic Signed binary integers – Sign/magnitude – Two’s complement – Overflow

Computer Numbers (cont.) Floating point representation Logical operations and bit vectors Character representation – ASCII – Unicode

Digital Logic (Chp. 3) p-type and n-type transistors NOT, AND, and OR gates Sum-of-products algorithm

Combinational Logic Circuits (Chp. 3) Adder (1-bit, 4-bit, n-bit) Decoder: n inputs, 2 n outputs Demultiplexer: 1 input, n select lines, 2 n output Multiplexer: 2 n inputs, n select lines, 1 output

Memory (Chp. 3) R-S Latch: depends on “state” Gated D Latch: single bit of memory Register: some number of Gated D Latches that form a single unit of memory

von Neumann Architecture (Chp. 4) Memory – address space vs. addressability – MAR and MDR Control Unit – fetch, decode, execute – IR and PC – ALU, registers

LC-3 Instruction Set Architecture (Chp. 4) Instruction format – Opcode – Operands Translating from assembly language to machine language Types of instructions & what they do – ALU operations – Data movement operations – Control operations

x86 Architecture (Appx. B) How is it different from LC-3? – addressability – address space – number of registers – size of registers – number of operations – size of instructions

Assembly Language (Chp. 7) Symbol table Finding and fixing bugs What does this program do? How can this program be improved? Relation with higher-level language (like C) BLKW, FILL, and STRINGZ

Traps, Interrupts, Subroutines (Chp. 8-9) How are subroutines called? How does the program know where to go back to? How do traps work? How does the program know where to go back to? How do interrupts work? How is the state saved? What happens when the handler finishes? Traps: GETC, IN, OUT, PUTS, HALT

Memory and the Stack (Chp. 10) What is the stack used for? What is the stack pointer? Frame pointer? What values go on the stack when a function is called?

C Basics (Chp. 11) Compilation process – Preprocessor – Compiler – Linker Anatomy of a C program Primitive Datatypes

Variables and Operators (Chp. 12) Legal variable names Mathematical operators Assignment shortcuts Scope printf and scanf

Loops & Conditionals (Chp. 13) Logical operators Comparison operators True & False if, if/else while, do/while, for

Functions (Chp. 14) Function declarations/prototypes Input & Output Call-by-reference vs. Call-by-value

Arrays & Strings (Chp. 16) Declaring and initializing arrays Indexing arrays Declaring strings Null-terminated strings String functions – strlen, strcmp, strcat, strcpy

What gets printed? 1 char values[] = { '5', 73, '3', 0 }; 2int x = values[values[values[3]]- values[2]]; 3 int y = (char)x - '0'; 4 int z = values[y]; 5 if (z & values[z]) z = ++z; 6 printf(“z is: %d\n”, z);

1 int one(int a, int b) { 2 int k, t; 3 k = a - b; 4 t = a + b + 1; 5 if (k % 2 == 0) return t; 6 else return 0; 7 } 8 9 int two(int x, int y) { 10 int m; 11 return m + x + y; 12 } main() { 15 int result = two(5, one(4, 3)); 16 printf(“result is %d\n”, result); 17 }

Pointers (Chp. 16) pointer syntax passing pointers as function parameters pointers vs. arrays vs. strings

1 int apple; 2 int *ptr; 3 int **ind; 4 ind = &ptr; 5 *ind = &apple; 6 **ind = 123; 7 ind++; 8 *ptr++; 9 apple++; 10 printf(“%d %d %d”, ind, ptr, apple);

Structs (Chp. 19) defining a struct typedef pointers to structs

Data Structures Linked List Stack Queue Binary Search Tree Hashtable Concepts (how they work) Implementation in C

Final Exam Logistics Monday, Dec. 17, 6-8pm Location: DRL A6 You can use your book, notes, etc. No electronic devices! Sandwiches, sodas, snacks, etc. will be provided from 5-6pm that evening in Levine 307

Any questions?

The end. (thanks!)