Does VHDL allow for _ in real numbers?
- User
Does VHDL allow for _ in real numbers?
Assistant
No, VHDL does not allow underscores (_) in real number literals.
While VHDL does support underscores in integer literals for readability (like
1_000_000for one million), this feature is not extended to real numbers. Real literals in VHDL must be written without underscores.For example:
3.14159is valid3.141_59is not valid1.0e6is valid1.0e_6is not valid
This limitation can make long real numbers less readable compared to integers. If you need to work with real constants that would benefit from visual separation, you might consider defining them with comments to indicate the grouping, or breaking them down into meaningful named constants.
Other models, same or similar prompt
Responses were produced in different, uncontrolled contexts (system prompts, settings, prior turns). This is not a benchmark.