Course syllabus

Prerequisites:

COMPSCI 105 or 107

Restriction:

None


Course Description

The low level representation of data and algorithms in the computer. An introduction to computer organisation. The instruction execution model. Assembly and disassembly of instructions. Assembly language programming. How a high-level language is implemented at the machine level. Hardware support necessary to implement a secure multi-user operating system.

 

Lecturers

  • Dr Bruce Sham
    b.sham@auckland.ac.nz
    Room 
    Office hours: whenever I am around or email me for appointment
  • Dr Xinfeng Ye
    xinfeng@cs.auckland.ac.nz
    Room 303.589
    Office hours: whenever I am around or email me for appointment

Tutor

  • Josh Hill

jhil955@aucklanduni.ac.nz
Office hours: Wednesday 12pm-1pm In the new Science Building Ground Floor

 

 

Course Outcomes

A student who successfully completes this course should be able to:

  • describe elemental data structures, including characters, strings, signed & unsigned integers (various sizes), and pointers
  • convert between various representations of a number
    describe the range and limitations of representations of numbers
  • make the connection between simple combinational circuits and their corresponding truth tables
  • describe the execution of basic instructions at the instruction set architecture level
  • write simple assembly language programs
  • describe the assembly process, and the information that is contained in assembly language instructions
  • explain the concept of a pointer and distinguish between the value of a pointer and the entity pointed to
  • write simple programs in C
  • describe how an operating system and high-level languages provide abstractions that simplify the programming of complex systems
  • describe how the features of virtual memory, user/kernel mode, interrupts and exceptions make it possible to implement a secure multi-user system
  • describe how to use cache memory to bridge the speed gap between CPU and memory


Lecture Schedule

  • What is a computer system?
  • Bits and integer representation
  • Character and string representation
  • Arithmetic operations
  • Logic operations
  • Logic gates
  • Combinational logic
  • Storage elements
  • Sequential logic
  • The von Neumann model
  • An Instruction Set Architecture (ISA)
  • Assembly language
  • Input and Output including interrupts
  • Traps
  • Subroutines
  • Memory stack
  • Introduction to programming in C
  • Mapping C variables and operators to an ISA
  • Mapping C Control Structures to an ISA
  • Mapping C functions to an ISA
  • Handling C function calls
  • Mapping C pointers and arrays to an ISA
  • Mapping C structures to an ISA
  • Handling C’s dynamic memory allocation
  • User/kernel mode
  • Hardware support for context switching
  • Hardware support for synchronisation
  • Exceptions
  • MMU and virtual memory
  • Cache memory

Assessment

Requirements for passing

In order to pass the paper, you must:

  • Pass test and exam combined - the pass mark is 50%
  • Get an overall pass of 50%

N.B. The assignments are worth 20% and so if you don't do them you are automatically losing 20%. Also the test and exam will have questions based on the work in the assignments. So if you don't do the assignments you are making it very difficult to pass the course.

Tutorials

There are tutorials every week, beginning in week two. There are no marks associated with the tutorials but you will get experience and assistance with understanding the material and programming in LC-3 assembly language and C.

Assignments

The assignments are worth 20% in total.

Test

The test is worth 20% of your final mark.

Room: 260-115

Time: 08:00, 2017-09-19

 

Exam

The final exam is worth 60% of your final mark. Please check Student Services Online for the exam time and date. The exam is closed book, and calculators are not permitted. Provisional exam results can be obtained from Student Services Online.

 

Textbook

Introduction to Computing Systems: From Bits and Gates to C and Beyond, 2/e
Yale N. Patt, University of Texas at Austin
Sanjay J. Patel, University of Illinois at Urbana/Champaign

http://highered.mheducation.com/sites/0072467509/index.html

Lecture Recordings

All lectures are recorded. There may be a delay of 1-2 days before the lecture recordings are distributed through Canvas. You can find the lecture recordings on the Lecture Recordings page (COMPSCI 210 > Pages > Lecture Recordings). Note that although the lectures are recorded, some learning activities conducted in class do not translate well to the recordings. To maximise your learning opportunities, you are encouraged to attend the class in person.

Discussion Forums

The Piazza discussion forums within Canvas are regularly monitored by teaching staff. Please make use of the forums to ask any questions that you think might be of interest to other students. If your question is of a personal nature, or relates to a unique situation that will be of little interest to others, then please contact the teaching staff directly.

Help with Canvas

For help with Canvas see:
https://www.auckland.ac.nz/en/about/learning-and-teaching/CanvasHomepage/canvas-help---support.html.


Handling illness or absence

If you must leave for family emergencies etc., PLEASE talk to the lecturer, or somehow get a message to the department. Very few problems are so urgent that we cannot be told quite quickly.
For problems affecting assignments or tests, see the lecturer, as soon as reasonably possible.
For illness during exams (or other problems that affect exam performance) students MUST contact the University within one week of the last affected examination, to apply for an aegrotat pass (for illness) or compassionate pass (other problems). The one week limit is strictly enforced.
Refer to the University information about Aegrotat and Compassionate Considerations:
https://www.auckland.ac.nz/en/for/current-students/cs-academic-information/cs-examination-information/cs-aegrotat-and-compassionate-consideration.html

Academic Integrity

The University of Auckland will not tolerate cheating, or assisting others to cheat, and views cheating in coursework as a serious academic offence. The work that a student submits for grading must be the student's own work, reflecting his or her learning. Where work from other sources is used, it must be properly acknowledged and referenced. This requirement also applies to sources on the world-wide web. A student's assessed work may be reviewed against electronic source material using computerised detection mechanisms. Upon reasonable request, students may be required to provide an electronic version of their work for computerised review.
Please refer to http://www.auckland.ac.nz/uoa/home/about/teaching-learning/honesty.

Course summary:

Date Details Due