Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
Rip out the memory controller and add the one you want in. If you use a non-bursting memory then you might as well disable the burst options in the read master because you won't need them. This set of components doesn't care what memory you hook up to it (that's the point in using standard interfaces like Avalon MM and ST) so it should port fairly seamlessly.
- Altera_Forum
Honored Contributor
This example has some questionable content.
Line 22: isr_flag better be declared volatile or with optimization on the code should fail. Line 135:
Only one of '& 0xFF' and '% 256' are needed. Neither are really necessary since the assignment is into an alt_u8 pointer but it may serve to remove a warning. Bill Abuffer = (0xFF & rand()) % 256; // random values between 0 and 255 - Altera_Forum
Honored Contributor
Typically neither '& 0xff' nor '% 256' will remove the warning (about assigning to a narrower integral type), an explict '(unsigned char)' cast will, but the compiler is likely to generate an (or maybe another) unnecessary mask with 255.
Although I usually compile with '-Wall -Wshadow -Wcast-qual -Wmissing-prototypes -Wpointer-arith -Wwrite-strings -Werror' I disable all the warnings about integer convertions. I really don't like casts!