Forum Discussion
Altera_Forum
Honored Contributor
14 years ago --- Quote Start --- Inferencing rams is only garanteed to work for the code templates, and these will only work for arrays of normal types (like unsigned, std_logic_vector etc). I dont think you will get it to work with record types at all, unless you convert the records to single type arrays. --- Quote End --- I can get it to infer for records. The breaking part seems to be the different adressing schemes or bus widths on both sides, and Quartus doesnt seem to try splitting the record up in smaller blocks. Its all or nothing. --- Quote Start --- But you havent posted all of the code, just snippets, so I cannot see if the code is suitable for memory inference in the first place. The code has to follow a certain template before it will work - the ramstyle attribute only works when the templates are followed. --- Quote End --- I'd be glad for any code that would do this, so my code was just the essence of my current longer code. Of course I could write a implementable proof of concept code but I doubt that will help anyone. PS:Ive just tried to break the record into single signals, and it seems to do what I want. Its just uglier code.