+ Post New Thread
Results 1 to 4 of 4
  1. #1
    Member level 3
    Points: 968, Level: 7

    Join Date
    Nov 2013
    Location
    iran
    Posts
    60
    Helped
    0 / 0
    Points
    968
    Level
    7

    fpga programmed successfully but it doesn't work correctley

    Hi every one,
    I wanted to check the FPGA(spartan 6(xc6slx150)) on the board so I wrote a very simple code as below:

    Code:
    library IEEE;
    use IEEE.STD_LOGIC_1164.ALL;
    
    
    entity test is
        Port ( out_put : out  STD_LOGIC_VECTOR (9 downto 0)	);
    end test;
    
    architecture Behavioral of test is
    
    begin
    out_put<="0101010101";
    end Behavioral;
    and ucf file is as below:

    Code:
    NET "out_put[0]" IOSTANDARD = LVCMOS18;
    NET "out_put[1]" IOSTANDARD = LVCMOS18;
    NET "out_put[2]" IOSTANDARD = LVCMOS18;
    NET "out_put[3]" IOSTANDARD = LVCMOS18;
    NET "out_put[4]" IOSTANDARD = LVCMOS18;
    NET "out_put[5]" IOSTANDARD = LVCMOS18;
    NET "out_put[6]" IOSTANDARD = LVCMOS18;
    NET "out_put[7]" IOSTANDARD = LVCMOS18;
    NET "out_put[8]" IOSTANDARD = LVCMOS18;
    NET "out_put[9]" IOSTANDARD = LVCMOS18;
    
    NET "out_put[0]" LOC = W18;
    NET "out_put[1]" LOC = Y18;
    NET "out_put[2]" LOC = T16;
    NET "out_put[3]" LOC = T15;
    NET "out_put[4]" LOC = U17;
    NET "out_put[5]" LOC = U16;
    NET "out_put[6]" LOC = V19;
    NET "out_put[7]" LOC = V18;
    NET "out_put[9]" LOC = R15;
    NET "out_put[8]" LOC = R16;
    I programmed the fpga via JTAG and everything was ok it said in the ISE IMPACT that program succeeded but when I checked the IOs which I valued in the vhdl code the logic is incorrect I'm sure that the hardware and voltages on the board are correct what do you think? what is my problem?
    could it be possible that there is a problem in the programmer and it doesn't program the .bit file correctly?

    Regards
    Matin

    •   Alt26th July 2017, 05:14

      advertising

        
       

  2. #2
    Advanced Member level 5
    Points: 19,641, Level: 33
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    3,785
    Helped
    818 / 818
    Points
    19,641
    Level
    33

    Re: fpga programmed successfully but it doesn't work correctley

    Are you sure you programmed the proper bitfile? How are verifying the outputs-this is a bga, isn't it?


    1 members found this post helpful.

    •   Alt26th July 2017, 06:39

      advertising

        
       

  3. #3
    Member level 3
    Points: 968, Level: 7

    Join Date
    Nov 2013
    Location
    iran
    Posts
    60
    Helped
    0 / 0
    Points
    968
    Level
    7

    Re: fpga programmed successfully but it doesn't work correctley

    Hi
    I'm sure I load the correct file. it doesn't work yet, I checked all the things over and over again but I could not understand what is wrong :( it programmed successfully but when I want to check the GPIOs by voltmeter the outputs are not correct :(
    I attached my simple project please check it if you can and tell me what is my problem?
    Regards
    Matin

    test_io.rar



    •   Alt29th July 2017, 10:08

      advertising

        
       

  4. #4
    Advanced Member level 5
    Points: 19,641, Level: 33
    barry's Avatar
    Join Date
    Mar 2005
    Location
    California, USA
    Posts
    3,785
    Helped
    818 / 818
    Points
    19,641
    Level
    33

    Re: fpga programmed successfully but it doesn't work correctley

    1) how are you looking at pins on a bga?
    2) are your power supply voltages correct?
    3) if you're going to be playing with FPGAs you're going to need more than a voltmeter.
    4) have you looked at your pinFile? Any messages from synthesis or PAR that might give you a clue?



--[[ ]]--