Flush all state when reset is not deasserted (#607)

Signed-off-by: Berend Ozceri <berend@recogni.com>
This commit is contained in:
Berend Ozceri 2021-02-16 01:53:42 -08:00 committed by GitHub
parent cb9ea12177
commit 491f46799e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -66,7 +66,11 @@ module instr_tracer (
forever begin
automatic ariane_pkg::bp_resolve_t bp_instruction = '0;
// new cycle, we are only interested if reset is de-asserted
@(tracer_if.pck iff tracer_if.pck.rstn);
@(tracer_if.pck) if (tracer_if.pck.rstn !== 1'b1) begin
flush();
continue;
end
// increment clock tick
clk_ticks++;