summaryrefslogtreecommitdiff
path: root/src/test/scala/chiselTests
diff options
context:
space:
mode:
authorSchuyler Eldridge2021-03-18 12:28:09 -0400
committerGitHub2021-03-18 12:28:09 -0400
commitac094a5e8f7fb8237b54d4d6b9e0b7b759b44ef7 (patch)
treed0970ea7b8ad7bc0b78583fb8c53d5ada5be730c /src/test/scala/chiselTests
parent492a71d6d4d3acef39f29345835637bca028a089 (diff)
Don't toggle top.cpp clock and reset on same cycle (#1820)
Change top.cpp to deassert reset one time unit before the clock asserts. This avoids a Verilator simultation issue in top.cpp where the eval() function is only called once per simultation loop. If the clock and reset are both changed and eval() is only called once, then any combinational update due to a change in reset is not visible to the sequential logic. This avoids issues where the downstream compilation utilities move synchronous reset logic outside of an always block that describes a synchronous reset flip flop. Reset now deasserts on time unit 10 and the clock ticks on time unit 11. h/t @albert-magyar Signed-off-by: Schuyler Eldridge <schuyler.eldridge@sifive.com>
Diffstat (limited to 'src/test/scala/chiselTests')
0 files changed, 0 insertions, 0 deletions