Forum: FPGA, VHDL & Verilog Some help for the beginner

von Alper O. (Company: KC University) (istemihan)

Attached files:
  • preview image for 1.png
    90 KB, 278 downloads
  • preview image for 2.png
    33.5 KB, 288 downloads

Rate this post
0 useful
not useful
I am literally started to learn FPGA. 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 attachment, I configured the FPGA chip. I am using 
BASYS2 board.

This is the implementation code:


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



And this is the ucf code:


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

NET "A" LOC = "C11";


As board 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 rogramming file. So what next?



Entering an e-mail address is optional. If you want to receive reply notifications by e-mail, please log in.

Rules — please read before posting

  • Post long source code as attachment, not in the text
  • Posting advertisements is forbidden.

Formatting options

  • [c]C code[/c]
  • [vhdl]VHDL code[/vhdl]
  • [code]code in other languages, ASCII drawings[/code]
  • [math]formula (LaTeX syntax)[/math]

Bild automatisch verkleinern, falls nötig
Note: the original post is older than 6 months. Please don't ask any new questions in this thread, but start a new one.