|
|
@@ -2,31 +2,42 @@
|
|
|
|
|
|
module prod2u_6400_front_back_top_tb;
|
|
|
reg sys_clk = 1'b0;
|
|
|
- reg host_uart_rx = 1'b1;
|
|
|
- wire host_uart_tx;
|
|
|
+ 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 [7:0] fan_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_front_back_top dut (
|
|
|
+ prod2u_6400_rs232_only_top dut (
|
|
|
.sys_clk(sys_clk),
|
|
|
- .host_uart_rx(host_uart_rx),
|
|
|
- .host_uart_tx(host_uart_tx),
|
|
|
+ .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),
|
|
|
- .fan_pwm_out(fan_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_uart_tx !== 1'b1) $fatal(1, "UART TX is not idle");
|
|
|
+ if (host_rs232_tx !== 1'b1) $fatal(1, "Host RS-232 TX is not idle");
|
|
|
+ if (bmc_rs232_tx !== 1'b1) $fatal(1, "BMC RS-232 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);
|
|
|
+ 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
|