![]() | Course info for the distance learning |
This is an informational web page for the Computer Systems course (NSWI170), which is being taught at the Faculty of Mathematics and Physics, Charles University. The schedule for the course can be accessed in SIS.
You can find here:
The course is currently led by Jakub Yaghob and Lubomír Bulej. Please direct inqueries of a specific topic (or home assignment) to the teacher who presented the topic.
16.2.2021 | Preparation of the course for the academic year 2020/2021. |
13.3.2020 | COVID-19 info. |
10.2.2020 | A new web page was created. |
Lab credit and the course test are completely independent.
Each lab will hold one assignment (possibly broken down into several steps). The assignments are incremental, which means that your code and knowledge obtained when solving one assignment may be required for the subsequent assignment(s). The individual assignemnts lead to the final home assignment. To receive a credit for the labs, you need to complete all the individual assignments from all labs and sucessfuly present the final home assignment to your lab teacher.
Under regular circumstances, the individual lab assignments are solved during the labs. If one fails to complete the assignment during the labs or misses the class altogether, the assignment should be finished at home. In any case, the assignments has to be uploaded to ReCodEx before midnight of the day when the next lab starts.
The final home assignment has to be presented in person to your labs teacher. Individual labs will have individual terms for presentations (announced by the lab teacher before the summer examination period). Primary criterium for the credit is that your solution is fully functional. Secondary criterum is the code quality. Solutions which severely violate good coding practices will not be accepted.
The course exam will take the form of a written test. The terms will be announced before the summer exam period in Student Information System as well.
If you have any questions or suggestions related to the lectures, please contact the teachers.
The presented schedule is only informational. Teaching time for a matter may vary slightly depending on the student's grasp.
2.3.2021 | Introduction, C/C++ language |
![]() |
|
9.3.2021 | C/C++ language (cont.) |
![]() |
![]() |
16.3.2021 | Computer and CPU architecture |
![]() |
![]() |
23.3.2021 | CPU - instruction set, registers | ||
30.3.2021 | CPU - instruction set (cont.), stack | ||
6.4.2021 | Memory - addressing, data, alignment, allocation |
![]() |
|
13.4.2021 | Memory - memory hierarchy, cache | ||
20.4.2021 | Programming languages - compilation, libraries, linking, memory organization, function calls, parameter passing |
![]() |
|
27.4.2021 | Programming languages - variables, heap, runtime, JIT, VM/container, source code portability | ||
4.5.2021 | Operating systems - role, architecture, CPU modes |
![]() |
|
11.5.2021 | Operating systems - interrupt, exception, DMA | ||
18.5.2021 | Operating systems - process, thread, scheduling, file system | ||
25.5.2021 | Operating systems - virtual memory | ||
1.6.2021 | Parallel programming, synchronization |
![]() |
If you have any questions or suggestions related to the labs, please contact your corresponding teacher.
Library for your Arduino labs:
Funshield.zip
Faltin Mo 12:20 |
Yaghob Tu 10:40 |
Klusáček Tu 12:20 |
Kruliš We 12:20 |
Šmelko We 12:20 |
Zavoral We 12:20 |
Bednárek We 14:00 |
|
C language | detailed info |
![]() |
detailed info |
![]() |
detailed info | detailed info | |
Arduino IDE, setup/loop |
![]() |
![]() |
|||||
LEDs & Buttons |
![]() |
![]() |
|||||
7-seg display |
![]() |
![]() |
|||||
7-seg display - multiplex |
![]() |
![]() |
|||||
7-seg display - running message |
![]() |
![]() |
The objective is to create a random number generator which will simulate dice throws in Advanced Dungeons & Dragons game. The game uses various types of polyhedral dices with different numbers of sides (d4, d6, d8, ...). Furthermore, a generated random number represents a sum of multiple throws. E.g., 3d6 means that player should throw 3 times using a dice with 6 sides (cube) and take the sum of these three throws (which is a number between 3 and 18).
The dice is controlled by 3 buttons and display the results on the 4-digit LED display. It operates in two modes. In normal mode it displays last generated number on the LED display. In configuration mode it displays the type (and repetition) of dice being simulated. First digit (1-9) displays number of throws, second digit displays symbol 'd', and the remaining two digits display the type of dice (d4, d6, d8, d10, d12, d20, and d100 should be supported; d100 is denoted as '00' on the LED display).
It might be a good idea to show some 'activity' on the display whilst the random number is being generated (whilst the button 1) is pressed. You may show currently computed random numbers (if they change fast enought so the user cannot possibly stop at the right number), or you may create some sort of animation on LED display or using the other onboard LEDs.
Remember that the probability distribution is not uniform, but if follows Binomial distribution. Your simulator must use counter/time measurement of how long the button 1 has been pressed to get a random number (which follows uniform distribution). You may use additional pseudo-random generators (even Arduino built-in functions) to assist you with this task, but the initial randomness has to be tied somehow to the button event duration. Any reasonable implementation of binomial distribution will be accepted, but strictly uniform random generators will not (i.e., you need to implement binomial distribution using uniform random generator).
The first contact private information (ZOOM password, Mattermost invitation) is written in a notice on a SIS module "Notice board".
We will use Mattermost communication platform for day-to-day communication among teachers and students. An invitation to the corresponding Mattermost team will be sent before the term starts by email. Join appropriate channels in the team (nswi170-compsys for general topics about the course and nswi170-compsys-xxxxxx, where xxxxxx is your lab teacher).
All available recordings from ZOOM lectures and labs are available on the course channel. Use your SIS login in the form xxx@cuni.cz for signing in.
School of computer science uses the ZOOM communication platform. Each lecture/lab will be scheduled and provided as a separate ZOOM meeting. Below is a table with corresponding ZOOM meeting IDs. Zoom meeting passwords are hidden in a notice on a notice board (SIS module).
Lectures will be recorded for anyone not able to attend an online lecture. The recorded video will be placed on a streaming platform and a link will be published here.
Date | Meeting ID | Meeting link | Recorded lecture/lab |
---|---|---|---|
2.3.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
9.3.2021 | 914 8545 2781 | Join the lab - Yaghob | Recorded lab |
9.3.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
16.3.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
23.3.2021 | 914 8545 2781 | Join the lab - Yaghob | Recorded lab |
23.3.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
30.3.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
6.4.2021 | 914 8545 2781 | Join the lab - Yaghob | Recorded lab |
6.4.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
13.4.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
20.4.2021 | 914 8545 2781 | Join the lab - Yaghob | Recorded lab |
20.4.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
27.4.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
4.5.2021 | 914 8545 2781 | Join the lab - Yaghob | Recorded lab |
4.5.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
11.5.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
18.5.2021 | 914 8545 2781 | Join the lab - Yaghob | Recorded lab |
18.5.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
25.5.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
1.6.2021 | 914 8545 2781 | Join the lab - Yaghob | Recorded lab |
1.6.2021 | 915 2445 5145 | Join the lecture - Yaghob | Recorded lecture |
Labs will continue with the same timetable as planned originally, including deadlines for uploading your solution to ReCodEx.
Lab teachers were instructed to prepare more informational materials for you. Moreover, they will contact you with specific instructions. In case of any doubt, do not hesitate to contact your lab teacher.
Date | Time | Meeting ID |
---|---|---|