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: 3639143"] Refer to page 4 of the user's guide (Fixed_ug.pdf) for more info. In short, the resize function has an argument for the rounding style, if you don't specify a value for that argument it defaults to 'fixed_round'. There is also an argument for overflow style that defaults to 'fixed_saturate'. You'll probably want to change both of these. Modify your use of resize to be of the form xyz <= resize(abc, xyz'left, xyz'right, fixed_wrap, fixed_truncate); KJ [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
Truncate with fixed_pkg
Top