Hello again,

ghdl handles the decimal delimiter sign correctly. It's not locale dependent.

A faulty line:
constant CLOCK_FREQ    : FREQ       := 100,0 MHz;
gives:
D:\git\SATAController\lib\PoC\tb\misc\misc_Noise_tb.vhdl:17:118: ';' is 
expected instead of ','

The error IIR_KIND_PHYSICAL_FP_LITERAL shows us several points:
- ghdl recognizes a floating point literal (probably identified by character 
'.' in between of two numbers)
- ghdl recognizes a physical literal declaration, because there is an 
identifier after a literal and that identifier
  is known from a former physical type definition.

Integer based physical literals work.
I can imagine that converting FP literals to integer literals is not trivial.


Ohoh, ghdl excepts built-in physical types with FP literals like '2.4 us'.

Example:
constant test : time := 2.4 us;
gives no error.

So I assume it's related to user defined physical types ?!?

Regards
    Patrick

-----------------------------------
Wissenschaftliche Hilfskraft

Technische Universität Dresden
Fakultät Informatik
Institut für Technische Informatik
Lehrstuhl VLSI-Entwurfssysteme, Diagnostik und Architektur
01062 Dresden
Tel.:   +49 351 463-38451
Fax:    +49 351 463-38324
Raum:   APB-1020
E-Mail: [email protected]
WWW:    http://vlsi-eda.inf.tu-dresden.de

-----Original Message-----
From: Ghdl-discuss [mailto:[email protected]] On Behalf Of Hannu 
Vuolasaho
Sent: Monday, June 08, 2015 11:40 PM
To: GHDL discuss list
Subject: Re: [Ghdl-discuss] Error while handling floating point literals in 
physical literals



----------------------------------------

The error is the same:
build_constant: cannot handle IIR_KIND_PHYSICAL_FP_LITERAL 
(D:\git\SATAController\lib\PoC\tb\misc\misc_Noise_tb.vhdl:17:115)

Is it a windows-only/mcode problem?

Literal and floating point gives me one wild idea.
How is your decimal written? Can 1,234 be same as 1.234 elsewhere and this ends 
up being locale problem?

I've been hit by this a couple of times, but not with VHDL.

Best regards,
Hannu Vuolasaho


                                          
_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________
Ghdl-discuss mailing list
[email protected]
https://mail.gna.org/listinfo/ghdl-discuss

Reply via email to