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
help with syntax
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="Tricky, post: 4066147"] I maybe should have said I have inclided the floatfixed libraries It compiles fine when I dont try and assign individual indices and just create an aggregate: --left column x y FILTER_COEFFS : coeff_array_t := ( ( to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) , -- (-1,-1) to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) , -- (-1, 0) to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) -- (-1, 1) ), --middle column ( to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) , -- ( 0,-1) to_sfixed(1.0, coeff_t'high+1, abs(coeff_t'low) ) , -- ( 0, 0) to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) -- ( 0, 1) ), --right coloumn ( to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) , -- ( 1,-1) to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) , -- ( 1, 0) to_sfixed(0.0, coeff_t'high+1, abs(coeff_t'low) ) -- ( 1, 1) ) ) The only problem I have with this is that the aggregate asigns it column major, and I was trying to write it row major. Its not a big issue, but thought it might just be easier to look at it when assigning values starting top left going from right to left, rather than top to bottom.Maybe Im just being too picky! [/QUOTE]
Verification
Post reply
Forums
Archive
Archive
VHDL
help with syntax
Top