cxxrtl: don't check immutable values for changes in VCD writer.
authorwhitequark <whitequark@whitequark.org>
Mon, 8 Jun 2020 17:38:11 +0000 (17:38 +0000)
committerwhitequark <whitequark@whitequark.org>
Mon, 8 Jun 2020 17:38:11 +0000 (17:38 +0000)
commit467152d79fd4c8e25b48481f742fe318b1395728
treeb36e0098256c79776c8df3952b90862c5b707fe6
parentf2d7a18756088f4167b91c5ec4735bb694f36567
cxxrtl: don't check immutable values for changes in VCD writer.

This commit changes the VCD writer such that for all signals that
have `debug_item.type == VALUE && debug_item.next == nullptr`, it
would only sample the value once.

Commit f2d7a187 added more debug information by including constant
wires, and decreased the performance of VCD writer proportionally
because the constant wires were still repeatedly sampled; this commit
eliminates the performance hit.
backends/cxxrtl/cxxrtl_vcd.h