Re: CP-007 and CP-008: textio for std_logic_1164


Subject: Re: CP-007 and CP-008: textio for std_logic_1164
From: David Bishop (david.bishop@kodak.com)
Date: Thu Feb 20 2003 - 10:35:30 PST


Rob Anderson wrote:
>
> Yes, it would be nice to have a standard way to tell the
> simulator that when it is writing text, it should
> use one of two line delimiters. It should not just write
> a file based on the current OS.
>
> Unix was LF and DOS was CRLF, you can tell by the appearance
> of ^M at the end of DOS lines under UNIX. Editors, eg. GVIM
> do not have trouble reading either case on either system.
>
> DOS tools do not seem to have trouble with missing <CR>, it
> is usual to see problems on the unix side dealing with the
> extra <CR>.

This brings up another good point. One of the little things
that pops out of the wood work to bite is the PC "big indian
little indian" problem. When you write a binary file on
a UNIX machine you get:

ABCD

If you read that file back on a PC you get:

DCBA

Would be nice to have a "binary" switch that could automatically
convert.

-- 
David W. Bishop          dbishop@vhdl.org



This archive was generated by hypermail 2b28 : Thu Feb 20 2003 - 10:37:39 PST