Join GitHub today
GitHub is home to over 36 million developers working together to host and review code, manage projects, and build software together.Sign up
Hardcode `fromInteger` for `Signed` and `Unsigned` #9
This is however a problem when they are applied to an integer literal that is larger than 32-bits, as most VHDL tooling does not support integer literals larger than the 32-bit 2-complements representation. When this happens, we should write the the integers as a bit-string; we can't do this in the BlackBox definitions, as the templates are logic-less and so they can't determine if they are applied to a literal yes or no.
We must hence implement these two functions directly in the compiler.