Skip to content

Latest commit

 

History

History
23 lines (19 loc) · 477 Bytes

README.md

File metadata and controls

23 lines (19 loc) · 477 Bytes

BSVFan

Example use in Verilog

mkDE10FanControl u0(
    .CLK(CLK_50_B2C),
    .RST_N(reset_n),
    .FAN_I2C_SDA(FAN_I2C_SDA),
    .FAN_I2C_SCL(FAN_I2C_SCL),
    .TEMP_I2C_SDA(TEMP_I2C_SDA),
    .TEMP_I2C_SCL(TEMP_I2C_SCL)
);

On the DE10-Pro, the reset signal reset_n might be obtained as follows.

wire reset_n;
wire ninit_done;
reset_release reset_release (.ninit_done(ninit_done));
assign reset_n = !ninit_done && CPU_RESET_n;