Skip to main content

Timeline for Use floating values in VHDL code

Current License: CC BY-SA 3.0

7 events
when toggle format what by license comment
Jan 21, 2019 at 12:32 comment added ArtificialSoul @SolomonSlow Just a slight mistake: 10.5 mA is 10500 µA not 1050µA, that'd be 1.05 mA.
Mar 15, 2018 at 16:10 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Feb 13, 2018 at 0:16 history bumped CommunityBot This question has answers that may be good or bad; the system has marked it active so that they can be reviewed.
Dec 12, 2017 at 5:52 answer added user169703 timeline score: 1
Dec 11, 2017 at 18:38 comment added user16324 Rather than hacking things to make integers fit (which is viable but maybe ugly) you can use the synthesisable fixed point (or floating point) libraries in VHDL-2008. If it's simulation only, just declare subtype Voltage_level is real range -5.5 to 5.5;
Dec 11, 2017 at 18:21 comment added Solomon Slow 10.5 mA is 1050 µA. Voilà! An integer. Or, you might choose to think of it as 21 half milliamperes, or 42 quarter milliamperes. Also, both integers. The solution to your problem could just be a matter of choosing the right scale factor.
Dec 11, 2017 at 17:56 history asked bojee CC BY-SA 3.0