Add description for merged trace
This commit is contained in:
parent
1e12cb363e
commit
dd0f1340b5
2 changed files with 4 additions and 1 deletions
|
@ -2,6 +2,8 @@
|
||||||
4.2. Register-Register Arithmetic Instructions
|
4.2. Register-Register Arithmetic Instructions
|
||||||
--------------------------------------------------------------------------
|
--------------------------------------------------------------------------
|
||||||
|
|
||||||
|
These do not render well on github, try using your text editor.
|
||||||
|
|
||||||
* ADD
|
* ADD
|
||||||
|
|
||||||
- Summary : Addition with 3 GPRs, no overflow exception
|
- Summary : Addition with 3 GPRs, no overflow exception
|
||||||
|
|
|
@ -347,7 +347,8 @@ object PrintUtils {
|
||||||
|
|
||||||
def printLogSideBySide(trace: List[ExecutionTraceEvent], chiselTrace: List[CircuitTrace], program: Program): String = {
|
def printLogSideBySide(trace: List[ExecutionTraceEvent], chiselTrace: List[CircuitTrace], program: Program): String = {
|
||||||
import LogParser._
|
import LogParser._
|
||||||
|
val header = "ADDRESS -- VM UPDATES --- DEVICE UNDER TEST UPDATES --- CORRESPONDING SOURCE LINE\n"
|
||||||
val traces = mergeTraces(trace, chiselTrace).map(x => printMergedTraces((x), program))
|
val traces = mergeTraces(trace, chiselTrace).map(x => printMergedTraces((x), program))
|
||||||
traces.map(_.mkString("\n")).mkString("\n", "\n--------------------------------------------------------------------------+------------------------------------------------------+-------------------------------\n", "\n")
|
"\n" + header + (traces.map(_.mkString("\n")).mkString("\n", "\n--------------------------------------------------------------------------+------------------------------------------------------+-------------------------------\n", "\n"))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue