Forum Discussion

mifa's avatar
mifa
Icon for New Contributor rankNew Contributor
6 years ago

How to add Intel IP to Custom IP (hw.tcl)?

I am creating an IP with a bunch of Verilog files. In some of that verilog files I would like to use Intel IPs like ALT_IOBUF, ALTCLKCTRL or a FIFO.

If I start the simulation with the generated simulation script then the IPs were not found.

How to add those IPs to the _hw.tcl?

7 Replies

  • mifa's avatar
    mifa
    Icon for New Contributor rankNew Contributor

    I don't know how that should help me. Can you please give me an example? In my understanding it is only about a selection of files, but how to add the IP.

    By the way, I fixed ALT_IOBUF. The synthesis was ok with it, but for simulation it has to be written lowercase "alt_iobuf".

    However, altclkctrl is inserted automatically during synthesis, but not for simulation. If I create a megafunction IP, then I dont know how to add it. The same thing with the FIFO.

    I tried to add the .sip, but that file is only copied which does not help the simulator.

  • KennyT_altera's avatar
    KennyT_altera
    Icon for Super Contributor rankSuper Contributor

    Have you read the document on the call back feature? There is a posted example code there that you follow. Let me know if you don't understand how to use the feature.

  • mifa's avatar
    mifa
    Icon for New Contributor rankNew Contributor

    Unfortunately, that example you gave me only showed how to add some .v or .sv files.

    I need a example for a structure like that:

    • top_file.v
      • file_a.v
      • file_b.v
      • ALTCLKCTRL (what I have to add?)
      • file_c.v
        • file_cc.v
        • Altera DC_FIFO_IP (what I have to add?)

    Adding the verilog files is clear, but what to do with the IPs? Is there a way to add .qsys or _hw.tcl?

    Workaround ALTCLKCTRL: Fortunately, the synthesis creates the clock switch by itself. However for simulation, I had to make a extra simulation file, because it was not found there.

    I think that way is still not best-practice.