Ceng 1
Ceng 1
https://ceng240.github.io/
Introduction Objectives
CEng 240 Spring 2023 Course objectives, content, outline; Grading; Information
This course gives a brief introduction to a working understanding of basic
computer organization, data representation, programming language
Week 1 about the homeworks, the labs, the exams. constructs, and algorithmic thinking. It is designed as a first course of
programming and supported by laboratory sessions for students outside of
the Computer Engineering major.
Gönül Günal
Basic computer organization: Textbook
Introduction, What is computing, programming Programming with Python for Engineers, by S. Kalkan, O. T. and G.
Üçoluk. Available at: https://pp4e-book.github.io/
Basic Computer Organization Von Neumann Architecture, CPU & Memory Course Workbook
Fetch, decode, execute cycle Available at: https://pp4e-workbook.github.io/
Machine code + assembler It contains solved and unsolved exercises in Python
The book is interactive and available in Colab, HTML and PDF. The workbook in a similar format. https://pp4e-workbook.github.io/
Introduction to https://ceng240.github.io/
the Course
https://pp4e-book.github.io/
Course conduct
Each week: 2-hours online session (prescheduled, with instructor) + 2-hours practice
sessions (on your own time)
8 Lab exams (online)
Midterm exam and final exam.
Contact
[email protected]
https://en.m.wikipedia.org/wiki/File:Computer_fr
om_inside_018.jpg
https://cdn.britannica.com/61/74061-050-
47B62C0E/computer-peripherals-images-laser- PROGRAM
printer-inkjet-layout.jpg
Input: Get data from the keyboard, a file, etc. A program consists of a series of instructions to be
Output: Display data on the screen or send data to a performed.
file. Python
Math: Perform basic mathematical operations. series of steps to be performed -> High-level
conditional execution: Check for certain conditions Machine code programs -
and execute the appropriate sequence of
statements.
Repetition: Perform some action repeatedly, with Low level
some variation.
2023 CEng 240 19 2023 CEng 240 20 2023 21
Instruction cycle
Central Processing Unit
(Fetch-decode-execute) https://www.youtube.com/watch?v=Z5JC9Ve1sfI
Fetch
of a computer Retrieve the next instruction
It consists of: from the memory into the
Control Unit (CU) registers.
Arithmetic Logic Unit (ALU) Decode
Registers Look at the opcode of the
instruction and decode what
Input/Output connections
actions should be performed.
Execute
Execute the actions identified in
the decode phase.
2023 CEng 240 25 2023 CEng 240 26 2023 CEng 240 27
Stored Program Concept Peripherals of a Computer
All input-output
devices are
connected to the
CPU via a wiring
system called bus.
Final Words:
The running of a computer Operating System (OS)
Important Concepts
BIOS (Basic Input-Output System) is loaded Computer, computing, programming.
Power-On Self Test (POST) is performed. The von Neumann Architecture.
The interaction between the CPU and the memory via address, R/W and
Checks CPU and RAM for errors book by G. M. Schneider, J. L. Gersting data bus lines.
Identifies and initializes peripherals Memory management
The crucial components on the CPU: The control unit, the arithmetic logic
Looks for an OS through the storage devices Process management unit and the registers.
The fetch-decode-execute cycle.
Master Boot Record (MBR) of a disk contains a table Device management
The stored program concept.
and code piece for loading the OS on that disk File management Operating system and its responsibilities.
MBR is executed to load the OS. Security
User interface
2023 CEng 240 31 2023 CEng 240 32 2023 CEng 240 33
Final Words:
Reading
Textbook: 1st chapter. "I hear and I forget.
The material at the end of the first chapter. I see and I remember.
History of computing: I do and I understand."
http://www.computersciencelab.com/ComputerH - Confucius
istory/History.htm
https://www.youtube.com/playlist?list=PL1331A4
548513EA81