From 528470b363d5db386cae9d52cc4f577592aa0d0a Mon Sep 17 00:00:00 2001
From: Benjamin Chausse <benjamin@chausse.xyz>
Date: Tue, 6 May 2025 14:15:40 -0400
Subject: Karnaugh go BRRR

---
 rapport/annexe.tex | 110 +++++++++++++++++++++++++++++++++++++----------------
 1 file changed, 78 insertions(+), 32 deletions(-)

(limited to 'rapport/annexe.tex')

diff --git a/rapport/annexe.tex b/rapport/annexe.tex
index 3b87539..058bc8f 100644
--- a/rapport/annexe.tex
+++ b/rapport/annexe.tex
@@ -4,39 +4,39 @@
 \todo{Finish this this}
 
 \begin{figure}[H]
-  \tiny
-\centering
-\begin{varwidth}{\linewidth}
-  \input{assets/code/thermo2bin.tex}
-\end{varwidth}
-\caption{Module Thermo2bin}
+	\tiny
+	\centering
+	\begin{varwidth}{\linewidth}
+		\input{assets/code/thermo2bin.tex}
+	\end{varwidth}
+	\caption{Module Thermo2bin}
 \end{figure}
 
 \begin{figure}[H]
-  \tiny
-\centering
-\begin{varwidth}{\linewidth}
-  \input{assets/code/add4bits.tex}
-\end{varwidth}
-\caption{Module Add4Bits}
+	\tiny
+	\centering
+	\begin{varwidth}{\linewidth}
+		\input{assets/code/add4bits.tex}
+	\end{varwidth}
+	\caption{Module Add4Bits}
 \end{figure}
 
 \begin{figure}[H]
-  \tiny
-\centering
-\begin{varwidth}{\linewidth}
-  \input{assets/code/add1bita.tex}
-\end{varwidth}
-\caption{Module Add1BitA}
+	\tiny
+	\centering
+	\begin{varwidth}{\linewidth}
+		\input{assets/code/add1bita.tex}
+	\end{varwidth}
+	\caption{Module Add1BitA}
 \end{figure}
 
 \begin{figure}[H]
-  \tiny
-\centering
-\begin{varwidth}{\linewidth}
-  \input{assets/code/add1bitb.tex}
-\end{varwidth}
-\caption{Module Add1BitB}
+	\tiny
+	\centering
+	\begin{varwidth}{\linewidth}
+		\input{assets/code/add1bitb.tex}
+	\end{varwidth}
+	\caption{Module Add1BitB}
 \end{figure}
 
 \section{Schémas}
@@ -46,24 +46,70 @@
 
 
 \begin{figure}[H]
-\centering
-  \includegraphics[width=.7\textwidth]{assets/img/schematic-thermo2bin.png}
-\caption{Module Thermo2bin}
+	\centering
+	\includegraphics[width=.7\textwidth]{assets/img/schematic-thermo2bin.png}
+	\caption{Module Thermo2bin}
 \end{figure}
 
+\begin{figure}[H]
+	\centering
+	\includegraphics[width=.7\textwidth]{assets/img/schematic-add4bits.png}
+	\caption{Module Add4Bits}
+\end{figure}
+
+\begin{figure}[H]
+	\centering
+	\includegraphics[width=.7\textwidth]{assets/img/schematic-add1bit.png}
+	\caption{Module Add1Bit}
+\end{figure}
+
+\newpage
+\section{Tables de Vérité et Karnaugh}
+
+% \begin{figure}[H]
+% \centering
+% \begin{karnaugh-map}[4][4][1][$D$][$C$][$B$][$A$]
+% \manualterms{
+% 	0,1,2,3,
+% 	4,5,6,7,
+% 	8,9,10,11,
+% 	12,13,14,15}
+% \implicant{2}{10}
+% \implicant{4}{13}
+% \implicant{12}{10}
+% \implicantedge{3}{2}{11}{10}
+% \end{karnaugh-map}
+% \caption{TEMPLATE NOT GOOD}
+% \end{figure}
+
 \begin{figure}[H]
 \centering
-  \includegraphics[width=.7\textwidth]{assets/img/schematic-add4bits.png}
-\caption{Module Add4Bits}
+\begin{karnaugh-map}[4][4][1][$D$][$C$][$B$][$A$]
+\manualterms{
+	0,1,X,0,
+	X,X,X,1,
+	X,X,X,X,
+	X,X,X,0}
+\implicant{1}{9}
+\implicant{4}{6}
+\end{karnaugh-map}
+\caption{Karnaugh pour le bit $H$}
 \end{figure}
 
 \begin{figure}[H]
 \centering
-  \includegraphics[width=.7\textwidth]{assets/img/schematic-add1bit.png}
-\caption{Module Add1Bit}
+\begin{karnaugh-map}[4][4][1][$D$][$C$][$B$][$A$]
+\manualterms{
+	0,0,X,1,
+	X,X,X,1,
+	X,X,X,X,
+	X,X,X,0}
+\implicant{3}{6}
+\end{karnaugh-map}
+\caption{Karnaugh pour le bit $G$}
 \end{figure}
 
-\section{Tables de Vérité et Karnaugh}
+
 
 \todo{Verite}\\
 \todo{Karnaugh}
-- 
cgit v1.2.3


From c32146461be86bfc0b2e19eca442ae5c64030bc1 Mon Sep 17 00:00:00 2001
From: Benjamin Chausse <benjamin@chausse.xyz>
Date: Tue, 6 May 2025 14:25:00 -0400
Subject: Truth table? more like Trusst table

---
 rapport/annexe.tex | 24 +++++++++++++++++++-----
 1 file changed, 19 insertions(+), 5 deletions(-)

(limited to 'rapport/annexe.tex')

diff --git a/rapport/annexe.tex b/rapport/annexe.tex
index 058bc8f..f2602c5 100644
--- a/rapport/annexe.tex
+++ b/rapport/annexe.tex
@@ -82,6 +82,25 @@
 % \caption{TEMPLATE NOT GOOD}
 % \end{figure}
 
+
+\begin{table}[H]
+	\centering
+	\caption{Table de vérité des Bits}
+	\vspace{.2cm}
+	\begin{tabular}{llllllll}
+		\toprule
+		A & B & C & D & E & F & G & H \\
+		\midrule
+		0 & 0 & 0 & 0 & 0 & 0 & 0 & 0 \\
+		0 & 0 & 0 & 1 & 0 & 0 & 0 & 1 \\
+		0 & 0 & 1 & 1 & 0 & 0 & 1 & 0 \\
+		0 & 1 & 1 & 1 & 0 & 0 & 1 & 1 \\
+		1 & 1 & 1 & 1 & 0 & 1 & 0 & 0 \\
+		\bottomrule
+	\end{tabular}
+
+\end{table}
+
 \begin{figure}[H]
 \centering
 \begin{karnaugh-map}[4][4][1][$D$][$C$][$B$][$A$]
@@ -108,8 +127,3 @@
 \end{karnaugh-map}
 \caption{Karnaugh pour le bit $G$}
 \end{figure}
-
-
-
-\todo{Verite}\\
-\todo{Karnaugh}
-- 
cgit v1.2.3

