task1.tex 724 B

12345678910111213141516171819202122
  1. \begin{figure}[ht!]
  2. %\dummyimage
  3. \includegraphics[width=1.0\linewidth]{./task1-wave.png}
  4. \caption{Simulation screenshot for Listing~\ref{lst:asmfwd}.}
  5. \label{fig:sim1}
  6. \end{figure}
  7. Make sure that at least the following signals are visible in
  8. Figure~\ref{fig:sim1}: the program counter in the fetch stage, the
  9. instruction being fetched, the content of registers \texttt{x1}
  10. and \texttt{x2} as well as the signals \texttt{wraddr},
  11. \texttt{wrdata} and \texttt{regwrite} of the register file.
  12. \begin{lstlisting}[language=,mathescape=false,float=ht,caption={Assembler example with forwarding},label=lst:asmfwd]
  13. addi x1, x0, 7
  14. addi x2, x0, 5
  15. and x1, x2, x1
  16. nop
  17. nop
  18. \end{lstlisting}