Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17257 Discussions

writing an array to text file

Altera_Forum
Honored Contributor II
1,492 Views

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 ??

0 Kudos
3 Replies
Altera_Forum
Honored Contributor II
733 Views

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.

0 Kudos
Altera_Forum
Honored Contributor II
733 Views

 

--- 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
0 Kudos
Altera_Forum
Honored Contributor II
733 Views

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.

0 Kudos
Reply