Skip to content

Commit

Permalink
feat: Courses no. 2,3,4 (#20)
Browse files Browse the repository at this point in the history
Added the courses no 2,3,4.

---------

Co-authored-by: aidanozo <[email protected]>
Co-authored-by: Ștefan-Dan Ciocîrlan <[email protected]>
  • Loading branch information
3 people authored Oct 21, 2024
1 parent 0734c91 commit d911bb7
Show file tree
Hide file tree
Showing 36 changed files with 1,930 additions and 53 deletions.
15 changes: 0 additions & 15 deletions .github/pull_request_template.md

This file was deleted.

34 changes: 0 additions & 34 deletions .github/workflows/actions.yml

This file was deleted.

4 changes: 2 additions & 2 deletions slides/courses/1/components.tex
Original file line number Diff line number Diff line change
Expand Up @@ -95,5 +95,5 @@
\centering
\scalebox{0.8}{\usebox{\asciiplcomp}}
\end{figure}
Rolul limbajelor de programare este de a crea iluzia unei ierarhi de calculatoare virtuale.
\end{frame}
Rolul limbajelor de programare este de a crea iluzia unei ierarhii de calculatoare virtuale.
\end{frame}
4 changes: 2 additions & 2 deletions slides/courses/1/functional.tex
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
\begin{frame}
\frametitle{Niveluri funcționale ale unui CN}
\begin{enumerate}
\item Dispozitve și circuite electronice (Transiztoare, portți logice) - hardware
\item Dispozitve și circuite electronice (Tranzistoare, porți logice) - hardware
\item Unități funcționale (UAL, Memorie, Interfețe) - firmware (Micropgramare) + hardware
\item Mașină fizică Strcuturi de interconectare și echipamente periferice - hardware
\item Nucleul sistem de operare - BIOS - firmware
Expand All @@ -28,4 +28,4 @@
\item Tendința actuală este de a trece cât mai multe funcții în hardware
\end{itemize}

\end{frame}
\end{frame}
79 changes: 79 additions & 0 deletions slides/courses/2/intro.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@
\begin{frame}
\frametitle{Information Representation}
\begin{itemize}
\item Decimal
\item Binary
\item Hexadecimal
\end{itemize}
\note{
}
\end{frame}

\begin{frame}
\frametitle{Information Representation}

\begin{table}[h!]
\centering
\scalebox{0.8}{
\begin{tabular}{|c|c|c|}
\hline
\textbf{Decimal} & \textbf{Binary} & \textbf{Hexadecimal} \\
\hline
0 & 0000 & 0x0 \\
1 & 0001 & 0x1 \\
2 & 0010 & 0x2 \\
3 & 0011 & 0x3 \\
4 & 0100 & 0x4 \\
5 & 0101 & 0x5 \\
6 & 0110 & 0x6 \\
7 & 0111 & 0x7 \\
8 & 1000 & 0x8 \\
9 & 1001 & 0x9 \\
10 & 1010 & 0xA \\
11 & 1011 & 0xB \\
12 & 1100 & 0xC \\
13 & 1101 & 0xD \\
14 & 1110 & 0xE \\
15 & 1111 & 0xF \\
\hline
\end{tabular}
}
\caption{Decimal, Binary, and Hexadecimal Values}
\label{tab:binary_decimal_hexadecimal}
\end{table}

\note{
}
\end{frame}


\begin{frame}
\frametitle{Information Representation}
\end{frame}

\begin{frame}
\frametitle{Big Endian vs Little Endian}
\begin{itemize}
\item Big Endian
\begin{itemize}
\item Most significant byte first
\item Network byte order
\item Example: 0x12345678 is stored as 0x12 0x34 0x56 0x78
\end{itemize}
\item Little Endian
\begin{itemize}
\item Least significant byte first
\item Intel byte order
\item Example: 0x12345678 is stored as 0x78 0x56 0x34 0x12
\end{itemize}
\end{itemize}
\end{frame}




\begin{frame}
\frametitle{Exam Question}
Given the following hexadecimal number $0x3A2E$ in big endian format, convert it to binary and decimal.
$0x3A2E = 0011\ 1010\ \ 0010\ 1110 = (3 * 16 + 10) * 2^8 + (2 * 16 + 14) = 58 * 256 + 46 = 14894$
\end{frame}
113 changes: 113 additions & 0 deletions slides/courses/2/main.tex
Original file line number Diff line number Diff line change
@@ -0,0 +1,113 @@
%\documentclass[notes,usenames,dvipsnames]{beamer}
%\documentclass[notes]{beamer} % print frame + notes
%\documentclass[notes=only]{beamer} % only notes
\documentclass[usenames,dvipsnames]{beamer} % only frames
\usepackage{pgfpages}
%\setbeameroption{show notes on second screen}
%\setbeameroption{show notes}
%subfigures
\usepackage{caption}
\usepackage{subcaption}

%tables packages
\usepackage{multirow}

% math
\usepackage{amsmath}

% bash command
\usepackage{graphicx}
\usepackage{listings}
% varbatim for ascii figures
\usepackage[T1]{fontenc}
\usepackage[utf8]{inputenc}
%\usepackage{verbatim}
\usepackage{lipsum} % for context
\usepackage{fancyvrb}
\usepackage{varwidth}


\newsavebox{\asciigcn}

% notes prefixed in pympress
\addtobeamertemplate{note page}{}{\thispdfpagelabel{notes:\insertframenumber}}
%theme used
\usetheme{Madrid}
%Information to be included in the title page:
\title[Computer Architecture] %optional
{Computer Architecture}

\subtitle{Course no. 2 - Information Representation}

\author[Ștefan-Dan Ciocîrlan] % (optional, for multiple authors)
{}

\institute[NUSTPB] % (optional)
{
\inst{}%
National University of Science and Technology\\
POLITEHNICA Bucharest
}

\date[NUSTPB 2024] % (optional)
{Computer Architecture}

\logo{
\includegraphics[height=0.9cm]{../../media/LOGO_UNSTPB_en.png}
\includegraphics[height=0.9cm]{../../media/logoACSQ.jpeg}
}


% Roman numerals
\newcommand*{\rom}[1]{\expandafter\@slowromancap\romannumeral #1@}
%split
\usepackage{amsmath}
%colors
%\usepackage[usenames,dvipsnames]{color} %loaded by the dcoument class
%subfigure
\usepackage{subcaption}
% block over block uncover
\setbeamercovered{invisible}
%\setbeamercovered{transparent}

%extra slide content
\AtBeginSection[]
{
\begin{frame}
\frametitle{Content}
\tableofcontents[currentsection]
\end{frame}
}
%notes or not
%\setbeamertemplate{note page}[plain]

\begin{document}

\frame{\titlepage}

\section{Information Representation}
\input{intro.tex}

\section{Textual Representation Systems}
\input{text.tex}

\section{Number Representation Systems}
\input{number.tex}

%\section{Image Representation Systems}
%\input{image.tex}

%\section{Audio Representation Systems}
%\input{audio.tex}

\section{Q\&A}
\begin{frame}
\end{frame}

%\begin{frame}
%\frametitle{Table of Contents}
%\tableofcontents
%\end{frame}


\end{document}
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slides/courses/2/media/Morse_code_tree3.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slides/courses/2/media/add.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added slides/courses/2/media/mul.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit d911bb7

Please sign in to comment.