`timescale 1ns/1ps module prod2u_6400_front_back_top_tb; reg sys_clk = 1'b0; reg host_uart_rx = 1'b1; wire host_uart_tx; wire [23:0] ptc_pwm_out; wire [7:0] fan_pwm_out; tri temp_scl; tri temp_sda; always #1 sys_clk = ~sys_clk; prod2u_6400_front_back_top dut ( .sys_clk(sys_clk), .host_uart_rx(host_uart_rx), .host_uart_tx(host_uart_tx), .ptc_pwm_out(ptc_pwm_out), .fan_pwm_out(fan_pwm_out), .temp_scl(temp_scl), .temp_sda(temp_sda) ); initial begin repeat (1100) @(posedge sys_clk); if (host_uart_tx !== 1'b1) $fatal(1, "UART TX is not idle"); if (ptc_pwm_out !== 24'd0) $fatal(1, "PTC outputs are not off after POR"); if (fan_pwm_out !== 8'h00) $fatal(1, "FAN FPGA pins should be low (logical 10%% on, inverted) got %h", fan_pwm_out); $display("prod2u_6400_front_back_top_tb PASS"); $finish; end endmodule