Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PhysicalUnit formatting #1075

Merged
merged 3 commits into from
Apr 7, 2023
Merged

Conversation

andreasWallner
Copy link
Collaborator

Make both HertzNumber and TimeNumber consistent that both have decompose / decomposeString (missing on HertzNumber before). Also make both formattable via f-interpolation, String.format, etc.

Context, Motivation & Description

Simpler use when printing/reporting/building error messages.

Impact on code generation

No impact on code generation, but code that printed the classes w/o any formatting will now generate different output. This should not be an issue though because the format was unspecific and not well specified before.

Checklist

  • Unit tests were added

@Dolu1990
Copy link
Member

Dolu1990 commented Apr 3, 2023

<3

@Dolu1990
Copy link
Member

Dolu1990 commented Apr 3, 2023

Fell free to merge

@andreasWallner andreasWallner merged commit 1654502 into SpinalHDL:dev Apr 7, 2023
13 checks passed
@andreasWallner andreasWallner deleted the unit_formatting branch April 7, 2023 09:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants