+ Post New Thread
Results 1 to 5 of 5
  1. #1
    Junior Member level 2
    Points: 419, Level: 4

    Join Date
    Oct 2015
    Location
    United Kingdom
    Posts
    21
    Helped
    0 / 0
    Points
    419
    Level
    4

    Comm (SPI & Ethernet modules) not working after migration from ISE -> Vivado.

    Hi all,

    I am in the process of migrating our firmware from ISE to Vivado. Initially there were couple of synthesis errors which are now fixed and i was able to generate .bit/.bin files and successfully programmed Cmod A7 module to test Ethernet communication between PC and our system. We used WIZ812MJ Ethernet module which is controlled/configured by FPGA through SPI .

    Initially i wasn't even able to ping the device through command prompt. Then i tweaked the way TxData & RxData were declared in firmware which worked. Why and How ... i don't know.


    Code:
    entity SPIController is
    	generic 
    	(
    		SPI_MODE		: natural := 0;	
    		TX_DATA_WIDTH 	: natural := 32;
    		RX_DATA_WIDTH 	: natural := 8
    	); 
       
    	Port
    	( 
    		Clk 		: in std_logic;
    		
    		Enable      : in std_logic;
    --		TxData	    : in std_logic_vector(TX_DATA_WIDTH-1 downto 0);
    --		RxData	    : out std_logic_vector(RX_DATA_WIDTH-1 downto 0);
    		TxData	    : in std_logic_vector(31 downto 0);
                    RxData        : out std_logic_vector(7 downto 0);
    		Busy		: out std_logic;	 
    		
    		SCLK		: out std_logic;
    		CS			: out std_logic;
    		MOSI		: out std_logic;
    		MISO		: in std_logic		
    	);
    end SPIController;
    Now i can ping the device through Ethernet. In order to further test the functionality of the system, i connected it to hyper terminal but unable to establish the connection. There are multiple sockets for Ethernet module ..... i change the sockets in the properties of hyper terminal but nothing worked.

    To conclude, i can ping the system through PC (command prompt) but can not establish a connection via hyper terminal.

    I am not an expert in this area. Any help in this regard will highly be appreciated. Any questions please feel free to ask.

    Regards,
    Moeed.

    •   Alt14th February 2017, 16:22

      advertising

        
       

  2. #2
    Super Moderator
    Points: 26,615, Level: 39
    ads-ee's Avatar
    Join Date
    Sep 2013
    Location
    USA
    Posts
    6,048
    Helped
    1482 / 1482
    Points
    26,615
    Level
    39

    Re: Comm (SPI & Ethernet modules) not working after migration from ISE -> Vivado.



    1 members found this post helpful.

    •   Alt14th February 2017, 17:06

      advertising

        
       

  3. #3
    Newbie level 3
    Points: 952, Level: 7

    Join Date
    Feb 2012
    Posts
    4
    Helped
    0 / 0
    Points
    952
    Level
    7

    Re: Comm (SPI & Ethernet modules) not working after migration from ISE -> Vivado.

    Dear Moeed,
    As we said you have successfully done code for test Ethernet communication between PC and system (FPGA) by using WIZ812MJ Ethernet module which is controlled/configured by FPGA through SPI, I am also started now to do the same so I kindly request you to share your me the ISE or Vivado code to use.

    [email address deleted]

    Thanks & Regards
    sheree subahan
    Last edited by BradtheRad; 4th March 2017 at 05:06. Reason: Email address removed



    •   Alt4th March 2017, 04:53

      advertising

        
       

  4. #4
    Junior Member level 2
    Points: 419, Level: 4

    Join Date
    Oct 2015
    Location
    United Kingdom
    Posts
    21
    Helped
    0 / 0
    Points
    419
    Level
    4

    Re: Comm (SPI & Ethernet modules) not working after migration from ISE -> Vivado.

    Quote Originally Posted by ads-ee View Post
    Sorry for late update. The problem is sorted. Some how SCLK bumped above maximum threshold (i.e. 72nS). Tweaked the clock and now Ethernet is working.

    Thank you all for your help and suggestions.



  5. #5
    Newbie level 3
    Points: 952, Level: 7

    Join Date
    Feb 2012
    Posts
    4
    Helped
    0 / 0
    Points
    952
    Level
    7

    Re: Comm (SPI & Ethernet modules) not working after migration from ISE -> Vivado.

    Quote Originally Posted by moeedmughal View Post
    Sorry for late update. The problem is sorted. Some how SCLK bumped above maximum threshold (i.e. 72nS). Tweaked the clock and now Ethernet is working.

    Thank you all for your help and suggestions.
    I need that ok code for me



--[[ ]]--