+ Post New Thread
Results 1 to 2 of 2
  1. #1
    Newbie level 6
    Points: 1,434, Level: 8
    Achievements:
    7 years registered

    Join Date
    Feb 2010
    Location
    Dinajpur
    Posts
    13
    Helped
    0 / 0
    Points
    1,434
    Level
    8

    Want to store values from a text file into an multi dimensional array in sys verilog

    I have a text file and the name of the file is named.txt. In this file following values are written.

    4 5 6 7
    8 9 2 1
    3 2 4 9
    10 10 5 21
    I want to store this values in a 4X4 multidimensional array. How can i do this. Please help me.

    Thanks in advance.

    •   Alt29th July 2017, 13:40

      advertising

        
       

  2. #2
    Advanced Member level 3
    Points: 5,730, Level: 17

    Join Date
    Dec 2011
    Location
    Fremont, CA, USA
    Posts
    723
    Helped
    331 / 331
    Points
    5,730
    Level
    17
    Blog Entries
    4

    Re: Want to store values from a text file into an multi dimensional array in sys veri

    Use $fscanf
    Dave Rich
    Senior Verification Consultant
    Mentor Graphics Corporation


    1 members found this post helpful.

--[[ ]]--