Intel® Quartus® Prime Software
Intel® Quartus® Prime Design Software, Design Entry, Synthesis, Simulation, Verification, Timing Analysis, System Design (Platform Designer, formerly Qsys)
17250 Discussions

Altera memory under xilinx !

Altera_Forum
Honored Contributor II
2,169 Views

Hello everybody, So, I am trying to execute a program designed to altera but in xilinx (ISE) platform, My card is a Virtex development, and I have to use ISE, so my problem is when I run the program in ISE, it does'nt recognize the memory component ("memory_altera.png") which use altera.mf library (in attach), I thought creating the memory program in xilinx, Someone could tell me how to develop it? and what can I do about the library?  

 

Thanks a lot, Regards,
0 Kudos
8 Replies
Altera_Forum
Honored Contributor II
1,471 Views

 

--- Quote Start ---  

Hello everybody, So, I am trying to execute a program designed to altera but in xilinx (ISE) platform, My card is a Virtex development, and I have to use ISE, so my problem is when I run the program in ISE, it does'nt recognize the memory component ("memory_altera.png") which use altera.mf library (in attach), I thought creating the memory program in xilinx, Someone could tell me how to develop it? and what can I do about the library?  

 

Thanks a lot, Regards, 

--- Quote End ---  

 

 

Don't let anybody hear you moved to xilinx. 

use core generator in ISE to get equivalent memory or use infererence.
0 Kudos
Altera_Forum
Honored Contributor II
1,471 Views

The altera MF library is altera only memories. 

If you want code that compiles in both altera and xilinx, you need to write code that infers ram rather than instantiate megafunctions/core-gen components. And you have to make sure it infers the same memory in BOTH vendors (there are subtle differences between the rams on Xilinx and Altera devices).
0 Kudos
Altera_Forum
Honored Contributor II
1,471 Views

 

--- Quote Start ---  

Don't let anybody hear you moved to xilinx. 

use core generator in ISE to get equivalent memory or use infererence. 

--- Quote End ---  

 

Thanks for your response, 

so, when i use core generator i have to know what kind of memory the program used, by referring to the attached file "memoria.vhd" which use the altera.mf library, I have to create the "altsyncram" component compatible with xilinx, but I can't understand well the memory because I have no idea about the difference between altera memories and xilinx memories, 

 

So if you have any other advice to give me, i take :) 

 

Thank you again,
0 Kudos
Altera_Forum
Honored Contributor II
1,471 Views

If you want it to be compatible with both Xilinx or altera, you only have 2 options: 

 

1. Use inference. ie. do not use the megawizard or core-gen AT all, and do not use altsyncram. You cannot use the altera_MF library. Read how to infer rams for altera here: 

http://www.altera.co.uk/literature/hb/qts/qts_qii51007.pdf 

 

And Xilinx Here: 

http://www.xilinx.com/support/documentation/white_papers/wp231.pdf 

 

Compile your code in both to ensure the same type of memory is inferred. 

 

2. Use a wrapper around a core-gen or megawizard altsyncram, that can chose which one to use based on a generic. You need to be careful they behave the same by doing a good load of simulations. 

 

 

You cannot make altsyncram compatible with Xilinx - it's an altera component.
0 Kudos
Altera_Forum
Honored Contributor II
1,471 Views

 

--- Quote Start ---  

The altera MF library is altera only memories. 

If you want code that compiles in both altera and xilinx, you need to write code that infers ram rather than instantiate megafunctions/core-gen components. And you have to make sure it infers the same memory in BOTH vendors (there are subtle differences between the rams on Xilinx and Altera devices). 

--- Quote End ---  

 

 

Thank you for your comment, 

I try to do it but I have never worked on altera and I have no idea about it's memories, can you help me please (in attached the file which I have to add "altsyncram" component compatible with xilinx), 

 

Thank you again,
0 Kudos
Altera_Forum
Honored Contributor II
1,471 Views

I cant help you - altsyncram IS an altera component. The memoria file you posted is generated by altera megawizard.  

You need to read up about altera memories - compare the behaviour to XIlinx and make sure you produce some code that is compatible. 

 

If you have problems - post them here - but we are not here to do the conversion for you.
0 Kudos
Altera_Forum
Honored Contributor II
1,471 Views

open up memoria.vhd in megawizard and check all parameters e.g. two port ram,single clk, location of registers...etc.  

Then apply same to coregen ram
0 Kudos
Altera_Forum
Honored Contributor II
1,471 Views

Ok, i will do it :) 

thank you all;
0 Kudos
Reply