Forum Discussion

Altera_Forum's avatar
Altera_Forum
Icon for Honored Contributor rankHonored Contributor
16 years ago

Porting from Xilinx to Altera

Hi everybody,

we just started with a new project which will use an Cyclone III. We ant to reuse as much of our previous code which was done for Xilinx FPGA.

Most file are quite genric, but some contain components from xilinx library.

We would replace this part with using if generate constructs, depending on FPGA types, but there is still the unisim library declaration at the top of the file.

As anybody had any expirience with that ? i thought about making a dummy unisim library which conatins the used components, to be able to actually compile the code. Is that the right approach ?

13 Replies

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    I made dummy libraries from Xilinx and Altera stuff (unisim, altera_mf) containing the components declaration. If we can now compile our design on both plattform, during synthesis if just load the dummy xlinx lib in quartus, and it won't complain that it can't find unisim lib.

  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    I made dummy libraries from Xilinx and Altera stuff (unisim, altera_mf) containing the components declaration. If we can now compile our design on both plattform, during synthesis if just load the dummy xlinx lib in quartus, and it won't complain that it can't find unisim lib.

    --- Quote End ---

    Would You ( or somene else ) please share dummy library from Xilinx (unisim )?

    What if I will just comment out that line "use UNISIM.VComponents.all;" ?

    After commenting out that line everywhere it appeared Quartus compiled the project OK.

    Does this simple "use UNISIM.VComponents.all;" removal makes the same effect as using dummy library?
  • Altera_Forum's avatar
    Altera_Forum
    Icon for Honored Contributor rankHonored Contributor

    --- Quote Start ---

    Would You ( or somene else ) please share dummy library from Xilinx (unisim )?

    What if I will just comment out that line "use UNISIM.VComponents.all;" ?

    After commenting out that line everywhere it appeared Quartus compiled the project OK.

    Does this simple "use UNISIM.VComponents.all;" removal makes the same effect as using dummy library?

    --- Quote End ---

    No, I can't. Just take the unisim file from xilinx (it's called unisim.vhd or so), copy it somewhere, and remove all non component declaration. It took me an hour to so to do.