up_clock_mon: Fix stopped clock detection logic
A broken version of the stopped clock detection logic was merged by accident. Fix it. Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>main
parent
f415b4f973
commit
9f954303ac
|
@ -97,14 +97,14 @@ module up_clock_mon #(
|
|||
|
||||
if (up_count_capture_s == 1'b1) begin
|
||||
up_d_count <= d_count;
|
||||
end else if (up_count == 'h00 && up_count_running_m3 == 1'b0) begin
|
||||
end else if (up_count == 'h00 && up_count_run != up_count_running_m3) begin
|
||||
up_d_count <= 'h00;
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
always @(posedge up_clk) begin
|
||||
if (up_count_run == 1'b0) begin
|
||||
if (up_count_run == 1'b0 && up_count_running_m3 == 1'b0) begin
|
||||
up_count <= 'h01;
|
||||
end else begin
|
||||
up_count <= up_count + 1'b1;
|
||||
|
|
Loading…
Reference in New Issue