Adding a task for writing to registers in the dut.