ucb-bar / chisel2-deprecated

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

peek and poke need additional argument to prevent printf #588

Closed chick closed 8 years ago

chick commented 8 years ago

Example: during development in tests there are use cases where you may want to use the result of peek in some calculation, without the printf in peek cluttering up the output. In a default Tester the isTrace flag is set to true. It would be nice to have an argument like silent: Bool = false that allows specific programmer to disable the print

ucbjrl commented 8 years ago

It turns out some of the peeks are generated internally by the Tester and the simplest way to silence them is by toggling the isTrace member variable.

As a new Tester interface is under development for Chisel3, we'd like to hold off adding new features/complexity to the existing Tester interface.