integer i;
initial begin
   //---------------------------------------------------
   // Startup
   //---------------------------------------------------
   #100;
   vcore_vin_uvlo.vin_lvl(5000);   
   #200_000;
   vddi2c_detect = 1'b1;  
   sel_in_reg    = 1'b1;
   #100_000;
   
   //---------------------------------------------------
   // Default values
   //---------------------------------------------------
   
   i2c_master.i2cRd(`STATUS     ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
   i2c_master.i2cRd(`VIN        ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
   i2c_master.i2cRd(`IIN        ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
   i2c_master.i2cRd(`TEMP       ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
   i2c_master.i2cRd(`CMD1       ); check_digital_net(i2c_master.i2c_rdback_val,8'h43);
   i2c_master.i2cRd(`CMD2       ); check_digital_net(i2c_master.i2c_rdback_val,8'h29);
   i2c_master.i2cRd(`CMD3       ); check_digital_net(i2c_master.i2c_rdback_val,8'h02);
   i2c_master.i2cRd(`SNS1       ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
   i2c_master.i2cRd(`SNS2       ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
   i2c_master.i2cRd(`INTERRUPTS ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
   i2c_master.i2cRd(`ID         ); check_digital_net(i2c_master.i2c_rdback_val,8'h00);
 
   END_SIM;
end
