VHDL code - write to a binary .dat file

  • Thread starter Thread starter crono1009
  • Start date Start date
  • Tags Tags
    Binary Code File
Join the discussion
Registration is free. Ask a follow-up in this thread, or start your own.
1 reply · 6K views
crono1009
Messages
14
Reaction score
0
I'm attempting to write some simulation VHDL code that will be able to write the output of my simulation as a single string of binary values in a .dat file.

So far I've used both the textio and std_logic_textio libraries to write the signals to a .txt file as text. Is there a library I can use to write them as binary to a .dat file?

I figure if it comes down to it I could write a simple script outside of VHDL to make the text to binary conversion but I'm inclined to do it strictly in VHDL. In the end I want to be able to view the .dat file as an image using a typical image viewer program.
 
Engineering news on Phys.org