Forum Discussion
3 Replies
- Altera_Forum
Honored Contributor
Tried again, this time using the Wizard. Accepts the .hex file name and that part is fine.
Unfortuntely, the VHDL created by the Wizard for altsyncram uses type std_logic_vector for the address, whereas the template version uses the (far nice) natural type. Shame :( So, working, but the VHDL now has lots of things liketmpIP := tmpIP + 1; -- tmpIP is a natural IP <= std_LOGIC_VECTOR(to_unsigned(tmpIP, IP'length)); -- IP is a std_logic_vector, as per the altsyncram "address" - Altera_Forum
Honored Contributor
You can always write a wrapper component around the Megawizard generated code, just to use a natural for the address. It won't add any logic to the design, so you will have no timing or space penalty, but it can make the code nicer.
- Altera_Forum
Honored Contributor
--- Quote Start --- You can always write a wrapper component around the Megawizard generated code, just to use a natural for the address. It won't add any logic to the design, so you will have no timing or space penalty, but it can make the code nicer. --- Quote End --- Darn it, why didn't I think of that :oops: Thank you for helping.