\documentclass[12pt]{article}

\usepackage[utf8]{inputenc}
\usepackage[margin=2cm]{geometry}
\usepackage{graphicx}

\title{Howework 8 -- Computer Architecture}
\author{Claudio Maggioni \and Tommaso Rodolfo Masera}

\begin{document}
\maketitle
\section{Question 1}
Please find our solutions in the file \verb|ex1.ods|.

\section{Question 2}
Please find our overall Logisim solution in the file \verb|ex2.circ|.

\begin{figure}[h]
\centering
\includegraphics[width=0.8\textwidth]{SP.png}
\caption{The SP register of the MIC-1 built with Logisim}
\end{figure}

\subsection{Sub Question b}
We can build MBR using the 8 lower bits of SP as both memory input and B bus output. Additional circuitry is needed
to handle both MBR and MBRU select inputs and provide sign extension when needed. 

\begin{figure}[h]
\centering
\includegraphics[width=0.6\textwidth]{MBR.png}
\caption{The MBR register of the MIC-1 built with Logisim using the SP register}
\end{figure}

\section{Question 3}
Please find our solutions in the file \verb|maggioni_rodolfo_masera_ca8_ex3.jas|. An higher level description of the algorithm used can be found as the \verb|maggioni_rodolfo_masera_ca8_ex3.py| Python script.



\end{document}