Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
9 years ago

writing an array to text file

i have an array consisting of values in sfixed format (9 downto -6) with 100 values . i want to transfer it to a text file. can anyone please help ??

3 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    You didn't say if this was a simulation or in an FPGA. If it's simulation, see the modelsim documentation. For an FPGA you have two choices. You can use system console if you are connected via JTAG. Or, you can add a processor system and software with an interface to an SD card. All of this is described in the Altera documentation.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    You didn't say if this was a simulation or in an FPGA. If it's simulation, see the modelsim documentation. For an FPGA you have two choices. You can use system console if you are connected via JTAG. Or, you can add a processor system and software with an interface to an SD card. All of this is described in the Altera documentation.

    --- Quote End ---

    it is for simulation

    can u please tell some example codes
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    There are many tutorials on how to use the textio library. In VHDL 2008, all of the procedures to write to a file are included in the fixed_pkg.