This repository has been archived on 2021-10-31. You can view files and clone it, but cannot push or open issues or pull requests.
CAHomework/Homework 7/Homework 7.tex

37 lines
1.5 KiB
TeX
Raw Normal View History

2018-11-15 12:15:16 +00:00
\documentclass[12pt]{article}
\usepackage[utf8]{inputenc}
\usepackage[margin=2cm]{geometry}
\title{Howework 7 -- Computer Architecture}
\author{Claudio Maggioni \and Tommaso Rodolfo Masera}
\begin{document}
\maketitle
\section{Question 1}
2018-11-15 12:49:01 +00:00
Please find our solutions in the file \verb|mighty_excel_spreadsheet.ods|.
2018-11-15 12:15:16 +00:00
\section{Question 2}
2018-11-15 12:49:01 +00:00
Please find our solutions in the file \verb|mighty_excel_spreadsheet.ods|.
2018-11-15 12:15:16 +00:00
\section{Question 3}
2018-11-15 12:49:01 +00:00
\subsection{Question 3.1}
2018-11-15 12:15:16 +00:00
2018-11-15 12:49:01 +00:00
\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.
2018-11-15 12:15:16 +00:00
\end{document}