Altera_Forum
Honored Contributor
8 years agoInvalid memory implementation
Please I need a help in following two questions:
First : I need to read from memory one element at a time, however, memory locations is not sequential so I need two variables as indicators. The problem is, when I use one indicator, the memory is implemented correctly, but when I add the other one ( k in example below ) the memory tend to be logic. IF rising_edge(clock) and show='1' THEN outvalues<=Memory1(i+k)-outvalues; -- +k here is the issue. k:=k+1; if k=3 then i:=i+8; end if; end if; So, what is the solution for such case? how I guide the synthesizer to implement it as a memory? Second question is: is it possible to initialize 2D array as an image ? , As I know MIF files are one dimension only. Thank you.