Forums
New posts
Search forums
Members
Current visitors
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Search forums
Menu
Log in
Register
Install the app
Install
Forums
Archive
Archive
VHDL
Truncate with fixed_pkg
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
[QUOTE="KJ, post: 3639168"] Refer to page 4 of the user's guide (Fixed_ug.pdf) for more info. Basically the resize function has a parameter for controlling how rounding is performed that if you don't specify it, defaults to the rounding style that causes the additional synthesized logic. It also has a parameter for controlling overflow that you may want to specify as well since it defaults to 'saturate' style which will consume more logic as well instead of wrapping. Refer to the user's guide about some of the considerations you should make but basically you'll need to change your use of resize from this... xyz <= resize(abc, xyz'left, xyz'right); to this... xyz <= resize(abc, xyz'left, xyz'right,fixed_truncate, fixed_wrap); KJ [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
Truncate with fixed_pkg
Top