Newline character

Joined
May 27, 2008
Messages
1
Reaction score
0
Hello!

I am new here, and also new to VHDL. I have a question that is probably quite simple, but I can't seem to figure it out. :) I am working VHDL for a school project.

I have a string constant called payload. I would like to include a newline character in this string (hex value: 0A).

If I write:
constant payload: string := "text" & x"0A";
I end up with text00001010, which is not what I want...

I hope someone can help.

Best regards,
Michael
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
473,764
Messages
2,569,564
Members
45,039
Latest member
CasimiraVa

Latest Threads

Top