Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic to the Top
- Bookmark
- Subscribe
- Printer Friendly Page
0
Isim and textio / write
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-21-2011 05:48 AM
I try to output a standard logic vector as unsigned decimal either base 10 or hex. But it seems the only thing I can do with write is output a string. e.g.
write(out_line, "abcd"); -- this works
writeline(vec_out_file, out_line);
write(out_line, integer'(da_out) ); -- This seems not to work.
writeline(vec_out_file, file_line);
Do I want something this is not possible or is there another way to write a std_logic_vector to a textfile.
Thanks in advance for any help,
0
Re: Isim and textio / write
Options
- Mark as New
- Bookmark
- Subscribe
- Subscribe to RSS Feed
- Highlight
- Email to a Friend
- Report Inappropriate Content
03-21-2011 07:33 AM
You could write your own conversion functions, or else use some out of the ieee.std_logic_textio package.
------------------------------------------
"If it don't work in simulation, it won't work on the board."
------------------------------------------
"If it don't work in simulation, it won't work on the board."











