Rocksolid Light

Welcome to novaBBS (click a section below)

mail  files  register  newsreader  groups  login

Message-ID:  

6 May, 2024: The networking issue during the past two days has been identified and appears to be fixed. Will keep monitoring.


devel / comp.lang.vhdl / Re: How to Report/Display a File Name in VHDL?

SubjectAuthor
* How to Report/Display a File Name in VHDL?A
`* Re: How to Report/Display a File Name in VHDL?KJ
 `* Re: How to Report/Display a File Name in VHDL?A
  +- Re: How to Report/Display a File Name in VHDL?KJ
  `- Re: How to Report/Display a File Name in VHDL?Nicolas Matringe

1
How to Report/Display a File Name in VHDL?

<b6c73817-2452-4cda-bd1d-82cce7f965ecn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9910&group=comp.lang.vhdl#9910

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:ae9:eb4f:: with SMTP id b76mr4465152qkg.690.1644516648635;
Thu, 10 Feb 2022 10:10:48 -0800 (PST)
X-Received: by 2002:a5b:148:: with SMTP id c8mr8402113ybp.726.1644516648370;
Thu, 10 Feb 2022 10:10:48 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.vhdl
Date: Thu, 10 Feb 2022 10:10:48 -0800 (PST)
Injection-Info: google-groups.googlegroups.com; posting-host=2602:306:334c:b080:c177:9cf9:f03d:f035;
posting-account=rRWESQoAAABpGoGZN4aaNtcTcmzDYlqZ
NNTP-Posting-Host: 2602:306:334c:b080:c177:9cf9:f03d:f035
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <b6c73817-2452-4cda-bd1d-82cce7f965ecn@googlegroups.com>
Subject: How to Report/Display a File Name in VHDL?
From: ashokmeh...@gmail.com (A)
Injection-Date: Thu, 10 Feb 2022 18:10:48 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 6
 by: A - Thu, 10 Feb 2022 18:10 UTC

I'd like to open a file and then display the name of the file that I just opened. Tried the following but get a syntax Error.

FILE Fnew : Text;
FILE_OPEN(Fnew, "wfile", WRITE_MODE);
report "FILE NAME = ", & Fnew; --Syntax Error

Thanks for your help.

Re: How to Report/Display a File Name in VHDL?

<bc28179b-a141-4c80-b4c2-fae4ba02c73bn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9911&group=comp.lang.vhdl#9911

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:a05:622a:40e:: with SMTP id n14mr716714qtx.380.1644579208111;
Fri, 11 Feb 2022 03:33:28 -0800 (PST)
X-Received: by 2002:a25:4f41:: with SMTP id d62mr869986ybb.156.1644579207838;
Fri, 11 Feb 2022 03:33:27 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.vhdl
Date: Fri, 11 Feb 2022 03:33:27 -0800 (PST)
In-Reply-To: <b6c73817-2452-4cda-bd1d-82cce7f965ecn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:d660:9640:5de5:71c9:48:4711;
posting-account=TJOePQoAAADr-f6dDt_fMmacSJMCG-pd
NNTP-Posting-Host: 2600:1700:d660:9640:5de5:71c9:48:4711
References: <b6c73817-2452-4cda-bd1d-82cce7f965ecn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <bc28179b-a141-4c80-b4c2-fae4ba02c73bn@googlegroups.com>
Subject: Re: How to Report/Display a File Name in VHDL?
From: kkjenni...@sbcglobal.net (KJ)
Injection-Date: Fri, 11 Feb 2022 11:33:28 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 13
 by: KJ - Fri, 11 Feb 2022 11:33 UTC

On Thursday, February 10, 2022 at 1:10:50 PM UTC-5, ashokm...@gmail.com wrote:
> I'd like to open a file and then display the name of the file that I just opened. Tried the following but get a syntax Error.
>
> FILE Fnew : Text;
> FILE_OPEN(Fnew, "wfile", WRITE_MODE);
> report "FILE NAME = ", & Fnew; --Syntax Error
>
> Thanks for your help.
The file name in your example is "wfile", not &Fnew.

So it should be
report "FILE NAME = " & "wfile";

Alternatively, define a string constant and pass that string to the file_open procedure as well as using it in the report statement.

Re: How to Report/Display a File Name in VHDL?

<1c074fc4-74cb-40ca-9f58-a3c4814ea39cn@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9912&group=comp.lang.vhdl#9912

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:a05:622a:c6:: with SMTP id p6mr1685625qtw.191.1644597856664;
Fri, 11 Feb 2022 08:44:16 -0800 (PST)
X-Received: by 2002:a81:ac51:: with SMTP id z17mr2624903ywj.287.1644597856377;
Fri, 11 Feb 2022 08:44:16 -0800 (PST)
Path: i2pn2.org!i2pn.org!weretis.net!feeder6.news.weretis.net!news.misty.com!border2.nntp.dca1.giganews.com!nntp.giganews.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.vhdl
Date: Fri, 11 Feb 2022 08:44:16 -0800 (PST)
In-Reply-To: <bc28179b-a141-4c80-b4c2-fae4ba02c73bn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2602:306:334c:b080:8daa:a634:7d08:5c74;
posting-account=rRWESQoAAABpGoGZN4aaNtcTcmzDYlqZ
NNTP-Posting-Host: 2602:306:334c:b080:8daa:a634:7d08:5c74
References: <b6c73817-2452-4cda-bd1d-82cce7f965ecn@googlegroups.com> <bc28179b-a141-4c80-b4c2-fae4ba02c73bn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <1c074fc4-74cb-40ca-9f58-a3c4814ea39cn@googlegroups.com>
Subject: Re: How to Report/Display a File Name in VHDL?
From: ashokmeh...@gmail.com (A)
Injection-Date: Fri, 11 Feb 2022 16:44:16 +0000
Content-Type: text/plain; charset="UTF-8"
Lines: 16
 by: A - Fri, 11 Feb 2022 16:44 UTC

On Friday, February 11, 2022 at 3:33:30 AM UTC-8, KJ wrote:
> On Thursday, February 10, 2022 at 1:10:50 PM UTC-5, ashokm...@gmail.com wrote:
> > I'd like to open a file and then display the name of the file that I just opened. Tried the following but get a syntax Error.
> >
> > FILE Fnew : Text;
> > FILE_OPEN(Fnew, "wfile", WRITE_MODE);
> > report "FILE NAME = ", & Fnew; --Syntax Error
> >
> > Thanks for your help.
> The file name in your example is "wfile", not &Fnew.
>
> So it should be
> report "FILE NAME = " & "wfile";
>
> Alternatively, define a string constant and pass that string to the file_open procedure as well as using it in the report statement.

Thanks but I still get a syntax error with your solution. Also, defined a string constant and passed that to the file_open and report statements. Still syntax Error.

Re: How to Report/Display a File Name in VHDL?

<98f2a78e-23f2-45c6-88cc-04634d552383n@googlegroups.com>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9913&group=comp.lang.vhdl#9913

  copy link   Newsgroups: comp.lang.vhdl
X-Received: by 2002:a05:620a:94e:: with SMTP id w14mr2157668qkw.485.1644627231830;
Fri, 11 Feb 2022 16:53:51 -0800 (PST)
X-Received: by 2002:a25:e696:: with SMTP id d144mr246836ybh.314.1644627231633;
Fri, 11 Feb 2022 16:53:51 -0800 (PST)
Path: i2pn2.org!i2pn.org!aioe.org!news.uzoreto.com!news-out.netnews.com!news.alt.net!fdc2.netnews.com!peer02.ams1!peer.ams1.xlned.com!news.xlned.com!peer03.iad!feed-me.highwinds-media.com!news.highwinds-media.com!news-out.google.com!nntp.google.com!postnews.google.com!google-groups.googlegroups.com!not-for-mail
Newsgroups: comp.lang.vhdl
Date: Fri, 11 Feb 2022 16:53:51 -0800 (PST)
In-Reply-To: <1c074fc4-74cb-40ca-9f58-a3c4814ea39cn@googlegroups.com>
Injection-Info: google-groups.googlegroups.com; posting-host=2600:1700:d660:9640:5de5:71c9:48:4711;
posting-account=TJOePQoAAADr-f6dDt_fMmacSJMCG-pd
NNTP-Posting-Host: 2600:1700:d660:9640:5de5:71c9:48:4711
References: <b6c73817-2452-4cda-bd1d-82cce7f965ecn@googlegroups.com>
<bc28179b-a141-4c80-b4c2-fae4ba02c73bn@googlegroups.com> <1c074fc4-74cb-40ca-9f58-a3c4814ea39cn@googlegroups.com>
User-Agent: G2/1.0
MIME-Version: 1.0
Message-ID: <98f2a78e-23f2-45c6-88cc-04634d552383n@googlegroups.com>
Subject: Re: How to Report/Display a File Name in VHDL?
From: kkjenni...@sbcglobal.net (KJ)
Injection-Date: Sat, 12 Feb 2022 00:53:51 +0000
Content-Type: text/plain; charset="UTF-8"
X-Received-Bytes: 2447
 by: KJ - Sat, 12 Feb 2022 00:53 UTC

On Friday, February 11, 2022 at 11:44:18 AM UTC-5, ashokm...@gmail.com wrote:
> On Friday, February 11, 2022 at 3:33:30 AM UTC-8, KJ wrote:
> > On Thursday, February 10, 2022 at 1:10:50 PM UTC-5, ashokm...@gmail.com wrote:
> > > I'd like to open a file and then display the name of the file that I just opened. Tried the following but get a syntax Error.
> > >
> > > FILE Fnew : Text;
> > > FILE_OPEN(Fnew, "wfile", WRITE_MODE);
> > > report "FILE NAME = ", & Fnew; --Syntax Error
> > >
> > > Thanks for your help.
> > The file name in your example is "wfile", not &Fnew.
> >
> > So it should be
> > report "FILE NAME = " & "wfile";
> >
> > Alternatively, define a string constant and pass that string to the file_open procedure as well as using it in the report statement.
> Thanks but I still get a syntax error with your solution. Also, defined a string constant and passed that to the file_open and report statements. Still syntax Error.

What I posted works for me: report "FILE NAME = " & "wfile";

Since you've provided no actual code or what the actual error is, I'm not going to guess. Good luck.

Kevin Jennings

Re: How to Report/Display a File Name in VHDL?

<620784c5$0$1345$426a74cc@news.free.fr>

  copy mid

https://www.novabbs.com/devel/article-flat.php?id=9914&group=comp.lang.vhdl#9914

  copy link   Newsgroups: comp.lang.vhdl
Path: i2pn2.org!i2pn.org!weretis.net!feeder8.news.weretis.net!feeder1-2.proxad.net!proxad.net!feeder1-1.proxad.net!cleanfeed3-b.proxad.net!nnrp1-2.free.fr!not-for-mail
Date: Sat, 12 Feb 2022 10:58:29 +0100
MIME-Version: 1.0
User-Agent: Mozilla/5.0 (X11; FreeBSD amd64; rv:91.0) Gecko/20100101
Thunderbird/91.5.1
Subject: Re: How to Report/Display a File Name in VHDL?
Content-Language: en-US
Newsgroups: comp.lang.vhdl
References: <b6c73817-2452-4cda-bd1d-82cce7f965ecn@googlegroups.com>
<bc28179b-a141-4c80-b4c2-fae4ba02c73bn@googlegroups.com>
<1c074fc4-74cb-40ca-9f58-a3c4814ea39cn@googlegroups.com>
From: nicolas....@fre.fre (Nicolas Matringe)
In-Reply-To: <1c074fc4-74cb-40ca-9f58-a3c4814ea39cn@googlegroups.com>
Content-Type: text/plain; charset=UTF-8; format=flowed
Content-Transfer-Encoding: 7bit
Lines: 21
Message-ID: <620784c5$0$1345$426a74cc@news.free.fr>
Organization: Guest of ProXad - France
NNTP-Posting-Date: 12 Feb 2022 10:58:29 CET
NNTP-Posting-Host: 82.65.67.227
X-Trace: 1644659909 news-2.free.fr 1345 82.65.67.227:19928
X-Complaints-To: abuse@proxad.net
 by: Nicolas Matringe - Sat, 12 Feb 2022 09:58 UTC

On 2/11/22 17:44, A wrote:
> On Friday, February 11, 2022 at 3:33:30 AM UTC-8, KJ wrote:
>> On Thursday, February 10, 2022 at 1:10:50 PM UTC-5, ashokm...@gmail.com wrote:
>>> I'd like to open a file and then display the name of the file that I just opened. Tried the following but get a syntax Error.
>>>
>>> FILE Fnew : Text;
>>> FILE_OPEN(Fnew, "wfile", WRITE_MODE);
>>> report "FILE NAME = ", & Fnew; --Syntax Error
[...]
>> The file name in your example is "wfile", not &Fnew.
>>
>> So it should be
>> report "FILE NAME = " & "wfile";
[...]> Thanks but I still get a syntax error with your solution. Also,
defined a string constant and passed that to the file_open and report
statements. Still syntax Error.

Hello
The problem is probably with the comma before the concatenation operator &

Nicolas

1
server_pubkey.txt

rocksolid light 0.9.81
clearnet tor