report.tex 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859
  1. \documentclass[11pt,a4paper,titlepage,oneside]{article}
  2. \usepackage{LabProtocol}
  3. \exercise{Exercise III}
  4. % enter your data here
  5. \groupno{22}
  6. \authors{
  7. Norbert Tremurici, Matr. Nr. 11907086 \par
  8. {\small e11907086@student.tuwien.ac.at} \par
  9. Benedikt Wolzt, Matr. Nr. 11907565 \par
  10. {\small e11907565@student.tuwien.ac.at}
  11. }
  12. \begin{document}
  13. \maketitle
  14. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  15. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  16. \begin{figure}[ht!]
  17. \centering
  18. \includegraphics[width=1.0\linewidth]{./graphics/1.PNG}
  19. \includegraphics[width=1.0\linewidth]{./graphics/2.PNG}
  20. \includegraphics[width=1.0\linewidth]{./graphics/3.PNG}
  21. \includegraphics[width=1.0\linewidth]{./graphics/4.PNG}
  22. \caption{Simulation screenshot for Listing~\ref{lst:asmnofwd}.}
  23. \label{fig:sim}
  24. \end{figure}
  25. Make sure the following signals are visible in Figure~\ref{fig:sim} and the
  26. signal values are readable:
  27. the program counter in the fetch stage, the instruction being fetched, the
  28. content of register \texttt{x5} and the fields \texttt{address}, \texttt{rd},
  29. \texttt{wr}, \texttt{byteena}, and \texttt{wrdata} in the \texttt{mem\_out}
  30. signal coming out of the pipeline in the memory stage.
  31. \begin{lstlisting}[language=,mathescape=false,float=ht,caption={Assembler example without forwarding},label=lst:asmnofwd]
  32. addi x5, x0, 0
  33. nop
  34. nop
  35. loop:
  36. addi x5, x5, 1
  37. nop
  38. nop
  39. sw x5, 16(x0)
  40. jal x0, loop
  41. nop
  42. nop
  43. nop
  44. \end{lstlisting}
  45. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  46. %%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
  47. \end{document}