Przemysław Elias
Guest
Tue Jul 06, 2010 11:51 pm
Hi,
Is it possible to put a ASCII 0 character, which is NULL.
I'm trying to use it in a testbench with a write(line,
character'val(0)); function from std.textio library, but it simply
doesn't work this way.
Any ideas?
Mike Treseler
Guest
Wed Jul 07, 2010 12:15 am
Przemys?aw Elias wrote:
Quote:
Hi,
Is it possible to put a ASCII 0 character, which is NULL.
I'm trying to use it in a testbench with a write(line,
character'val(0)); function from std.textio library, but it simply
doesn't work this way.
Any ideas?
Maybe
constant newline_c : string := (1 => NUL);
-- Mike Treseler
Mike Treseler
Guest
Wed Jul 07, 2010 12:19 am
Mike Treseler wrote:
Quote:
constant newline_c : string := (1 => NUL);
If that works, you might want to change the name to null_c ;)
-- Mike Treseler
KJ
Guest
Thu Jul 08, 2010 5:33 am
On Jul 6, 4:51 pm, Przemysław Elias <pempus...@gmail.com> wrote:
Quote:
Hi,
Is it possible to put a ASCII 0 character, which is NULL.
You're confused, ASCII 0 character is exactly that, the ASCII
character '0'...which is a byte that has the decimal value of 48, hex
value of 0x30.
Quote:
I'm trying to use it in a testbench with a write(line,
character'val(0)); function from std.textio library, but it simply
doesn't work this way.
Any ideas?
Whether writing the ASCII character '0' or the NUL character, works
for me using std.textio functions.
Kevin Jennings