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="Shannon, post: 4145757"] I struggle with this more than any other subject in VHDL. Ok... from a post by Jonathan Bromley from some time ago: acc <= ('0' & acc(7 downto 0)) + amplitude + acc(8); acc : std_logic_vector(8 downto 0); amplitude : std_logic_vector(7 downto 0); it's such a beautiful line of code to accomplish pwm (DeltaSigma modulator). I would love to keep it as it is without piles of type conversion and casting and what not but alas I don't think that's possible. I've tried all kinds of very unclever combinations of unsigned' this and to_integer that....no glory. Can anyone help? Shannon (struggling with the same issues over and over again) [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
type casting / conversion again
Top