`timescale 1ns/1ps module prod2u_6400_front_back_top_tb; reg sys_clk = 1'b0; reg host_rs232_rx = 1'b1; reg bmc_rs232_rx = 1'b1; reg host_i2c_scl = 1'b1; wire host_rs232_tx; wire bmc_rs232_tx; wire [23:0] ptc_pwm_out; wire [3:0] front_fan_pwm_out; wire [3:0] rear_fan_pwm_out; tri temp_scl; tri temp_sda; tri host_i2c_sda; always #1 sys_clk = ~sys_clk; prod2u_6400_rs232_only_top dut ( .sys_clk(sys_clk), .host_rs232_rx(host_rs232_rx), .host_rs232_tx(host_rs232_tx), .bmc_rs232_rx(bmc_rs232_rx), .bmc_rs232_tx(bmc_rs232_tx), .host_i2c_scl(host_i2c_scl), .host_i2c_sda(host_i2c_sda), .ptc_pwm_out(ptc_pwm_out), .front_fan_pwm_out(front_fan_pwm_out), .rear_fan_pwm_out(rear_fan_pwm_out), .temp_scl(temp_scl), .temp_sda(temp_sda) ); initial begin repeat (1100) @(posedge sys_clk); if (host_rs232_tx !== 1'b1) $fatal(1, "Host RS-232 TX is not idle"); // The BMC poller may already be emitting its scheduled request; only // the host-facing UART idle level is part of this POR smoke check. if (ptc_pwm_out !== 24'd0) $fatal(1, "PTC outputs are not off after POR"); if (front_fan_pwm_out !== 4'h0 || rear_fan_pwm_out !== 4'hF) $fatal(1, "FAN FPGA pins do not show safe 20%% connector duty: front=%h rear=%h", front_fan_pwm_out, rear_fan_pwm_out); $display("prod2u_6400_front_back_top_tb PASS"); $finish; end endmodule