ucb-bar / chisel2-deprecated

chisel.eecs.berkeley.edu
387 stars 90 forks source link

Fix printf output collection to pass FlushPrintfOutput test. #558

Closed ucbjrl closed 8 years ago

ucbjrl commented 8 years ago

Rename testOutputString to accumulatedTestOutput and provide a mechanism to fetch the last output line. Convert _logs to ArrayBuffer (from Queue) and use a last-printed index to track what's been printed so far. This allows is to keep a single copy of all the printf output, accessible on an individual line basis (if so-desired).