Explorar o código

Final report updated results

Min %!s(int64=5) %!d(string=hai) anos
pai
achega
0a46004811

+ 24 - 3
docs/final_report/6-results.tex

@@ -90,13 +90,34 @@ As $C_{total}$ and $V_{DD}$ are constants, measuring power at different frequenc
 
 
 \subsection{Benchmark Programs}
+A number of and programs have been written to test both processors. These involve simple functions that could be commonly used in 8bit processors:
 
-\colorbox{yellow}{\parbox{\columnwidth}{Description of each function in benchmark to be added.}}
+\begin{description}
+	\item[$\bullet$ Printing:] Sends data to UART. It includes waiting until UART is available for transmission. 
+	\item[$\bullet$ Printing unsinged integer:] Uses binary-coded decimal algorithm to convert 8 or 16bit binary value to decimal value and print it. 
+	\item[$\bullet$ 16bit multiplication:] Uses simple matrix multiplication. 
+	\item[$\bullet$ 16bit division:] Uses Long division algorithm to divide two 16bit numbers, including reminder.
+	\item[$\bullet$ 16bit modulus:] Uses "Russian Peasant Multiplication" algorithm to perform Modulo operation with two 16bit numbers.
+	\item[$\bullet$ Prime number calculator:] Uses Sieve of Atkins algorithm to calculate primer numbers up to from number 5 to $2^{16}$. 
+\end{description}
 
 \subsubsection{Performance}
-\colorbox{yellow}{\parbox{\columnwidth}{Data of benchmark functions timings to be added.}}
+This subsection investigates time and clock cycles to run benchmark programs. Simulation was sued to find a number of cycles required to execute each function. 
+
+Print 16bit decimal and modulus were executed with different arguments to show the worst and the best case scenarios as algorithms length depend on inputs. This is not the case for 16bit multiplication as this it has no branching. 
+
+Results are shown in Figure \ref{fig:cycles}. In most cases, OISC requires around 55-67\% more instruction, with some exceptions. These results can be better explained in following subsection \ref{subsec:instr_comp}.
+
+\begin{colfigure}
+	\centering
+	\includegraphics[width=\linewidth]{../tests/cycles.eps}
+	\captionof{figure}{Simulated results of cycles that taken to perform function.}
+	\label{fig:cycles}
+\end{colfigure}
+
+
 
-\subsubsection{Instruction composition}
+\subsubsection{Instruction composition}\label{subsec:instr_comp}
 This test is performed to investigate instruction composition of each function to see how similar it is between RISC and OISC processors. 
 \begin{description}
 	\item[$\bullet$ MOVE] - All instructions that move data around internal processor registers.

BIN=BIN
docs/final_report/index.pdf


+ 2 - 0
docs/final_report/index.tex

@@ -64,6 +64,8 @@
 {\par\medskip\noindent\minipage{\linewidth}}
 {\endminipage\par\medskip}
 
+\raggedbottom
+
 \begin{document}
 	
 	\begin{titlepage}

+ 5 - 5
docs/final_report/index.toc

@@ -92,15 +92,15 @@
 \defcounter {refsection}{0}\relax 
 \contentsline {subsubsection}{\numberline {5.3.1}Performance}{19}{subsubsection.5.3.1}% 
 \defcounter {refsection}{0}\relax 
-\contentsline {subsubsection}{\numberline {5.3.2}Instruction composition}{19}{subsubsection.5.3.2}% 
+\contentsline {subsubsection}{\numberline {5.3.2}Instruction composition}{20}{subsubsection.5.3.2}% 
 \defcounter {refsection}{0}\relax 
-\contentsline {subsubsection}{\numberline {5.3.3}Program space}{20}{subsubsection.5.3.3}% 
+\contentsline {subsubsection}{\numberline {5.3.3}Program space}{21}{subsubsection.5.3.3}% 
 \defcounter {refsection}{0}\relax 
-\contentsline {subsection}{\numberline {5.4}Maximum clock frequency}{22}{subsection.5.4}% 
+\contentsline {subsection}{\numberline {5.4}Maximum clock frequency}{21}{subsection.5.4}% 
 \defcounter {refsection}{0}\relax 
-\contentsline {subsection}{\numberline {5.5}Future work}{22}{subsection.5.5}% 
+\contentsline {subsection}{\numberline {5.5}Future work}{23}{subsection.5.5}% 
 \defcounter {refsection}{0}\relax 
-\contentsline {section}{\numberline {6}Conclusion}{22}{section.6}% 
+\contentsline {section}{\numberline {6}Conclusion}{23}{section.6}% 
 \defcounter {refsection}{0}\relax 
 \contentsline {section}{\numberline {7}Appendix}{25}{section.7}% 
 \defcounter {refsection}{0}\relax