Exercises 3.1, 3.2 done

This commit is contained in:
Tommaso Rodolfo Masera 2018-11-15 13:49:01 +01:00
parent 1459a6a839
commit 07ca3d9074
2 changed files with 20 additions and 4 deletions

Binary file not shown.

View File

@ -1,6 +1,5 @@
\documentclass[12pt]{article}
\usepackage{karnaugh-map}
\usepackage[utf8]{inputenc}
\usepackage[margin=2cm]{geometry}
@ -10,12 +9,29 @@
\begin{document}
\maketitle
\section{Question 1}
Please find our solutions in the file \verb|Samp_Dist_Corr|
Please find our solutions in the file \verb|mighty_excel_spreadsheet.ods|.
\section{Question 2}
Please find the attached \texttt{2.circ} \emph{Logisim} file.
Please find our solutions in the file \verb|mighty_excel_spreadsheet.ods|.
\section{Question 3}
Please find the attached \texttt{3.circ} \emph{Logisim} file.
\subsection{Question 3.1}
\paragraph{Prefix Notation:}
$(-\hspace{5px}(/ \times A\hspace{5px}(+\hspace{5px}B\hspace{5px}C))\hspace{5px}D)\hspace{5px}E)$
\paragraph{Postfix Notation:}
$(((A\hspace{5px}(B\hspace{5px}C\hspace{5px}+)\hspace{5px}\times)\hspace{5px}D\hspace{5px}/ )\hspace{5px}E\hspace{5px}- )$
\subsection{Question 3.2}
The outputs \emph{N} and \emph{Z} are used for conditional branching for instructions such as IFEQ, IFLT and IF\_ICMPEQ.
The microcode for these instructions would probably use the JAMZ and JAMN bits to determine the next microinstruction to execute.
For example, IFEQ would subtract from the value in the topmost element in the stack the value below in order to trigger the \emph{Z} bit.
If the two values are equal, then \emph{Z} is set and, if the most significant value of NEXT\_ADDRESS is 0 and the JAMZ bit is set, the control store would load the microinstruction at $NEXT\_ADDRESS + 256$.
Otherwise, the control store would load the microinstruction at NEXT\_ADDRESS.
\subsection{Question 3.3}
Please find our solution in the attached \texttt3.3.circ Logisim file.
\end{document}