--- Quote Start ---
Thanks kaz. I agree on your approach on the register level. Not sure how this will work on dual port inferred memory tho. I have seen it work as long as the memory array has both its ports accessed within the same entity, but it seems to fail if I wire the array outside and access 2nd port from somewhere else. Maybe its just a minor bug that never got caught.
--- Quote End ---
You still have to declare and initialise the memory array in only one area even though you may access one port from one module, the second port from another module. It could be you are not following the inference methodology given by Altera.
--- Quote Start ---
btw, off topic, it was interesting to see your profile pic. I was visiting your land and some oil fields late last year. It was an interesting and peaceful visit and I know there are lots of interesting politics going on there right now. The Kurds seems to do very well in contrast to surrounding areas. I wish you and your people good luck! :) (PS:I do have economical interest in the oil business there)
--- Quote End ---
Interesting small global village. I grow up there in the heights of oppression of the defenseless people in their sliced nation. Ironically that oil was used to buy tools of our destruction. Hopefully those days gone for ever. Thanks for your remarks and wish you and your business success.