Skip to content

Commit

Permalink
[ivt] minor fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
Headary committed May 18, 2022
1 parent 3e27c78 commit 09c812e
Show file tree
Hide file tree
Showing 8 changed files with 48 additions and 11 deletions.
4 changes: 2 additions & 2 deletions ivt/2-informace-v-pocitaci.md
Original file line number Diff line number Diff line change
Expand Up @@ -61,12 +61,12 @@ zbytky dělení | 1 | 1 | 0 | 1 | 0 | 1 | 1 | 0
- záporné číslo zaznamenáno jako binární negace (výměna 0 a 1) + 1
- podle úvodního bitu lze rozeznat kladná/záporná čísla
- využití přetečení
- 00000000 - 00000001 = 11111111
- $00000000 - 00000001 = 11111111$
- jediná reprezentace nuly
- stejné algoritmy pro sčítání a odčítání
- zachována komutativnost
- používané v počítačích
- příklad: pokud 00001101 je binární vyjádření čísla 13, pak −13 se vypočte jako NOT(00001101) + 1 = 11110010 + 1 = 11110011
- příklad: pokud 00001101 je binární vyjádření čísla 13, pak $−13$ se vypočte jako $\mathrm{NOT}(00001101) + 1 = 11110010 + 1 = 11110011$
\eq[m]{
20\_{10} - 13\_{10} = 20\_{10} + (-13)\_{10} = 00010100\_{2} + 11110011\_{2} =\\\\
= 1~00000111\_{2} = 7\_{10} \\text{(po odříznutí přeteklého devátého bitu)}
Expand Down
2 changes: 1 addition & 1 deletion ivt/22-io-if.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
- následné proměnné specifikují hodnotu dat ve formátu
- nekončí automaticky novým řádkem
- \inlistc{fwrite(const void *ptr, size_t size, size_t nmemb, FILE *stream);}
- \inlistc{*ptr} -- buffer na vypsání, \inlistc{size, nmemb} -- délka a počet da
- \inlistc{*ptr} -- buffer na vypsání, \inlistc{size, nmemb} -- délka a počet dat
- zápis binárních dat do souboru nebo streamu

### Formát printf/scanf
Expand Down
5 changes: 5 additions & 0 deletions ivt/3-boolean-algebra.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
\subfloat[Člen #1 -- EU/IEC]{\includegraphics[height=1.5cm]{3-#2-eu}}
\qquad
\subfloat[Člen #1 -- US]{\includegraphics[height=1.5cm]{3-#2-us}}
\label{3-gate-#2}
\end{figure}
}

Expand All @@ -29,6 +30,7 @@
\bottomrule
\end{tabular}
}
\label{3-gate-#2}
\end{figure}
}

Expand Down Expand Up @@ -209,3 +211,6 @@ A \land(\lnot A \lor B) &= A \land B \\\\
- v počítači provádí boolenovou algebru na vstupních signálech a uložených datech
- např. ALU (arithmetic logic unit)
- stavba na základě matematické funkce z logických členů

\fullfig{4-circuit-problem}[Příklad kombinačního obvodu]

2 changes: 0 additions & 2 deletions ivt/4-sekvencni-obvod.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,6 @@
- vstupní hodnoty se projeví až v následujícím stavu
- výstup závislý pouze na vnitřním stavu

\fullfig{4-circuit-problem}[Příklad kombinačního obvodu]

## SR Latch
- základní paměťový obvod
- sestaven z NAND nebo NOR gates
Expand Down
4 changes: 2 additions & 2 deletions ivt/6-periferie.md
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,13 @@
- dokonalá černá -- pixel vytváření vlastní světlo

#### Parametry
- velikost ($"20 ''"--"40 ''"$)
- velikost (uhlopříčka $"15 ''"$ -- $"42 ''"$)
- připojení
- analog -- analog, VGA
- digitální -- DVI, HDMI, DisplayPort
- poměr stran -- $16:9, 16:10, 4:3, 21:9$
- rozlišení -- Full HD ($1~920\times 1~080$), QHD ($2~560\times 1~440$), 4K
- frekvence -- $"50 Hz" -- "320 Hz"$
- frekvence -- $"50 Hz"$ -- $"320 Hz"$

### Tiskárna
- vynesení obrazu na papír
Expand Down
2 changes: 1 addition & 1 deletion ivt/8-internet.md
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@
- příklad
- Prefix sítě \texttt{192.168.88.0/24} -- host \texttt{192.168.88.1}--\texttt{192.168.88.254}
- broadcast na \texttt{192.168.88.255}
- Prefix sítě \texttt{10.5.24.+/24} -- host \texttt{192.168.88.1}--\texttt{192.168.88.254}
- Prefix sítě \texttt{10.5.24.128/25} -- host \texttt{10.5.24.129}--\texttt{10.5.24.254}

\begin{table}
\centering
Expand Down
8 changes: 5 additions & 3 deletions ivt/Makefile
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

OUT=out
GRAPHICS=graphics

Expand All @@ -8,18 +7,21 @@ GRAPH_DEPS=$(call graphics-deps,$(GRAPHICS))
.PHONY: all graphics pdf complete test
.SECONDARY: $(GRAPH_DEPS)

all: graphics pdf complete
all: graphics pdf complete clean

include ../Makefile.inc

graphics: $(GRAPH_DEPS) | $(GRAPHICS_OUT)
pdf: $(PDF)
complete: $(OUT)/complete.pdf

clean:
find $(OUT) ! -name '*.pdf' -type f -delete

allMarkdownInputs=$(addsuffix }, $(addprefix \markdownInput{../,$(shell ls -v *.md)))

$(OUT)/complete.pdf: $(wildcard *.md) template.cls $(GRAPH_DEPS) | $(GRAPHICS_OUT) $(OUT)
cd $(@D); $(call XELATEX,'\documentclass{../template}\begin{document}\tableofcontents$(allMarkdownInputs)\listoffigures\listoftables\end{document}')
cd $(@D); $(call XELATEX,'\documentclass[twoside]{../template}\begin{document}\tableofcontents$(allMarkdownInputs)\listoffigures\listoftables\end{document}')

.SECONDEXPANSION:
$(OUT)/%.pdf: %.md template.cls $$(call graphics-deps,$(GRAPHICS),$$(shell echo $$* | cut -d'-' -f1)) $$(wildcard source_codes/$$(shell echo $$* | cut -d'-' -f1)*) | $(GRAPHICS_OUT) $(OUT)
Expand Down
32 changes: 32 additions & 0 deletions ivt/template.cls
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,38 @@
\newcolumntype{C}{>{\centering\arraybackslash}X}
\renewcommand\tabularxcolumn[1]{m{#1}}% for vertical centering text in X column

% Create page tabs
\RequirePackage{fancytabs}

\fancytabsTop{2cm}
\fancytabsGap{2.5mm}
%Define the maximum amount of tabs on a page. After \tabcount tabs are displayed, the next tab is displayed on top of the page again.
\fancytabsCount{15}
\fancytabsHeight{(\paperheight-2\tab@top-\tab@count\tab@gap+\tab@gap)/\tab@count}
\fancytabsStyle{\Large\sffamily\bfseries\color{white}}
\fancytabsLeftColor{black!40}
\fancytabsRightColor{black!40}
\fancytabsRotate{0}
\fancytabsFloor{0}

\newcommand\pagethumb[1]{
\ifthenelse{\thesection>0}{
\fancytab[#1]{\thesection}{\thesection}
}{}
}

\fancyhf{}
\if@twoside
\fancyhead[RO]{\pagethumb{RIGHT}\bfseries\@author}
\fancyhead[LE]{\@title\pagethumb{LEFT}}
\fancyfoot[RO,LE]{\thepage/\pageref{LastPage}}
\else
\fancyhead[R]{\bfseries\@author}
\fancyhead[L]{\@title}
\fancyfoot[C]{\thepage/\pageref{LastPage}}
\fi


\RequirePackage[
cacheDir=/tmp/latexmarkdown,
hashEnumerators,
Expand Down

0 comments on commit 09c812e

Please sign in to comment.