# BASYS2 - Verilog: how to properly edit ucf file?

I am a newbie at FPGA. I bought BASYS2 digilent board(Spartan3E). I have background on microcontrollers. C/C++ is no problem for me. But I am having some trouble with FPGA. Actually, not with FPGA but with Compiler and ISE. As you can see in the screenshot below, I configured the FPGA chip.

This is the implementation code:

module myModule(A, B);
input wire A;
output wire B;
assign B = !A;

endmodule


And this is the ucf code:

# Onboard LEDs
NET "B" LOC = "M11";

NET "A" LOC = "C11";


As boards technical sheet says, M11 is LED 1 and C11 is BTN 2. So I want LED to flash when I unpress the button. Do you see something wrong with the code? Because it aint working. If the code should have been working, what should I do? Am I skipping something?

As you see I aldready generated programming file and run. So what next?

Thanks.

• The schematic shows C11 as BTN1 not BTN2... – Brian Drummond Dec 25 '15 at 11:03
• How do you mean, "run"? Do you mean you opened Impact and followed the necessary steps? Every thing else is fine – johnnymopo Dec 25 '15 at 15:56
• As long as your hitting the right button @Brian Drummond – johnnymopo Dec 25 '15 at 15:57