diff options
| author | Schuyler Eldridge | 2021-03-18 12:28:09 -0400 |
|---|---|---|
| committer | GitHub | 2021-03-18 12:28:09 -0400 |
| commit | ac094a5e8f7fb8237b54d4d6b9e0b7b759b44ef7 (patch) | |
| tree | d0970ea7b8ad7bc0b78583fb8c53d5ada5be730c /docs/src/resources | |
| parent | 492a71d6d4d3acef39f29345835637bca028a089 (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 'docs/src/resources')
0 files changed, 0 insertions, 0 deletions
