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
type casting / conversion again
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="Jonathan Bromley, post: 4146583"] Tee hee. No, it's horrid-looking, you're right. But it's less likely to need life-support in the future. Aliases might be your friend here... alias acc_MSB_value: unsigned (0 downto 0) is acc(acc'left downto acc'left); alias acc_without_MSB: unsigned(acc'length-2 downto 0) is acc(acc'length-2 downto 0); .... acc <= ('0' & acc_without_MSB) + amplitude + acc_MSB_value; Beauty restored :-) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
type casting / conversion again
Top