VHDL Programming in Xilinx for Spartan-6

Discussion in 'Embedded Systems and Microcontrollers' started by Rockyy, Jul 10, 2014.

  1. Rockyy

    Thread Starter New Member

    Jul 10, 2014
    7
    0
    Hello,

    I am just the begninner for Embedded work.Currently i have to write VHDL Program in Xilinx for Spartan-6 FPGA .But I dont know what to write on my .vhd file.I have created a new Project in Xilinx but now i am not able to know how to start.

    Code ( (Unknown Language)):
    1.  
    2.  
    3. library IEEE;
    4. use IEEE.STD_LOGIC_1164.ALL;
    5. -- Uncomment the following library declaration if using
    6. -- arithmetic functions with Signed or Unsigned values
    7. --use IEEE.NUMERIC_STD.ALL;
    8. -- Uncomment the following library declaration if instantiating
    9. -- any Xilinx primitives in this code.
    10. --library UNISIM;
    11. --use UNISIM.VComponents.all;
    12. entity main is
    13. end main;
    14. architecture Behavioral of main is
    15. begin
    16.  
    17. end Behavioral;
    18.  
    19.  
    Can any one let me know how to start the things..
     
  2. shakilabanu

    Member

    Jul 8, 2014
    44
    2
    The first thing you need to figure out is.... how, why and when to ask a question on a forum like this.
     
  3. Rockyy

    Thread Starter New Member

    Jul 10, 2014
    7
    0
    Hello shakilabanu,

    Please give the suggestion for above question not on your personal view.
     
  4. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    On an objective basis, shakilabanu's point is a reasonable one.
    To paraphrase what the OP said, "I've created a project, but I don't know what to do next"

    There are two things you need to do next:
    1. Define the requirements of the project
    2. Learn the syntax and semantics of VHDL
    In my opinion the first of these is the hardest. Learning the syntax and semantics of a language, like VHDL, is relatively easy if you have the basic foundation in logic design and sequential circuits. If you don't then learning VHDL would be pointless. So maybe the OP should tell us what he wants help with instead of saying he doesn't know what to do next.
     
    tshuck likes this.
  5. Rockyy

    Thread Starter New Member

    Jul 10, 2014
    7
    0
    Actually I have to create a bit file my spartan-6 FPGA.
    Can you provide me know some link or document from where I can start.
     
  6. Shagas

    Active Member

    May 13, 2013
    802
    74
    A bit file? Don't you mean a 'bin' file? If you are using the Xilinx ISE
    then maybe you can try clicking on your project and finding 'synthesize' to check your syntax and then 'generate programming file' .
     
  7. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    I find it strange that you're producing output files for a project that has no visible requirements. How can you operate like this? I'm mystified!
     
  8. Brownout

    Well-Known Member

    Jan 10, 2012
    2,375
    998
    First you write your VHDL code.
    Then you synthesize your code.
    Then you place and route.
    Then you create the bit file.
    Then you configure your part.

    Of course, you need to know what you're writing the VHDL code for before you get started.
     
    kubeek and Papabravo like this.
  9. Papabravo

    Expert

    Feb 24, 2006
    10,135
    1,786
    So how much do you actually know about combinatorial logic design and sequential state machines? If you don't know anything about them writing VHDL is going to be a major challenge.
     
    kubeek likes this.
Loading...