Skip to content

Commit f64a2ae

Browse files
thielpaPaul ThieldariusptrsTimoLass
authored
WIP: feature: begin to add parity block chapter (#3)
* feature: begin to add parity block chapter * enable artifact upload * Update ci.yml * Update ci.yml * Update ci.yml * Improve Block parity * Fix iamge not found * Fix problems * update authors * fix typo in authors --------- Co-authored-by: Paul Thiel <[email protected]> Co-authored-by: Darius Peters <[email protected]> Co-authored-by: TimoLass <[email protected]>
1 parent 94d54c5 commit f64a2ae

File tree

4 files changed

+42
-1
lines changed

4 files changed

+42
-1
lines changed

.github/workflows/ci.yml

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,27 @@ jobs:
4141
mkdir -p build && cd build
4242
cmake ..
4343
make
44+
45+
- name: Upload artifact
46+
uses: actions/upload-artifact@v4
47+
with:
48+
name: build-artifact
49+
path: ./build/*.pdf
50+
- name: Comment on PR with artifact link
51+
if: ${{ github.event_name == 'pull_request' }}
52+
uses: actions/github-script@v6
53+
with:
54+
github-token: ${{ secrets.GITHUB_TOKEN }}
55+
script: |
56+
const pr_number = context.payload.pull_request.number
57+
const run_id = process.env.GITHUB_RUN_ID
58+
const run_url = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${run_id}`
59+
await github.rest.issues.createComment({
60+
owner: context.repo.owner,
61+
repo: context.repo.repo,
62+
issue_number: pr_number,
63+
body: `:robot: The artifacts from this build are available [here](${run_url}).`
64+
})
4465
4566
- name: Prepare Deployment
4667
if: github.ref == 'refs/heads/master' || github.ref == 'refs/heads/main'

FSDigitaltechnik.tex

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@
8989
\providecommand{\email}[1]{\href{mailto:#1}{\nolinkurl{#1}}}
9090

9191
%
92-
\fancyfoot[C]{von Emanuel Regnath (\email{[email protected]}), Martin Zellner (\email{[email protected]}), Hendrik Böttcher (\email{hendrik.boettcher@tum.de}) }
92+
\fancyfoot[C]{von Emanuel Regnath, Martin Zellner, Hendrik Böttcher, Lukas Kompatscher, Paul Thiel, Justus Rossmeier, Darius Peters, Timotheus Lass - Mail: \email{info@latex4ei.de} }
9393
\fancyfoot[R]{Stand: \themydate \qquad \thepage/\pageref{LastPage}}
9494
\fancyfoot[L]{Homepage: \url{www.latex4ei.de} -- Fehler bitte \emph{sofort} \href{\issueslinkurl}{melden}.}
9595

@@ -696,6 +696,26 @@ \subsection{Moore und Mealy FSMs}
696696
\end{multicols}
697697
Beim Zeichnen jede Eingabemöglichkeit für jeden Zustand berücksichtigen und Startzustand mit leerem Pfeil kennzeichnen.
698698

699+
\section{Block Parity Schaltungen}
700+
\subsection{Paritätsprüfsumme}
701+
Konzept zur Absicherung von digitalen Daten durch Anhängen eines Paritätsbits $p$.\\
702+
- Gerade Anzahl an Einsen im Datenwort: $p = 0$.\\
703+
- Ungerade Anzahl an Einsen im Datenwort: $p = 1$.\\
704+
- Realisierung durch XOR-Gatter
705+
\subsection{Block Parity}
706+
„Zweidimensionale“ Erweiterung der Paritätsprüfsumme\\
707+
Beispielblock:\\
708+
\includegraphics[scale=0.5]{./img/ds/Block_Parity.png}\\
709+
\textbf{Vorteile:}\\
710+
- Erkennung und Korrektur von einzelnen Bitfehlern.\\
711+
- Erkennung von zusammenhängenden Mehrfachfehlern (Bursts).
712+
\subsection{Realisierung der Block Parity Schaltung}
713+
\textbf{Datenpfad:}\\ Das n-Bit Datenwort wird durch das Paritybit zu (n+1)-Bit erweitert und übertragen\\
714+
\textbf{Kontrollpfad:} \\- Die Datenworte (Zeilen im obigen Beispielblock) aus dem Datenpfad werden bitweise verxodert und es entsteht die Pbits-Zeile\\
715+
- Nach einem Block wird die Pbit-Zeile übertragen
716+
717+
718+
699719
% subsection Vorgehensweise (end)
700720

701721
% Ende der Spalten

img/ds/Block_Parity.png

21.2 KB
Loading

img/ds/parity_fsm.png

122 KB
Loading

0 commit comments

Comments
 (0)