diff --git a/Homework 7/Homework 7.pdf b/Homework 7/Homework 7.pdf index 2555c26..c3f7753 100644 Binary files a/Homework 7/Homework 7.pdf and b/Homework 7/Homework 7.pdf differ diff --git a/Homework 7/Homework 7.tex b/Homework 7/Homework 7.tex index 3c7ccaa..c258ec1 100644 --- a/Homework 7/Homework 7.tex +++ b/Homework 7/Homework 7.tex @@ -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} \ No newline at end of file