`timescale 1ns/1ps module prod2u_6400_target_store_formal ( input wire clk, input wire rst_n, input wire enable, input wire tick_500us, input wire valid_set_all_commit, input wire [7:0] duty, input wire [6:0] phase ); wire watchdog_active; wire timeout_event; wire logical_on = duty > {1'b0, phase}; host_watchdog #(.TIMEOUT_TICKS(8)) wd ( .clk(clk), .rst_n(rst_n), .enable(enable), .tick_500us(tick_500us), .valid_set_all_commit(valid_set_all_commit), .watchdog_active(watchdog_active), .timeout_event(timeout_event) ); `ifdef FORMAL reg past_valid = 1'b0; always @(posedge clk) past_valid <= 1'b1; always @* begin assume (duty <= 8'd100); assume (phase <= 7'd99); if (duty == 8'd0) assert (!logical_on); if (duty == 8'd100) assert (logical_on); end always @(posedge clk) begin if (past_valid && rst_n && $past(valid_set_all_commit)) assert (!watchdog_active); end `endif endmodule