Select the gradient tool in photoshop, place the cursor at the bottom, click and drag to top of the canvas. Your photoshop canvas should now be filled in a black and white gradient.