mirror of
https://github.com/openhwgroup/cva6.git
synced 2025-06-27 17:00:57 -04:00
instr_tracer.sv: Fix double sampling (#2782)
Currently, the instruction trace update logic is triggered on both clock edges, leading to double entries in the instruction trace and a wrong cycle count. Fix this by updating the trace only on positive clock edges. Signed-off-by: Nils Wistoff <nwistoff@iis.ee.ethz.ch>
This commit is contained in:
parent
a55db35bd1
commit
2d411b2dc8
1 changed files with 1 additions and 1 deletions
|
@ -94,7 +94,7 @@ module instr_tracer #(
|
||||||
forever begin
|
forever begin
|
||||||
automatic bp_resolve_t bp_instruction = '0;
|
automatic bp_resolve_t bp_instruction = '0;
|
||||||
// new cycle, we are only interested if reset is de-asserted
|
// new cycle, we are only interested if reset is de-asserted
|
||||||
@(pck) if (rstn !== 1'b1) begin
|
@(posedge pck) if (rstn !== 1'b1) begin
|
||||||
flush();
|
flush();
|
||||||
continue;
|
continue;
|
||||||
end
|
end
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue