Sign In

Don't have a Xilinx account yet?

  • Choose to receive important news and product information
  • Gain access to special content
  • Personalize your web experience on Xilinx.com

Create Account

Username

Password

Forgot your password?
XClose Panel
Xilinx Home
Reply
Visitor
marcelg@muco
Posts: 3
Registered: ‎03-21-2011
0

Isim and textio / write

 

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,

 

 

Expert Contributor
rcingham
Posts: 2,010
Registered: ‎09-09-2010
0

Re: Isim and textio / write

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."