- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
hi all
i want a vhdl code to calculate the average from input data. and another for standard deviation. thanks for advance .Link Copied
5 Replies
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
What have you got so far? What problems do you have?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i have a top level design and i want to take the output from it and save on register or ram then calculate their mean and std dev.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
sounds plausible - what exactly are you stuck with>?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
i am stuck with floating point and how i can represent it in vhdl code ,i.e the result from division is floating Numbers how i can overcome it and then i can make avg.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
If the inputs are two integers, the result from any arithmatic will be fixed point, not floating point. Fixed point is just an integer with a 2^n offset
You havent specific anything about the system - how many samples to average? where the values come from, what the number sizes are? you havent even posted any code that even attempts to do the averaging yet.
Reply
Topic Options
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page